diff --git a/go.mod b/go.mod
index 9fbf95a7dbf..54ad5e75d0c 100644
--- a/go.mod
+++ b/go.mod
@@ -18,7 +18,7 @@ require (
github.com/antchfx/xpath v1.1.2 // indirect
github.com/apparentlymart/go-cidr v1.0.1
github.com/awalterschulze/gographviz v0.0.0-20190522210029-fa59802746ab
- github.com/aws/aws-sdk-go v1.29.24
+ github.com/aws/aws-sdk-go v1.30.16
github.com/btubbs/datetime v0.1.1 // indirect
github.com/c4milo/gotoolkit v0.0.0-20190525173301-67483a18c17a // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
@@ -48,7 +48,7 @@ require (
github.com/hashicorp/memberlist v0.1.5 // indirect
github.com/hashicorp/serf v0.8.5 // indirect
github.com/hashicorp/terraform v0.12.21
- github.com/hashicorp/terraform-plugin-sdk v1.8.0
+ github.com/hashicorp/terraform-plugin-sdk v1.9.0
github.com/hashicorp/vault v1.3.0 // indirect
github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c // indirect
github.com/joyent/triton-go v1.7.0 // indirect
@@ -88,8 +88,8 @@ require (
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v0.0.5
github.com/stoewer/go-strcase v1.1.0 // indirect
- github.com/stretchr/testify v1.4.0
- github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200319153356-a183662640d9
+ github.com/stretchr/testify v1.5.1
+ github.com/terraform-providers/terraform-provider-aws v0.0.0
github.com/terraform-providers/terraform-provider-azuread v0.7.0 // indirect
github.com/terraform-providers/terraform-provider-azurerm v0.0.0
github.com/terraform-providers/terraform-provider-google v1.20.1-0.20200204003432-77547e3e7d52
@@ -138,6 +138,7 @@ replace (
github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20200116152001-92a2713fa240 // Pin client-go
github.com/openshift/machine-config-operator => github.com/openshift/machine-config-operator v0.0.1-0.20200130220348-e5685c0cf530 // Pin MCO so it doesn't get downgraded
github.com/ovirt/go-ovirt => github.com/ovirt/go-ovirt v0.0.0-20200320082526-4e97a11ff083
+ github.com/terraform-providers/terraform-provider-aws => github.com/openshift/terraform-provider-aws v1.60.1-0.20200526184553-1a716dcc0fa8 // Pin to openshift fork with tag v2.60.0-openshift-1
github.com/terraform-providers/terraform-provider-azurerm => github.com/openshift/terraform-provider-azurerm v1.41.1-openshift-3 // Pin to openshift fork with IPv6 fixes
github.com/terraform-providers/terraform-provider-vsphere => github.com/openshift/terraform-provider-vsphere v1.18.1-openshift-1
github.com/vmware/govmomi => github.com/vmware/govmomi v0.22.2-0.20200420222347-5fceac570f29
diff --git a/go.sum b/go.sum
index c964066fd6e..bfc946fae04 100644
--- a/go.sum
+++ b/go.sum
@@ -234,8 +234,8 @@ github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
github.com/aws/aws-sdk-go v1.25.47/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.28.8 h1:kPGnElMdW0GDc54Giy1lcE/3gAr2Gzl6cMjYKoBNFhw=
github.com/aws/aws-sdk-go v1.28.8/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
-github.com/aws/aws-sdk-go v1.29.24 h1:KOnds/LwADMDBaALL4UB98ZR+TUR1A1mYmAYbdLixLA=
-github.com/aws/aws-sdk-go v1.29.24/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg=
+github.com/aws/aws-sdk-go v1.30.16 h1:1eabOZiVGl+XB02/VG9NpR+3fngaNc74pgb5RmyzgLY=
+github.com/aws/aws-sdk-go v1.30.16/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go-v2 v0.9.0/go.mod h1:sa1GePZ/LfBGI4dSq30f6uR4Tthll8axxtEPvlpXZ8U=
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I=
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f h1:ZNv7On9kyUzm7fvRZumSyy/IUiSC7AzL0I1jKKtwooA=
@@ -254,7 +254,7 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r
github.com/bflad/gopaniccheck v0.1.0/go.mod h1:ZCj2vSr7EqVeDaqVsWN4n2MwdROx1YL+LFo47TSWtsA=
github.com/bflad/tfproviderdocs v0.5.0 h1:FzT4hEtKX1WcrLmZSRB83kFdzRmkqu7kS9RHn5oKAuA=
github.com/bflad/tfproviderdocs v0.5.0/go.mod h1:d0k1fQLEu1pdeORxozwuwmvauFaEmMBREQ1fw3J+pPc=
-github.com/bflad/tfproviderlint v0.12.0/go.mod h1:MsNI3eEj7uC7P/h7XmGvzMLtsotLkrvB+NF2/w3RZGc=
+github.com/bflad/tfproviderlint v0.14.0/go.mod h1:1Jtjs6DPKoyqPrbPyMiy33h0ViO2h831uzoOuikCA60=
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
@@ -1435,6 +1435,8 @@ github.com/jirfag/go-printf-func-name v0.0.0-20191110105641-45db9963cdd3/go.mod
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
+github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc=
+github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik=
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0/go.mod h1:IiEW3SEiiErVyFdH8NTuWjSifiEQKUoyK3LNqr2kCHU=
github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
github.com/jmoiron/sqlx v1.2.1-0.20190826204134-d7d95172beb5/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
@@ -1819,6 +1821,8 @@ github.com/openshift/machine-api-operator v0.2.1-0.20200429102619-d36974451290/g
github.com/openshift/machine-config-operator v0.0.1-0.20200130220348-e5685c0cf530 h1:r9eSp963LcaLw3YUyJHMHwZYXoaGXOc2MOKVQQrdRmw=
github.com/openshift/machine-config-operator v0.0.1-0.20200130220348-e5685c0cf530/go.mod h1:z3udws7UDLBp233iGbayvpZEwhWn74K9xzjDtCGJlok=
github.com/openshift/runtime-utils v0.0.0-20191011150825-9169de69ebf6/go.mod h1:5gDRVvQwesU7cfwlpuMivdv3Dz/oslvv2qTBHCy4wqQ=
+github.com/openshift/terraform-provider-aws v1.60.1-0.20200526184553-1a716dcc0fa8 h1:4FyzQRruWKVZwGGxO+87DMWb4QuTFrssOGbn8AzRmDk=
+github.com/openshift/terraform-provider-aws v1.60.1-0.20200526184553-1a716dcc0fa8/go.mod h1:H7ABt26s2lS5p/AOJvhB5V68d+2XzuNcpv9+3gsENJY=
github.com/openshift/terraform-provider-azurerm v1.41.1-openshift-3 h1:aRnSZYFNqYXv8mc3/q6nP1WJP4VR8eugkdmJF6xnCs0=
github.com/openshift/terraform-provider-azurerm v1.41.1-openshift-3/go.mod h1:O9UYVGp8E7aMa2dANw9oTQmaZZbbr8DMRpC56dyy00E=
github.com/openshift/terraform-provider-vsphere v1.18.1-openshift-1 h1:Jvi/tGlF8xOLZ5lWjJWi8hyXOSe7NqbAqOrwjdDRE7E=
@@ -2092,6 +2096,8 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d h1:Z4EH+5EffvBEhh37F0C0DnpklTMh00JOkjW5zK3ofBI=
github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d/go.mod h1:BSTlc8jOjh0niykqEGVXOLXdi9o0r0kR8tCYiMvjFgw=
@@ -2099,8 +2105,6 @@ github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
github.com/tchap/go-patricia v2.3.0+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I=
-github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200319153356-a183662640d9 h1:xqOfDQLPKE6UkJi4sq2/R0e/zpQQDypUzuCNPbbcXSE=
-github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200319153356-a183662640d9/go.mod h1:S5ebfk4piId2DRon9QQgeXU4+A5ICUSJWlzl+OcXPNs=
github.com/terraform-providers/terraform-provider-azuread v0.6.1-0.20191007035844-361c0a206ad4/go.mod h1:nIkEKBYPFXH/yU7mY7lK5Om6Krga/aMdD/B/OEJpWzc=
github.com/terraform-providers/terraform-provider-azuread v0.7.0 h1:s0kZMhL8feJu5ay+E+0eD5xIZ4/t4+k0Iy9o5gq2T8g=
github.com/terraform-providers/terraform-provider-azuread v0.7.0/go.mod h1:JDNotK1YxzW2NX2HhWjd0AB6AHOMrO7CQ6kiLl4Z3x8=
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
index c75d7bba033..9f8fd92a50f 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
@@ -107,6 +107,13 @@ type Provider interface {
IsExpired() bool
}
+// ProviderWithContext is a Provider that can retrieve credentials with a Context
+type ProviderWithContext interface {
+ Provider
+
+ RetrieveWithContext(Context) (Value, error)
+}
+
// An Expirer is an interface that Providers can implement to expose the expiration
// time, if known. If the Provider cannot accurately provide this info,
// it should not implement this interface.
@@ -233,7 +240,9 @@ func (c *Credentials) GetWithContext(ctx Context) (Value, error) {
// Cannot pass context down to the actual retrieve, because the first
// context would cancel the whole group when there is not direct
// association of items in the group.
- resCh := c.sf.DoChan("", c.singleRetrieve)
+ resCh := c.sf.DoChan("", func() (interface{}, error) {
+ return c.singleRetrieve(&suppressedContext{ctx})
+ })
select {
case res := <-resCh:
return res.Val.(Value), res.Err
@@ -243,12 +252,16 @@ func (c *Credentials) GetWithContext(ctx Context) (Value, error) {
}
}
-func (c *Credentials) singleRetrieve() (interface{}, error) {
+func (c *Credentials) singleRetrieve(ctx Context) (creds interface{}, err error) {
if curCreds := c.creds.Load(); !c.isExpired(curCreds) {
return curCreds.(Value), nil
}
- creds, err := c.provider.Retrieve()
+ if p, ok := c.provider.(ProviderWithContext); ok {
+ creds, err = p.RetrieveWithContext(ctx)
+ } else {
+ creds, err = c.provider.Retrieve()
+ }
if err == nil {
c.creds.Store(creds)
}
@@ -308,3 +321,19 @@ func (c *Credentials) ExpiresAt() (time.Time, error) {
}
return expirer.ExpiresAt(), nil
}
+
+type suppressedContext struct {
+ Context
+}
+
+func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) {
+ return time.Time{}, false
+}
+
+func (s *suppressedContext) Done() <-chan struct{} {
+ return nil
+}
+
+func (s *suppressedContext) Err() error {
+ return nil
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go
index 43d4ed386ab..92af5b7250a 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go
@@ -7,6 +7,7 @@ import (
"strings"
"time"
+ "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/credentials"
@@ -87,7 +88,14 @@ func NewCredentialsWithClient(client *ec2metadata.EC2Metadata, options ...func(*
// Error will be returned if the request fails, or unable to extract
// the desired credentials.
func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) {
- credsList, err := requestCredList(m.Client)
+ return m.RetrieveWithContext(aws.BackgroundContext())
+}
+
+// RetrieveWithContext retrieves credentials from the EC2 service.
+// Error will be returned if the request fails, or unable to extract
+// the desired credentials.
+func (m *EC2RoleProvider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error) {
+ credsList, err := requestCredList(ctx, m.Client)
if err != nil {
return credentials.Value{ProviderName: ProviderName}, err
}
@@ -97,7 +105,7 @@ func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) {
}
credsName := credsList[0]
- roleCreds, err := requestCred(m.Client, credsName)
+ roleCreds, err := requestCred(ctx, m.Client, credsName)
if err != nil {
return credentials.Value{ProviderName: ProviderName}, err
}
@@ -130,8 +138,8 @@ const iamSecurityCredsPath = "iam/security-credentials/"
// requestCredList requests a list of credentials from the EC2 service.
// If there are no credentials, or there is an error making or receiving the request
-func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) {
- resp, err := client.GetMetadata(iamSecurityCredsPath)
+func requestCredList(ctx aws.Context, client *ec2metadata.EC2Metadata) ([]string, error) {
+ resp, err := client.GetMetadataWithContext(ctx, iamSecurityCredsPath)
if err != nil {
return nil, awserr.New("EC2RoleRequestError", "no EC2 instance role found", err)
}
@@ -154,8 +162,8 @@ func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) {
//
// If the credentials cannot be found, or there is an error reading the response
// and error will be returned.
-func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCredRespBody, error) {
- resp, err := client.GetMetadata(sdkuri.PathJoin(iamSecurityCredsPath, credsName))
+func requestCred(ctx aws.Context, client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCredRespBody, error) {
+ resp, err := client.GetMetadataWithContext(ctx, sdkuri.PathJoin(iamSecurityCredsPath, credsName))
if err != nil {
return ec2RoleCredRespBody{},
awserr.New("EC2RoleRequestError",
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 1a7af53a4da..785f30d8e6c 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
@@ -116,7 +116,13 @@ func (p *Provider) IsExpired() bool {
// Retrieve will attempt to request the credentials from the endpoint the Provider
// was configured for. And error will be returned if the retrieval fails.
func (p *Provider) Retrieve() (credentials.Value, error) {
- resp, err := p.getCredentials()
+ return p.RetrieveWithContext(aws.BackgroundContext())
+}
+
+// RetrieveWithContext will attempt to request the credentials from the endpoint the Provider
+// was configured for. And error will be returned if the retrieval fails.
+func (p *Provider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error) {
+ resp, err := p.getCredentials(ctx)
if err != nil {
return credentials.Value{ProviderName: ProviderName},
awserr.New("CredentialsEndpointError", "failed to load credentials", err)
@@ -148,7 +154,7 @@ type errorOutput struct {
Message string `json:"message"`
}
-func (p *Provider) getCredentials() (*getCredentialsOutput, error) {
+func (p *Provider) getCredentials(ctx aws.Context) (*getCredentialsOutput, error) {
op := &request.Operation{
Name: "GetCredentials",
HTTPMethod: "GET",
@@ -156,6 +162,7 @@ func (p *Provider) getCredentials() (*getCredentialsOutput, error) {
out := &getCredentialsOutput{}
req := p.Client.NewRequest(op, nil, out)
+ req.SetContext(ctx)
req.HTTPRequest.Header.Set("Accept", "application/json")
if authToken := p.AuthorizationToken; len(authToken) != 0 {
req.HTTPRequest.Header.Set("Authorization", authToken)
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go
index 9f37f44bcfa..6846ef6f808 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go
@@ -87,6 +87,7 @@ import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/credentials"
+ "github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/internal/sdkrand"
"github.com/aws/aws-sdk-go/service/sts"
)
@@ -118,6 +119,10 @@ type AssumeRoler interface {
AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
}
+type assumeRolerWithContext interface {
+ AssumeRoleWithContext(aws.Context, *sts.AssumeRoleInput, ...request.Option) (*sts.AssumeRoleOutput, error)
+}
+
// DefaultDuration is the default amount of time in minutes that the credentials
// will be valid for.
var DefaultDuration = time.Duration(15) * time.Minute
@@ -164,6 +169,29 @@ type AssumeRoleProvider struct {
// size.
Policy *string
+ // The ARNs of IAM managed policies you want to use as managed session policies.
+ // The policies must exist in the same account as the role.
+ //
+ // This parameter is optional. You can provide up to 10 managed policy ARNs.
+ // However, the plain text that you use for both inline and managed session
+ // policies can't exceed 2,048 characters.
+ //
+ // An AWS conversion compresses the passed session policies and session tags
+ // into a packed binary format that has a separate limit. Your request can fail
+ // for this limit even if your plain text meets the other requirements. The
+ // PackedPolicySize response element indicates by percentage how close the policies
+ // and tags for your request are to the upper size limit.
+ //
+ // Passing policies to this operation returns new temporary credentials. The
+ // resulting session's permissions are the intersection of the role's identity-based
+ // policy and the session policies. You can use the role's temporary credentials
+ // in subsequent AWS API calls to access resources in the account that owns
+ // the role. You cannot use session policies to grant more permissions than
+ // those allowed by the identity-based policy of the role that is being assumed.
+ // For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
+ // in the IAM User Guide.
+ PolicyArns []*sts.PolicyDescriptorType
+
// The identification number of the MFA device that is associated with the user
// who is making the AssumeRole call. Specify this value if the trust policy
// of the role being assumed includes a condition that requires MFA authentication.
@@ -265,6 +293,11 @@ func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*
// Retrieve generates a new set of temporary credentials using STS.
func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) {
+ return p.RetrieveWithContext(aws.BackgroundContext())
+}
+
+// RetrieveWithContext generates a new set of temporary credentials using STS.
+func (p *AssumeRoleProvider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error) {
// Apply defaults where parameters are not set.
if p.RoleSessionName == "" {
// Try to work out a role name that will hopefully end up unique.
@@ -281,6 +314,7 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) {
RoleSessionName: aws.String(p.RoleSessionName),
ExternalId: p.ExternalID,
Tags: p.Tags,
+ PolicyArns: p.PolicyArns,
TransitiveTagKeys: p.TransitiveTagKeys,
}
if p.Policy != nil {
@@ -304,7 +338,15 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) {
}
}
- roleOutput, err := p.Client.AssumeRole(input)
+ var roleOutput *sts.AssumeRoleOutput
+ var err error
+
+ if c, ok := p.Client.(assumeRolerWithContext); ok {
+ roleOutput, err = c.AssumeRoleWithContext(ctx, input)
+ } else {
+ roleOutput, err = p.Client.AssumeRole(input)
+ }
+
if err != nil {
return credentials.Value{ProviderName: ProviderName}, err
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/web_identity_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/web_identity_provider.go
index b20b6339484..6feb262b2f7 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/web_identity_provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/web_identity_provider.go
@@ -28,15 +28,34 @@ const (
// compare test values.
var now = time.Now
+// TokenFetcher shuold return WebIdentity token bytes or an error
+type TokenFetcher interface {
+ FetchToken(credentials.Context) ([]byte, error)
+}
+
+// FetchTokenPath is a path to a WebIdentity token file
+type FetchTokenPath string
+
+// FetchToken returns a token by reading from the filesystem
+func (f FetchTokenPath) FetchToken(ctx credentials.Context) ([]byte, error) {
+ data, err := ioutil.ReadFile(string(f))
+ if err != nil {
+ errMsg := fmt.Sprintf("unable to read file at %s", f)
+ return nil, awserr.New(ErrCodeWebIdentity, errMsg, err)
+ }
+ return data, nil
+}
+
// WebIdentityRoleProvider is used to retrieve credentials using
// an OIDC token.
type WebIdentityRoleProvider struct {
credentials.Expiry
+ PolicyArns []*sts.PolicyDescriptorType
client stsiface.STSAPI
ExpiryWindow time.Duration
- tokenFilePath string
+ tokenFetcher TokenFetcher
roleARN string
roleSessionName string
}
@@ -52,9 +71,15 @@ func NewWebIdentityCredentials(c client.ConfigProvider, roleARN, roleSessionName
// NewWebIdentityRoleProvider will return a new WebIdentityRoleProvider with the
// provided stsiface.STSAPI
func NewWebIdentityRoleProvider(svc stsiface.STSAPI, roleARN, roleSessionName, path string) *WebIdentityRoleProvider {
+ return NewWebIdentityRoleProviderWithToken(svc, roleARN, roleSessionName, FetchTokenPath(path))
+}
+
+// NewWebIdentityRoleProviderWithToken will return a new WebIdentityRoleProvider with the
+// provided stsiface.STSAPI and a TokenFetcher
+func NewWebIdentityRoleProviderWithToken(svc stsiface.STSAPI, roleARN, roleSessionName string, tokenFetcher TokenFetcher) *WebIdentityRoleProvider {
return &WebIdentityRoleProvider{
client: svc,
- tokenFilePath: path,
+ tokenFetcher: tokenFetcher,
roleARN: roleARN,
roleSessionName: roleSessionName,
}
@@ -64,10 +89,16 @@ func NewWebIdentityRoleProvider(svc stsiface.STSAPI, roleARN, roleSessionName, p
// 'WebIdentityTokenFilePath' specified destination and if that is empty an
// error will be returned.
func (p *WebIdentityRoleProvider) Retrieve() (credentials.Value, error) {
- b, err := ioutil.ReadFile(p.tokenFilePath)
+ return p.RetrieveWithContext(aws.BackgroundContext())
+}
+
+// RetrieveWithContext will attempt to assume a role from a token which is located at
+// 'WebIdentityTokenFilePath' specified destination and if that is empty an
+// error will be returned.
+func (p *WebIdentityRoleProvider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error) {
+ b, err := p.tokenFetcher.FetchToken(ctx)
if err != nil {
- errMsg := fmt.Sprintf("unable to read file at %s", p.tokenFilePath)
- return credentials.Value{}, awserr.New(ErrCodeWebIdentity, errMsg, err)
+ return credentials.Value{}, awserr.New(ErrCodeWebIdentity, "failed fetching WebIdentity token: ", err)
}
sessionName := p.roleSessionName
@@ -77,10 +108,14 @@ func (p *WebIdentityRoleProvider) Retrieve() (credentials.Value, error) {
sessionName = strconv.FormatInt(now().UnixNano(), 10)
}
req, resp := p.client.AssumeRoleWithWebIdentityRequest(&sts.AssumeRoleWithWebIdentityInput{
+ PolicyArns: p.PolicyArns,
RoleArn: &p.roleARN,
RoleSessionName: &sessionName,
WebIdentityToken: aws.String(string(b)),
})
+
+ req.SetContext(ctx)
+
// InvalidIdentityToken error is a temporary error that can occur
// when assuming an Role with a JWT web identity token.
req.RetryErrorCodes = append(req.RetryErrorCodes, sts.ErrCodeInvalidIdentityTokenException)
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go
index 12897eef626..a716c021cf3 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go
@@ -8,6 +8,7 @@ import (
"strings"
"time"
+ "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/internal/sdkuri"
@@ -15,7 +16,7 @@ import (
// getToken uses the duration to return a token for EC2 metadata service,
// or an error if the request failed.
-func (c *EC2Metadata) getToken(duration time.Duration) (tokenOutput, error) {
+func (c *EC2Metadata) getToken(ctx aws.Context, duration time.Duration) (tokenOutput, error) {
op := &request.Operation{
Name: "GetToken",
HTTPMethod: "PUT",
@@ -24,6 +25,7 @@ func (c *EC2Metadata) getToken(duration time.Duration) (tokenOutput, error) {
var output tokenOutput
req := c.NewRequest(op, nil, &output)
+ req.SetContext(ctx)
// remove the fetch token handler from the request handlers to avoid infinite recursion
req.Handlers.Sign.RemoveByName(fetchTokenHandlerName)
@@ -50,6 +52,13 @@ func (c *EC2Metadata) getToken(duration time.Duration) (tokenOutput, error) {
// instance metadata service. The content will be returned as a string, or
// error if the request failed.
func (c *EC2Metadata) GetMetadata(p string) (string, error) {
+ return c.GetMetadataWithContext(aws.BackgroundContext(), p)
+}
+
+// GetMetadataWithContext uses the path provided to request information from the EC2
+// instance metadata service. The content will be returned as a string, or
+// error if the request failed.
+func (c *EC2Metadata) GetMetadataWithContext(ctx aws.Context, p string) (string, error) {
op := &request.Operation{
Name: "GetMetadata",
HTTPMethod: "GET",
@@ -59,6 +68,8 @@ func (c *EC2Metadata) GetMetadata(p string) (string, error) {
req := c.NewRequest(op, nil, output)
+ req.SetContext(ctx)
+
err := req.Send()
return output.Content, err
}
@@ -67,6 +78,13 @@ func (c *EC2Metadata) GetMetadata(p string) (string, error) {
// there is no user-data setup for the EC2 instance a "NotFoundError" error
// code will be returned.
func (c *EC2Metadata) GetUserData() (string, error) {
+ return c.GetUserDataWithContext(aws.BackgroundContext())
+}
+
+// GetUserDataWithContext returns the userdata that was configured for the service. If
+// there is no user-data setup for the EC2 instance a "NotFoundError" error
+// code will be returned.
+func (c *EC2Metadata) GetUserDataWithContext(ctx aws.Context) (string, error) {
op := &request.Operation{
Name: "GetUserData",
HTTPMethod: "GET",
@@ -75,6 +93,7 @@ func (c *EC2Metadata) GetUserData() (string, error) {
output := &metadataOutput{}
req := c.NewRequest(op, nil, output)
+ req.SetContext(ctx)
err := req.Send()
return output.Content, err
@@ -84,6 +103,13 @@ func (c *EC2Metadata) GetUserData() (string, error) {
// instance metadata service for dynamic data. The content will be returned
// as a string, or error if the request failed.
func (c *EC2Metadata) GetDynamicData(p string) (string, error) {
+ return c.GetDynamicDataWithContext(aws.BackgroundContext(), p)
+}
+
+// GetDynamicDataWithContext uses the path provided to request information from the EC2
+// instance metadata service for dynamic data. The content will be returned
+// as a string, or error if the request failed.
+func (c *EC2Metadata) GetDynamicDataWithContext(ctx aws.Context, p string) (string, error) {
op := &request.Operation{
Name: "GetDynamicData",
HTTPMethod: "GET",
@@ -92,6 +118,7 @@ func (c *EC2Metadata) GetDynamicData(p string) (string, error) {
output := &metadataOutput{}
req := c.NewRequest(op, nil, output)
+ req.SetContext(ctx)
err := req.Send()
return output.Content, err
@@ -101,7 +128,14 @@ func (c *EC2Metadata) GetDynamicData(p string) (string, error) {
// instance. Error is returned if the request fails or is unable to parse
// the response.
func (c *EC2Metadata) GetInstanceIdentityDocument() (EC2InstanceIdentityDocument, error) {
- resp, err := c.GetDynamicData("instance-identity/document")
+ return c.GetInstanceIdentityDocumentWithContext(aws.BackgroundContext())
+}
+
+// GetInstanceIdentityDocumentWithContext retrieves an identity document describing an
+// instance. Error is returned if the request fails or is unable to parse
+// the response.
+func (c *EC2Metadata) GetInstanceIdentityDocumentWithContext(ctx aws.Context) (EC2InstanceIdentityDocument, error) {
+ resp, err := c.GetDynamicDataWithContext(ctx, "instance-identity/document")
if err != nil {
return EC2InstanceIdentityDocument{},
awserr.New("EC2MetadataRequestError",
@@ -120,7 +154,12 @@ func (c *EC2Metadata) GetInstanceIdentityDocument() (EC2InstanceIdentityDocument
// IAMInfo retrieves IAM info from the metadata API
func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) {
- resp, err := c.GetMetadata("iam/info")
+ return c.IAMInfoWithContext(aws.BackgroundContext())
+}
+
+// IAMInfoWithContext retrieves IAM info from the metadata API
+func (c *EC2Metadata) IAMInfoWithContext(ctx aws.Context) (EC2IAMInfo, error) {
+ resp, err := c.GetMetadataWithContext(ctx, "iam/info")
if err != nil {
return EC2IAMInfo{},
awserr.New("EC2MetadataRequestError",
@@ -145,7 +184,12 @@ func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) {
// Region returns the region the instance is running in.
func (c *EC2Metadata) Region() (string, error) {
- ec2InstanceIdentityDocument, err := c.GetInstanceIdentityDocument()
+ return c.RegionWithContext(aws.BackgroundContext())
+}
+
+// RegionWithContext returns the region the instance is running in.
+func (c *EC2Metadata) RegionWithContext(ctx aws.Context) (string, error) {
+ ec2InstanceIdentityDocument, err := c.GetInstanceIdentityDocumentWithContext(ctx)
if err != nil {
return "", err
}
@@ -162,7 +206,14 @@ func (c *EC2Metadata) Region() (string, error) {
// Can be used to determine if application is running within an EC2 Instance and
// the metadata service is available.
func (c *EC2Metadata) Available() bool {
- if _, err := c.GetMetadata("instance-id"); err != nil {
+ return c.AvailableWithContext(aws.BackgroundContext())
+}
+
+// AvailableWithContext returns if the application has access to the EC2 Metadata service.
+// Can be used to determine if application is running within an EC2 Instance and
+// the metadata service is available.
+func (c *EC2Metadata) AvailableWithContext(ctx aws.Context) bool {
+ if _, err := c.GetMetadataWithContext(ctx, "instance-id"); err != nil {
return false
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
index 663372a9154..d0a3a020d87 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
@@ -46,7 +46,7 @@ func (t *tokenProvider) fetchTokenHandler(r *request.Request) {
return
}
- output, err := t.client.getToken(t.configuredTTL)
+ output, err := t.client.getToken(r.Context(), t.configuredTTL)
if err != nil {
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 0a027820916..013ad3ac4e0 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
@@ -17,6 +17,7 @@ const (
// AWS Standard partition's regions.
const (
+ AfSouth1RegionID = "af-south-1" // Africa (Cape Town).
ApEast1RegionID = "ap-east-1" // Asia Pacific (Hong Kong).
ApNortheast1RegionID = "ap-northeast-1" // Asia Pacific (Tokyo).
ApNortheast2RegionID = "ap-northeast-2" // Asia Pacific (Seoul).
@@ -26,6 +27,7 @@ const (
CaCentral1RegionID = "ca-central-1" // Canada (Central).
EuCentral1RegionID = "eu-central-1" // EU (Frankfurt).
EuNorth1RegionID = "eu-north-1" // EU (Stockholm).
+ EuSouth1RegionID = "eu-south-1" // Europe (Milan).
EuWest1RegionID = "eu-west-1" // EU (Ireland).
EuWest2RegionID = "eu-west-2" // EU (London).
EuWest3RegionID = "eu-west-3" // EU (Paris).
@@ -97,7 +99,7 @@ var awsPartition = partition{
DNSSuffix: "amazonaws.com",
RegionRegex: regionRegex{
Regexp: func() *regexp.Regexp {
- reg, _ := regexp.Compile("^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$")
+ reg, _ := regexp.Compile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$")
return reg
}(),
},
@@ -107,6 +109,9 @@ var awsPartition = partition{
SignatureVersions: []string{"v4"},
},
Regions: regions{
+ "af-south-1": region{
+ Description: "Africa (Cape Town)",
+ },
"ap-east-1": region{
Description: "Asia Pacific (Hong Kong)",
},
@@ -134,6 +139,9 @@ var awsPartition = partition{
"eu-north-1": region{
Description: "EU (Stockholm)",
},
+ "eu-south-1": region{
+ Description: "Europe (Milan)",
+ },
"eu-west-1": region{
Description: "EU (Ireland)",
},
@@ -172,6 +180,7 @@ var awsPartition = partition{
"access-analyzer": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -181,6 +190,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -195,6 +205,7 @@ var awsPartition = partition{
"acm": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -210,6 +221,7 @@ var awsPartition = partition{
},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -303,6 +315,12 @@ var awsPartition = partition{
"api.ecr": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{
+ Hostname: "api.ecr.af-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "af-south-1",
+ },
+ },
"ap-east-1": endpoint{
Hostname: "api.ecr.ap-east-1.amazonaws.com",
CredentialScope: credentialScope{
@@ -357,6 +375,12 @@ var awsPartition = partition{
Region: "eu-north-1",
},
},
+ "eu-south-1": endpoint{
+ Hostname: "api.ecr.eu-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-south-1",
+ },
+ },
"eu-west-1": endpoint{
Hostname: "api.ecr.eu-west-1.amazonaws.com",
CredentialScope: credentialScope{
@@ -375,6 +399,30 @@ var awsPartition = partition{
Region: "eu-west-3",
},
},
+ "fips-us-east-1": endpoint{
+ Hostname: "ecr-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "ecr-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "ecr-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "ecr-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
"me-south-1": endpoint{
Hostname: "api.ecr.me-south-1.amazonaws.com",
CredentialScope: credentialScope{
@@ -413,6 +461,29 @@ var awsPartition = partition{
},
},
},
+ "api.elastic-inference": service{
+
+ Endpoints: endpoints{
+ "ap-northeast-1": endpoint{
+ Hostname: "api.elastic-inference.ap-northeast-1.amazonaws.com",
+ },
+ "ap-northeast-2": endpoint{
+ Hostname: "api.elastic-inference.ap-northeast-2.amazonaws.com",
+ },
+ "eu-west-1": endpoint{
+ Hostname: "api.elastic-inference.eu-west-1.amazonaws.com",
+ },
+ "us-east-1": endpoint{
+ Hostname: "api.elastic-inference.us-east-1.amazonaws.com",
+ },
+ "us-east-2": endpoint{
+ Hostname: "api.elastic-inference.us-east-2.amazonaws.com",
+ },
+ "us-west-2": endpoint{
+ Hostname: "api.elastic-inference.us-west-2.amazonaws.com",
+ },
+ },
+ },
"api.mediatailor": service{
Endpoints: endpoints{
@@ -486,6 +557,7 @@ var awsPartition = partition{
"apigateway": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -495,6 +567,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -511,6 +584,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -520,6 +594,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -622,6 +697,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -631,6 +707,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -700,12 +777,36 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "fips.batch.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "fips.batch.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "fips.batch.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "fips.batch.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"budgets": service{
@@ -786,6 +887,7 @@ var awsPartition = partition{
"cloudformation": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -795,15 +897,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"me-south-1": 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: "cloudformation-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "us-east-2": endpoint{},
+ "us-east-2-fips": endpoint{
+ Hostname: "cloudformation-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "us-west-1": endpoint{},
+ "us-west-1-fips": endpoint{
+ Hostname: "cloudformation-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "us-west-2": endpoint{},
+ "us-west-2-fips": endpoint{
+ Hostname: "cloudformation-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
},
},
"cloudfront": service{
@@ -880,6 +1007,7 @@ var awsPartition = partition{
"cloudtrail": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -889,15 +1017,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "cloudtrail-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "cloudtrail-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "cloudtrail-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "cloudtrail-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"codebuild": service{
@@ -979,6 +1132,7 @@ var awsPartition = partition{
"codedeploy": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -988,6 +1142,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -1037,18 +1192,67 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "sa-east-1": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "codepipeline-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "codepipeline-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "codepipeline-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "codepipeline-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "codepipeline-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
+ "codestar": service{
+
+ Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-north-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{},
},
},
- "codestar": service{
+ "codestar-connections": service{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
@@ -1056,6 +1260,8 @@ var awsPartition = partition{
"eu-north-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{},
@@ -1074,9 +1280,27 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "cognito-identity-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "cognito-identity-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "cognito-identity-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
},
},
"cognito-idp": service{
@@ -1091,9 +1315,27 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "cognito-idp-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "cognito-idp-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "cognito-idp-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
},
},
"cognito-sync": service{
@@ -1126,9 +1368,27 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "comprehend-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "comprehend-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "comprehend-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
},
},
"comprehendmedical": service{
@@ -1193,6 +1453,7 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
"us-east-1": endpoint{},
"us-west-2": endpoint{},
},
@@ -1303,6 +1564,7 @@ var awsPartition = partition{
"directconnect": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1312,27 +1574,54 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
- },
- },
- "discovery": service{
-
+ "fips-us-east-1": endpoint{
+ Hostname: "directconnect-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "directconnect-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "directconnect-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "directconnect-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
+ "discovery": service{
+
Endpoints: endpoints{
- "eu-central-1": endpoint{},
- "us-west-2": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"dms": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1340,17 +1629,24 @@ var awsPartition = partition{
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
- "eu-central-1": endpoint{},
- "eu-north-1": endpoint{},
- "eu-west-1": endpoint{},
- "eu-west-2": endpoint{},
- "eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "dms-fips": endpoint{
+ Hostname: "dms-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"docdb": service{
@@ -1451,12 +1747,42 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "ds-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "ds-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "ds-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "ds-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "ds-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"dynamodb": service{
@@ -1464,6 +1790,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1479,6 +1806,7 @@ var awsPartition = partition{
},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -1526,6 +1854,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1535,15 +1864,46 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "ec2-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "ec2-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "ec2-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "ec2-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "ec2-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"ec2metadata": service{
@@ -1560,6 +1920,7 @@ var awsPartition = partition{
"ecs": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1569,20 +1930,46 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "ecs-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "ecs-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "ecs-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "ecs-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"elasticache": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1592,6 +1979,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -1612,6 +2000,7 @@ var awsPartition = partition{
"elasticbeanstalk": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1621,15 +2010,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "elasticbeanstalk-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "elasticbeanstalk-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "elasticbeanstalk-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "elasticbeanstalk-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"elasticfilesystem": service{
@@ -1647,12 +2061,120 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ap-east-1": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-east-1",
+ },
+ },
+ "fips-ap-northeast-1": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-northeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-1",
+ },
+ },
+ "fips-ap-northeast-2": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-northeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-2",
+ },
+ },
+ "fips-ap-south-1": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-south-1",
+ },
+ },
+ "fips-ap-southeast-1": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-southeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-1",
+ },
+ },
+ "fips-ap-southeast-2": endpoint{
+ Hostname: "elasticfilesystem-fips.ap-southeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-2",
+ },
+ },
+ "fips-ca-central-1": endpoint{
+ Hostname: "elasticfilesystem-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-eu-central-1": endpoint{
+ Hostname: "elasticfilesystem-fips.eu-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-central-1",
+ },
+ },
+ "fips-eu-north-1": endpoint{
+ Hostname: "elasticfilesystem-fips.eu-north-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-north-1",
+ },
+ },
+ "fips-eu-west-1": endpoint{
+ Hostname: "elasticfilesystem-fips.eu-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-1",
+ },
+ },
+ "fips-eu-west-2": endpoint{
+ Hostname: "elasticfilesystem-fips.eu-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-2",
+ },
+ },
+ "fips-eu-west-3": endpoint{
+ Hostname: "elasticfilesystem-fips.eu-west-3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-3",
+ },
+ },
+ "fips-me-south-1": endpoint{
+ Hostname: "elasticfilesystem-fips.me-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "me-south-1",
+ },
+ },
+ "fips-sa-east-1": endpoint{
+ Hostname: "elasticfilesystem-fips.sa-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "sa-east-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "elasticfilesystem-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "elasticfilesystem-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "elasticfilesystem-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "elasticfilesystem-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"elasticloadbalancing": service{
@@ -1660,6 +2182,7 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1669,15 +2192,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "elasticloadbalancing-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "elasticloadbalancing-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "elasticloadbalancing-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "elasticloadbalancing-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"elasticmapreduce": service{
@@ -1686,6 +2234,7 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1697,9 +2246,40 @@ var awsPartition = partition{
SSLCommonName: "{service}.{region}.{dnsSuffix}",
},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "elasticmapreduce-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "elasticmapreduce-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "elasticmapreduce-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "elasticmapreduce-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "elasticmapreduce-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{
@@ -1747,6 +2327,7 @@ var awsPartition = partition{
"es": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1756,6 +2337,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -1776,6 +2358,7 @@ var awsPartition = partition{
"events": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1785,80 +2368,226 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "events-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "events-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "events-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "events-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
+ "firehose": service{
+
+ Endpoints: endpoints{
+ "ap-east-1": endpoint{},
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "firehose-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "firehose-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "firehose-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "firehose-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
+ },
+ },
+ "fms": service{
+ Defaults: endpoint{
+ Protocols: []string{"https"},
+ },
+ Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
+ "ap-south-1": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "ca-central-1": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
+ "fips-ap-northeast-1": endpoint{
+ Hostname: "fms-fips.ap-northeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-1",
+ },
+ },
+ "fips-ap-northeast-2": endpoint{
+ Hostname: "fms-fips.ap-northeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-2",
+ },
+ },
+ "fips-ap-south-1": endpoint{
+ Hostname: "fms-fips.ap-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-south-1",
+ },
+ },
+ "fips-ap-southeast-1": endpoint{
+ Hostname: "fms-fips.ap-southeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-1",
+ },
+ },
+ "fips-ap-southeast-2": endpoint{
+ Hostname: "fms-fips.ap-southeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-2",
+ },
+ },
+ "fips-ca-central-1": endpoint{
+ Hostname: "fms-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-eu-central-1": endpoint{
+ Hostname: "fms-fips.eu-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-central-1",
+ },
+ },
+ "fips-eu-west-1": endpoint{
+ Hostname: "fms-fips.eu-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-1",
+ },
+ },
+ "fips-eu-west-2": endpoint{
+ Hostname: "fms-fips.eu-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-2",
+ },
+ },
+ "fips-eu-west-3": endpoint{
+ Hostname: "fms-fips.eu-west-3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-3",
+ },
+ },
+ "fips-sa-east-1": endpoint{
+ Hostname: "fms-fips.sa-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "sa-east-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "fms-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "fms-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "fms-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "fms-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
- "firehose": service{
+ "forecast": service{
Endpoints: endpoints{
- "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
- "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
- "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
- "eu-west-2": endpoint{},
- "eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
- "us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
- "fms": service{
- Defaults: endpoint{
- Protocols: []string{"https"},
- },
+ "forecastquery": service{
+
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
- "ca-central-1": endpoint{},
"eu-central-1": endpoint{},
- "eu-north-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{},
- },
- },
- "forecast": service{
-
- Endpoints: endpoints{
- "ap-northeast-1": endpoint{},
- "ap-northeast-2": endpoint{},
- "ap-southeast-1": endpoint{},
- "eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
- },
- },
- "forecastquery": service{
-
- Endpoints: endpoints{
- "ap-northeast-1": endpoint{},
- "ap-southeast-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
@@ -1868,7 +2597,9 @@ var awsPartition = partition{
"fsx": service{
Endpoints: endpoints{
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
@@ -1905,6 +2636,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -1914,15 +2646,46 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "glacier-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "glacier-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "glacier-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "glacier-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "glacier-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"glue": service{
@@ -1940,12 +2703,36 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "glue-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "glue-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "glue-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "glue-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"greengrass": service{
@@ -1970,10 +2757,12 @@ var awsPartition = partition{
"groundstation": service{
Endpoints: endpoints{
- "eu-north-1": endpoint{},
- "me-south-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-2": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-north-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "me-south-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-2": endpoint{},
},
},
"guardduty": service{
@@ -2043,6 +2832,12 @@ var awsPartition = partition{
Region: "us-east-1",
},
},
+ "iam-fips": endpoint{
+ Hostname: "iam-fips.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
},
},
"importexport": service{
@@ -2071,10 +2866,34 @@ var awsPartition = partition{
"eu-north-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{},
+ "fips-us-east-1": endpoint{
+ Hostname: "inspector-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "inspector-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "inspector-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "inspector-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"iot": service{
@@ -2259,6 +3078,7 @@ var awsPartition = partition{
"kinesis": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2268,15 +3088,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "kinesis-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "kinesis-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "kinesis-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "kinesis-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"kinesisanalytics": service{
@@ -2324,6 +3169,7 @@ var awsPartition = partition{
"kms": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2333,6 +3179,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -2365,6 +3212,7 @@ var awsPartition = partition{
"lambda": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2374,15 +3222,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "lambda-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "lambda-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "lambda-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "lambda-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"license-manager": service{
@@ -2400,12 +3273,36 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "license-manager-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "license-manager-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "license-manager-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "license-manager-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"lightsail": service{
@@ -2429,6 +3326,7 @@ var awsPartition = partition{
"logs": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2438,6 +3336,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -2459,7 +3358,10 @@ var awsPartition = partition{
"managedblockchain": service{
Endpoints: endpoints{
+ "ap-northeast-1": endpoint{},
+ "ap-northeast-2": endpoint{},
"ap-southeast-1": endpoint{},
+ "eu-west-1": endpoint{},
"us-east-1": endpoint{},
},
},
@@ -2538,6 +3440,7 @@ var awsPartition = partition{
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
+ "eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -2556,6 +3459,7 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
"us-east-1": endpoint{},
"us-west-2": endpoint{},
},
@@ -2567,6 +3471,7 @@ var awsPartition = partition{
},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2576,6 +3481,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -2590,8 +3496,9 @@ var awsPartition = partition{
"mgh": service{
Endpoints: endpoints{
- "eu-central-1": endpoint{},
- "us-west-2": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"mobileanalytics": service{
@@ -2607,8 +3514,11 @@ var awsPartition = partition{
},
},
Endpoints: endpoints{
+ "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-west-2": endpoint{},
},
@@ -2618,6 +3528,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -2627,15 +3538,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "monitoring-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "monitoring-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "monitoring-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "monitoring-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"mq": service{
@@ -2894,6 +3830,12 @@ var awsPartition = partition{
Region: "us-east-1",
},
},
+ "fips-aws-global": endpoint{
+ Hostname: "organizations-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
},
},
"outposts": service{
@@ -2969,12 +3911,36 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "polly-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "polly-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "polly-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "polly-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"portal.sso": service{
@@ -3088,6 +4054,7 @@ var awsPartition = partition{
"rds": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3097,6 +4064,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -3113,6 +4081,7 @@ var awsPartition = partition{
"redshift": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3122,15 +4091,46 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-ca-central-1": endpoint{
+ Hostname: "redshift-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "redshift-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "redshift-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "redshift-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "redshift-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"rekognition": service{
@@ -3153,6 +4153,7 @@ var awsPartition = partition{
"resource-groups": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3162,6 +4163,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -3245,6 +4247,8 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -3258,8 +4262,11 @@ var awsPartition = partition{
},
},
Endpoints: endpoints{
+ "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-west-2": endpoint{},
},
@@ -3322,7 +4329,8 @@ var awsPartition = partition{
DualStackHostname: "{service}.dualstack.{region}.{dnsSuffix}",
},
Endpoints: endpoints{
- "ap-east-1": endpoint{},
+ "af-south-1": endpoint{},
+ "ap-east-1": endpoint{},
"ap-northeast-1": endpoint{
Hostname: "s3.ap-northeast-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"},
@@ -3347,6 +4355,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{
Hostname: "s3.eu-west-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"},
@@ -3794,12 +4803,24 @@ var awsPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
- "us-east-1": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "shield-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "us-east-1": endpoint{
+ Hostname: "shield.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
},
},
"sms": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3809,15 +4830,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "sms-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "sms-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "sms-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "sms-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"snowball": service{
@@ -3833,11 +4879,101 @@ 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{},
- "us-west-2": endpoint{},
+ "fips-ap-northeast-1": endpoint{
+ Hostname: "snowball-fips.ap-northeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-1",
+ },
+ },
+ "fips-ap-northeast-2": endpoint{
+ Hostname: "snowball-fips.ap-northeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-2",
+ },
+ },
+ "fips-ap-south-1": endpoint{
+ Hostname: "snowball-fips.ap-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-south-1",
+ },
+ },
+ "fips-ap-southeast-1": endpoint{
+ Hostname: "snowball-fips.ap-southeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-1",
+ },
+ },
+ "fips-ap-southeast-2": endpoint{
+ Hostname: "snowball-fips.ap-southeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-2",
+ },
+ },
+ "fips-ca-central-1": endpoint{
+ Hostname: "snowball-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-eu-central-1": endpoint{
+ Hostname: "snowball-fips.eu-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-central-1",
+ },
+ },
+ "fips-eu-west-1": endpoint{
+ Hostname: "snowball-fips.eu-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-1",
+ },
+ },
+ "fips-eu-west-2": endpoint{
+ Hostname: "snowball-fips.eu-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-2",
+ },
+ },
+ "fips-eu-west-3": endpoint{
+ Hostname: "snowball-fips.eu-west-3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-3",
+ },
+ },
+ "fips-sa-east-1": endpoint{
+ Hostname: "snowball-fips.sa-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "sa-east-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "snowball-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "snowball-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "snowball-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "snowball-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"sns": service{
@@ -3845,6 +4981,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3854,15 +4991,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "sns-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "sns-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "sns-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "sns-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"sqs": service{
@@ -3871,6 +5033,7 @@ var awsPartition = partition{
Protocols: []string{"http", "https"},
},
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3880,6 +5043,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -3920,6 +5084,7 @@ var awsPartition = partition{
"ssm": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3929,20 +5094,70 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "ssm-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "ssm-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "ssm-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "ssm-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "ssm-facade-fips-us-east-1": endpoint{
+ Hostname: "ssm-facade-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "ssm-facade-fips-us-east-2": endpoint{
+ Hostname: "ssm-facade-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "ssm-facade-fips-us-west-1": endpoint{
+ Hostname: "ssm-facade-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "ssm-facade-fips-us-west-2": endpoint{
+ Hostname: "ssm-facade-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"states": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -3952,15 +5167,40 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "states-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "states-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "states-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "states-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"storagegateway": service{
@@ -4054,6 +5294,7 @@ var awsPartition = partition{
PartitionEndpoint: "aws-global",
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -4069,6 +5310,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -4119,6 +5361,7 @@ var awsPartition = partition{
"swf": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -4128,20 +5371,46 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "swf-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "swf-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "swf-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "swf-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"tagging": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -4151,6 +5420,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -4178,12 +5448,36 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
- "me-south-1": endpoint{},
- "sa-east-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "fips.transcribe.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "fips.transcribe.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "fips-us-west-1": endpoint{
+ Hostname: "fips.transcribe.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "fips.transcribe.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "me-south-1": endpoint{},
+ "sa-east-1": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"transcribestreaming": service{
@@ -4242,55 +5536,261 @@ var awsPartition = partition{
Region: "us-east-1",
},
},
- "us-east-2": endpoint{},
- "us-east-2-fips": endpoint{
- Hostname: "translate-fips.us-east-2.amazonaws.com",
+ "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-1": endpoint{},
+ "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{
+ PartitionEndpoint: "aws-global",
+ IsRegionalized: boxedFalse,
+
+ Endpoints: endpoints{
+ "aws-fips": endpoint{
+ Hostname: "waf-fips.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "aws-global": endpoint{
+ Hostname: "waf.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ },
+ },
+ "waf-regional": service{
+
+ Endpoints: endpoints{
+ "ap-east-1": endpoint{
+ Hostname: "waf-regional.ap-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-east-1",
+ },
+ },
+ "ap-northeast-1": endpoint{
+ Hostname: "waf-regional.ap-northeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-1",
+ },
+ },
+ "ap-northeast-2": endpoint{
+ Hostname: "waf-regional.ap-northeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-2",
+ },
+ },
+ "ap-south-1": endpoint{
+ Hostname: "waf-regional.ap-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-south-1",
+ },
+ },
+ "ap-southeast-1": endpoint{
+ Hostname: "waf-regional.ap-southeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-1",
+ },
+ },
+ "ap-southeast-2": endpoint{
+ Hostname: "waf-regional.ap-southeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-2",
+ },
+ },
+ "ca-central-1": endpoint{
+ Hostname: "waf-regional.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "eu-central-1": endpoint{
+ Hostname: "waf-regional.eu-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-central-1",
+ },
+ },
+ "eu-north-1": endpoint{
+ Hostname: "waf-regional.eu-north-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-north-1",
+ },
+ },
+ "eu-west-1": endpoint{
+ Hostname: "waf-regional.eu-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-1",
+ },
+ },
+ "eu-west-2": endpoint{
+ Hostname: "waf-regional.eu-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-2",
+ },
+ },
+ "eu-west-3": endpoint{
+ Hostname: "waf-regional.eu-west-3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-3",
+ },
+ },
+ "fips-ap-east-1": endpoint{
+ Hostname: "waf-regional-fips.ap-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-east-1",
+ },
+ },
+ "fips-ap-northeast-1": endpoint{
+ Hostname: "waf-regional-fips.ap-northeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-1",
+ },
+ },
+ "fips-ap-northeast-2": endpoint{
+ Hostname: "waf-regional-fips.ap-northeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-northeast-2",
+ },
+ },
+ "fips-ap-south-1": endpoint{
+ Hostname: "waf-regional-fips.ap-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-south-1",
+ },
+ },
+ "fips-ap-southeast-1": endpoint{
+ Hostname: "waf-regional-fips.ap-southeast-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-1",
+ },
+ },
+ "fips-ap-southeast-2": endpoint{
+ Hostname: "waf-regional-fips.ap-southeast-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ap-southeast-2",
+ },
+ },
+ "fips-ca-central-1": endpoint{
+ Hostname: "waf-regional-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "ca-central-1",
+ },
+ },
+ "fips-eu-central-1": endpoint{
+ Hostname: "waf-regional-fips.eu-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-central-1",
+ },
+ },
+ "fips-eu-north-1": endpoint{
+ Hostname: "waf-regional-fips.eu-north-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-north-1",
+ },
+ },
+ "fips-eu-west-1": endpoint{
+ Hostname: "waf-regional-fips.eu-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-1",
+ },
+ },
+ "fips-eu-west-2": endpoint{
+ Hostname: "waf-regional-fips.eu-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-2",
+ },
+ },
+ "fips-eu-west-3": endpoint{
+ Hostname: "waf-regional-fips.eu-west-3.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "eu-west-3",
+ },
+ },
+ "fips-me-south-1": endpoint{
+ Hostname: "waf-regional-fips.me-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "me-south-1",
+ },
+ },
+ "fips-sa-east-1": endpoint{
+ Hostname: "waf-regional-fips.sa-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "sa-east-1",
+ },
+ },
+ "fips-us-east-1": endpoint{
+ Hostname: "waf-regional-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-east-2": endpoint{
+ Hostname: "waf-regional-fips.us-east-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-2",
},
},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
- "us-west-2-fips": endpoint{
- Hostname: "translate-fips.us-west-2.amazonaws.com",
+ "fips-us-west-1": endpoint{
+ Hostname: "waf-regional-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "waf-regional-fips.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-2",
},
},
- },
- },
- "waf": service{
- PartitionEndpoint: "aws-global",
- IsRegionalized: boxedFalse,
-
- Endpoints: endpoints{
- "aws-global": endpoint{
- Hostname: "waf.amazonaws.com",
+ "me-south-1": endpoint{
+ Hostname: "waf-regional.me-south-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "me-south-1",
+ },
+ },
+ "sa-east-1": endpoint{
+ Hostname: "waf-regional.sa-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "sa-east-1",
+ },
+ },
+ "us-east-1": endpoint{
+ Hostname: "waf-regional.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
},
- },
- },
- "waf-regional": service{
-
- Endpoints: endpoints{
- "ap-northeast-1": endpoint{},
- "ap-northeast-2": endpoint{},
- "ap-south-1": endpoint{},
- "ap-southeast-1": endpoint{},
- "ap-southeast-2": endpoint{},
- "ca-central-1": endpoint{},
- "eu-central-1": endpoint{},
- "eu-north-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-2": endpoint{
+ Hostname: "waf-regional.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "us-west-1": endpoint{
+ Hostname: "waf-regional.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "us-west-2": endpoint{
+ Hostname: "waf-regional.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
},
},
"workdocs": service{
@@ -4300,8 +5800,20 @@ var awsPartition = partition{
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-west-2": endpoint{},
+ "fips-us-east-1": endpoint{
+ Hostname: "workdocs-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "fips-us-west-2": endpoint{
+ Hostname: "workdocs-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
+ "us-east-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"workmail": service{
@@ -4333,6 +5845,7 @@ var awsPartition = partition{
"xray": service{
Endpoints: endpoints{
+ "af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@@ -4342,6 +5855,7 @@ var awsPartition = partition{
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
+ "eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
@@ -4409,6 +5923,13 @@ var awscnPartition = partition{
},
},
},
+ "api.sagemaker": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"apigateway": service{
Endpoints: endpoints{
@@ -4434,6 +5955,7 @@ var awscnPartition = partition{
"athena": service{
Endpoints: endpoints{
+ "cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
@@ -4495,6 +6017,13 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "codecommit": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"codedeploy": service{
Endpoints: endpoints{
@@ -4597,6 +6126,18 @@ var awscnPartition = partition{
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
+ "fips-cn-north-1": endpoint{
+ Hostname: "elasticfilesystem-fips.cn-north-1.amazonaws.com.cn",
+ CredentialScope: credentialScope{
+ Region: "cn-north-1",
+ },
+ },
+ "fips-cn-northwest-1": endpoint{
+ Hostname: "elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn",
+ CredentialScope: credentialScope{
+ Region: "cn-northwest-1",
+ },
+ },
},
},
"elasticloadbalancing": service{
@@ -4656,6 +6197,7 @@ var awscnPartition = partition{
"glue": service{
Endpoints: endpoints{
+ "cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
@@ -4699,6 +6241,20 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "iotsecuredtunneling": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
+ "kafka": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"kinesis": service{
Endpoints: endpoints{
@@ -4785,6 +6341,13 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
+ "runtime.sagemaker": service{
+
+ Endpoints: endpoints{
+ "cn-north-1": endpoint{},
+ "cn-northwest-1": endpoint{},
+ },
+ },
"s3": service{
Defaults: endpoint{
Protocols: []string{"http", "https"},
@@ -4848,6 +6411,12 @@ var awscnPartition = partition{
Endpoints: endpoints{
"cn-north-1": endpoint{},
+ "fips-cn-north-1": endpoint{
+ Hostname: "snowball-fips.cn-north-1.amazonaws.com.cn",
+ CredentialScope: credentialScope{
+ Region: "cn-north-1",
+ },
+ },
},
},
"sns": service{
@@ -5025,6 +6594,18 @@ var awsusgovPartition = partition{
"api.ecr": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{
Hostname: "api.ecr.us-gov-east-1.amazonaws.com",
CredentialScope: credentialScope{
@@ -5085,6 +6666,18 @@ var awsusgovPartition = partition{
"athena": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "athena-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "athena-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5110,6 +6703,18 @@ var awsusgovPartition = partition{
"batch": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "batch.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "batch.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5155,12 +6760,30 @@ var awsusgovPartition = partition{
Endpoints: endpoints{
"us-gov-east-1": endpoint{},
+ "us-gov-east-1-fips": endpoint{
+ Hostname: "codebuild-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
"us-gov-west-1": endpoint{},
+ "us-gov-west-1-fips": endpoint{
+ Hostname: "codebuild-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"codecommit": service{
Endpoints: endpoints{
+ "fips": endpoint{
+ Hostname: "codecommit-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5184,11 +6807,29 @@ var awsusgovPartition = partition{
},
},
},
+ "codepipeline": service{
+
+ Endpoints: endpoints{
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "codepipeline-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
+ "us-gov-west-1": endpoint{},
+ },
+ },
"comprehend": service{
Defaults: endpoint{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-west-1": endpoint{},
},
},
@@ -5227,13 +6868,29 @@ var awsusgovPartition = partition{
"directconnect": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
- "us-gov-west-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "directconnect.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "directconnect.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"dms": service{
Endpoints: endpoints{
+ "dms-fips": endpoint{
+ Hostname: "dms.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5241,6 +6898,18 @@ var awsusgovPartition = partition{
"ds": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "ds-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "ds-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5267,8 +6936,18 @@ var awsusgovPartition = partition{
"ec2": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
- "us-gov-west-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "ec2.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "ec2.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"ec2metadata": service{
@@ -5285,6 +6964,18 @@ var awsusgovPartition = partition{
"ecs": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "ecs-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "ecs-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5305,13 +6996,35 @@ var awsusgovPartition = partition{
"elasticbeanstalk": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
- "us-gov-west-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "elasticbeanstalk.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "elasticbeanstalk.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"elasticfilesystem": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "elasticfilesystem-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "elasticfilesystem-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5357,6 +7070,18 @@ var awsusgovPartition = partition{
"firehose": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "firehose-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "firehose-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5364,15 +7089,36 @@ var awsusgovPartition = partition{
"glacier": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "glacier.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
"us-gov-west-1": endpoint{
+ Hostname: "glacier.us-gov-west-1.amazonaws.com",
Protocols: []string{"http", "https"},
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
},
},
},
"glue": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "glue-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "glue-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5417,6 +7163,18 @@ var awsusgovPartition = partition{
"inspector": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "inspector-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "inspector-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5460,6 +7218,18 @@ var awsusgovPartition = partition{
"lambda": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5467,6 +7237,18 @@ var awsusgovPartition = partition{
"license-manager": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "license-manager-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "license-manager-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5498,6 +7280,18 @@ var awsusgovPartition = partition{
"monitoring": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "monitoring.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "monitoring.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5532,9 +7326,22 @@ var awsusgovPartition = partition{
},
},
},
+ "outposts": service{
+
+ Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-west-1": endpoint{},
+ },
+ },
"polly": service{
Endpoints: endpoints{
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "polly-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-west-1": endpoint{},
},
},
@@ -5555,8 +7362,18 @@ var awsusgovPartition = partition{
"redshift": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
- "us-gov-west-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "redshift.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "redshift.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"rekognition": service{
@@ -5686,6 +7503,13 @@ var awsusgovPartition = partition{
},
},
},
+ "securityhub": service{
+
+ Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-west-1": endpoint{},
+ },
+ },
"serverlessrepo": service{
Defaults: endpoint{
Protocols: []string{"https"},
@@ -5702,6 +7526,13 @@ var awsusgovPartition = partition{
"servicecatalog": service{
Endpoints: endpoints{
+ "us-gov-east-1": endpoint{},
+ "us-gov-east-1-fips": endpoint{
+ Hostname: "servicecatalog-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
"us-gov-west-1": endpoint{},
"us-gov-west-1-fips": endpoint{
Hostname: "servicecatalog-fips.us-gov-west-1.amazonaws.com",
@@ -5714,6 +7545,18 @@ var awsusgovPartition = partition{
"sms": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "sms-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "sms-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5721,6 +7564,18 @@ var awsusgovPartition = partition{
"snowball": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "snowball-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "snowball-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5754,6 +7609,18 @@ var awsusgovPartition = partition{
"states": service{
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "states-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "states.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5810,8 +7677,18 @@ var awsusgovPartition = partition{
"swf": service{
Endpoints: endpoints{
- "us-gov-east-1": endpoint{},
- "us-gov-west-1": endpoint{},
+ "us-gov-east-1": endpoint{
+ Hostname: "swf.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "swf.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"tagging": service{
@@ -5826,6 +7703,18 @@ var awsusgovPartition = partition{
Protocols: []string{"https"},
},
Endpoints: endpoints{
+ "fips-us-gov-east-1": endpoint{
+ Hostname: "fips.transcribe.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "fips.transcribe.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@@ -5847,7 +7736,18 @@ var awsusgovPartition = partition{
"waf-regional": service{
Endpoints: endpoints{
- "us-gov-west-1": endpoint{},
+ "fips-us-gov-west-1": endpoint{
+ Hostname: "waf-regional-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
+ "us-gov-west-1": endpoint{
+ Hostname: "waf-regional.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
"workspaces": service{
@@ -5949,6 +7849,14 @@ var awsisoPartition = partition{
"us-iso-east-1": endpoint{},
},
},
+ "comprehend": service{
+ Defaults: endpoint{
+ Protocols: []string{"https"},
+ },
+ Endpoints: endpoints{
+ "us-iso-east-1": endpoint{},
+ },
+ },
"config": service{
Endpoints: endpoints{
@@ -5970,6 +7878,12 @@ var awsisoPartition = partition{
"dms": service{
Endpoints: endpoints{
+ "dms-fips": endpoint{
+ Hostname: "dms.us-iso-east-1.c2s.ic.gov",
+ CredentialScope: credentialScope{
+ Region: "us-iso-east-1",
+ },
+ },
"us-iso-east-1": endpoint{},
},
},
@@ -6286,6 +8200,12 @@ var awsisobPartition = partition{
"dms": service{
Endpoints: endpoints{
+ "dms-fips": endpoint{
+ Hostname: "dms.us-isob-east-1.sc2s.sgov.gov",
+ CredentialScope: credentialScope{
+ Region: "us-isob-east-1",
+ },
+ },
"us-isob-east-1": endpoint{},
},
},
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 c563a089b77..9760b671a5b 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.29.24"
+const SDKVersion = "1.30.16"
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
index cf981fe9513..09ad951595e 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
@@ -8,6 +8,7 @@ import (
"reflect"
"sort"
"strconv"
+ "strings"
"time"
"github.com/aws/aws-sdk-go/private/protocol"
@@ -60,6 +61,14 @@ func (b *xmlBuilder) buildValue(value reflect.Value, current *XMLNode, tag refle
return nil
}
+ xml := tag.Get("xml")
+ if len(xml) != 0 {
+ name := strings.SplitAfterN(xml, ",", 2)[0]
+ if name == "-" {
+ return nil
+ }
+ }
+
t := tag.Get("type")
if t == "" {
switch value.Kind() {
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go
index 7108d380093..107c053f8ac 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go
@@ -64,6 +64,14 @@ func UnmarshalXML(v interface{}, d *xml.Decoder, wrapper string) error {
// parse deserializes any value from the XMLNode. The type tag is used to infer the type, or reflect
// will be used to determine the type from r.
func parse(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
+ xml := tag.Get("xml")
+ if len(xml) != 0 {
+ name := strings.SplitAfterN(xml, ",", 2)[0]
+ if name == "-" {
+ return nil
+ }
+ }
+
rtype := r.Type()
if rtype.Kind() == reflect.Ptr {
rtype = rtype.Elem() // check kind of actual element type
diff --git a/vendor/github.com/aws/aws-sdk-go/service/accessanalyzer/api.go b/vendor/github.com/aws/aws-sdk-go/service/accessanalyzer/api.go
index 8565aeada46..16ad2d2e603 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/accessanalyzer/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/accessanalyzer/api.go
@@ -1900,8 +1900,8 @@ func (c *AccessAnalyzer) UpdateFindingsWithContext(ctx aws.Context, input *Updat
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1918,17 +1918,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1936,22 +1936,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about the analyzed resource.
@@ -1986,12 +1986,18 @@ type AnalyzedResource struct {
// ResourceArn is a required field
ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
+ // The AWS account ID that owns the resource.
+ //
+ // ResourceOwnerAccount is a required field
+ ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
+
// The type of the resource that was analyzed.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
- // Indicates how the access that generated the finding is granted.
+ // Indicates how the access that generated the finding is granted. This is populated
+ // for Amazon S3 bucket findings.
SharedVia []*string `locationName:"sharedVia" type:"list"`
// The current status of the finding generated from the analyzed resource.
@@ -2049,6 +2055,12 @@ func (s *AnalyzedResource) SetResourceArn(v string) *AnalyzedResource {
return s
}
+// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
+func (s *AnalyzedResource) SetResourceOwnerAccount(v string) *AnalyzedResource {
+ s.ResourceOwnerAccount = &v
+ return s
+}
+
// SetResourceType sets the ResourceType field's value.
func (s *AnalyzedResource) SetResourceType(v string) *AnalyzedResource {
s.ResourceType = &v
@@ -2082,6 +2094,11 @@ type AnalyzedResourceSummary struct {
// ResourceArn is a required field
ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
+ // The AWS account ID that owns the resource.
+ //
+ // ResourceOwnerAccount is a required field
+ ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
+
// The type of resource that was analyzed.
//
// ResourceType is a required field
@@ -2104,6 +2121,12 @@ func (s *AnalyzedResourceSummary) SetResourceArn(v string) *AnalyzedResourceSumm
return s
}
+// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
+func (s *AnalyzedResourceSummary) SetResourceOwnerAccount(v string) *AnalyzedResourceSummary {
+ s.ResourceOwnerAccount = &v
+ return s
+}
+
// SetResourceType sets the ResourceType field's value.
func (s *AnalyzedResourceSummary) SetResourceType(v string) *AnalyzedResourceSummary {
s.ResourceType = &v
@@ -2135,6 +2158,23 @@ type AnalyzerSummary struct {
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
+ // The status of the analyzer. An Active analyzer successfully monitors supported
+ // resources and generates new findings. The analyzer is Disabled when a user
+ // action, such as removing trusted access for IAM Access Analyzer from AWS
+ // Organizations, causes the analyzer to stop generating new findings. The status
+ // is Creating when the analyzer creation is in progress and Failed when the
+ // analyzer creation has failed.
+ //
+ // Status is a required field
+ Status *string `locationName:"status" type:"string" required:"true" enum:"AnalyzerStatus"`
+
+ // The statusReason provides more details about the current status of the analyzer.
+ // For example, if the creation for the analyzer fails, a Failed status is displayed.
+ // For an analyzer with organization as the type, this failure can be due to
+ // an issue with creating the service-linked roles required in the member accounts
+ // of the AWS organization.
+ StatusReason *StatusReason `locationName:"statusReason" type:"structure"`
+
// The tags added to the analyzer.
Tags map[string]*string `locationName:"tags" type:"map"`
@@ -2185,6 +2225,18 @@ func (s *AnalyzerSummary) SetName(v string) *AnalyzerSummary {
return s
}
+// SetStatus sets the Status field's value.
+func (s *AnalyzerSummary) SetStatus(v string) *AnalyzerSummary {
+ s.Status = &v
+ return s
+}
+
+// SetStatusReason sets the StatusReason field's value.
+func (s *AnalyzerSummary) SetStatusReason(v *StatusReason) *AnalyzerSummary {
+ s.StatusReason = v
+ return s
+}
+
// SetTags sets the Tags field's value.
func (s *AnalyzerSummary) SetTags(v map[string]*string) *AnalyzerSummary {
s.Tags = v
@@ -2258,8 +2310,8 @@ func (s *ArchiveRuleSummary) SetUpdatedAt(v time.Time) *ArchiveRuleSummary {
// A conflict exception error.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -2286,17 +2338,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2304,22 +2356,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Creates an analyzer.
@@ -2805,11 +2857,20 @@ type Finding struct {
// The resource that an external principal has access to.
Resource *string `locationName:"resource" type:"string"`
+ // The AWS account ID that owns the resource.
+ //
+ // ResourceOwnerAccount is a required field
+ ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
+
// The type of the resource reported in the finding.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
+ // The sources of the finding. This indicates how the access that generated
+ // the finding is granted. It is populated for Amazon S3 bucket findings.
+ Sources []*FindingSource `locationName:"sources" type:"list"`
+
// The current status of the finding.
//
// Status is a required field
@@ -2885,12 +2946,24 @@ func (s *Finding) SetResource(v string) *Finding {
return s
}
+// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
+func (s *Finding) SetResourceOwnerAccount(v string) *Finding {
+ s.ResourceOwnerAccount = &v
+ return s
+}
+
// SetResourceType sets the ResourceType field's value.
func (s *Finding) SetResourceType(v string) *Finding {
s.ResourceType = &v
return s
}
+// SetSources sets the Sources field's value.
+func (s *Finding) SetSources(v []*FindingSource) *Finding {
+ s.Sources = v
+ return s
+}
+
// SetStatus sets the Status field's value.
func (s *Finding) SetStatus(v string) *Finding {
s.Status = &v
@@ -2903,6 +2976,68 @@ func (s *Finding) SetUpdatedAt(v time.Time) *Finding {
return s
}
+// The source of the finding. This indicates how the access that generated the
+// finding is granted. It is populated for Amazon S3 bucket findings.
+type FindingSource struct {
+ _ struct{} `type:"structure"`
+
+ // Includes details about how the access that generated the finding is granted.
+ // This is populated for Amazon S3 bucket findings.
+ Detail *FindingSourceDetail `locationName:"detail" type:"structure"`
+
+ // Indicates the type of access that generated the finding.
+ //
+ // Type is a required field
+ Type *string `locationName:"type" type:"string" required:"true" enum:"FindingSourceType"`
+}
+
+// String returns the string representation
+func (s FindingSource) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FindingSource) GoString() string {
+ return s.String()
+}
+
+// SetDetail sets the Detail field's value.
+func (s *FindingSource) SetDetail(v *FindingSourceDetail) *FindingSource {
+ s.Detail = v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *FindingSource) SetType(v string) *FindingSource {
+ s.Type = &v
+ return s
+}
+
+// Includes details about how the access that generated the finding is granted.
+// This is populated for Amazon S3 bucket findings.
+type FindingSourceDetail struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the access point that generated the finding.
+ AccessPointArn *string `locationName:"accessPointArn" type:"string"`
+}
+
+// String returns the string representation
+func (s FindingSourceDetail) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FindingSourceDetail) GoString() string {
+ return s.String()
+}
+
+// SetAccessPointArn sets the AccessPointArn field's value.
+func (s *FindingSourceDetail) SetAccessPointArn(v string) *FindingSourceDetail {
+ s.AccessPointArn = &v
+ return s
+}
+
// Contains information about a finding.
type FindingSummary struct {
_ struct{} `type:"structure"`
@@ -2945,11 +3080,20 @@ type FindingSummary struct {
// The resource that the external principal has access to.
Resource *string `locationName:"resource" type:"string"`
+ // The AWS account ID that owns the resource.
+ //
+ // ResourceOwnerAccount is a required field
+ ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
+
// The type of the resource that the external principal has access to.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
+ // The sources of the finding. This indicates how the access that generated
+ // the finding is granted. It is populated for Amazon S3 bucket findings.
+ Sources []*FindingSource `locationName:"sources" type:"list"`
+
// The status of the finding.
//
// Status is a required field
@@ -3025,12 +3169,24 @@ func (s *FindingSummary) SetResource(v string) *FindingSummary {
return s
}
+// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
+func (s *FindingSummary) SetResourceOwnerAccount(v string) *FindingSummary {
+ s.ResourceOwnerAccount = &v
+ return s
+}
+
// SetResourceType sets the ResourceType field's value.
func (s *FindingSummary) SetResourceType(v string) *FindingSummary {
s.ResourceType = &v
return s
}
+// SetSources sets the Sources field's value.
+func (s *FindingSummary) SetSources(v []*FindingSource) *FindingSummary {
+ s.Sources = v
+ return s
+}
+
// SetStatus sets the Status field's value.
func (s *FindingSummary) SetStatus(v string) *FindingSummary {
s.Status = &v
@@ -3423,8 +3579,8 @@ func (s *InlineArchiveRule) SetRuleName(v string) *InlineArchiveRule {
// Internal server error.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -3444,17 +3600,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3462,22 +3618,22 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Retrieves a list of resources that have been analyzed.
@@ -3942,8 +4098,8 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe
// The specified resource could not be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -3970,17 +4126,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3988,28 +4144,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Service quote met error.
type ServiceQuotaExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -4036,17 +4192,17 @@ func (s ServiceQuotaExceededException) GoString() string {
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceQuotaExceededException) Code() string {
+func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
-func (s ServiceQuotaExceededException) Message() string {
+func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4054,22 +4210,22 @@ func (s ServiceQuotaExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceQuotaExceededException) OrigErr() error {
+func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
-func (s ServiceQuotaExceededException) Error() string {
+func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceQuotaExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceQuotaExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The criteria used to sort.
@@ -4173,6 +4329,36 @@ func (s StartResourceScanOutput) GoString() string {
return s.String()
}
+// Provides more details about the current status of the analyzer. For example,
+// if the creation for the analyzer fails, a Failed status is displayed. For
+// an analyzer with organization as the type, this failure can be due to an
+// issue with creating the service-linked roles required in the member accounts
+// of the AWS organization.
+type StatusReason struct {
+ _ struct{} `type:"structure"`
+
+ // The reason code for the current status of the analyzer.
+ //
+ // Code is a required field
+ Code *string `locationName:"code" type:"string" required:"true" enum:"ReasonCode"`
+}
+
+// String returns the string representation
+func (s StatusReason) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s StatusReason) GoString() string {
+ return s.String()
+}
+
+// SetCode sets the Code field's value.
+func (s *StatusReason) SetCode(v string) *StatusReason {
+ s.Code = &v
+ return s
+}
+
// Adds a tag to the specified resource.
type TagResourceInput struct {
_ struct{} `type:"structure"`
@@ -4246,8 +4432,8 @@ func (s TagResourceOutput) GoString() string {
// Throttling limit exceeded error.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -4267,17 +4453,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4285,22 +4471,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Removes a tag from the specified resource.
@@ -4579,8 +4765,8 @@ func (s UpdateFindingsOutput) GoString() string {
// Validation exception error.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A list of fields that didn't validate.
FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"`
@@ -4605,17 +4791,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4623,22 +4809,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a validation exception.
@@ -4678,6 +4864,31 @@ func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField {
return s
}
+const (
+ // AnalyzerStatusActive is a AnalyzerStatus enum value
+ AnalyzerStatusActive = "ACTIVE"
+
+ // AnalyzerStatusCreating is a AnalyzerStatus enum value
+ AnalyzerStatusCreating = "CREATING"
+
+ // AnalyzerStatusDisabled is a AnalyzerStatus enum value
+ AnalyzerStatusDisabled = "DISABLED"
+
+ // AnalyzerStatusFailed is a AnalyzerStatus enum value
+ AnalyzerStatusFailed = "FAILED"
+)
+
+const (
+ // FindingSourceTypeBucketAcl is a FindingSourceType enum value
+ FindingSourceTypeBucketAcl = "BUCKET_ACL"
+
+ // FindingSourceTypePolicy is a FindingSourceType enum value
+ FindingSourceTypePolicy = "POLICY"
+
+ // FindingSourceTypeS3AccessPoint is a FindingSourceType enum value
+ FindingSourceTypeS3AccessPoint = "S3_ACCESS_POINT"
+)
+
const (
// FindingStatusActive is a FindingStatus enum value
FindingStatusActive = "ACTIVE"
@@ -4705,6 +4916,20 @@ const (
OrderByDesc = "DESC"
)
+const (
+ // ReasonCodeAwsServiceAccessDisabled is a ReasonCode enum value
+ ReasonCodeAwsServiceAccessDisabled = "AWS_SERVICE_ACCESS_DISABLED"
+
+ // ReasonCodeDelegatedAdministratorDeregistered is a ReasonCode enum value
+ ReasonCodeDelegatedAdministratorDeregistered = "DELEGATED_ADMINISTRATOR_DEREGISTERED"
+
+ // ReasonCodeOrganizationDeleted is a ReasonCode enum value
+ ReasonCodeOrganizationDeleted = "ORGANIZATION_DELETED"
+
+ // ReasonCodeServiceLinkedRoleCreationFailed is a ReasonCode enum value
+ ReasonCodeServiceLinkedRoleCreationFailed = "SERVICE_LINKED_ROLE_CREATION_FAILED"
+)
+
const (
// ResourceTypeAwsIamRole is a ResourceType enum value
ResourceTypeAwsIamRole = "AWS::IAM::Role"
@@ -4728,6 +4953,9 @@ const (
const (
// TypeAccount is a Type enum value
TypeAccount = "ACCOUNT"
+
+ // TypeOrganization is a Type enum value
+ TypeOrganization = "ORGANIZATION"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go
index 0135a159d3e..f643d683a69 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go
@@ -443,12 +443,11 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re
// GetCertificate API operation for AWS Certificate Manager.
//
-// Retrieves a certificate specified by an ARN and its certificate chain . The
-// chain is an ordered list of certificates that contains the end entity certificate,
-// intermediate certificates of subordinate CAs, and the root certificate in
-// that order. The certificate and certificate chain are base64 encoded. If
-// you want to decode the certificate to see the individual fields, you can
-// use OpenSSL.
+// Retrieves an Amazon-issued certificate and its certificate chain. The chain
+// consists of the certificate of the issuing CA and the intermediate certificates
+// of any other subordinate CAs. All of the certificates are base64 encoded.
+// You can use OpenSSL (https://wiki.openssl.org/index.php/Command_Line_Utilities)
+// to decode the certificates and inspect individual fields.
//
// 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
@@ -604,7 +603,7 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ
// caller's account cannot be found.
//
// * LimitExceededException
-// An ACM limit has been exceeded.
+// An ACM quota has been exceeded.
//
// * InvalidTagException
// One or both of the values that make up the key-value pair is not valid. For
@@ -1123,7 +1122,7 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re
//
// Returned Error Types:
// * LimitExceededException
-// An ACM limit has been exceeded.
+// An ACM quota has been exceeded.
//
// * InvalidDomainValidationOptionsException
// One or more values in the DomainValidationOption structure is incorrect.
@@ -1329,7 +1328,7 @@ func (c *ACM) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInp
// caller's account cannot be found.
//
// * LimitExceededException
-// An ACM limit has been exceeded.
+// An ACM quota has been exceeded.
//
// * InvalidStateException
// Processing has reached an invalid state.
@@ -1951,6 +1950,11 @@ type DomainValidation struct {
// Contains the CNAME record that you add to your DNS database for domain validation.
// For more information, see Use DNS to Validate Domain Ownership (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html).
+ //
+ // Note: The CNAME information that you need does not include the name of your
+ // domain. If you include your domain name in the DNS database CNAME record,
+ // validation fails. For example, if the name is "_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com",
+ // only "_a79865eb4cd1a6ab990a45779b4e0b96" must be used.
ResourceRecord *ResourceRecord `type:"structure"`
// The domain name that ACM used to send domain validation emails.
@@ -2356,12 +2360,12 @@ func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput {
type GetCertificateOutput struct {
_ struct{} `type:"structure"`
- // String that contains the ACM certificate represented by the ARN specified
- // at input.
+ // The ACM-issued certificate corresponding to the ARN specified as input.
Certificate *string `min:"1" type:"string"`
- // The certificate chain that contains the root certificate issued by the certificate
- // authority (CA).
+ // Certificates forming the requested certificate's chain of trust. The chain
+ // consists of the certificate of the issuing CA and the intermediate certificates
+ // of any other subordinate CAs.
CertificateChain *string `min:"1" type:"string"`
}
@@ -2527,8 +2531,8 @@ func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificate
// One or more of of request parameters specified is not valid.
type InvalidArgsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2545,17 +2549,17 @@ func (s InvalidArgsException) GoString() string {
func newErrorInvalidArgsException(v protocol.ResponseMetadata) error {
return &InvalidArgsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgsException) Code() string {
+func (s *InvalidArgsException) Code() string {
return "InvalidArgsException"
}
// Message returns the exception's message.
-func (s InvalidArgsException) Message() string {
+func (s *InvalidArgsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2563,28 +2567,28 @@ func (s InvalidArgsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgsException) OrigErr() error {
+func (s *InvalidArgsException) OrigErr() error {
return nil
}
-func (s InvalidArgsException) Error() string {
+func (s *InvalidArgsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
type InvalidArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2601,17 +2605,17 @@ func (s InvalidArnException) GoString() string {
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArnException) Code() string {
+func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
-func (s InvalidArnException) Message() string {
+func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2619,28 +2623,28 @@ func (s InvalidArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArnException) OrigErr() error {
+func (s *InvalidArnException) OrigErr() error {
return nil
}
-func (s InvalidArnException) Error() string {
+func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more values in the DomainValidationOption structure is incorrect.
type InvalidDomainValidationOptionsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2657,17 +2661,17 @@ func (s InvalidDomainValidationOptionsException) GoString() string {
func newErrorInvalidDomainValidationOptionsException(v protocol.ResponseMetadata) error {
return &InvalidDomainValidationOptionsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDomainValidationOptionsException) Code() string {
+func (s *InvalidDomainValidationOptionsException) Code() string {
return "InvalidDomainValidationOptionsException"
}
// Message returns the exception's message.
-func (s InvalidDomainValidationOptionsException) Message() string {
+func (s *InvalidDomainValidationOptionsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2675,28 +2679,28 @@ func (s InvalidDomainValidationOptionsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDomainValidationOptionsException) OrigErr() error {
+func (s *InvalidDomainValidationOptionsException) OrigErr() error {
return nil
}
-func (s InvalidDomainValidationOptionsException) Error() string {
+func (s *InvalidDomainValidationOptionsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDomainValidationOptionsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDomainValidationOptionsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDomainValidationOptionsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDomainValidationOptionsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An input parameter was invalid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2713,17 +2717,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2731,28 +2735,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Processing has reached an invalid state.
type InvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2769,17 +2773,17 @@ func (s InvalidStateException) GoString() string {
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateException) Code() string {
+func (s *InvalidStateException) Code() string {
return "InvalidStateException"
}
// Message returns the exception's message.
-func (s InvalidStateException) Message() string {
+func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2787,29 +2791,29 @@ func (s InvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateException) OrigErr() error {
+func (s *InvalidStateException) OrigErr() error {
return nil
}
-func (s InvalidStateException) Error() string {
+func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
type InvalidTagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2826,17 +2830,17 @@ func (s InvalidTagException) GoString() string {
func newErrorInvalidTagException(v protocol.ResponseMetadata) error {
return &InvalidTagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagException) Code() string {
+func (s *InvalidTagException) Code() string {
return "InvalidTagException"
}
// Message returns the exception's message.
-func (s InvalidTagException) Message() string {
+func (s *InvalidTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2844,22 +2848,22 @@ func (s InvalidTagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagException) OrigErr() error {
+func (s *InvalidTagException) OrigErr() error {
return nil
}
-func (s InvalidTagException) Error() string {
+func (s *InvalidTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Key Usage X.509 v3 extension defines the purpose of the public key contained
@@ -2887,10 +2891,10 @@ func (s *KeyUsage) SetName(v string) *KeyUsage {
return s
}
-// An ACM limit has been exceeded.
+// An ACM quota has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2907,17 +2911,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2925,22 +2929,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListCertificatesInput struct {
@@ -3379,9 +3383,9 @@ type RequestCertificateInput struct {
// of the ACM certificate. For example, add the name www.example.net to a certificate
// for which the DomainName field is www.example.com if users can reach your
// site by using either name. The maximum number of domain names that you can
- // add to an ACM certificate is 100. However, the initial limit is 10 domain
- // names. If you need more than 10 names, you must request a limit increase.
- // For more information, see Limits (https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html).
+ // add to an ACM certificate is 100. However, the initial quota is 10 domain
+ // names. If you need more than 10 names, you must request a quota increase.
+ // For more information, see Quotas (https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html).
//
// The maximum length of a SAN DNS name is 253 octets. The name is made up of
// multiple labels separated by periods. No label can be longer than 63 octets.
@@ -3547,8 +3551,8 @@ func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertifica
// The certificate request is in process and the certificate in your account
// has not yet been issued.
type RequestInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3565,17 +3569,17 @@ func (s RequestInProgressException) GoString() string {
func newErrorRequestInProgressException(v protocol.ResponseMetadata) error {
return &RequestInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestInProgressException) Code() string {
+func (s *RequestInProgressException) Code() string {
return "RequestInProgressException"
}
// Message returns the exception's message.
-func (s RequestInProgressException) Message() string {
+func (s *RequestInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3583,22 +3587,22 @@ func (s RequestInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestInProgressException) OrigErr() error {
+func (s *RequestInProgressException) OrigErr() error {
return nil
}
-func (s RequestInProgressException) Error() string {
+func (s *RequestInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ResendValidationEmailInput struct {
@@ -3715,8 +3719,8 @@ func (s ResendValidationEmailOutput) GoString() string {
// The certificate is in use by another AWS service in the caller's account.
// Remove the association and try again.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3733,17 +3737,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3751,29 +3755,29 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3790,17 +3794,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3808,22 +3812,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains a DNS record value that you can use to can use to validate ownership
@@ -3930,8 +3934,8 @@ func (s *Tag) SetValue(v string) *Tag {
// A specified tag did not comply with an existing tag policy and was rejected.
type TagPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3948,17 +3952,17 @@ func (s TagPolicyException) GoString() string {
func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
return &TagPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagPolicyException) Code() string {
+func (s *TagPolicyException) Code() string {
return "TagPolicyException"
}
// Message returns the exception's message.
-func (s TagPolicyException) Message() string {
+func (s *TagPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3966,28 +3970,28 @@ func (s TagPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagPolicyException) OrigErr() error {
+func (s *TagPolicyException) OrigErr() error {
return nil
}
-func (s TagPolicyException) Error() string {
+func (s *TagPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request contains too many tags. Try the request again with fewer tags.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4004,17 +4008,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4022,22 +4026,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateCertificateOptionsInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go
index 54de486c39a..f054cb40564 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/acm/errors.go
@@ -48,7 +48,7 @@ const (
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
- // An ACM limit has been exceeded.
+ // An ACM quota has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestInProgressException for service response error code
diff --git a/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go b/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go
index d339900f2f3..22cca109ef4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go
@@ -2579,8 +2579,8 @@ func (s *CertificateAuthorityConfiguration) SetSubject(v *ASN1Subject) *Certific
// The certificate authority certificate you are importing does not comply with
// conditions specified in the certificate that signed it.
type CertificateMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2597,17 +2597,17 @@ func (s CertificateMismatchException) GoString() string {
func newErrorCertificateMismatchException(v protocol.ResponseMetadata) error {
return &CertificateMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateMismatchException) Code() string {
+func (s *CertificateMismatchException) Code() string {
return "CertificateMismatchException"
}
// Message returns the exception's message.
-func (s CertificateMismatchException) Message() string {
+func (s *CertificateMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2615,28 +2615,28 @@ func (s CertificateMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateMismatchException) OrigErr() error {
+func (s *CertificateMismatchException) OrigErr() error {
return nil
}
-func (s CertificateMismatchException) Error() string {
+func (s *CertificateMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A previous update to your private CA is still ongoing.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2653,17 +2653,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2671,22 +2671,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateCertificateAuthorityAuditReportInput struct {
@@ -3848,8 +3848,8 @@ func (s ImportCertificateAuthorityCertificateOutput) GoString() string {
// One or more of the specified arguments was not valid.
type InvalidArgsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3866,17 +3866,17 @@ func (s InvalidArgsException) GoString() string {
func newErrorInvalidArgsException(v protocol.ResponseMetadata) error {
return &InvalidArgsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgsException) Code() string {
+func (s *InvalidArgsException) Code() string {
return "InvalidArgsException"
}
// Message returns the exception's message.
-func (s InvalidArgsException) Message() string {
+func (s *InvalidArgsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3884,28 +3884,28 @@ func (s InvalidArgsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgsException) OrigErr() error {
+func (s *InvalidArgsException) OrigErr() error {
return nil
}
-func (s InvalidArgsException) Error() string {
+func (s *InvalidArgsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
type InvalidArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3922,17 +3922,17 @@ func (s InvalidArnException) GoString() string {
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArnException) Code() string {
+func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
-func (s InvalidArnException) Message() string {
+func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3940,29 +3940,29 @@ func (s InvalidArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArnException) OrigErr() error {
+func (s *InvalidArnException) OrigErr() error {
return nil
}
-func (s InvalidArnException) Error() string {
+func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The token specified in the NextToken argument is not valid. Use the token
// returned from your previous call to ListCertificateAuthorities.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3979,17 +3979,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3997,29 +3997,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The S3 bucket policy is not valid. The policy must give ACM Private CA rights
// to read from and write to the bucket and find the bucket location.
type InvalidPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4036,17 +4036,17 @@ func (s InvalidPolicyException) GoString() string {
func newErrorInvalidPolicyException(v protocol.ResponseMetadata) error {
return &InvalidPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPolicyException) Code() string {
+func (s *InvalidPolicyException) Code() string {
return "InvalidPolicyException"
}
// Message returns the exception's message.
-func (s InvalidPolicyException) Message() string {
+func (s *InvalidPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4054,28 +4054,28 @@ func (s InvalidPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPolicyException) OrigErr() error {
+func (s *InvalidPolicyException) OrigErr() error {
return nil
}
-func (s InvalidPolicyException) Error() string {
+func (s *InvalidPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request action cannot be performed or is prohibited.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4092,17 +4092,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4110,29 +4110,29 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The private CA is in a state during which a report or certificate cannot
// be generated.
type InvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4149,17 +4149,17 @@ func (s InvalidStateException) GoString() string {
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateException) Code() string {
+func (s *InvalidStateException) Code() string {
return "InvalidStateException"
}
// Message returns the exception's message.
-func (s InvalidStateException) Message() string {
+func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4167,29 +4167,29 @@ func (s InvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateException) OrigErr() error {
+func (s *InvalidStateException) OrigErr() error {
return nil
}
-func (s InvalidStateException) Error() string {
+func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The tag associated with the CA is not valid. The invalid argument is contained
// in the message field.
type InvalidTagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4206,17 +4206,17 @@ func (s InvalidTagException) GoString() string {
func newErrorInvalidTagException(v protocol.ResponseMetadata) error {
return &InvalidTagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagException) Code() string {
+func (s *InvalidTagException) Code() string {
return "InvalidTagException"
}
// Message returns the exception's message.
-func (s InvalidTagException) Message() string {
+func (s *InvalidTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4224,22 +4224,22 @@ func (s InvalidTagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagException) OrigErr() error {
+func (s *InvalidTagException) OrigErr() error {
return nil
}
-func (s InvalidTagException) Error() string {
+func (s *InvalidTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type IssueCertificateInput struct {
@@ -4428,8 +4428,8 @@ func (s *IssueCertificateOutput) SetCertificateArn(v string) *IssueCertificateOu
// An ACM Private CA limit has been exceeded. See the exception message returned
// to determine the limit that was exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4446,17 +4446,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4464,22 +4464,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListCertificateAuthoritiesInput struct {
@@ -4784,8 +4784,8 @@ func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput {
// The certificate signing request is invalid.
type MalformedCSRException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4802,17 +4802,17 @@ func (s MalformedCSRException) GoString() string {
func newErrorMalformedCSRException(v protocol.ResponseMetadata) error {
return &MalformedCSRException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedCSRException) Code() string {
+func (s *MalformedCSRException) Code() string {
return "MalformedCSRException"
}
// Message returns the exception's message.
-func (s MalformedCSRException) Message() string {
+func (s *MalformedCSRException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4820,28 +4820,28 @@ func (s MalformedCSRException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedCSRException) OrigErr() error {
+func (s *MalformedCSRException) OrigErr() error {
return nil
}
-func (s MalformedCSRException) Error() string {
+func (s *MalformedCSRException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedCSRException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedCSRException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedCSRException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedCSRException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more fields in the certificate are invalid.
type MalformedCertificateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4858,17 +4858,17 @@ func (s MalformedCertificateException) GoString() string {
func newErrorMalformedCertificateException(v protocol.ResponseMetadata) error {
return &MalformedCertificateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedCertificateException) Code() string {
+func (s *MalformedCertificateException) Code() string {
return "MalformedCertificateException"
}
// Message returns the exception's message.
-func (s MalformedCertificateException) Message() string {
+func (s *MalformedCertificateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4876,22 +4876,22 @@ func (s MalformedCertificateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedCertificateException) OrigErr() error {
+func (s *MalformedCertificateException) OrigErr() error {
return nil
}
-func (s MalformedCertificateException) Error() string {
+func (s *MalformedCertificateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedCertificateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedCertificateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedCertificateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedCertificateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Permissions designate which private CA actions can be performed by an AWS
@@ -4972,8 +4972,8 @@ func (s *Permission) SetSourceAccount(v string) *Permission {
// The designated permission has already been given to the user.
type PermissionAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4990,17 +4990,17 @@ func (s PermissionAlreadyExistsException) GoString() string {
func newErrorPermissionAlreadyExistsException(v protocol.ResponseMetadata) error {
return &PermissionAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PermissionAlreadyExistsException) Code() string {
+func (s *PermissionAlreadyExistsException) Code() string {
return "PermissionAlreadyExistsException"
}
// Message returns the exception's message.
-func (s PermissionAlreadyExistsException) Message() string {
+func (s *PermissionAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5008,28 +5008,28 @@ func (s PermissionAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PermissionAlreadyExistsException) OrigErr() error {
+func (s *PermissionAlreadyExistsException) OrigErr() error {
return nil
}
-func (s PermissionAlreadyExistsException) Error() string {
+func (s *PermissionAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PermissionAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PermissionAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PermissionAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PermissionAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your request has already been completed.
type RequestAlreadyProcessedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5046,17 +5046,17 @@ func (s RequestAlreadyProcessedException) GoString() string {
func newErrorRequestAlreadyProcessedException(v protocol.ResponseMetadata) error {
return &RequestAlreadyProcessedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestAlreadyProcessedException) Code() string {
+func (s *RequestAlreadyProcessedException) Code() string {
return "RequestAlreadyProcessedException"
}
// Message returns the exception's message.
-func (s RequestAlreadyProcessedException) Message() string {
+func (s *RequestAlreadyProcessedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5064,28 +5064,28 @@ func (s RequestAlreadyProcessedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestAlreadyProcessedException) OrigErr() error {
+func (s *RequestAlreadyProcessedException) OrigErr() error {
return nil
}
-func (s RequestAlreadyProcessedException) Error() string {
+func (s *RequestAlreadyProcessedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestAlreadyProcessedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestAlreadyProcessedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestAlreadyProcessedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestAlreadyProcessedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request has failed for an unspecified reason.
type RequestFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5102,17 +5102,17 @@ func (s RequestFailedException) GoString() string {
func newErrorRequestFailedException(v protocol.ResponseMetadata) error {
return &RequestFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestFailedException) Code() string {
+func (s *RequestFailedException) Code() string {
return "RequestFailedException"
}
// Message returns the exception's message.
-func (s RequestFailedException) Message() string {
+func (s *RequestFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5120,28 +5120,28 @@ func (s RequestFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestFailedException) OrigErr() error {
+func (s *RequestFailedException) OrigErr() error {
return nil
}
-func (s RequestFailedException) Error() string {
+func (s *RequestFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your request is already in progress.
type RequestInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5158,17 +5158,17 @@ func (s RequestInProgressException) GoString() string {
func newErrorRequestInProgressException(v protocol.ResponseMetadata) error {
return &RequestInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestInProgressException) Code() string {
+func (s *RequestInProgressException) Code() string {
return "RequestInProgressException"
}
// Message returns the exception's message.
-func (s RequestInProgressException) Message() string {
+func (s *RequestInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5176,29 +5176,29 @@ func (s RequestInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestInProgressException) OrigErr() error {
+func (s *RequestInProgressException) OrigErr() error {
return nil
}
-func (s RequestInProgressException) Error() string {
+func (s *RequestInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A resource such as a private CA, S3 bucket, certificate, or audit report
// cannot be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5215,17 +5215,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5233,22 +5233,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type RestoreCertificateAuthorityInput struct {
@@ -5593,8 +5593,8 @@ func (s TagCertificateAuthorityOutput) GoString() string {
// You can associate up to 50 tags with a private CA. Exception information
// is contained in the exception message field.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5611,17 +5611,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5629,22 +5629,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagCertificateAuthorityInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go
index 0eac1f76a1d..76a70164f40 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go
@@ -3839,8 +3839,8 @@ func (s *BackendEnvironment) SetUpdateTime(v time.Time) *BackendEnvironment {
// Exception thrown when a request contains unexpected data.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3857,17 +3857,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3875,22 +3875,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Branch for an Amplify App, which maps to a 3rd party repository branch.
@@ -5663,8 +5663,8 @@ func (s *DeleteWebhookOutput) SetWebhook(v *Webhook) *DeleteWebhookOutput {
// Exception thrown when an operation fails due to a dependent service throwing
// an exception.
type DependentServiceFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5681,17 +5681,17 @@ func (s DependentServiceFailureException) GoString() string {
func newErrorDependentServiceFailureException(v protocol.ResponseMetadata) error {
return &DependentServiceFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DependentServiceFailureException) Code() string {
+func (s *DependentServiceFailureException) Code() string {
return "DependentServiceFailureException"
}
// Message returns the exception's message.
-func (s DependentServiceFailureException) Message() string {
+func (s *DependentServiceFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5699,22 +5699,22 @@ func (s DependentServiceFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DependentServiceFailureException) OrigErr() error {
+func (s *DependentServiceFailureException) OrigErr() error {
return nil
}
-func (s DependentServiceFailureException) Error() string {
+func (s *DependentServiceFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DependentServiceFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DependentServiceFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DependentServiceFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DependentServiceFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Structure for Domain Association, which associates a custom domain with an
@@ -6479,8 +6479,8 @@ func (s *GetWebhookOutput) SetWebhook(v *Webhook) *GetWebhookOutput {
// Exception thrown when the service fails to perform an operation due to an
// internal issue.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6497,17 +6497,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6515,22 +6515,22 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Structure for an execution job for an Amplify App.
@@ -6687,8 +6687,8 @@ func (s *JobSummary) SetStatus(v string) *JobSummary {
// Exception thrown when a resource could not be created because of service
// limits.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6705,17 +6705,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6723,22 +6723,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Request structure for an Amplify App list request.
@@ -7562,8 +7562,8 @@ func (s *ListWebhooksOutput) SetWebhooks(v []*Webhook) *ListWebhooksOutput {
// Exception thrown when an entity has not been found during an operation.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7580,17 +7580,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7598,22 +7598,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Structure with Production Branch information.
@@ -7669,8 +7669,8 @@ func (s *ProductionBranch) SetThumbnailUrl(v string) *ProductionBranch {
// Exception thrown when an operation fails due to non-existent resource.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -7689,17 +7689,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7707,22 +7707,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Request structure for start a deployment.
@@ -8381,8 +8381,8 @@ func (s TagResourceOutput) GoString() string {
// Exception thrown when an operation fails due to a lack of access.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8399,17 +8399,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8417,22 +8417,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Request structure used to untag resource.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go
index e2e1306b9f2..85fde99ac1d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go
@@ -11339,7 +11339,9 @@ func (c *APIGateway) UpdateVpcLinkWithContext(ctx aws.Context, input *UpdateVpcL
type AccessLogSettings struct {
_ struct{} `type:"structure"`
- // The ARN of the CloudWatch Logs log group to receive access logs.
+ // The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis
+ // Data Firehose delivery stream to receive access logs. If you specify a Kinesis
+ // Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.
DestinationArn *string `locationName:"destinationArn" type:"string"`
// A single line format of the access logs of data, as specified by selected
@@ -11767,8 +11769,8 @@ func (s *Authorizer) SetType(v string) *Authorizer {
// The submitted request is not valid, for example, the input is incomplete
// or incorrect. See the accompanying error message for details.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11785,17 +11787,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11803,22 +11805,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the base path that callers of the API must provide as part of
@@ -12004,8 +12006,8 @@ func (s *ClientCertificate) SetTags(v map[string]*string) *ClientCertificate {
// The request configuration has conflicts. For details, see the accompanying
// error message.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12022,17 +12024,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12040,22 +12042,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Request to create an ApiKey resource.
@@ -12073,7 +12075,8 @@ type CreateApiKeyInput struct {
Enabled *bool `locationName:"enabled" type:"boolean"`
// Specifies whether (true) or not (false) the key identifier is distinct from
- // the created API key value.
+ // the created API key value. This parameter is deprecated and should not be
+ // used.
GenerateDistinctId *bool `locationName:"generateDistinctId" type:"boolean"`
// The name of the ApiKey.
@@ -12346,8 +12349,8 @@ type CreateBasePathMappingInput struct {
RestApiId *string `locationName:"restApiId" type:"string" required:"true"`
// The name of the API's stage that you want to use for this mapping. Specify
- // '(none)' if you do not want callers to explicitly specify the stage name
- // after any base path name.
+ // '(none)' if you want callers to explicitly specify the stage name after any
+ // base path name.
Stage *string `locationName:"stage" type:"string"`
}
@@ -13516,8 +13519,8 @@ type CreateVpcLinkInput struct {
// tag value can be up to 256 characters.
Tags map[string]*string `locationName:"tags" type:"map"`
- // [Required] The ARNs of network load balancers of the VPC targeted by the
- // VPC link. The network load balancers must be owned by the same AWS account
+ // [Required] The ARN of the network load balancer of the VPC targeted by the
+ // VPC link. The network load balancer must be owned by the same AWS account
// of the API owner.
//
// TargetArns is a required field
@@ -19047,8 +19050,7 @@ type GetTagsInput struct {
// set.
Position *string `location:"querystring" locationName:"position" type:"string"`
- // [Required] The ARN of a resource that can be tagged. The resource ARN must
- // be URL-encoded.
+ // [Required] The ARN of a resource that can be tagged.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resource_arn" type:"string" required:"true"`
@@ -20283,8 +20285,8 @@ func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse {
// The request exceeded the rate limit. Retry after the specified time period.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -20303,17 +20305,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20321,22 +20323,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a client-facing interface by which the client calls the API to
@@ -20720,7 +20722,9 @@ type MethodSetting struct {
// Specifies the logging level for this method, which affects the log entries
// pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel,
- // and the available levels are OFF, ERROR, and INFO.
+ // and the available levels are OFF, ERROR, and INFO. Choose ERROR to write
+ // only error-level entries to CloudWatch Logs, or choose INFO to include all
+ // ERROR events as well as extra informational events.
LoggingLevel *string `locationName:"loggingLevel" type:"string"`
// Specifies whether Amazon CloudWatch metrics are enabled for this method.
@@ -20930,8 +20934,8 @@ func (s *Model) SetSchema(v string) *Model {
// The requested resource is not found. Make sure that the request URI is correct.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20948,17 +20952,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20966,22 +20970,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A single patch operation to apply to the specified resource. Please refer
@@ -22395,8 +22399,8 @@ func (s *SdkType) SetId(v string) *SdkType {
// The requested service is not available. For details see the accompanying
// error message. Retry after the specified time period.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -22415,17 +22419,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22433,22 +22437,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a unique identifier for a version of a deployed RestApi that is
@@ -22666,8 +22670,7 @@ func (s *StageKey) SetStageName(v string) *StageKey {
type TagResourceInput struct {
_ struct{} `type:"structure"`
- // [Required] The ARN of a resource that can be tagged. The resource ARN must
- // be URL-encoded.
+ // [Required] The ARN of a resource that can be tagged.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resource_arn" type:"string" required:"true"`
@@ -23178,8 +23181,8 @@ func (s *ThrottleSettings) SetRateLimit(v float64) *ThrottleSettings {
// The request has reached its throttling limit. Retry after the specified time
// period.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -23198,17 +23201,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23216,28 +23219,28 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is denied because the caller has insufficient permissions.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23254,17 +23257,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23272,30 +23275,29 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Removes a tag from a given resource.
type UntagResourceInput struct {
_ struct{} `type:"structure"`
- // [Required] The ARN of a resource that can be tagged. The resource ARN must
- // be URL-encoded.
+ // [Required] The ARN of a resource that can be tagged.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resource_arn" type:"string" required:"true"`
@@ -25083,7 +25085,7 @@ func (s *UpdateVpcLinkInput) SetVpcLinkId(v string) *UpdateVpcLinkInput {
return s
}
-// A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual
+// An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual
// Private Cloud (VPC).
//
// To enable access to a resource in an Amazon Virtual Private Cloud through
@@ -25117,8 +25119,9 @@ type UpdateVpcLinkOutput struct {
// The collection of tags. Each tag element is associated with a given resource.
Tags map[string]*string `locationName:"tags" type:"map"`
- // The ARNs of network load balancers of the VPC targeted by the VPC link. The
- // network load balancers must be owned by the same AWS account of the API owner.
+ // The ARN of the network load balancer of the VPC targeted by the VPC link.
+ // The network load balancer must be owned by the same AWS account of the API
+ // owner.
TargetArns []*string `locationName:"targetArns" type:"list"`
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigatewayv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigatewayv2/api.go
index 7d9fd1e9930..f191a64b8a1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/apigatewayv2/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/apigatewayv2/api.go
@@ -2459,6 +2459,93 @@ func (c *ApiGatewayV2) DeleteVpcLinkWithContext(ctx aws.Context, input *DeleteVp
return out, req.Send()
}
+const opExportApi = "ExportApi"
+
+// ExportApiRequest generates a "aws/request.Request" representing the
+// client's request for the ExportApi operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ExportApi for more information on using the ExportApi
+// 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 ExportApiRequest method.
+// req, resp := client.ExportApiRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/ExportApi
+func (c *ApiGatewayV2) ExportApiRequest(input *ExportApiInput) (req *request.Request, output *ExportApiOutput) {
+ op := &request.Operation{
+ Name: opExportApi,
+ HTTPMethod: "GET",
+ HTTPPath: "/v2/apis/{apiId}/exports/{specification}",
+ }
+
+ if input == nil {
+ input = &ExportApiInput{}
+ }
+
+ output = &ExportApiOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ExportApi API operation for AmazonApiGatewayV2.
+//
+// Exports a definition of an API in a particular output format and specification.
+//
+// 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 AmazonApiGatewayV2's
+// API operation ExportApi for usage and error information.
+//
+// Returned Error Types:
+// * NotFoundException
+// The resource specified in the request was not found. See the message field
+// for more information.
+//
+// * TooManyRequestsException
+// A limit has been exceeded. See the accompanying error message for details.
+//
+// * BadRequestException
+// The request is not valid, for example, the input is incomplete or incorrect.
+// See the accompanying error message for details.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/ExportApi
+func (c *ApiGatewayV2) ExportApi(input *ExportApiInput) (*ExportApiOutput, error) {
+ req, out := c.ExportApiRequest(input)
+ return out, req.Send()
+}
+
+// ExportApiWithContext is the same as ExportApi with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ExportApi 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 *ApiGatewayV2) ExportApiWithContext(ctx aws.Context, input *ExportApiInput, opts ...request.Option) (*ExportApiOutput, error) {
+ req, out := c.ExportApiRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetApi = "GetApi"
// GetApiRequest generates a "aws/request.Request" representing the
@@ -6144,8 +6231,8 @@ func (c *ApiGatewayV2) UpdateVpcLinkWithContext(ctx aws.Context, input *UpdateVp
}
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6162,17 +6249,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6180,22 +6267,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Settings for logging access in a stage.
@@ -6574,8 +6661,8 @@ func (s *Authorizer) SetName(v string) *Authorizer {
// The request is not valid, for example, the input is incomplete or incorrect.
// See the accompanying error message for details.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Describes the error encountered.
Message_ *string `locationName:"message" type:"string"`
@@ -6593,17 +6680,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6611,30 +6698,30 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation would cause a conflict with the current state of
// a service resource associated with the request. Resolve the conflict before
// retrying this request. See the accompanying error message for details.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Describes the error encountered.
Message_ *string `locationName:"message" type:"string"`
@@ -6652,17 +6739,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6670,22 +6757,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a CORS configuration. Supported only for HTTP APIs. See Configuring
@@ -7749,7 +7836,7 @@ type CreateIntegrationInput struct {
// for more information.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // An integer with a value between [50-29000].
+ // An integer with a value between [50-30000].
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
@@ -7953,7 +8040,7 @@ type CreateIntegrationOutput struct {
// for more information.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // An integer with a value between [50-29000].
+ // An integer with a value between [50-30000].
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
@@ -10650,6 +10737,121 @@ func (s *DomainNameConfiguration) SetSecurityPolicy(v string) *DomainNameConfigu
return s
}
+type ExportApiInput struct {
+ _ struct{} `type:"structure"`
+
+ // ApiId is a required field
+ ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
+
+ ExportVersion *string `location:"querystring" locationName:"exportVersion" type:"string"`
+
+ IncludeExtensions *bool `location:"querystring" locationName:"includeExtensions" type:"boolean"`
+
+ // OutputType is a required field
+ OutputType *string `location:"querystring" locationName:"outputType" type:"string" required:"true"`
+
+ // Specification is a required field
+ Specification *string `location:"uri" locationName:"specification" type:"string" required:"true"`
+
+ StageName *string `location:"querystring" locationName:"stageName" type:"string"`
+}
+
+// String returns the string representation
+func (s ExportApiInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportApiInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExportApiInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExportApiInput"}
+ if s.ApiId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApiId"))
+ }
+ if s.ApiId != nil && len(*s.ApiId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
+ }
+ if s.OutputType == nil {
+ invalidParams.Add(request.NewErrParamRequired("OutputType"))
+ }
+ if s.Specification == nil {
+ invalidParams.Add(request.NewErrParamRequired("Specification"))
+ }
+ if s.Specification != nil && len(*s.Specification) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Specification", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetApiId sets the ApiId field's value.
+func (s *ExportApiInput) SetApiId(v string) *ExportApiInput {
+ s.ApiId = &v
+ return s
+}
+
+// SetExportVersion sets the ExportVersion field's value.
+func (s *ExportApiInput) SetExportVersion(v string) *ExportApiInput {
+ s.ExportVersion = &v
+ return s
+}
+
+// SetIncludeExtensions sets the IncludeExtensions field's value.
+func (s *ExportApiInput) SetIncludeExtensions(v bool) *ExportApiInput {
+ s.IncludeExtensions = &v
+ return s
+}
+
+// SetOutputType sets the OutputType field's value.
+func (s *ExportApiInput) SetOutputType(v string) *ExportApiInput {
+ s.OutputType = &v
+ return s
+}
+
+// SetSpecification sets the Specification field's value.
+func (s *ExportApiInput) SetSpecification(v string) *ExportApiInput {
+ s.Specification = &v
+ return s
+}
+
+// SetStageName sets the StageName field's value.
+func (s *ExportApiInput) SetStageName(v string) *ExportApiInput {
+ s.StageName = &v
+ return s
+}
+
+type ExportApiOutput struct {
+ _ struct{} `type:"structure" payload:"Body"`
+
+ // Represents an exported definition of an API in a particular output format,
+ // for example, YAML. The API is serialized to the requested specification,
+ // for example, OpenAPI 3.0.
+ Body []byte `locationName:"body" type:"blob"`
+}
+
+// String returns the string representation
+func (s ExportApiOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportApiOutput) GoString() string {
+ return s.String()
+}
+
+// SetBody sets the Body field's value.
+func (s *ExportApiOutput) SetBody(v []byte) *ExportApiOutput {
+ s.Body = v
+ return s
+}
+
type GetApiInput struct {
_ struct{} `type:"structure"`
@@ -11818,7 +12020,7 @@ type GetIntegrationOutput struct {
// for more information.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // An integer with a value between [50-29000].
+ // An integer with a value between [50-30000].
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
@@ -13900,7 +14102,7 @@ type Integration struct {
// Balancer listener, Network Load Balancer listener, or AWS Cloud Map service.
// If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances
// to identify resources. You can use query parameters to target specific resources.
- // To learn more, see DiscoverInstances (https://alpha-docs-aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html).
+ // To learn more, see DiscoverInstances (https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html).
// For private integrations, all resources must be owned by the same AWS account.
IntegrationUri *string `locationName:"integrationUri" type:"string"`
@@ -13946,9 +14148,9 @@ type Integration struct {
// WebSocket APIs.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds for WebSocket APIs. The default value is 5,000
- // milliseconds, or 5 seconds for HTTP APIs.
+ // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and
+ // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is
+ // 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
@@ -14274,8 +14476,8 @@ func (s *Model) SetSchema(v string) *Model {
// The resource specified in the request was not found. See the message field
// for more information.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Describes the error encountered.
Message_ *string `locationName:"message" type:"string"`
@@ -14296,17 +14498,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14314,22 +14516,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Validation constraints imposed on parameters of a request (path, query string,
@@ -15113,8 +15315,8 @@ func (s *TlsConfigInput) SetServerNameToVerify(v string) *TlsConfigInput {
// A limit has been exceeded. See the accompanying error message for details.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
LimitType *string `locationName:"limitType" type:"string"`
@@ -15133,17 +15335,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15151,22 +15353,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -16204,7 +16406,7 @@ type UpdateIntegrationInput struct {
// for more information.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // An integer with a value between [50-29000].
+ // An integer with a value between [50-30000].
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
@@ -16417,7 +16619,7 @@ type UpdateIntegrationOutput struct {
// for more information.
TemplateSelectionExpression *string `locationName:"templateSelectionExpression" type:"string"`
- // An integer with a value between [50-29000].
+ // An integer with a value between [50-30000].
TimeoutInMillis *int64 `locationName:"timeoutInMillis" min:"50" type:"integer"`
// The TLS configuration for a private integration. If you specify a TLS configuration,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go
index 78ddc344345..a4cce2c0b42 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go
@@ -69,8 +69,6 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling
// and Delete a Target Tracking Scaling Policy (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy)
// in the Application Auto Scaling User Guide.
//
-// To create a scaling policy or update an existing one, see PutScalingPolicy.
-//
// 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.
@@ -263,12 +261,12 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist
// DeregisterScalableTarget API operation for Application Auto Scaling.
//
-// Deregisters an Application Auto Scaling scalable target.
-//
-// Deregistering a scalable target deletes the scaling policies that are associated
-// with it.
+// Deregisters an Application Auto Scaling scalable target when you have finished
+// using it. To see which resources have been registered, use DescribeScalableTargets
+// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
//
-// To create a scalable target or update an existing one, see RegisterScalableTarget.
+// Deregistering a scalable target deletes the scaling policies and the scheduled
+// actions that are associated with it.
//
// 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
@@ -372,10 +370,6 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS
//
// You can filter the results using ResourceIds and ScalableDimension.
//
-// To create a scalable target or update an existing one, see RegisterScalableTarget.
-// If you are no longer using a scalable target, you can deregister it using
-// DeregisterScalableTarget.
-//
// 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.
@@ -527,11 +521,6 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ
//
// You can filter the results using ResourceId and ScalableDimension.
//
-// Scaling activities are triggered by CloudWatch alarms that are associated
-// with scaling policies. To view the scaling policies for a service namespace,
-// see DescribeScalingPolicies. To create a scaling policy or update an existing
-// one, see PutScalingPolicy.
-//
// 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.
@@ -683,8 +672,9 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS
//
// You can filter the results using ResourceId, ScalableDimension, and PolicyNames.
//
-// To create a scaling policy or update an existing one, see PutScalingPolicy.
-// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.
+// For more information, see Target Tracking Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
+// and Step Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
+// in the Application Auto Scaling 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
@@ -846,8 +836,8 @@ func (c *ApplicationAutoScaling) DescribeScheduledActionsRequest(input *Describe
// You can filter the results using the ResourceId, ScalableDimension, and ScheduledActionNames
// parameters.
//
-// To create a scheduled action or update an existing one, see PutScheduledAction.
-// If you are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
+// For more information, see Scheduled Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
+// in the Application Auto Scaling 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
@@ -989,19 +979,13 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy
// PutScalingPolicy API operation for Application Auto Scaling.
//
-// Creates or updates a policy for an Application Auto Scaling scalable target.
+// Creates or updates a scaling policy for an Application Auto Scaling scalable
+// target.
//
// Each scalable target is identified by a service namespace, resource ID, and
// scalable dimension. A scaling policy applies to the scalable target identified
// by those three attributes. You cannot create a scaling policy until you have
-// registered the resource as a scalable target using RegisterScalableTarget.
-//
-// To update a policy, specify its policy name and the parameters that you want
-// to change. Any parameters that you don't specify are not changed by this
-// update request.
-//
-// You can view the scaling policies for a service namespace using DescribeScalingPolicies.
-// If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.
+// registered the resource as a scalable target.
//
// Multiple scaling policies can be in force at the same time for the same scalable
// target. You can have one or more target tracking scaling policies, one or
@@ -1014,8 +998,13 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy
// uses the policy with the highest calculated capacity (200% of 10 = 20) and
// scales out to 30.
//
-// Learn more about how to work with scaling policies in the Application Auto
-// Scaling User Guide (https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html).
+// For more information, see Target Tracking Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
+// and Step Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
+// in the Application Auto Scaling User Guide.
+//
+// If a scalable target is deregistered, the scalable target is no longer available
+// to execute scaling policies. Any scaling policies that were specified for
+// the scalable target are deleted.
//
// 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
@@ -1128,18 +1117,21 @@ func (c *ApplicationAutoScaling) PutScheduledActionRequest(input *PutScheduledAc
// Each scalable target is identified by a service namespace, resource ID, and
// scalable dimension. A scheduled action applies to the scalable target identified
// by those three attributes. You cannot create a scheduled action until you
-// have registered the resource as a scalable target using RegisterScalableTarget.
+// have registered the resource as a scalable target.
//
-// To update an action, specify its name and the parameters that you want to
-// change. If you don't specify start and end times, the old values are deleted.
-// Any other parameters that you don't specify are not changed by this update
-// request.
+// When start and end times are specified with a recurring schedule using a
+// cron expression or rates, they form the boundaries of when the recurring
+// action starts and stops.
//
-// You can view the scheduled actions using DescribeScheduledActions. If you
-// are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
+// To update a scheduled action, specify the parameters that you want to change.
+// If you don't specify start and end times, the old values are deleted.
//
-// Learn more about how to work with scheduled actions in the Application Auto
-// Scaling User Guide (https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html).
+// For more information, see Scheduled Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
+// in the Application Auto Scaling User Guide.
+//
+// If a scalable target is deregistered, the scalable target is no longer available
+// to run scheduled actions. Any scheduled actions that were specified for the
+// scalable target are deleted.
//
// 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
@@ -1238,26 +1230,28 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc
// RegisterScalableTarget API operation for Application Auto Scaling.
//
-// Registers or updates a scalable target. A scalable target is a resource that
-// Application Auto Scaling can scale out and scale in. Scalable targets are
-// uniquely identified by the combination of resource ID, scalable dimension,
-// and namespace.
+// Registers or updates a scalable target.
//
-// When you register a new scalable target, you must specify values for minimum
-// and maximum capacity. Application Auto Scaling will not scale capacity to
-// values that are outside of this range.
+// A scalable target is a resource that Application Auto Scaling can scale out
+// and scale in. Scalable targets are uniquely identified by the combination
+// of resource ID, scalable dimension, and namespace.
//
-// To update a scalable target, specify the parameter that you want to change
-// as well as the following parameters that identify the scalable target: resource
-// ID, scalable dimension, and namespace. Any parameters that you don't specify
-// are not changed by this update request.
+// When you register a new scalable target, you must specify values for minimum
+// and maximum capacity. Application Auto Scaling scaling policies will not
+// scale capacity to values that are outside of this range.
//
// After you register a scalable target, you do not need to register it again
// to use other Application Auto Scaling operations. To see which resources
-// have been registered, use DescribeScalableTargets. You can also view the
-// scaling policies for a service namespace by using DescribeScalableTargets.
+// have been registered, use DescribeScalableTargets (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
+// You can also view the scaling policies for a service namespace by using DescribeScalableTargets
+// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
+// If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget
+// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html).
//
-// If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget.
+// To update a scalable target, specify the parameters that you want to change.
+// Include the parameters that identify the scalable target: resource ID, scalable
+// dimension, and namespace. Any parameters that you don't specify are not changed
+// by this update request.
//
// 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
@@ -1344,8 +1338,8 @@ func (s *Alarm) SetAlarmName(v string) *Alarm {
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
type ConcurrentUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1362,17 +1356,17 @@ func (s ConcurrentUpdateException) GoString() string {
func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error {
return &ConcurrentUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentUpdateException) Code() string {
+func (s *ConcurrentUpdateException) Code() string {
return "ConcurrentUpdateException"
}
// Message returns the exception's message.
-func (s ConcurrentUpdateException) Message() string {
+func (s *ConcurrentUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1380,27 +1374,31 @@ func (s ConcurrentUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentUpdateException) OrigErr() error {
+func (s *ConcurrentUpdateException) OrigErr() error {
return nil
}
-func (s ConcurrentUpdateException) Error() string {
+func (s *ConcurrentUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a CloudWatch metric of your choosing for a target tracking scaling
// policy to use with Application Auto Scaling.
//
+// For information about the available metrics for a service, see AWS Services
+// That Publish CloudWatch Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
+// in the Amazon CloudWatch User Guide.
+//
// To create your customized metric specification:
//
// * Add values for each required parameter from CloudWatch. You can use
@@ -1412,7 +1410,7 @@ func (s ConcurrentUpdateException) RequestID() string {
// * Choose a metric that changes proportionally with capacity. The value
// of the metric should increase or decrease in inverse proportion to the
// number of capacity units. That is, the value of the metric should decrease
-// when capacity increases.
+// when capacity increases, and increase when capacity decreases.
//
// For more information about CloudWatch, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).
type CustomizedMetricSpecification struct {
@@ -1560,6 +1558,9 @@ type DeleteScalingPolicyInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -1606,13 +1607,17 @@ type DeleteScalingPolicyInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -1737,6 +1742,9 @@ type DeleteScheduledActionInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -1783,6 +1791,12 @@ type DeleteScheduledActionInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
@@ -1791,10 +1805,8 @@ type DeleteScheduledActionInput struct {
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -1919,6 +1931,9 @@ type DeregisterScalableTargetInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -1965,13 +1980,17 @@ type DeregisterScalableTargetInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -2096,6 +2115,9 @@ type DescribeScalableTargetsInput struct {
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
+ //
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
ResourceIds []*string `type:"list"`
// The scalable dimension associated with the scalable target. This string consists
@@ -2141,12 +2163,16 @@ type DescribeScalableTargetsInput struct {
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
+ //
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -2293,6 +2319,9 @@ type DescribeScalingActivitiesInput struct {
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
+ //
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
@@ -2338,12 +2367,16 @@ type DescribeScalingActivitiesInput struct {
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
+ //
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -2496,6 +2529,9 @@ type DescribeScalingPoliciesInput struct {
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
+ //
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
@@ -2541,12 +2577,16 @@ type DescribeScalingPoliciesInput struct {
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
+ //
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -2702,6 +2742,9 @@ type DescribeScheduledActionsInput struct {
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
+ //
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
@@ -2747,15 +2790,19 @@ type DescribeScheduledActionsInput struct {
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
+ //
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The names of the scheduled actions to describe.
ScheduledActionNames []*string `type:"list"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -2863,8 +2910,8 @@ func (s *DescribeScheduledActionsOutput) SetScheduledActions(v []*ScheduledActio
// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// on your behalf.
type FailedResourceAccessException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2881,17 +2928,17 @@ func (s FailedResourceAccessException) GoString() string {
func newErrorFailedResourceAccessException(v protocol.ResponseMetadata) error {
return &FailedResourceAccessException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FailedResourceAccessException) Code() string {
+func (s *FailedResourceAccessException) Code() string {
return "FailedResourceAccessException"
}
// Message returns the exception's message.
-func (s FailedResourceAccessException) Message() string {
+func (s *FailedResourceAccessException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2899,28 +2946,28 @@ func (s FailedResourceAccessException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FailedResourceAccessException) OrigErr() error {
+func (s *FailedResourceAccessException) OrigErr() error {
return nil
}
-func (s FailedResourceAccessException) Error() string {
+func (s *FailedResourceAccessException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FailedResourceAccessException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FailedResourceAccessException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FailedResourceAccessException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FailedResourceAccessException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The service encountered an internal error.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2937,17 +2984,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2955,28 +3002,28 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The next token supplied was invalid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2993,17 +3040,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3011,29 +3058,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling Limits (https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html).
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3050,17 +3097,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3068,22 +3115,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the dimension names and values associated with a metric.
@@ -3145,8 +3192,8 @@ func (s *MetricDimension) SetValue(v string) *MetricDimension {
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
type ObjectNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3163,17 +3210,17 @@ func (s ObjectNotFoundException) GoString() string {
func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error {
return &ObjectNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ObjectNotFoundException) Code() string {
+func (s *ObjectNotFoundException) Code() string {
return "ObjectNotFoundException"
}
// Message returns the exception's message.
-func (s ObjectNotFoundException) Message() string {
+func (s *ObjectNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3181,26 +3228,32 @@ func (s ObjectNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ObjectNotFoundException) OrigErr() error {
+func (s *ObjectNotFoundException) OrigErr() error {
return nil
}
-func (s ObjectNotFoundException) Error() string {
+func (s *ObjectNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ObjectNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ObjectNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ObjectNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ObjectNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a predefined metric for a target tracking scaling policy to use
// with Application Auto Scaling.
+//
+// Only the AWS services that you're using send metrics to Amazon CloudWatch.
+// To determine whether a desired metric already exists by looking up its namespace
+// and dimension using the CloudWatch metrics dashboard in the console, follow
+// the procedure in Building Dashboards with CloudWatch (https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html)
+// in the Application Auto Scaling User Guide.
type PredefinedMetricSpecification struct {
_ struct{} `type:"structure"`
@@ -3278,7 +3331,8 @@ type PutScalingPolicyInput struct {
//
// TargetTrackingScaling—Not supported for Amazon EMR
//
- // StepScaling—Not supported for DynamoDB, Amazon Comprehend, or AWS Lambda
+ // StepScaling—Not supported for DynamoDB, Amazon Comprehend, Lambda, or Amazon
+ // Keyspaces for Apache Cassandra.
//
// For more information, see Target Tracking Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
// and Step Scaling Policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
@@ -3325,6 +3379,9 @@ type PutScalingPolicyInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -3371,13 +3428,17 @@ type PutScalingPolicyInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -3523,7 +3584,7 @@ func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput
type PutScheduledActionInput struct {
_ struct{} `type:"structure"`
- // The date and time for the scheduled action to end.
+ // The date and time for the recurring schedule to end.
EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scheduled action. This
@@ -3566,6 +3627,9 @@ type PutScheduledActionInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -3612,11 +3676,17 @@ type PutScheduledActionInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The new minimum and maximum capacity. You can set both values or just one.
- // During the scheduled time, if the current capacity is below the minimum capacity,
+ // At the scheduled time, if the current capacity is below the minimum capacity,
// Application Auto Scaling scales out to the minimum capacity. If the current
// capacity is above the maximum capacity, Application Auto Scaling scales in
// to the maximum capacity.
@@ -3630,29 +3700,31 @@ type PutScheduledActionInput struct {
//
// * Cron expressions - "cron(fields)"
//
- // At expressions are useful for one-time schedules. Specify the time, in UTC.
+ // At expressions are useful for one-time schedules. Specify the time in UTC.
//
// For rate expressions, value is a positive integer and unit is minute | minutes
// | hour | hours | day | days.
//
// For more information about cron expressions, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions)
// in the Amazon CloudWatch Events User Guide.
+ //
+ // For examples of using these expressions, see Scheduled Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
+ // in the Application Auto Scaling User Guide.
Schedule *string `min:"1" type:"string"`
- // The name of the scheduled action.
+ // The name of the scheduled action. This name must be unique among all other
+ // scheduled actions on the specified scalable target.
//
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
- // The date and time for the scheduled action to start.
+ // The date and time for this scheduled action to start.
StartTime *time.Time `type:"timestamp"`
}
@@ -3762,12 +3834,20 @@ func (s PutScheduledActionOutput) GoString() string {
type RegisterScalableTargetInput struct {
_ struct{} `type:"structure"`
- // The maximum value to scale to in response to a scale-out event. MaxCapacity
- // is required to register a scalable target.
+ // The maximum value that you plan to scale out to. When a scaling policy is
+ // in effect, Application Auto Scaling can scale out (expand) as needed to the
+ // maximum capacity limit in response to changing demand.
+ //
+ // This parameter is required if you are registering a scalable target.
MaxCapacity *int64 `type:"integer"`
- // The minimum value to scale to in response to a scale-in event. MinCapacity
- // is required to register a scalable target.
+ // The minimum value that you plan to scale in to. When a scaling policy is
+ // in effect, Application Auto Scaling can scale in (contract) as needed to
+ // the minimum capacity limit in response to changing demand.
+ //
+ // This parameter is required if you are registering a scalable target. For
+ // Lambda provisioned concurrency, the minimum value allowed is 0. For all other
+ // resources, the minimum value allowed is 1.
MinCapacity *int64 `type:"integer"`
// The identifier of the resource that is associated with the scalable target.
@@ -3810,16 +3890,19 @@ type RegisterScalableTargetInput struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
- // Application Auto Scaling creates a service-linked role that grants it permissions
- // to modify the scalable target on your behalf. For more information, see Service-Linked
- // Roles for Application Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-service-linked-roles.html).
+ // This parameter is required for services that do not support service-linked
+ // roles (such as Amazon EMR), and it must specify the ARN of an IAM role that
+ // allows Application Auto Scaling to modify the scalable target on your behalf.
//
- // For Amazon EMR, this parameter is required, and it must specify the ARN of
- // an IAM role that allows Application Auto Scaling to modify the scalable target
- // on your behalf.
+ // If the service supports service-linked roles, Application Auto Scaling uses
+ // a service-linked role, which it creates if it does not yet exist. For more
+ // information, see Application Auto Scaling IAM Roles (https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles).
RoleARN *string `min:"1" type:"string"`
// The scalable dimension associated with the scalable target. This string consists
@@ -3865,13 +3948,17 @@ type RegisterScalableTargetInput struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource. For a resource
+ // provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -4047,6 +4134,9 @@ type ScalableTarget struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -4099,13 +4189,16 @@ type ScalableTarget struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -4181,6 +4274,9 @@ type ScalableTargetAction struct {
MaxCapacity *int64 `type:"integer"`
// The minimum capacity.
+ //
+ // For Lambda provisioned concurrency, the minimum value allowed is 0. For all
+ // other resources, the minimum value allowed is 1.
MinCapacity *int64 `type:"integer"`
}
@@ -4271,6 +4367,9 @@ type ScalingActivity struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -4317,13 +4416,16 @@ type ScalingActivity struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -4485,6 +4587,9 @@ type ScalingPolicy struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -4531,13 +4636,16 @@ type ScalingPolicy struct {
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
+ //
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -4671,6 +4779,9 @@ type ScheduledAction struct {
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
+ // * Amazon Keyspaces table - The resource type is table and the unique identifier
+ // is the table name. Example: keyspace/mykeyspace/table/mytable.
+ //
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
@@ -4716,10 +4827,16 @@ type ScheduledAction struct {
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
+ //
+ // * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
+ // an Amazon Keyspaces table.
+ //
+ // * cassandra:table:WriteCapacityUnits - The provisioned write capacity
+ // for an Amazon Keyspaces table.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The new minimum and maximum capacity. You can set both values or just one.
- // During the scheduled time, if the current capacity is below the minimum capacity,
+ // At the scheduled time, if the current capacity is below the minimum capacity,
// Application Auto Scaling scales out to the minimum capacity. If the current
// capacity is above the maximum capacity, Application Auto Scaling scales in
// to the maximum capacity.
@@ -4733,7 +4850,7 @@ type ScheduledAction struct {
//
// * Cron expressions - "cron(fields)"
//
- // At expressions are useful for one-time schedules. Specify the time, in UTC.
+ // At expressions are useful for one-time schedules. Specify the time in UTC.
//
// For rate expressions, value is a positive integer and unit is minute | minutes
// | hour | hours | day | days.
@@ -4741,6 +4858,9 @@ type ScheduledAction struct {
// For more information about cron expressions, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions)
// in the Amazon CloudWatch Events User Guide.
//
+ // For examples of using these expressions, see Scheduled Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
+ // in the Application Auto Scaling User Guide.
+ //
// Schedule is a required field
Schedule *string `min:"1" type:"string" required:"true"`
@@ -4754,10 +4874,7 @@ type ScheduledAction struct {
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
- // The namespace of the AWS service that provides the resource or custom-resource
- // for a resource provided by your own application or service. For more information,
- // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces)
- // in the Amazon Web Services General Reference.
+ // The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
@@ -4836,9 +4953,10 @@ func (s *ScheduledAction) SetStartTime(v time.Time) *ScheduledAction {
return s
}
-// Represents a step adjustment for a StepScalingPolicyConfiguration. Describes
-// an adjustment based on the difference between the value of the aggregated
-// CloudWatch metric and the breach threshold that you've defined for the alarm.
+// Represents a step adjustment for a StepScalingPolicyConfiguration (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html).
+// Describes an adjustment based on the difference between the value of the
+// aggregated CloudWatch metric and the breach threshold that you've defined
+// for the alarm.
//
// For the following examples, suppose that you have an alarm with a breach
// threshold of 50:
@@ -4885,8 +5003,8 @@ type StepAdjustment struct {
MetricIntervalUpperBound *float64 `type:"double"`
// The amount by which to scale, based on the specified adjustment type. A positive
- // value adds to the current scalable dimension while a negative number removes
- // from the current scalable dimension.
+ // value adds to the current capacity while a negative number removes from the
+ // current capacity.
//
// ScalingAdjustment is a required field
ScalingAdjustment *int64 `type:"integer" required:"true"`
@@ -4938,8 +5056,10 @@ func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment {
type StepScalingPolicyConfiguration struct {
_ struct{} `type:"structure"`
- // Specifies whether the ScalingAdjustment value in a StepAdjustment is an absolute
- // number or a percentage of the current capacity.
+ // Specifies whether the ScalingAdjustment value in a StepAdjustment (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepAdjustment.html)
+ // is an absolute number or a percentage of the current capacity.
+ //
+ // AdjustmentType is required if you are adding a new step scaling policy configuration.
AdjustmentType *string `type:"string" enum:"AdjustmentType"`
// The amount of time, in seconds, after a scaling activity completes where
@@ -4947,7 +5067,7 @@ type StepScalingPolicyConfiguration struct {
// events.
//
// For scale-out policies, while the cooldown period is in effect, the capacity
- // that has been added by the previous scale-out event that initiated the cooldown
+ // that has been added by the previous scale-out action that initiated the cooldown
// is calculated as part of the desired capacity for the next scale out. The
// intention is to continuously (but not excessively) scale out. For example,
// an alarm triggers a step scaling policy to scale out an Amazon ECS service
@@ -4955,7 +5075,7 @@ type StepScalingPolicyConfiguration struct {
// of 5 minutes starts. During the cooldown period, if the alarm triggers the
// same policy again but at a more aggressive step adjustment to scale out the
// service by 3 tasks, the 2 tasks that were added in the previous scale-out
- // event are considered part of that capacity and only 1 additional task is
+ // action are considered part of that capacity and only 1 additional task is
// added to the desired count.
//
// For scale-in policies, the cooldown period is used to block subsequent scale-in
@@ -4963,6 +5083,35 @@ type StepScalingPolicyConfiguration struct {
// to protect your application's availability. However, if another alarm triggers
// a scale-out policy during the cooldown period after a scale-in, Application
// Auto Scaling scales out your scalable target immediately.
+ //
+ // Application Auto Scaling provides a default value of 300 for the following
+ // scalable targets:
+ //
+ // * ECS services
+ //
+ // * Spot Fleet requests
+ //
+ // * EMR clusters
+ //
+ // * AppStream 2.0 fleets
+ //
+ // * Aurora DB clusters
+ //
+ // * Amazon SageMaker endpoint variants
+ //
+ // * Custom resources
+ //
+ // For all other scalable targets, the default value is 0:
+ //
+ // * DynamoDB tables
+ //
+ // * DynamoDB global secondary indexes
+ //
+ // * Amazon Comprehend document classification endpoints
+ //
+ // * Lambda provisioned concurrency
+ //
+ // * Amazon Keyspaces tables
Cooldown *int64 `type:"integer"`
// The aggregation type for the CloudWatch metrics. Valid values are Minimum,
@@ -4970,19 +5119,21 @@ type StepScalingPolicyConfiguration struct {
// as Average.
MetricAggregationType *string `type:"string" enum:"MetricAggregationType"`
- // The minimum number to adjust your scalable dimension as a result of a scaling
- // activity. If the adjustment type is PercentChangeInCapacity, the scaling
- // policy changes the scalable dimension of the scalable target by this amount.
+ // The minimum value to scale by when scaling by percentages. For example, suppose
+ // that you create a step scaling policy to scale out an Amazon ECS service
+ // by 25 percent and you specify a MinAdjustmentMagnitude of 2. If the service
+ // has 4 tasks and the scaling policy is performed, 25 percent of 4 is 1. However,
+ // because you specified a MinAdjustmentMagnitude of 2, Application Auto Scaling
+ // scales out the service by 2 tasks.
//
- // For example, suppose that you create a step scaling policy to scale out an
- // Amazon ECS service by 25 percent and you specify a MinAdjustmentMagnitude
- // of 2. If the service has 4 tasks and the scaling policy is performed, 25
- // percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
- // of 2, Application Auto Scaling scales out the service by 2 tasks.
+ // Valid only if the adjustment type is PercentChangeInCapacity.
MinAdjustmentMagnitude *int64 `type:"integer"`
// A set of adjustments that enable you to scale based on the size of the alarm
// breach.
+ //
+ // At least one step adjustment is required if you are adding a new step scaling
+ // policy configuration.
StepAdjustments []*StepAdjustment `type:"list"`
}
@@ -5106,9 +5257,9 @@ type TargetTrackingScalingPolicyConfiguration struct {
// Indicates whether scale in by the target tracking scaling policy is disabled.
// If the value is true, scale in is disabled and the target tracking scaling
- // policy won't remove capacity from the scalable resource. Otherwise, scale
- // in is enabled and the target tracking scaling policy can remove capacity
- // from the scalable resource. The default value is false.
+ // policy won't remove capacity from the scalable target. Otherwise, scale in
+ // is enabled and the target tracking scaling policy can remove capacity from
+ // the scalable target. The default value is false.
DisableScaleIn *bool `type:"boolean"`
// A predefined metric. You can specify either a predefined metric or a customized
@@ -5123,15 +5274,73 @@ type TargetTrackingScalingPolicyConfiguration struct {
// application's availability. However, if another alarm triggers a scale-out
// policy during the cooldown period after a scale-in, Application Auto Scaling
// scales out your scalable target immediately.
+ //
+ // Application Auto Scaling provides a default value of 300 for the following
+ // scalable targets:
+ //
+ // * ECS services
+ //
+ // * Spot Fleet requests
+ //
+ // * EMR clusters
+ //
+ // * AppStream 2.0 fleets
+ //
+ // * Aurora DB clusters
+ //
+ // * Amazon SageMaker endpoint variants
+ //
+ // * Custom resources
+ //
+ // For all other scalable targets, the default value is 0:
+ //
+ // * DynamoDB tables
+ //
+ // * DynamoDB global secondary indexes
+ //
+ // * Amazon Comprehend document classification endpoints
+ //
+ // * Lambda provisioned concurrency
+ //
+ // * Amazon Keyspaces tables
ScaleInCooldown *int64 `type:"integer"`
// The amount of time, in seconds, after a scale-out activity completes before
// another scale-out activity can start.
//
// While the cooldown period is in effect, the capacity that has been added
- // by the previous scale-out event that initiated the cooldown is calculated
+ // by the previous scale-out action that initiated the cooldown is calculated
// as part of the desired capacity for the next scale out. The intention is
// to continuously (but not excessively) scale out.
+ //
+ // Application Auto Scaling provides a default value of 300 for the following
+ // scalable targets:
+ //
+ // * ECS services
+ //
+ // * Spot Fleet requests
+ //
+ // * EMR clusters
+ //
+ // * AppStream 2.0 fleets
+ //
+ // * Aurora DB clusters
+ //
+ // * Amazon SageMaker endpoint variants
+ //
+ // * Custom resources
+ //
+ // For all other scalable targets, the default value is 0:
+ //
+ // * DynamoDB tables
+ //
+ // * DynamoDB global secondary indexes
+ //
+ // * Amazon Comprehend document classification endpoints
+ //
+ // * Lambda provisioned concurrency
+ //
+ // * Amazon Keyspaces tables
ScaleOutCooldown *int64 `type:"integer"`
// The target value for the metric. The range is 8.515920e-109 to 1.174271e+108
@@ -5213,8 +5422,8 @@ func (s *TargetTrackingScalingPolicyConfiguration) SetTargetValue(v float64) *Ta
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5231,17 +5440,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5249,22 +5458,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
@@ -5348,6 +5557,12 @@ const (
// MetricTypeLambdaProvisionedConcurrencyUtilization is a MetricType enum value
MetricTypeLambdaProvisionedConcurrencyUtilization = "LambdaProvisionedConcurrencyUtilization"
+
+ // MetricTypeCassandraReadCapacityUtilization is a MetricType enum value
+ MetricTypeCassandraReadCapacityUtilization = "CassandraReadCapacityUtilization"
+
+ // MetricTypeCassandraWriteCapacityUtilization is a MetricType enum value
+ MetricTypeCassandraWriteCapacityUtilization = "CassandraWriteCapacityUtilization"
)
const (
@@ -5397,6 +5612,12 @@ const (
// ScalableDimensionLambdaFunctionProvisionedConcurrency is a ScalableDimension enum value
ScalableDimensionLambdaFunctionProvisionedConcurrency = "lambda:function:ProvisionedConcurrency"
+
+ // ScalableDimensionCassandraTableReadCapacityUnits is a ScalableDimension enum value
+ ScalableDimensionCassandraTableReadCapacityUnits = "cassandra:table:ReadCapacityUnits"
+
+ // ScalableDimensionCassandraTableWriteCapacityUnits is a ScalableDimension enum value
+ ScalableDimensionCassandraTableWriteCapacityUnits = "cassandra:table:WriteCapacityUnits"
)
const (
@@ -5449,4 +5670,7 @@ const (
// ServiceNamespaceLambda is a ServiceNamespace enum value
ServiceNamespaceLambda = "lambda"
+
+ // ServiceNamespaceCassandra is a ServiceNamespace enum value
+ ServiceNamespaceCassandra = "cassandra"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/doc.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/doc.go
index 4a1a89ee70a..88feeb8edb1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/doc.go
@@ -26,6 +26,8 @@
//
// * AWS Lambda function provisioned concurrency
//
+// * Amazon Keyspaces for Apache Cassandra tables
+//
// API Summary
//
// The Application Auto Scaling service API includes three key sets of actions:
@@ -41,10 +43,11 @@
// activity history.
//
// * Suspend and resume scaling - Temporarily suspend and later resume automatic
-// scaling by calling the RegisterScalableTarget action for any Application
-// Auto Scaling scalable target. You can suspend and resume, individually
-// or in combination, scale-out activities triggered by a scaling policy,
-// scale-in activities triggered by a scaling policy, and scheduled scaling.
+// scaling by calling the RegisterScalableTarget (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)
+// API action for any Application Auto Scaling scalable target. You can suspend
+// and resume (individually or in combination) scale-out activities that
+// are triggered by a scaling policy, scale-in activities that are triggered
+// by a scaling policy, and scheduled scaling.
//
// To learn more about Application Auto Scaling, including information about
// granting IAM users required permissions for Application Auto Scaling actions,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationinsights/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationinsights/api.go
index 94be2102e16..ba09f52950e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/applicationinsights/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/applicationinsights/api.go
@@ -2764,6 +2764,11 @@ func (s *ApplicationComponent) SetTier(v string) *ApplicationComponent {
type ApplicationInfo struct {
_ struct{} `type:"structure"`
+ // Indicates whether Application Insights can listen to CloudWatch events for
+ // the application resources, such as instance terminated, failed deployment,
+ // and others.
+ CWEMonitorEnabled *bool `type:"boolean"`
+
// The lifecycle of the application.
LifeCycle *string `type:"string"`
@@ -2797,6 +2802,12 @@ func (s ApplicationInfo) GoString() string {
return s.String()
}
+// SetCWEMonitorEnabled sets the CWEMonitorEnabled field's value.
+func (s *ApplicationInfo) SetCWEMonitorEnabled(v bool) *ApplicationInfo {
+ s.CWEMonitorEnabled = &v
+ return s
+}
+
// SetLifeCycle sets the LifeCycle field's value.
func (s *ApplicationInfo) SetLifeCycle(v string) *ApplicationInfo {
s.LifeCycle = &v
@@ -2829,8 +2840,8 @@ func (s *ApplicationInfo) SetResourceGroupName(v string) *ApplicationInfo {
// The request is not understood by the server.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2847,17 +2858,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2865,22 +2876,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The event information.
@@ -2957,6 +2968,11 @@ func (s *ConfigurationEvent) SetMonitoredResourceARN(v string) *ConfigurationEve
type CreateApplicationInput struct {
_ struct{} `type:"structure"`
+ // Indicates whether Application Insights can listen to CloudWatch events for
+ // the application resources, such as instance terminated, failed deployment,
+ // and others.
+ CWEMonitorEnabled *bool `type:"boolean"`
+
// When set to true, creates opsItems for any problems detected on an application.
OpsCenterEnabled *bool `type:"boolean"`
@@ -3014,6 +3030,12 @@ func (s *CreateApplicationInput) Validate() error {
return nil
}
+// SetCWEMonitorEnabled sets the CWEMonitorEnabled field's value.
+func (s *CreateApplicationInput) SetCWEMonitorEnabled(v bool) *CreateApplicationInput {
+ s.CWEMonitorEnabled = &v
+ return s
+}
+
// SetOpsCenterEnabled sets the OpsCenterEnabled field's value.
func (s *CreateApplicationInput) SetOpsCenterEnabled(v bool) *CreateApplicationInput {
s.OpsCenterEnabled = &v
@@ -4143,8 +4165,8 @@ func (s *DescribeProblemOutput) SetProblem(v *Problem) *DescribeProblemOutput {
// The server encountered an internal error and is unable to complete the request.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4161,17 +4183,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4179,22 +4201,22 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListApplicationsInput struct {
@@ -4960,9 +4982,55 @@ func (s *LogPattern) SetRank(v int64) *LogPattern {
type Observation struct {
_ struct{} `type:"structure"`
+ // The detail type of the CloudWatch Event-based observation, for example, EC2
+ // Instance State-change Notification.
+ CloudWatchEventDetailType *string `type:"string"`
+
+ // The ID of the CloudWatch Event-based observation related to the detected
+ // problem.
+ CloudWatchEventId *string `type:"string"`
+
+ // The source of the CloudWatch Event.
+ CloudWatchEventSource *string `type:"string" enum:"CloudWatchEventSource"`
+
+ // The CodeDeploy application to which the deployment belongs.
+ CodeDeployApplication *string `type:"string"`
+
+ // The deployment group to which the CodeDeploy deployment belongs.
+ CodeDeployDeploymentGroup *string `type:"string"`
+
+ // The deployment ID of the CodeDeploy-based observation related to the detected
+ // problem.
+ CodeDeployDeploymentId *string `type:"string"`
+
+ // The instance group to which the CodeDeploy instance belongs.
+ CodeDeployInstanceGroupId *string `type:"string"`
+
+ // The status of the CodeDeploy deployment, for example SUCCESS or FAILURE.
+ CodeDeployState *string `type:"string"`
+
+ // The state of the instance, such as STOPPING or TERMINATING.
+ Ec2State *string `type:"string"`
+
// The time when the observation ended, in epoch seconds.
EndTime *time.Time `type:"timestamp"`
+ // The Amazon Resource Name (ARN) of the AWS Health Event-based observation.
+ HealthEventArn *string `type:"string"`
+
+ // The description of the AWS Health event provided by the service, such as
+ // Amazon EC2.
+ HealthEventDescription *string `type:"string"`
+
+ // The category of the AWS Health event, such as issue.
+ HealthEventTypeCategory *string `type:"string"`
+
+ // The type of the AWS Health event, for example, AWS_EC2_POWER_CONNECTIVITY_ISSUE.
+ HealthEventTypeCode *string `type:"string"`
+
+ // The service to which the AWS Health Event belongs, such as EC2.
+ HealthService *string `type:"string"`
+
// The ID of the observation type.
Id *string `min:"38" type:"string"`
@@ -4999,6 +5067,27 @@ type Observation struct {
// The value of the source observation metric.
Value *float64 `type:"double"`
+
+ // The X-Ray request error percentage for this node.
+ XRayErrorPercent *int64 `type:"integer"`
+
+ // The X-Ray request fault percentage for this node.
+ XRayFaultPercent *int64 `type:"integer"`
+
+ // The name of the X-Ray node.
+ XRayNodeName *string `type:"string"`
+
+ // The type of the X-Ray node.
+ XRayNodeType *string `type:"string"`
+
+ // The X-Ray node request average latency for this node.
+ XRayRequestAverageLatency *int64 `type:"long"`
+
+ // The X-Ray request count for this node.
+ XRayRequestCount *int64 `type:"integer"`
+
+ // The X-Ray request throttle percentage for this node.
+ XRayThrottlePercent *int64 `type:"integer"`
}
// String returns the string representation
@@ -5011,12 +5100,96 @@ func (s Observation) GoString() string {
return s.String()
}
+// SetCloudWatchEventDetailType sets the CloudWatchEventDetailType field's value.
+func (s *Observation) SetCloudWatchEventDetailType(v string) *Observation {
+ s.CloudWatchEventDetailType = &v
+ return s
+}
+
+// SetCloudWatchEventId sets the CloudWatchEventId field's value.
+func (s *Observation) SetCloudWatchEventId(v string) *Observation {
+ s.CloudWatchEventId = &v
+ return s
+}
+
+// SetCloudWatchEventSource sets the CloudWatchEventSource field's value.
+func (s *Observation) SetCloudWatchEventSource(v string) *Observation {
+ s.CloudWatchEventSource = &v
+ return s
+}
+
+// SetCodeDeployApplication sets the CodeDeployApplication field's value.
+func (s *Observation) SetCodeDeployApplication(v string) *Observation {
+ s.CodeDeployApplication = &v
+ return s
+}
+
+// SetCodeDeployDeploymentGroup sets the CodeDeployDeploymentGroup field's value.
+func (s *Observation) SetCodeDeployDeploymentGroup(v string) *Observation {
+ s.CodeDeployDeploymentGroup = &v
+ return s
+}
+
+// SetCodeDeployDeploymentId sets the CodeDeployDeploymentId field's value.
+func (s *Observation) SetCodeDeployDeploymentId(v string) *Observation {
+ s.CodeDeployDeploymentId = &v
+ return s
+}
+
+// SetCodeDeployInstanceGroupId sets the CodeDeployInstanceGroupId field's value.
+func (s *Observation) SetCodeDeployInstanceGroupId(v string) *Observation {
+ s.CodeDeployInstanceGroupId = &v
+ return s
+}
+
+// SetCodeDeployState sets the CodeDeployState field's value.
+func (s *Observation) SetCodeDeployState(v string) *Observation {
+ s.CodeDeployState = &v
+ return s
+}
+
+// SetEc2State sets the Ec2State field's value.
+func (s *Observation) SetEc2State(v string) *Observation {
+ s.Ec2State = &v
+ return s
+}
+
// SetEndTime sets the EndTime field's value.
func (s *Observation) SetEndTime(v time.Time) *Observation {
s.EndTime = &v
return s
}
+// SetHealthEventArn sets the HealthEventArn field's value.
+func (s *Observation) SetHealthEventArn(v string) *Observation {
+ s.HealthEventArn = &v
+ return s
+}
+
+// SetHealthEventDescription sets the HealthEventDescription field's value.
+func (s *Observation) SetHealthEventDescription(v string) *Observation {
+ s.HealthEventDescription = &v
+ return s
+}
+
+// SetHealthEventTypeCategory sets the HealthEventTypeCategory field's value.
+func (s *Observation) SetHealthEventTypeCategory(v string) *Observation {
+ s.HealthEventTypeCategory = &v
+ return s
+}
+
+// SetHealthEventTypeCode sets the HealthEventTypeCode field's value.
+func (s *Observation) SetHealthEventTypeCode(v string) *Observation {
+ s.HealthEventTypeCode = &v
+ return s
+}
+
+// SetHealthService sets the HealthService field's value.
+func (s *Observation) SetHealthService(v string) *Observation {
+ s.HealthService = &v
+ return s
+}
+
// SetId sets the Id field's value.
func (s *Observation) SetId(v string) *Observation {
s.Id = &v
@@ -5089,6 +5262,48 @@ func (s *Observation) SetValue(v float64) *Observation {
return s
}
+// SetXRayErrorPercent sets the XRayErrorPercent field's value.
+func (s *Observation) SetXRayErrorPercent(v int64) *Observation {
+ s.XRayErrorPercent = &v
+ return s
+}
+
+// SetXRayFaultPercent sets the XRayFaultPercent field's value.
+func (s *Observation) SetXRayFaultPercent(v int64) *Observation {
+ s.XRayFaultPercent = &v
+ return s
+}
+
+// SetXRayNodeName sets the XRayNodeName field's value.
+func (s *Observation) SetXRayNodeName(v string) *Observation {
+ s.XRayNodeName = &v
+ return s
+}
+
+// SetXRayNodeType sets the XRayNodeType field's value.
+func (s *Observation) SetXRayNodeType(v string) *Observation {
+ s.XRayNodeType = &v
+ return s
+}
+
+// SetXRayRequestAverageLatency sets the XRayRequestAverageLatency field's value.
+func (s *Observation) SetXRayRequestAverageLatency(v int64) *Observation {
+ s.XRayRequestAverageLatency = &v
+ return s
+}
+
+// SetXRayRequestCount sets the XRayRequestCount field's value.
+func (s *Observation) SetXRayRequestCount(v int64) *Observation {
+ s.XRayRequestCount = &v
+ return s
+}
+
+// SetXRayThrottlePercent sets the XRayThrottlePercent field's value.
+func (s *Observation) SetXRayThrottlePercent(v int64) *Observation {
+ s.XRayThrottlePercent = &v
+ return s
+}
+
// Describes a problem that is detected by correlating observations.
type Problem struct {
_ struct{} `type:"structure"`
@@ -5220,8 +5435,8 @@ func (s *RelatedObservations) SetObservationList(v []*Observation) *RelatedObser
// The resource is already created or in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5238,17 +5453,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5256,28 +5471,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource does not exist in the customer account.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5294,17 +5509,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5312,22 +5527,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that defines the tags associated with an application. A tag is
@@ -5494,8 +5709,8 @@ func (s TagResourceOutput) GoString() string {
// Tags are already registered for the specified application ARN.
type TagsAlreadyExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5512,17 +5727,17 @@ func (s TagsAlreadyExistException) GoString() string {
func newErrorTagsAlreadyExistException(v protocol.ResponseMetadata) error {
return &TagsAlreadyExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagsAlreadyExistException) Code() string {
+func (s *TagsAlreadyExistException) Code() string {
return "TagsAlreadyExistException"
}
// Message returns the exception's message.
-func (s TagsAlreadyExistException) Message() string {
+func (s *TagsAlreadyExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5530,29 +5745,29 @@ func (s TagsAlreadyExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagsAlreadyExistException) OrigErr() error {
+func (s *TagsAlreadyExistException) OrigErr() error {
return nil
}
-func (s TagsAlreadyExistException) Error() string {
+func (s *TagsAlreadyExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagsAlreadyExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagsAlreadyExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagsAlreadyExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagsAlreadyExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of the provided tags is beyond the limit, or the number of total
// tags you are trying to attach to the specified resource exceeds the limit.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -5572,17 +5787,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5590,22 +5805,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -5685,6 +5900,11 @@ func (s UntagResourceOutput) GoString() string {
type UpdateApplicationInput struct {
_ struct{} `type:"structure"`
+ // Indicates whether Application Insights can listen to CloudWatch events for
+ // the application resources, such as instance terminated, failed deployment,
+ // and others.
+ CWEMonitorEnabled *bool `type:"boolean"`
+
// When set to true, creates opsItems for any problems detected on an application.
OpsCenterEnabled *bool `type:"boolean"`
@@ -5730,6 +5950,12 @@ func (s *UpdateApplicationInput) Validate() error {
return nil
}
+// SetCWEMonitorEnabled sets the CWEMonitorEnabled field's value.
+func (s *UpdateApplicationInput) SetCWEMonitorEnabled(v bool) *UpdateApplicationInput {
+ s.CWEMonitorEnabled = &v
+ return s
+}
+
// SetOpsCenterEnabled sets the OpsCenterEnabled field's value.
func (s *UpdateApplicationInput) SetOpsCenterEnabled(v bool) *UpdateApplicationInput {
s.OpsCenterEnabled = &v
@@ -6102,8 +6328,8 @@ func (s *UpdateLogPatternOutput) SetResourceGroupName(v string) *UpdateLogPatter
// The parameter is not valid.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6120,17 +6346,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6138,24 +6364,35 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
+const (
+ // CloudWatchEventSourceEc2 is a CloudWatchEventSource enum value
+ CloudWatchEventSourceEc2 = "EC2"
+
+ // CloudWatchEventSourceCodeDeploy is a CloudWatchEventSource enum value
+ CloudWatchEventSourceCodeDeploy = "CODE_DEPLOY"
+
+ // CloudWatchEventSourceHealth is a CloudWatchEventSource enum value
+ CloudWatchEventSourceHealth = "HEALTH"
+)
+
const (
// ConfigurationEventResourceTypeCloudwatchAlarm is a ConfigurationEventResourceType enum value
ConfigurationEventResourceTypeCloudwatchAlarm = "CLOUDWATCH_ALARM"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go
index 89e83d2a16b..18cb1a9452a 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go
@@ -3510,8 +3510,8 @@ func (s *BackendDefaults) SetClientPolicy(v *ClientPolicy) *BackendDefaults {
// The request syntax was malformed. Check your request syntax and try again.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3528,17 +3528,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3546,22 +3546,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents a client policy.
@@ -3667,8 +3667,8 @@ func (s *ClientPolicyTls) SetValidation(v *TlsValidationContext) *ClientPolicyTl
// call with different specifications. Try the request again with a new client
// token.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3685,17 +3685,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3703,22 +3703,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateMeshInput struct {
@@ -5414,8 +5414,8 @@ func (s *FileAccessLog) SetPath(v string) *FileAccessLog {
// You don't have permissions to perform this action.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5432,17 +5432,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5450,22 +5450,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents a retry policy. Specify at least one value for
@@ -6445,8 +6445,8 @@ func (s *HttpRouteMatch) SetScheme(v string) *HttpRouteMatch {
// The request processing has failed because of an unknown error, exception,
// or failure.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6463,17 +6463,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6481,30 +6481,30 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have exceeded a service limit for your account. For more information,
// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html)
// in the AWS App Mesh User Guide.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6521,17 +6521,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6539,22 +6539,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListMeshesInput struct {
@@ -7674,8 +7674,8 @@ func (s *MeshStatus) SetStatus(v string) *MeshStatus {
// The specified resource doesn't exist. Check your request syntax and try again.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7692,17 +7692,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7710,22 +7710,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents a port mapping.
@@ -7783,8 +7783,8 @@ func (s *PortMapping) SetProtocol(v string) *PortMapping {
// You can't delete the specified resource because it's in use or required by
// another resource.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7801,17 +7801,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7819,22 +7819,22 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents metadata for a resource.
@@ -8230,8 +8230,8 @@ func (s *ServiceDiscovery) SetDns(v *DnsServiceDiscovery) *ServiceDiscovery {
// The request has failed due to a temporary failure of the service.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8248,17 +8248,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8266,22 +8266,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Optional metadata that you apply to a resource to assist with categorization
@@ -8688,8 +8688,8 @@ func (s *TlsValidationContextTrust) SetFile(v *TlsValidationContextFileTrust) *T
// for your account. For best results, use an increasing or variable sleep interval
// between requests.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8706,17 +8706,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8724,30 +8724,30 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request exceeds the maximum allowed number of tags allowed per resource.
// The current limit is 50 user tags per resource. You must reduce the number
// of tags in the request. None of the tags in this request were applied.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8764,17 +8764,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8782,22 +8782,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go
index 18f4e0a360e..7d4306f2f07 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go
@@ -4776,8 +4776,8 @@ func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus {
// An API error occurred. Wait a few minutes and try again.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -4795,17 +4795,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4813,22 +4813,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CopyImageInput struct {
@@ -8839,8 +8839,8 @@ func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason {
// The image does not support storage connectors.
type IncompatibleImageException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -8858,17 +8858,17 @@ func (s IncompatibleImageException) GoString() string {
func newErrorIncompatibleImageException(v protocol.ResponseMetadata) error {
return &IncompatibleImageException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncompatibleImageException) Code() string {
+func (s *IncompatibleImageException) Code() string {
return "IncompatibleImageException"
}
// Message returns the exception's message.
-func (s IncompatibleImageException) Message() string {
+func (s *IncompatibleImageException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8876,29 +8876,29 @@ func (s IncompatibleImageException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncompatibleImageException) OrigErr() error {
+func (s *IncompatibleImageException) OrigErr() error {
return nil
}
-func (s IncompatibleImageException) Error() string {
+func (s *IncompatibleImageException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncompatibleImageException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncompatibleImageException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncompatibleImageException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncompatibleImageException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource cannot be created because your AWS account is suspended. For
// assistance, contact AWS Support.
type InvalidAccountStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -8916,17 +8916,17 @@ func (s InvalidAccountStatusException) GoString() string {
func newErrorInvalidAccountStatusException(v protocol.ResponseMetadata) error {
return &InvalidAccountStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAccountStatusException) Code() string {
+func (s *InvalidAccountStatusException) Code() string {
return "InvalidAccountStatusException"
}
// Message returns the exception's message.
-func (s InvalidAccountStatusException) Message() string {
+func (s *InvalidAccountStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8934,28 +8934,28 @@ func (s InvalidAccountStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAccountStatusException) OrigErr() error {
+func (s *InvalidAccountStatusException) OrigErr() error {
return nil
}
-func (s InvalidAccountStatusException) Error() string {
+func (s *InvalidAccountStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAccountStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAccountStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAccountStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAccountStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Indicates an incorrect combination of parameters, or a missing parameter.
type InvalidParameterCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -8973,17 +8973,17 @@ func (s InvalidParameterCombinationException) GoString() string {
func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error {
return &InvalidParameterCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterCombinationException) Code() string {
+func (s *InvalidParameterCombinationException) Code() string {
return "InvalidParameterCombinationException"
}
// Message returns the exception's message.
-func (s InvalidParameterCombinationException) Message() string {
+func (s *InvalidParameterCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8991,28 +8991,28 @@ func (s InvalidParameterCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterCombinationException) OrigErr() error {
+func (s *InvalidParameterCombinationException) OrigErr() error {
return nil
}
-func (s InvalidParameterCombinationException) Error() string {
+func (s *InvalidParameterCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified role is invalid.
type InvalidRoleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9030,17 +9030,17 @@ func (s InvalidRoleException) GoString() string {
func newErrorInvalidRoleException(v protocol.ResponseMetadata) error {
return &InvalidRoleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRoleException) Code() string {
+func (s *InvalidRoleException) Code() string {
return "InvalidRoleException"
}
// Message returns the exception's message.
-func (s InvalidRoleException) Message() string {
+func (s *InvalidRoleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9048,22 +9048,22 @@ func (s InvalidRoleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRoleException) OrigErr() error {
+func (s *InvalidRoleException) OrigErr() error {
return nil
}
-func (s InvalidRoleException) Error() string {
+func (s *InvalidRoleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRoleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRoleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRoleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRoleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the error that is returned when a usage report can't be generated.
@@ -9103,8 +9103,8 @@ func (s *LastReportGenerationExecutionError) SetErrorMessage(v string) *LastRepo
// The requested limit exceeds the permitted limit for an account.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9122,17 +9122,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9140,22 +9140,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAssociatedFleetsInput struct {
@@ -9431,8 +9431,8 @@ func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAc
// The attempted operation is not permitted.
type OperationNotPermittedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9450,17 +9450,17 @@ func (s OperationNotPermittedException) GoString() string {
func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error {
return &OperationNotPermittedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotPermittedException) Code() string {
+func (s *OperationNotPermittedException) Code() string {
return "OperationNotPermittedException"
}
// Message returns the exception's message.
-func (s OperationNotPermittedException) Message() string {
+func (s *OperationNotPermittedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9468,28 +9468,28 @@ func (s OperationNotPermittedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotPermittedException) OrigErr() error {
+func (s *OperationNotPermittedException) OrigErr() error {
return nil
}
-func (s OperationNotPermittedException) Error() string {
+func (s *OperationNotPermittedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotPermittedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotPermittedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotPermittedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotPermittedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9507,17 +9507,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9525,22 +9525,22 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a resource error.
@@ -9587,8 +9587,8 @@ func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError {
// The specified resource is in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9606,17 +9606,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9624,28 +9624,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource exists and is not in use, but isn't available.
type ResourceNotAvailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9663,17 +9663,17 @@ func (s ResourceNotAvailableException) GoString() string {
func newErrorResourceNotAvailableException(v protocol.ResponseMetadata) error {
return &ResourceNotAvailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotAvailableException) Code() string {
+func (s *ResourceNotAvailableException) Code() string {
return "ResourceNotAvailableException"
}
// Message returns the exception's message.
-func (s ResourceNotAvailableException) Message() string {
+func (s *ResourceNotAvailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9681,28 +9681,28 @@ func (s ResourceNotAvailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotAvailableException) OrigErr() error {
+func (s *ResourceNotAvailableException) OrigErr() error {
return nil
}
-func (s ResourceNotAvailableException) Error() string {
+func (s *ResourceNotAvailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotAvailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotAvailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotAvailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotAvailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message in the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9720,17 +9720,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9738,22 +9738,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the credentials for the service account used by the fleet or image
diff --git a/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go b/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go
index 38075bece57..8215648e8d8 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go
@@ -3838,8 +3838,8 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput,
// You do not have access to perform this operation on this resource.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3856,17 +3856,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3874,22 +3874,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an additional authentication provider.
@@ -4136,8 +4136,8 @@ func (s *ApiKey) SetId(v string) *ApiKey {
// The API key exceeded a limit. Try your request again.
type ApiKeyLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4154,17 +4154,17 @@ func (s ApiKeyLimitExceededException) GoString() string {
func newErrorApiKeyLimitExceededException(v protocol.ResponseMetadata) error {
return &ApiKeyLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApiKeyLimitExceededException) Code() string {
+func (s *ApiKeyLimitExceededException) Code() string {
return "ApiKeyLimitExceededException"
}
// Message returns the exception's message.
-func (s ApiKeyLimitExceededException) Message() string {
+func (s *ApiKeyLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4172,29 +4172,29 @@ func (s ApiKeyLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApiKeyLimitExceededException) OrigErr() error {
+func (s *ApiKeyLimitExceededException) OrigErr() error {
return nil
}
-func (s ApiKeyLimitExceededException) Error() string {
+func (s *ApiKeyLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApiKeyLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApiKeyLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApiKeyLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApiKeyLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The API key expiration must be set to a value between 1 and 365 days from
// creation (for CreateApiKey) or from update (for UpdateApiKey).
type ApiKeyValidityOutOfBoundsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4211,17 +4211,17 @@ func (s ApiKeyValidityOutOfBoundsException) GoString() string {
func newErrorApiKeyValidityOutOfBoundsException(v protocol.ResponseMetadata) error {
return &ApiKeyValidityOutOfBoundsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApiKeyValidityOutOfBoundsException) Code() string {
+func (s *ApiKeyValidityOutOfBoundsException) Code() string {
return "ApiKeyValidityOutOfBoundsException"
}
// Message returns the exception's message.
-func (s ApiKeyValidityOutOfBoundsException) Message() string {
+func (s *ApiKeyValidityOutOfBoundsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4229,28 +4229,28 @@ func (s ApiKeyValidityOutOfBoundsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApiKeyValidityOutOfBoundsException) OrigErr() error {
+func (s *ApiKeyValidityOutOfBoundsException) OrigErr() error {
return nil
}
-func (s ApiKeyValidityOutOfBoundsException) Error() string {
+func (s *ApiKeyValidityOutOfBoundsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApiKeyValidityOutOfBoundsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApiKeyValidityOutOfBoundsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApiKeyValidityOutOfBoundsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApiKeyValidityOutOfBoundsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The GraphQL API exceeded a limit. Try your request again.
type ApiLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4267,17 +4267,17 @@ func (s ApiLimitExceededException) GoString() string {
func newErrorApiLimitExceededException(v protocol.ResponseMetadata) error {
return &ApiLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApiLimitExceededException) Code() string {
+func (s *ApiLimitExceededException) Code() string {
return "ApiLimitExceededException"
}
// Message returns the exception's message.
-func (s ApiLimitExceededException) Message() string {
+func (s *ApiLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4285,22 +4285,22 @@ func (s ApiLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApiLimitExceededException) OrigErr() error {
+func (s *ApiLimitExceededException) OrigErr() error {
return nil
}
-func (s ApiLimitExceededException) Error() string {
+func (s *ApiLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApiLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApiLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApiLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApiLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The authorization config in case the HTTP endpoint requires authorization.
@@ -4389,8 +4389,8 @@ func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig {
// The request is not well formed. For example, a value is invalid or a required
// field is missing. Check the field values, and then try again.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4407,17 +4407,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4425,22 +4425,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The caching configuration for a resolver that has caching enabled.
@@ -4547,8 +4547,8 @@ func (s *CognitoUserPoolConfig) SetUserPoolId(v string) *CognitoUserPoolConfig {
// Another modification is in progress at this time and it must complete before
// you can make your change.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4565,17 +4565,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4583,22 +4583,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a CreateApiCache operation.
@@ -7186,8 +7186,8 @@ func (s *GetTypeOutput) SetType(v *Type) *GetTypeOutput {
// The GraphQL schema is not valid.
type GraphQLSchemaException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7204,17 +7204,17 @@ func (s GraphQLSchemaException) GoString() string {
func newErrorGraphQLSchemaException(v protocol.ResponseMetadata) error {
return &GraphQLSchemaException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GraphQLSchemaException) Code() string {
+func (s *GraphQLSchemaException) Code() string {
return "GraphQLSchemaException"
}
// Message returns the exception's message.
-func (s GraphQLSchemaException) Message() string {
+func (s *GraphQLSchemaException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7222,22 +7222,22 @@ func (s GraphQLSchemaException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GraphQLSchemaException) OrigErr() error {
+func (s *GraphQLSchemaException) OrigErr() error {
return nil
}
-func (s GraphQLSchemaException) Error() string {
+func (s *GraphQLSchemaException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GraphQLSchemaException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GraphQLSchemaException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GraphQLSchemaException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GraphQLSchemaException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a GraphQL API.
@@ -7407,8 +7407,8 @@ func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig {
// An internal AWS AppSync error occurred. Try your request again.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7425,17 +7425,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7443,22 +7443,22 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The LambdaConflictHandlerConfig object when configuring LAMBDA as the Conflict
@@ -7527,8 +7527,8 @@ func (s *LambdaDataSourceConfig) SetLambdaFunctionArn(v string) *LambdaDataSourc
// The request exceeded a limit. Try your request again.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7545,17 +7545,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7563,22 +7563,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListApiKeysInput struct {
@@ -8424,8 +8424,8 @@ func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig {
// The resource specified in the request was not found. Check the resource,
// and then try again.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8442,17 +8442,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8460,22 +8460,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an OpenID Connect configuration.
@@ -9053,8 +9053,8 @@ func (s *Type) SetName(v string) *Type {
// You are not authorized to perform this operation.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9071,17 +9071,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9089,22 +9089,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/athena/api.go b/vendor/github.com/aws/aws-sdk-go/service/athena/api.go
index e1931f6e160..ca2043b0144 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/athena/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/athena/api.go
@@ -1006,7 +1006,8 @@ func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) (req *req
// ListNamedQueries API operation for Amazon Athena.
//
// Provides a list of available query IDs only for queries saved in the specified
-// workgroup. Requires that you have access to the workgroup.
+// workgroup. Requires that you have access to the workgroup. If a workgroup
+// is not specified, lists the saved queries for the primary workgroup.
//
// For code samples using the AWS SDK for Java, see Examples and Code Samples
// (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon
@@ -1153,8 +1154,9 @@ func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) (re
// ListQueryExecutions API operation for Amazon Athena.
//
// Provides a list of available query execution IDs for the queries in the specified
-// workgroup. Requires you to have access to the workgroup in which the queries
-// ran.
+// workgroup. If a workgroup is not specified, returns a list of query execution
+// IDs for the primary workgroup. Requires you to have access to the workgroup
+// in which the queries ran.
//
// For code samples using the AWS SDK for Java, see Examples and Code Samples
// (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon
@@ -2901,8 +2903,8 @@ func (s *GetWorkGroupOutput) SetWorkGroup(v *WorkGroup) *GetWorkGroupOutput {
// Indicates a platform issue, which may be due to a transient condition or
// outage.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2919,17 +2921,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2937,29 +2939,29 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error code returned when the query execution failed to process, or when
// the processing request for the named query failed.
@@ -2980,17 +2982,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2998,22 +3000,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListNamedQueriesInput struct {
@@ -3026,7 +3028,9 @@ type ListNamedQueriesInput struct {
// was truncated.
NextToken *string `min:"1" type:"string"`
- // The name of the workgroup from which the named queries are being returned.
+ // The name of the workgroup from which the named queries are returned. If a
+ // workgroup is not specified, the saved queries for the primary workgroup are
+ // returned.
WorkGroup *string `type:"string"`
}
@@ -3113,7 +3117,9 @@ type ListQueryExecutionsInput struct {
// was truncated.
NextToken *string `min:"1" type:"string"`
- // The name of the workgroup from which queries are being returned.
+ // The name of the workgroup from which queries are returned. If a workgroup
+ // is not specified, a list of available query execution IDs for the queries
+ // in the primary workgroup is returned.
WorkGroup *string `type:"string"`
}
@@ -3473,8 +3479,9 @@ type QueryExecution struct {
// and DML, such as SHOW CREATE TABLE, or DESCRIBE
.
StatementType *string `type:"string" enum:"StatementType"`
- // The amount of data scanned during the query execution and the amount of time
- // that it took to execute, and the type of statement that was run.
+ // Query execution statistics, such as the amount of data scanned, the amount
+ // of time that the query took to process, and the type of statement that was
+ // run.
Statistics *QueryExecutionStatistics `type:"structure"`
// The completion date, current state, submission time, and state change reason
@@ -3680,12 +3687,12 @@ type QueryExecutionStatus struct {
// The date and time that the query completed.
CompletionDateTime *time.Time `type:"timestamp"`
- // The state of query execution. QUEUED state is listed but is not used by Athena
- // and is reserved for future use. RUNNING indicates that the query has been
- // submitted to the service, and Athena will execute the query as soon as resources
- // are available. SUCCEEDED indicates that the query completed without errors.
- // FAILED indicates that the query experienced an error and did not complete
- // processing. CANCELLED indicates that a user input interrupted query execution.
+ // The state of query execution. QUEUED indicates that the query has been submitted
+ // to the service, and Athena will execute the query as soon as resources are
+ // available. RUNNING indicates that the query is in execution phase. SUCCEEDED
+ // indicates that the query completed without errors. FAILED indicates that
+ // the query experienced an error and did not complete processing. CANCELLED
+ // indicates that a user input interrupted query execution.
State *string `type:"string" enum:"QueryExecutionState"`
// Further detail about the status of the query.
@@ -3731,8 +3738,8 @@ func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutio
// A resource, such as a workgroup, was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3751,17 +3758,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3769,22 +3776,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The location in Amazon S3 where query results are stored and the encryption
@@ -4324,8 +4331,8 @@ func (s TagResourceOutput) GoString() string {
// Indicates that the request was throttled.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -4346,17 +4353,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4364,22 +4371,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a named query ID that could not be processed.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go
index 017b19196dd..128cfeb8f35 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go
@@ -612,8 +612,8 @@ func (s *ApplicationSource) SetTagFilters(v []*TagFilter) *ApplicationSource {
// Concurrent updates caused an exception, for example, if you request an update
// to a scaling plan that already has a pending update.
type ConcurrentUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -630,17 +630,17 @@ func (s ConcurrentUpdateException) GoString() string {
func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error {
return &ConcurrentUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentUpdateException) Code() string {
+func (s *ConcurrentUpdateException) Code() string {
return "ConcurrentUpdateException"
}
// Message returns the exception's message.
-func (s ConcurrentUpdateException) Message() string {
+func (s *ConcurrentUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -648,22 +648,22 @@ func (s ConcurrentUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentUpdateException) OrigErr() error {
+func (s *ConcurrentUpdateException) OrigErr() error {
return nil
}
-func (s ConcurrentUpdateException) Error() string {
+func (s *ConcurrentUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateScalingPlanInput struct {
@@ -1539,8 +1539,8 @@ func (s *GetScalingPlanResourceForecastDataOutput) SetDatapoints(v []*Datapoint)
// The service encountered an internal error.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1557,17 +1557,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1575,28 +1575,28 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The token provided is not valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1613,17 +1613,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1631,29 +1631,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your account exceeded a limit. This exception is thrown when a per-account
// resource limit is exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1670,17 +1670,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1688,22 +1688,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a dimension for a customized metric.
@@ -1761,8 +1761,8 @@ func (s *MetricDimension) SetValue(v string) *MetricDimension {
// The specified object could not be found.
type ObjectNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1779,17 +1779,17 @@ func (s ObjectNotFoundException) GoString() string {
func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error {
return &ObjectNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ObjectNotFoundException) Code() string {
+func (s *ObjectNotFoundException) Code() string {
return "ObjectNotFoundException"
}
// Message returns the exception's message.
-func (s ObjectNotFoundException) Message() string {
+func (s *ObjectNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1797,22 +1797,22 @@ func (s ObjectNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ObjectNotFoundException) OrigErr() error {
+func (s *ObjectNotFoundException) OrigErr() error {
return nil
}
-func (s ObjectNotFoundException) Error() string {
+func (s *ObjectNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ObjectNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ObjectNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ObjectNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ObjectNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a predefined metric that can be used for predictive scaling.
@@ -2878,8 +2878,8 @@ func (s UpdateScalingPlanOutput) GoString() string {
// An exception was thrown for a validation issue. Review the parameters provided.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2896,17 +2896,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2914,22 +2914,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/backup/api.go b/vendor/github.com/aws/aws-sdk-go/service/backup/api.go
index 827543e759e..8804a28f688 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/backup/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/backup/api.go
@@ -4917,8 +4917,8 @@ func (c *Backup) UpdateRecoveryPointLifecycleWithContext(ctx aws.Context, input
// The required resource already exists.
type AlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Arn *string `type:"string"`
@@ -4945,17 +4945,17 @@ func (s AlreadyExistsException) GoString() string {
func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error {
return &AlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyExistsException) Code() string {
+func (s *AlreadyExistsException) Code() string {
return "AlreadyExistsException"
}
// Message returns the exception's message.
-func (s AlreadyExistsException) Message() string {
+func (s *AlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4963,22 +4963,22 @@ func (s AlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyExistsException) OrigErr() error {
+func (s *AlreadyExistsException) OrigErr() error {
return nil
}
-func (s AlreadyExistsException) Error() string {
+func (s *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify
@@ -6092,8 +6092,8 @@ func (s DeleteRecoveryPointOutput) GoString() string {
// A dependent AWS service or resource returned an error to the AWS Backup service,
// and the action cannot be completed.
type DependencyFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -6116,17 +6116,17 @@ func (s DependencyFailureException) GoString() string {
func newErrorDependencyFailureException(v protocol.ResponseMetadata) error {
return &DependencyFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DependencyFailureException) Code() string {
+func (s *DependencyFailureException) Code() string {
return "DependencyFailureException"
}
// Message returns the exception's message.
-func (s DependencyFailureException) Message() string {
+func (s *DependencyFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6134,22 +6134,22 @@ func (s DependencyFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DependencyFailureException) OrigErr() error {
+func (s *DependencyFailureException) OrigErr() error {
return nil
}
-func (s DependencyFailureException) Error() string {
+func (s *DependencyFailureException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DependencyFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DependencyFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DependencyFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DependencyFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DescribeBackupJobInput struct {
@@ -7900,8 +7900,8 @@ func (s *GetSupportedResourceTypesOutput) SetResourceTypes(v []*string) *GetSupp
// Indicates that something is wrong with a parameter's value. For example,
// the value is out of range.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -7924,17 +7924,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7942,29 +7942,29 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Indicates that something is wrong with the input to the request. For example,
// a parameter is of the wrong type.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -7987,17 +7987,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8005,22 +8005,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains detailed information about a backup job.
@@ -8263,8 +8263,8 @@ func (s *Lifecycle) SetMoveToColdStorageAfterDays(v int64) *Lifecycle {
// A limit in the request has been exceeded; for example, a maximum number of
// items allowed in a request.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -8287,17 +8287,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8305,22 +8305,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListBackupJobsInput struct {
@@ -9615,8 +9615,8 @@ func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput {
// Indicates that a required parameter is missing.
type MissingParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -9639,17 +9639,17 @@ func (s MissingParameterValueException) GoString() string {
func newErrorMissingParameterValueException(v protocol.ResponseMetadata) error {
return &MissingParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingParameterValueException) Code() string {
+func (s *MissingParameterValueException) Code() string {
return "MissingParameterValueException"
}
// Message returns the exception's message.
-func (s MissingParameterValueException) Message() string {
+func (s *MissingParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9657,22 +9657,22 @@ func (s MissingParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingParameterValueException) OrigErr() error {
+func (s *MissingParameterValueException) OrigErr() error {
return nil
}
-func (s MissingParameterValueException) Error() string {
+func (s *MissingParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains an optional backup plan display name and an array of BackupRule
@@ -10441,8 +10441,8 @@ func (s *RecoveryPointCreator) SetBackupRuleId(v string) *RecoveryPointCreator {
// A resource that is required for the action doesn't exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -10465,17 +10465,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10483,22 +10483,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains metadata about a restore job.
@@ -11033,8 +11033,8 @@ func (s *SelectionsListMember) SetSelectionName(v string) *SelectionsListMember
// The request failed due to a temporary failure of the server.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -11057,17 +11057,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11075,22 +11075,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartBackupJobInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go
index c2fba8ec066..025c323950d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go
@@ -1978,8 +1978,8 @@ func (s CancelJobOutput) GoString() string {
// or resource on behalf of a user that doesn't have permissions to use the
// action or resource, or specifying an identifier that is not valid.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1996,17 +1996,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "ClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2014,22 +2014,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing an AWS Batch compute environment.
@@ -5510,8 +5510,8 @@ func (s *RetryStrategy) SetAttempts(v int64) *RetryStrategy {
// These errors are usually caused by a server issue.
type ServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5528,17 +5528,17 @@ func (s ServerException) GoString() string {
func newErrorServerException(v protocol.ResponseMetadata) error {
return &ServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerException) Code() string {
+func (s *ServerException) Code() string {
return "ServerException"
}
// Message returns the exception's message.
-func (s ServerException) Message() string {
+func (s *ServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5546,22 +5546,22 @@ func (s ServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerException) OrigErr() error {
+func (s *ServerException) OrigErr() error {
return nil
}
-func (s ServerException) Error() string {
+func (s *ServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SubmitJobInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go
index d5a922714db..0673e50561e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go
@@ -1318,8 +1318,8 @@ func (c *Budgets) UpdateSubscriberWithContext(ctx aws.Context, input *UpdateSubs
// You are not authorized to use this operation with the given parameters.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -1337,17 +1337,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1355,22 +1355,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the output of the CreateBudget operation. The content consists
@@ -2260,8 +2260,8 @@ func (s CreateSubscriberOutput) GoString() string {
// You've exceeded the notification or subscriber limit.
type CreationLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -2279,17 +2279,17 @@ func (s CreationLimitExceededException) GoString() string {
func newErrorCreationLimitExceededException(v protocol.ResponseMetadata) error {
return &CreationLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CreationLimitExceededException) Code() string {
+func (s *CreationLimitExceededException) Code() string {
return "CreationLimitExceededException"
}
// Message returns the exception's message.
-func (s CreationLimitExceededException) Message() string {
+func (s *CreationLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2297,22 +2297,22 @@ func (s CreationLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CreationLimitExceededException) OrigErr() error {
+func (s *CreationLimitExceededException) OrigErr() error {
return nil
}
-func (s CreationLimitExceededException) Error() string {
+func (s *CreationLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CreationLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CreationLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CreationLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CreationLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Request of DeleteBudget
@@ -3163,8 +3163,8 @@ func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []*Subscribe
// The budget name already exists. Budget names must be unique within an account.
type DuplicateRecordException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3182,17 +3182,17 @@ func (s DuplicateRecordException) GoString() string {
func newErrorDuplicateRecordException(v protocol.ResponseMetadata) error {
return &DuplicateRecordException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateRecordException) Code() string {
+func (s *DuplicateRecordException) Code() string {
return "DuplicateRecordException"
}
// Message returns the exception's message.
-func (s DuplicateRecordException) Message() string {
+func (s *DuplicateRecordException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3200,28 +3200,28 @@ func (s DuplicateRecordException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateRecordException) OrigErr() error {
+func (s *DuplicateRecordException) OrigErr() error {
return nil
}
-func (s DuplicateRecordException) Error() string {
+func (s *DuplicateRecordException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateRecordException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateRecordException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateRecordException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateRecordException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pagination token expired.
type ExpiredNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3239,17 +3239,17 @@ func (s ExpiredNextTokenException) GoString() string {
func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error {
return &ExpiredNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredNextTokenException) Code() string {
+func (s *ExpiredNextTokenException) Code() string {
return "ExpiredNextTokenException"
}
// Message returns the exception's message.
-func (s ExpiredNextTokenException) Message() string {
+func (s *ExpiredNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3257,29 +3257,29 @@ func (s ExpiredNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredNextTokenException) OrigErr() error {
+func (s *ExpiredNextTokenException) OrigErr() error {
return nil
}
-func (s ExpiredNextTokenException) Error() string {
+func (s *ExpiredNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error on the server occurred during the processing of your request. Try
// again later.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3297,17 +3297,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3315,28 +3315,28 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pagination token is invalid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3354,17 +3354,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3372,29 +3372,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error on the client occurred. Typically, the cause is an invalid input
// value.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3412,17 +3412,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3430,28 +3430,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can’t locate the resource that you specified.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message the exception carries.
Message_ *string `locationName:"Message" type:"string"`
@@ -3469,17 +3469,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3487,22 +3487,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A notification that is associated with a budget. A budget can have up to
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go
index fb8066d8aa6..fd1fea5ce78 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go
@@ -1369,8 +1369,8 @@ func (c *Cloud9) UpdateEnvironmentMembershipWithContext(ctx aws.Context, input *
// The target request is invalid.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1387,17 +1387,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1405,28 +1405,28 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A conflict occurred.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1443,17 +1443,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1461,22 +1461,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateEnvironmentEC2Input struct {
@@ -2318,8 +2318,8 @@ func (s *EnvironmentMember) SetUserId(v string) *EnvironmentMember {
// An access permissions issue occurred.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2336,17 +2336,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2354,28 +2354,28 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An internal server error occurred.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2392,17 +2392,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2410,28 +2410,28 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A service limit was exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2448,17 +2448,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2466,22 +2466,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListEnvironmentsInput struct {
@@ -2620,8 +2620,8 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
// The target resource cannot be found.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2638,17 +2638,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2656,22 +2656,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Metadata that is associated with AWS resources. In particular, a name-value
@@ -2813,8 +2813,8 @@ func (s TagResourceOutput) GoString() string {
// Too many service requests were made over the given time period.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2831,17 +2831,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2849,22 +2849,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go
index d4fbccb7ec2..d92ee2227bc 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go
@@ -437,7 +437,7 @@ func (c *CloudFormation) CreateStackInstancesRequest(input *CreateStackInstances
// CreateStackInstances API operation for AWS CloudFormation.
//
// Creates stack instances for the specified accounts, within the specified
-// regions. A stack instance refers to a stack in a specific account and region.
+// Regions. A stack instance refers to a stack in a specific account and Region.
// You must specify at least one value for either Accounts or DeploymentTargets,
// and you must specify at least one value for Regions.
//
@@ -794,7 +794,7 @@ func (c *CloudFormation) DeleteStackInstancesRequest(input *DeleteStackInstances
// DeleteStackInstances API operation for AWS CloudFormation.
//
-// Deletes stack instances for the specified accounts, in the specified regions.
+// Deletes stack instances for the specified accounts, in the specified Regions.
//
// 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
@@ -1452,7 +1452,7 @@ func (c *CloudFormation) DescribeStackInstanceRequest(input *DescribeStackInstan
// DescribeStackInstance API operation for AWS CloudFormation.
//
// Returns the stack instance that's associated with the specified stack set,
-// AWS account, and region.
+// AWS account, and Region.
//
// For a list of stack instances that are associated with a specific stack set,
// use ListStackInstances.
@@ -3133,7 +3133,7 @@ func (c *CloudFormation) ListExportsRequest(input *ListExportsInput) (req *reque
// ListExports API operation for AWS CloudFormation.
//
-// Lists all exported output values in the account and region in which you call
+// Lists all exported output values in the account and Region in which you call
// this action. Use this action to see the exported output values that you can
// import into other stacks. To import values, use the Fn::ImportValue (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html)
// function.
@@ -3404,7 +3404,7 @@ func (c *CloudFormation) ListStackInstancesRequest(input *ListStackInstancesInpu
//
// Returns summary information about stack instances that are associated with
// the specified stack set. You can filter for stack instances that are associated
-// with a specific AWS account name or region.
+// with a specific AWS account name or Region.
//
// 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
@@ -4503,6 +4503,10 @@ func (c *CloudFormation) RegisterTypeRequest(input *RegisterTypeInput) (req *req
// see Creating Resource Providers (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html)
// in the CloudFormation CLI User Guide.
//
+// You can have a maximum of 50 resource type versions registered at a time.
+// This maximum is per account and per region. Use DeregisterType (AWSCloudFormation/latest/APIReference/API_DeregisterType.html)
+// to deregister specific resource type versions if necessary.
+//
// Once you have initiated a registration request using RegisterType , you can
// use DescribeTypeRegistration to monitor the progress of the registration
// request.
@@ -5001,10 +5005,10 @@ func (c *CloudFormation) UpdateStackInstancesRequest(input *UpdateStackInstances
// UpdateStackInstances API operation for AWS CloudFormation.
//
// Updates the parameter values for stack instances for the specified accounts,
-// within the specified regions. A stack instance refers to a stack in a specific
-// account and region.
+// within the specified Regions. A stack instance refers to a stack in a specific
+// account and Region.
//
-// You can only update stack instances in regions and accounts where they already
+// You can only update stack instances in Regions and accounts where they already
// exist; to create additional stack instances, use CreateStackInstances (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html).
//
// During stack set updates, any parameters overridden for a stack instance
@@ -5114,7 +5118,7 @@ func (c *CloudFormation) UpdateStackSetRequest(input *UpdateStackSetInput) (req
// UpdateStackSet API operation for AWS CloudFormation.
//
// Updates the stack set, and associated stack instances in the specified accounts
-// and regions.
+// and Regions.
//
// Even if the stack set operation created by updating the stack set fails (completely
// or partially, below or above a specified failure tolerance), the stack set
@@ -5332,15 +5336,15 @@ func (c *CloudFormation) ValidateTemplateWithContext(ctx aws.Context, input *Val
// Structure that contains the results of the account gate function which AWS
// CloudFormation invokes, if present, before proceeding with a stack set operation
-// in an account and region.
+// in an account and Region.
//
-// For each account and region, AWS CloudFormation lets you specify a Lamdba
+// For each account and Region, AWS CloudFormation lets you specify a Lamdba
// function that encapsulates any requirements that must be met before CloudFormation
-// can proceed with a stack set operation in that account and region. CloudFormation
+// can proceed with a stack set operation in that account and Region. CloudFormation
// invokes the function each time a stack set operation is requested for that
-// account and region; if the function returns FAILED, CloudFormation cancels
-// the operation in that account and region, and sets the stack set operation
-// result status for that account and region to FAILED.
+// account and Region; if the function returns FAILED, CloudFormation cancels
+// the operation in that account and Region, and sets the stack set operation
+// result status for that account and Region to FAILED.
//
// For more information, see Configuring a target account gate (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-account-gating.html).
type AccountGateResult struct {
@@ -5349,28 +5353,28 @@ type AccountGateResult struct {
// The status of the account gate function.
//
// * SUCCEEDED: The account gate function has determined that the account
- // and region passes any requirements for a stack set operation to occur.
+ // and Region passes any requirements for a stack set operation to occur.
// AWS CloudFormation proceeds with the stack operation in that account and
- // region.
+ // Region.
//
// * FAILED: The account gate function has determined that the account and
- // region does not meet the requirements for a stack set operation to occur.
+ // Region does not meet the requirements for a stack set operation to occur.
// AWS CloudFormation cancels the stack set operation in that account and
- // region, and sets the stack set operation result status for that account
- // and region to FAILED.
+ // Region, and sets the stack set operation result status for that account
+ // and Region to FAILED.
//
// * SKIPPED: AWS CloudFormation has skipped calling the account gate function
- // for this account and region, for one of the following reasons: An account
- // gate function has not been specified for the account and region. AWS CloudFormation
- // proceeds with the stack set operation in this account and region. The
+ // for this account and Region, for one of the following reasons: An account
+ // gate function has not been specified for the account and Region. AWS CloudFormation
+ // proceeds with the stack set operation in this account and Region. The
// AWSCloudFormationStackSetExecutionRole of the stack set adminstration
// account lacks permissions to invoke the function. AWS CloudFormation proceeds
- // with the stack set operation in this account and region. Either no action
+ // with the stack set operation in this account and Region. Either no action
// is necessary, or no action is possible, on the stack. AWS CloudFormation
- // skips the stack set operation in this account and region.
+ // skips the stack set operation in this account and Region.
Status *string `type:"string" enum:"AccountGateStatus"`
- // The reason for the account gate status assigned to this account and region
+ // The reason for the account gate status assigned to this account and Region
// for the stack set operation.
StatusReason *string `type:"string"`
}
@@ -6327,7 +6331,7 @@ type CreateStackInput struct {
RollbackConfiguration *RollbackConfiguration `type:"structure"`
// The name that is associated with the stack. The name must be unique in the
- // region in which you are creating the stack.
+ // Region in which you are creating the stack.
//
// A stack name can contain only alphanumeric characters (case sensitive) and
// hyphens. It must start with an alphabetic character and cannot be longer
@@ -6343,7 +6347,7 @@ type CreateStackInput struct {
StackPolicyBody *string `min:"1" type:"string"`
// Location of a file containing the stack policy. The URL must point to a policy
- // (maximum size: 16 KB) located in an S3 bucket in the same region as the stack.
+ // (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack.
// You can specify either the StackPolicyBody or the StackPolicyURL parameter,
// but not both.
StackPolicyURL *string `min:"1" type:"string"`
@@ -6542,7 +6546,7 @@ type CreateStackInstancesInput struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The names of one or more AWS accounts that you
- // want to create stack instances in the specified region(s) for.
+ // want to create stack instances in the specified Region(s) for.
//
// You can specify Accounts or DeploymentTargets, but not both.
Accounts []*string `type:"list"`
@@ -6573,7 +6577,7 @@ type CreateStackInstancesInput struct {
// stack instances.
//
// Any overridden parameter values will be applied to all stack instances in
- // the specified accounts and regions. When specifying parameters and their
+ // the specified accounts and Regions. When specifying parameters and their
// values, be aware of how AWS CloudFormation sets parameter values during stack
// instance operations:
//
@@ -6599,7 +6603,7 @@ type CreateStackInstancesInput struct {
// to update the stack set template.
ParameterOverrides []*Parameter `type:"list"`
- // The names of one or more regions where you want to create stack instances
+ // The names of one or more Regions where you want to create stack instances
// using the specified AWS account(s).
//
// Regions is a required field
@@ -6751,8 +6755,6 @@ type CreateStackSetInput struct {
// Describes whether StackSets automatically deploys to AWS Organizations accounts
// that are added to the target organization or organizational unit (OU). Specify
// only if PermissionModel is SERVICE_MANAGED.
- //
- // If you specify AutoDeployment, do not specify DeploymentTargets or Regions.
AutoDeployment *AutoDeployment `type:"structure"`
// In some cases, you must explicitly acknowledge that your stack set template
@@ -6832,7 +6834,7 @@ type CreateStackSetInput struct {
PermissionModel *string `type:"string" enum:"PermissionModels"`
// The name to associate with the stack set. The name must be unique in the
- // region where you create your stack set.
+ // Region where you create your stack set.
//
// A stack name can contain only alphanumeric characters (case-sensitive) and
// hyphens. It must start with an alphabetic character and can't be longer than
@@ -7215,7 +7217,7 @@ type DeleteStackInstancesInput struct {
// Preferences for how AWS CloudFormation performs this stack set operation.
OperationPreferences *StackSetOperationPreferences `type:"structure"`
- // The regions where you want to delete stack set instances.
+ // The Regions where you want to delete stack set instances.
//
// Regions is a required field
Regions []*string `type:"list" required:"true"`
@@ -7406,7 +7408,9 @@ func (s DeleteStackSetOutput) GoString() string {
}
// [Service-managed permissions] The AWS Organizations accounts to which StackSets
-// deploys.
+// deploys. StackSets does not deploy stack instances to the organization master
+// account, even if the master account is in your organization or in an OU in
+// your organization.
//
// For update operations, you can specify either Accounts or OrganizationalUnitIds.
// For create and delete operations, specify OrganizationalUnitIds.
@@ -7417,7 +7421,7 @@ type DeploymentTargets struct {
// set updates.
Accounts []*string `type:"list"`
- // The organization root ID or organizational unit (OUs) IDs to which StackSets
+ // The organization root ID or organizational unit (OU) IDs to which StackSets
// deploys.
OrganizationalUnitIds []*string `type:"list"`
}
@@ -8107,7 +8111,7 @@ type DescribeStackInstanceInput struct {
// StackInstanceAccount is a required field
StackInstanceAccount *string `type:"string" required:"true"`
- // The name of a region that's associated with this stack instance.
+ // The name of a Region that's associated with this stack instance.
//
// StackInstanceRegion is a required field
StackInstanceRegion *string `type:"string" required:"true"`
@@ -10232,7 +10236,7 @@ type ListStackInstancesInput struct {
// The name of the AWS account that you want to list stack instances for.
StackInstanceAccount *string `type:"string"`
- // The name of the region where you want to list stack instances.
+ // The name of the Region where you want to list stack instances.
StackInstanceRegion *string `type:"string"`
// The name or unique ID of the stack set that you want to list stack instances
@@ -10528,7 +10532,7 @@ type ListStackSetOperationResultsOutput struct {
NextToken *string `min:"1" type:"string"`
// A list of StackSetOperationResultSummary structures that contain information
- // about the specified operation results, for accounts and regions that are
+ // about the specified operation results, for accounts and Regions that are
// included in the operation.
Summaries []*StackSetOperationResultSummary `type:"list"`
}
@@ -12488,7 +12492,7 @@ type SetStackPolicyInput struct {
StackPolicyBody *string `min:"1" type:"string"`
// Location of a file containing the stack policy. The URL must point to a policy
- // (maximum size: 16 KB) located in an S3 bucket in the same region as the stack.
+ // (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack.
// You can specify either the StackPolicyBody or the StackPolicyURL parameter,
// but not both.
StackPolicyURL *string `min:"1" type:"string"`
@@ -13236,9 +13240,9 @@ func (s *StackEvent) SetTimestamp(v time.Time) *StackEvent {
return s
}
-// An AWS CloudFormation stack, in a specific account and region, that's part
+// An AWS CloudFormation stack, in a specific account and Region, that's part
// of a stack set operation. A stack instance is a reference to an attempted
-// or actual stack in a given account within a given region. A stack instance
+// or actual stack in a given account within a given Region. A stack instance
// can exist without a stack—for example, if the stack couldn't be created
// for some reason. A stack instance is associated with only one stack set.
// Each stack instance contains the ID of its associated stack set, as well
@@ -13272,15 +13276,14 @@ type StackInstance struct {
// which drift detection has not yet been performed.
LastDriftCheckTimestamp *time.Time `type:"timestamp"`
- // [Service-managed permissions] The organization root ID or organizational
- // unit (OU) ID that the stack instance is associated with.
+ // Reserved for internal use. No data returned.
OrganizationalUnitId *string `type:"string"`
// A list of parameters from the stack set template whose values have been overridden
// in this stack instance.
ParameterOverrides []*Parameter `type:"list"`
- // The name of the AWS region that the stack instance is associated with.
+ // The name of the AWS Region that the stack instance is associated with.
Region *string `type:"string"`
// The ID of the stack instance.
@@ -13412,11 +13415,10 @@ type StackInstanceSummary struct {
// which drift detection has not yet been performed.
LastDriftCheckTimestamp *time.Time `type:"timestamp"`
- // [Service-managed permissions] The organization root ID or organizational
- // unit (OU) ID that the stack instance is associated with.
+ // Reserved for internal use. No data returned.
OrganizationalUnitId *string `type:"string"`
- // The name of the AWS region that the stack instance is associated with.
+ // The name of the AWS Region that the stack instance is associated with.
Region *string `type:"string"`
// The ID of the stack instance.
@@ -14109,7 +14111,7 @@ func (s *StackResourceSummary) SetResourceType(v string) *StackResourceSummary {
}
// A structure that contains information about a stack set. A stack set enables
-// you to provision stacks into AWS accounts and across regions by using a single
+// you to provision stacks into AWS accounts and across Regions by using a single
// CloudFormation template. In the stack set, you specify the template to use,
// as well as any parameters and capabilities that the template requires.
type StackSet struct {
@@ -14146,8 +14148,7 @@ type StackSet struct {
// groups can include in their stack sets.
ExecutionRoleName *string `min:"1" type:"string"`
- // [Service-managed permissions] The organization root ID or organizational
- // unit (OUs) IDs to which stacks in your stack set have been deployed.
+ // Reserved for internal use. No data returned.
OrganizationalUnitIds []*string `type:"list"`
// A list of input parameters for a stack set.
@@ -14454,7 +14455,7 @@ type StackSetOperation struct {
// The time at which the operation was initiated. Note that the creation times
// for the stack set operation might differ from the creation time of the individual
// stacks themselves. This is because AWS CloudFormation needs to perform preparatory
- // work for the operation, such as dispatching the work to the requested regions,
+ // work for the operation, such as dispatching the work to the requested Regions,
// before actually creating the first stacks.
CreationTimestamp *time.Time `type:"timestamp"`
@@ -14463,8 +14464,8 @@ type StackSetOperation struct {
DeploymentTargets *DeploymentTargets `type:"structure"`
// The time at which the stack set operation ended, across all accounts and
- // regions specified. Note that this doesn't necessarily mean that the stack
- // set operation was successful, or even attempted, in each account or region.
+ // Regions specified. Note that this doesn't necessarily mean that the stack
+ // set operation was successful, or even attempted, in each account or Region.
EndTimestamp *time.Time `type:"timestamp"`
// The name of the IAM execution role used to create or update the stack set.
@@ -14503,14 +14504,14 @@ type StackSetOperation struct {
//
// * FAILED: The operation exceeded the specified failure tolerance. The
// failure tolerance value that you've set for an operation is applied for
- // each region during stack create and update operations. If the number of
- // failed stacks within a region exceeds the failure tolerance, the status
- // of the operation in the region is set to FAILED. This in turn sets the
+ // each Region during stack create and update operations. If the number of
+ // failed stacks within a Region exceeds the failure tolerance, the status
+ // of the operation in the Region is set to FAILED. This in turn sets the
// status of the operation as a whole to FAILED, and AWS CloudFormation cancels
- // the operation in any remaining regions.
+ // the operation in any remaining Regions.
//
// * QUEUED: [Service-managed permissions] For automatic deployments that
- // require a sequence of operations. The operation is queued to be performed.
+ // require a sequence of operations, the operation is queued to be performed.
// For more information, see the stack set operation status codes (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes)
// in the AWS CloudFormation User Guide.
//
@@ -14615,19 +14616,19 @@ func (s *StackSetOperation) SetStatus(v string) *StackSetOperation {
type StackSetOperationPreferences struct {
_ struct{} `type:"structure"`
- // The number of accounts, per region, for which this operation can fail before
- // AWS CloudFormation stops the operation in that region. If the operation is
- // stopped in a region, AWS CloudFormation doesn't attempt the operation in
- // any subsequent regions.
+ // The number of accounts, per Region, for which this operation can fail before
+ // AWS CloudFormation stops the operation in that Region. If the operation is
+ // stopped in a Region, AWS CloudFormation doesn't attempt the operation in
+ // any subsequent Regions.
//
// Conditional: You must specify either FailureToleranceCount or FailureTolerancePercentage
// (but not both).
FailureToleranceCount *int64 `type:"integer"`
- // The percentage of accounts, per region, for which this stack operation can
- // fail before AWS CloudFormation stops the operation in that region. If the
- // operation is stopped in a region, AWS CloudFormation doesn't attempt the
- // operation in any subsequent regions.
+ // The percentage of accounts, per Region, for which this stack operation can
+ // fail before AWS CloudFormation stops the operation in that Region. If the
+ // operation is stopped in a Region, AWS CloudFormation doesn't attempt the
+ // operation in any subsequent Regions.
//
// When calculating the number of accounts based on the specified percentage,
// AWS CloudFormation rounds down to the next whole number.
@@ -14664,7 +14665,7 @@ type StackSetOperationPreferences struct {
// but not both.
MaxConcurrentPercentage *int64 `min:"1" type:"integer"`
- // The order of the regions in where you want to perform the stack operation.
+ // The order of the Regions in where you want to perform the stack operation.
RegionOrder []*string `type:"list"`
}
@@ -14725,7 +14726,7 @@ func (s *StackSetOperationPreferences) SetRegionOrder(v []*string) *StackSetOper
}
// The structure that contains information about a specified operation's results
-// for a given account in a given region.
+// for a given account in a given Region.
type StackSetOperationResultSummary struct {
_ struct{} `type:"structure"`
@@ -14737,31 +14738,30 @@ type StackSetOperationResultSummary struct {
// before proceeding with stack set operations in an account
AccountGateResult *AccountGateResult `type:"structure"`
- // [Service-managed permissions] The organization root ID or organizational
- // unit (OU) ID for this operation result.
+ // Reserved for internal use. No data returned.
OrganizationalUnitId *string `type:"string"`
- // The name of the AWS region for this operation result.
+ // The name of the AWS Region for this operation result.
Region *string `type:"string"`
// The result status of the stack set operation for the given account in the
- // given region.
+ // given Region.
//
- // * CANCELLED: The operation in the specified account and region has been
+ // * CANCELLED: The operation in the specified account and Region has been
// cancelled. This is either because a user has stopped the stack set operation,
// or because the failure tolerance of the stack set operation has been exceeded.
//
- // * FAILED: The operation in the specified account and region failed. If
- // the stack set operation fails in enough accounts within a region, the
+ // * FAILED: The operation in the specified account and Region failed. If
+ // the stack set operation fails in enough accounts within a Region, the
// failure tolerance for the stack set operation as a whole might be exceeded.
//
- // * RUNNING: The operation in the specified account and region is currently
+ // * RUNNING: The operation in the specified account and Region is currently
// in progress.
//
- // * PENDING: The operation in the specified account and region has yet to
+ // * PENDING: The operation in the specified account and Region has yet to
// start.
//
- // * SUCCEEDED: The operation in the specified account and region completed
+ // * SUCCEEDED: The operation in the specified account and Region completed
// successfully.
Status *string `type:"string" enum:"StackSetOperationResultStatus"`
@@ -14828,13 +14828,13 @@ type StackSetOperationSummary struct {
// The time at which the operation was initiated. Note that the creation times
// for the stack set operation might differ from the creation time of the individual
// stacks themselves. This is because AWS CloudFormation needs to perform preparatory
- // work for the operation, such as dispatching the work to the requested regions,
+ // work for the operation, such as dispatching the work to the requested Regions,
// before actually creating the first stacks.
CreationTimestamp *time.Time `type:"timestamp"`
// The time at which the stack set operation ended, across all accounts and
- // regions specified. Note that this doesn't necessarily mean that the stack
- // set operation was successful, or even attempted, in each account or region.
+ // Regions specified. Note that this doesn't necessarily mean that the stack
+ // set operation was successful, or even attempted, in each account or Region.
EndTimestamp *time.Time `type:"timestamp"`
// The unique ID of the stack set operation.
@@ -14844,14 +14844,14 @@ type StackSetOperationSummary struct {
//
// * FAILED: The operation exceeded the specified failure tolerance. The
// failure tolerance value that you've set for an operation is applied for
- // each region during stack create and update operations. If the number of
- // failed stacks within a region exceeds the failure tolerance, the status
- // of the operation in the region is set to FAILED. This in turn sets the
+ // each Region during stack create and update operations. If the number of
+ // failed stacks within a Region exceeds the failure tolerance, the status
+ // of the operation in the Region is set to FAILED. This in turn sets the
// status of the operation as a whole to FAILED, and AWS CloudFormation cancels
- // the operation in any remaining regions.
+ // the operation in any remaining Regions.
//
// * QUEUED: [Service-managed permissions] For automatic deployments that
- // require a sequence of operations. The operation is queued to be performed.
+ // require a sequence of operations, the operation is queued to be performed.
// For more information, see the stack set operation status codes (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes)
// in the AWS CloudFormation User Guide.
//
@@ -15614,7 +15614,7 @@ type UpdateStackInput struct {
// Location of a file containing the temporary overriding stack policy. The
// URL must point to a policy (max size: 16KB) located in an S3 bucket in the
- // same region as the stack. You can specify either the StackPolicyDuringUpdateBody
+ // same Region as the stack. You can specify either the StackPolicyDuringUpdateBody
// or the StackPolicyDuringUpdateURL parameter, but not both.
//
// If you want to update protected resources, specify a temporary overriding
@@ -15623,7 +15623,7 @@ type UpdateStackInput struct {
StackPolicyDuringUpdateURL *string `min:"1" type:"string"`
// Location of a file containing the updated stack policy. The URL must point
- // to a policy (max size: 16KB) located in an S3 bucket in the same region as
+ // to a policy (max size: 16KB) located in an S3 bucket in the same Region as
// the stack. You can specify either the StackPolicyBody or the StackPolicyURL
// parameter, but not both.
//
@@ -15831,7 +15831,7 @@ type UpdateStackInstancesInput struct {
// [Self-managed permissions] The names of one or more AWS accounts for which
// you want to update parameter values for stack instances. The overridden parameter
// values will be applied to all stack instances in the specified accounts and
- // regions.
+ // Regions.
//
// You can specify Accounts or DeploymentTargets, but not both.
Accounts []*string `type:"list"`
@@ -15862,7 +15862,7 @@ type UpdateStackInstancesInput struct {
// stack instances.
//
// Any overridden parameter values will be applied to all stack instances in
- // the specified accounts and regions. When specifying parameters and their
+ // the specified accounts and Regions. When specifying parameters and their
// values, be aware of how AWS CloudFormation sets parameter values during stack
// instance update operations:
//
@@ -15893,9 +15893,9 @@ type UpdateStackInstancesInput struct {
// new parameter, you can then override the parameter value using UpdateStackInstances.
ParameterOverrides []*Parameter `type:"list"`
- // The names of one or more regions in which you want to update parameter values
+ // The names of one or more Regions in which you want to update parameter values
// for stack instances. The overridden parameter values will be applied to all
- // stack instances in the specified accounts and regions.
+ // stack instances in the specified accounts and Regions.
//
// Regions is a required field
Regions []*string `type:"list" required:"true"`
@@ -16033,7 +16033,7 @@ type UpdateStackSetInput struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The accounts in which to update associated stack
- // instances. If you specify accounts, you must also specify the regions in
+ // instances. If you specify accounts, you must also specify the Regions in
// which to update stack set instances.
//
// To update all the stack instances associated with this stack set, do not
@@ -16042,10 +16042,10 @@ type UpdateStackSetInput struct {
// If the stack set update includes changes to the template (that is, if the
// TemplateBody or TemplateURL properties are specified), or the Parameters
// property, AWS CloudFormation marks all stack instances with a status of OUTDATED
- // prior to updating the stack instances in the specified accounts and regions.
+ // prior to updating the stack instances in the specified accounts and Regions.
// If the stack set update does not include changes to the template or parameters,
// AWS CloudFormation updates the stack instances in the specified accounts
- // and regions, while leaving all other stack instances with their existing
+ // and Regions, while leaving all other stack instances with their existing
// stack instance status.
Accounts []*string `type:"list"`
@@ -16174,8 +16174,8 @@ type UpdateStackSetInput struct {
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html).
PermissionModel *string `type:"string" enum:"PermissionModels"`
- // The regions in which to update associated stack instances. If you specify
- // regions, you must also specify accounts in which to update stack set instances.
+ // The Regions in which to update associated stack instances. If you specify
+ // Regions, you must also specify accounts in which to update stack set instances.
//
// To update all the stack instances associated with this stack set, do not
// specify the Accounts or Regions properties.
@@ -16183,10 +16183,10 @@ type UpdateStackSetInput struct {
// If the stack set update includes changes to the template (that is, if the
// TemplateBody or TemplateURL properties are specified), or the Parameters
// property, AWS CloudFormation marks all stack instances with a status of OUTDATED
- // prior to updating the stack instances in the specified accounts and regions.
+ // prior to updating the stack instances in the specified accounts and Regions.
// If the stack set update does not include changes to the template or parameters,
// AWS CloudFormation updates the stack instances in the specified accounts
- // and regions, while leaving all other stack instances with their existing
+ // and Regions, while leaving all other stack instances with their existing
// stack instance status.
Regions []*string `type:"list"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go
index c5fb669db6d..56b3c461c6d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go
@@ -1621,8 +1621,8 @@ func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificate
// The request was rejected because the requester does not have permission to
// perform the requested operation.
type CloudHsmAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1639,17 +1639,17 @@ func (s CloudHsmAccessDeniedException) GoString() string {
func newErrorCloudHsmAccessDeniedException(v protocol.ResponseMetadata) error {
return &CloudHsmAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmAccessDeniedException) Code() string {
+func (s *CloudHsmAccessDeniedException) Code() string {
return "CloudHsmAccessDeniedException"
}
// Message returns the exception's message.
-func (s CloudHsmAccessDeniedException) Message() string {
+func (s *CloudHsmAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1657,29 +1657,29 @@ func (s CloudHsmAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmAccessDeniedException) OrigErr() error {
+func (s *CloudHsmAccessDeniedException) OrigErr() error {
return nil
}
-func (s CloudHsmAccessDeniedException) Error() string {
+func (s *CloudHsmAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because of an AWS CloudHSM internal failure. The
// request can be retried.
type CloudHsmInternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1696,17 +1696,17 @@ func (s CloudHsmInternalFailureException) GoString() string {
func newErrorCloudHsmInternalFailureException(v protocol.ResponseMetadata) error {
return &CloudHsmInternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmInternalFailureException) Code() string {
+func (s *CloudHsmInternalFailureException) Code() string {
return "CloudHsmInternalFailureException"
}
// Message returns the exception's message.
-func (s CloudHsmInternalFailureException) Message() string {
+func (s *CloudHsmInternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1714,28 +1714,28 @@ func (s CloudHsmInternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmInternalFailureException) OrigErr() error {
+func (s *CloudHsmInternalFailureException) OrigErr() error {
return nil
}
-func (s CloudHsmInternalFailureException) Error() string {
+func (s *CloudHsmInternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmInternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmInternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmInternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmInternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because it is not a valid request.
type CloudHsmInvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1752,17 +1752,17 @@ func (s CloudHsmInvalidRequestException) GoString() string {
func newErrorCloudHsmInvalidRequestException(v protocol.ResponseMetadata) error {
return &CloudHsmInvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmInvalidRequestException) Code() string {
+func (s *CloudHsmInvalidRequestException) Code() string {
return "CloudHsmInvalidRequestException"
}
// Message returns the exception's message.
-func (s CloudHsmInvalidRequestException) Message() string {
+func (s *CloudHsmInvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1770,28 +1770,28 @@ func (s CloudHsmInvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmInvalidRequestException) OrigErr() error {
+func (s *CloudHsmInvalidRequestException) OrigErr() error {
return nil
}
-func (s CloudHsmInvalidRequestException) Error() string {
+func (s *CloudHsmInvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmInvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmInvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmInvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmInvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because it refers to a resource that cannot be found.
type CloudHsmResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1808,17 +1808,17 @@ func (s CloudHsmResourceNotFoundException) GoString() string {
func newErrorCloudHsmResourceNotFoundException(v protocol.ResponseMetadata) error {
return &CloudHsmResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmResourceNotFoundException) Code() string {
+func (s *CloudHsmResourceNotFoundException) Code() string {
return "CloudHsmResourceNotFoundException"
}
// Message returns the exception's message.
-func (s CloudHsmResourceNotFoundException) Message() string {
+func (s *CloudHsmResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1826,28 +1826,28 @@ func (s CloudHsmResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmResourceNotFoundException) OrigErr() error {
+func (s *CloudHsmResourceNotFoundException) OrigErr() error {
return nil
}
-func (s CloudHsmResourceNotFoundException) Error() string {
+func (s *CloudHsmResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because an error occurred.
type CloudHsmServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1864,17 +1864,17 @@ func (s CloudHsmServiceException) GoString() string {
func newErrorCloudHsmServiceException(v protocol.ResponseMetadata) error {
return &CloudHsmServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmServiceException) Code() string {
+func (s *CloudHsmServiceException) Code() string {
return "CloudHsmServiceException"
}
// Message returns the exception's message.
-func (s CloudHsmServiceException) Message() string {
+func (s *CloudHsmServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1882,27 +1882,27 @@ func (s CloudHsmServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmServiceException) OrigErr() error {
+func (s *CloudHsmServiceException) OrigErr() error {
return nil
}
-func (s CloudHsmServiceException) Error() string {
+func (s *CloudHsmServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CloudHsmTagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1919,17 +1919,17 @@ func (s CloudHsmTagException) GoString() string {
func newErrorCloudHsmTagException(v protocol.ResponseMetadata) error {
return &CloudHsmTagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmTagException) Code() string {
+func (s *CloudHsmTagException) Code() string {
return "CloudHsmTagException"
}
// Message returns the exception's message.
-func (s CloudHsmTagException) Message() string {
+func (s *CloudHsmTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1937,22 +1937,22 @@ func (s CloudHsmTagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmTagException) OrigErr() error {
+func (s *CloudHsmTagException) OrigErr() error {
return nil
}
-func (s CloudHsmTagException) Error() string {
+func (s *CloudHsmTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmTagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmTagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmTagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmTagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about an AWS CloudHSM cluster.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go
index 8b227be26c1..3dcad2dafde 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go
@@ -2524,8 +2524,8 @@ func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailI
//
// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
type ARNInvalidException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2542,17 +2542,17 @@ func (s ARNInvalidException) GoString() string {
func newErrorARNInvalidException(v protocol.ResponseMetadata) error {
return &ARNInvalidException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ARNInvalidException) Code() string {
+func (s *ARNInvalidException) Code() string {
return "CloudTrailARNInvalidException"
}
// Message returns the exception's message.
-func (s ARNInvalidException) Message() string {
+func (s *ARNInvalidException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2560,22 +2560,22 @@ func (s ARNInvalidException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ARNInvalidException) OrigErr() error {
+func (s *ARNInvalidException) OrigErr() error {
return nil
}
-func (s ARNInvalidException) Error() string {
+func (s *ARNInvalidException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ARNInvalidException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ARNInvalidException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ARNInvalidException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ARNInvalidException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when trusted access has not been enabled between
@@ -2583,8 +2583,8 @@ func (s ARNInvalidException) RequestID() string {
// Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)
// and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
type AccessNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2601,17 +2601,17 @@ func (s AccessNotEnabledException) GoString() string {
func newErrorAccessNotEnabledException(v protocol.ResponseMetadata) error {
return &AccessNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessNotEnabledException) Code() string {
+func (s *AccessNotEnabledException) Code() string {
return "CloudTrailAccessNotEnabledException"
}
// Message returns the exception's message.
-func (s AccessNotEnabledException) Message() string {
+func (s *AccessNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2619,22 +2619,22 @@ func (s AccessNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessNotEnabledException) OrigErr() error {
+func (s *AccessNotEnabledException) OrigErr() error {
return nil
}
-func (s AccessNotEnabledException) Error() string {
+func (s *AccessNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the tags to add to a trail.
@@ -2716,8 +2716,8 @@ func (s AddTagsOutput) GoString() string {
// Cannot set a CloudWatch Logs delivery for this region.
type CloudWatchLogsDeliveryUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2734,17 +2734,17 @@ func (s CloudWatchLogsDeliveryUnavailableException) GoString() string {
func newErrorCloudWatchLogsDeliveryUnavailableException(v protocol.ResponseMetadata) error {
return &CloudWatchLogsDeliveryUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudWatchLogsDeliveryUnavailableException) Code() string {
+func (s *CloudWatchLogsDeliveryUnavailableException) Code() string {
return "CloudWatchLogsDeliveryUnavailableException"
}
// Message returns the exception's message.
-func (s CloudWatchLogsDeliveryUnavailableException) Message() string {
+func (s *CloudWatchLogsDeliveryUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2752,22 +2752,22 @@ func (s CloudWatchLogsDeliveryUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudWatchLogsDeliveryUnavailableException) OrigErr() error {
+func (s *CloudWatchLogsDeliveryUnavailableException) OrigErr() error {
return nil
}
-func (s CloudWatchLogsDeliveryUnavailableException) Error() string {
+func (s *CloudWatchLogsDeliveryUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudWatchLogsDeliveryUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudWatchLogsDeliveryUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudWatchLogsDeliveryUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudWatchLogsDeliveryUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the settings for each trail.
@@ -4026,8 +4026,8 @@ func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOu
// If you run GetInsightSelectors on a trail that does not have Insights events
// enabled, the operation throws the exception InsightNotEnabledException.
type InsightNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4044,17 +4044,17 @@ func (s InsightNotEnabledException) GoString() string {
func newErrorInsightNotEnabledException(v protocol.ResponseMetadata) error {
return &InsightNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsightNotEnabledException) Code() string {
+func (s *InsightNotEnabledException) Code() string {
return "InsightNotEnabledException"
}
// Message returns the exception's message.
-func (s InsightNotEnabledException) Message() string {
+func (s *InsightNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4062,22 +4062,22 @@ func (s InsightNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsightNotEnabledException) OrigErr() error {
+func (s *InsightNotEnabledException) OrigErr() error {
return nil
}
-func (s InsightNotEnabledException) Error() string {
+func (s *InsightNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsightNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsightNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsightNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsightNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A JSON string that contains a list of insight types that are logged on a
@@ -4111,8 +4111,8 @@ func (s *InsightSelector) SetInsightType(v string) *InsightSelector {
// an organization trail in a required service. For more information, see Prepare
// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
type InsufficientDependencyServiceAccessPermissionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4129,17 +4129,17 @@ func (s InsufficientDependencyServiceAccessPermissionException) GoString() strin
func newErrorInsufficientDependencyServiceAccessPermissionException(v protocol.ResponseMetadata) error {
return &InsufficientDependencyServiceAccessPermissionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientDependencyServiceAccessPermissionException) Code() string {
+func (s *InsufficientDependencyServiceAccessPermissionException) Code() string {
return "InsufficientDependencyServiceAccessPermissionException"
}
// Message returns the exception's message.
-func (s InsufficientDependencyServiceAccessPermissionException) Message() string {
+func (s *InsufficientDependencyServiceAccessPermissionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4147,29 +4147,29 @@ func (s InsufficientDependencyServiceAccessPermissionException) Message() string
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientDependencyServiceAccessPermissionException) OrigErr() error {
+func (s *InsufficientDependencyServiceAccessPermissionException) OrigErr() error {
return nil
}
-func (s InsufficientDependencyServiceAccessPermissionException) Error() string {
+func (s *InsufficientDependencyServiceAccessPermissionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientDependencyServiceAccessPermissionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientDependencyServiceAccessPermissionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientDependencyServiceAccessPermissionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientDependencyServiceAccessPermissionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the policy on the S3 bucket or KMS key is not
// sufficient.
type InsufficientEncryptionPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4186,17 +4186,17 @@ func (s InsufficientEncryptionPolicyException) GoString() string {
func newErrorInsufficientEncryptionPolicyException(v protocol.ResponseMetadata) error {
return &InsufficientEncryptionPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientEncryptionPolicyException) Code() string {
+func (s *InsufficientEncryptionPolicyException) Code() string {
return "InsufficientEncryptionPolicyException"
}
// Message returns the exception's message.
-func (s InsufficientEncryptionPolicyException) Message() string {
+func (s *InsufficientEncryptionPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4204,28 +4204,28 @@ func (s InsufficientEncryptionPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientEncryptionPolicyException) OrigErr() error {
+func (s *InsufficientEncryptionPolicyException) OrigErr() error {
return nil
}
-func (s InsufficientEncryptionPolicyException) Error() string {
+func (s *InsufficientEncryptionPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientEncryptionPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientEncryptionPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientEncryptionPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientEncryptionPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the policy on the S3 bucket is not sufficient.
type InsufficientS3BucketPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4242,17 +4242,17 @@ func (s InsufficientS3BucketPolicyException) GoString() string {
func newErrorInsufficientS3BucketPolicyException(v protocol.ResponseMetadata) error {
return &InsufficientS3BucketPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientS3BucketPolicyException) Code() string {
+func (s *InsufficientS3BucketPolicyException) Code() string {
return "InsufficientS3BucketPolicyException"
}
// Message returns the exception's message.
-func (s InsufficientS3BucketPolicyException) Message() string {
+func (s *InsufficientS3BucketPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4260,28 +4260,28 @@ func (s InsufficientS3BucketPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientS3BucketPolicyException) OrigErr() error {
+func (s *InsufficientS3BucketPolicyException) OrigErr() error {
return nil
}
-func (s InsufficientS3BucketPolicyException) Error() string {
+func (s *InsufficientS3BucketPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientS3BucketPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientS3BucketPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientS3BucketPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientS3BucketPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the policy on the SNS topic is not sufficient.
type InsufficientSnsTopicPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4298,17 +4298,17 @@ func (s InsufficientSnsTopicPolicyException) GoString() string {
func newErrorInsufficientSnsTopicPolicyException(v protocol.ResponseMetadata) error {
return &InsufficientSnsTopicPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientSnsTopicPolicyException) Code() string {
+func (s *InsufficientSnsTopicPolicyException) Code() string {
return "InsufficientSnsTopicPolicyException"
}
// Message returns the exception's message.
-func (s InsufficientSnsTopicPolicyException) Message() string {
+func (s *InsufficientSnsTopicPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4316,28 +4316,28 @@ func (s InsufficientSnsTopicPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientSnsTopicPolicyException) OrigErr() error {
+func (s *InsufficientSnsTopicPolicyException) OrigErr() error {
return nil
}
-func (s InsufficientSnsTopicPolicyException) Error() string {
+func (s *InsufficientSnsTopicPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientSnsTopicPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientSnsTopicPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientSnsTopicPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientSnsTopicPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided CloudWatch log group is not valid.
type InvalidCloudWatchLogsLogGroupArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4354,17 +4354,17 @@ func (s InvalidCloudWatchLogsLogGroupArnException) GoString() string {
func newErrorInvalidCloudWatchLogsLogGroupArnException(v protocol.ResponseMetadata) error {
return &InvalidCloudWatchLogsLogGroupArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCloudWatchLogsLogGroupArnException) Code() string {
+func (s *InvalidCloudWatchLogsLogGroupArnException) Code() string {
return "InvalidCloudWatchLogsLogGroupArnException"
}
// Message returns the exception's message.
-func (s InvalidCloudWatchLogsLogGroupArnException) Message() string {
+func (s *InvalidCloudWatchLogsLogGroupArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4372,28 +4372,28 @@ func (s InvalidCloudWatchLogsLogGroupArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCloudWatchLogsLogGroupArnException) OrigErr() error {
+func (s *InvalidCloudWatchLogsLogGroupArnException) OrigErr() error {
return nil
}
-func (s InvalidCloudWatchLogsLogGroupArnException) Error() string {
+func (s *InvalidCloudWatchLogsLogGroupArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCloudWatchLogsLogGroupArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCloudWatchLogsLogGroupArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCloudWatchLogsLogGroupArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCloudWatchLogsLogGroupArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided role is not valid.
type InvalidCloudWatchLogsRoleArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4410,17 +4410,17 @@ func (s InvalidCloudWatchLogsRoleArnException) GoString() string {
func newErrorInvalidCloudWatchLogsRoleArnException(v protocol.ResponseMetadata) error {
return &InvalidCloudWatchLogsRoleArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCloudWatchLogsRoleArnException) Code() string {
+func (s *InvalidCloudWatchLogsRoleArnException) Code() string {
return "InvalidCloudWatchLogsRoleArnException"
}
// Message returns the exception's message.
-func (s InvalidCloudWatchLogsRoleArnException) Message() string {
+func (s *InvalidCloudWatchLogsRoleArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4428,29 +4428,29 @@ func (s InvalidCloudWatchLogsRoleArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCloudWatchLogsRoleArnException) OrigErr() error {
+func (s *InvalidCloudWatchLogsRoleArnException) OrigErr() error {
return nil
}
-func (s InvalidCloudWatchLogsRoleArnException) Error() string {
+func (s *InvalidCloudWatchLogsRoleArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCloudWatchLogsRoleArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCloudWatchLogsRoleArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCloudWatchLogsRoleArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCloudWatchLogsRoleArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Occurs if an event category that is not valid is specified as a value of
// EventCategory.
type InvalidEventCategoryException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4467,17 +4467,17 @@ func (s InvalidEventCategoryException) GoString() string {
func newErrorInvalidEventCategoryException(v protocol.ResponseMetadata) error {
return &InvalidEventCategoryException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEventCategoryException) Code() string {
+func (s *InvalidEventCategoryException) Code() string {
return "InvalidEventCategoryException"
}
// Message returns the exception's message.
-func (s InvalidEventCategoryException) Message() string {
+func (s *InvalidEventCategoryException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4485,22 +4485,22 @@ func (s InvalidEventCategoryException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEventCategoryException) OrigErr() error {
+func (s *InvalidEventCategoryException) OrigErr() error {
return nil
}
-func (s InvalidEventCategoryException) Error() string {
+func (s *InvalidEventCategoryException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEventCategoryException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEventCategoryException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEventCategoryException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEventCategoryException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the PutEventSelectors operation is called with
@@ -4523,8 +4523,8 @@ func (s InvalidEventCategoryException) RequestID() string {
// * Specify a valid value for a parameter. For example, specifying the ReadWriteType
// parameter with a value of read-only is invalid.
type InvalidEventSelectorsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4541,17 +4541,17 @@ func (s InvalidEventSelectorsException) GoString() string {
func newErrorInvalidEventSelectorsException(v protocol.ResponseMetadata) error {
return &InvalidEventSelectorsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEventSelectorsException) Code() string {
+func (s *InvalidEventSelectorsException) Code() string {
return "InvalidEventSelectorsException"
}
// Message returns the exception's message.
-func (s InvalidEventSelectorsException) Message() string {
+func (s *InvalidEventSelectorsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4559,29 +4559,29 @@ func (s InvalidEventSelectorsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEventSelectorsException) OrigErr() error {
+func (s *InvalidEventSelectorsException) OrigErr() error {
return nil
}
-func (s InvalidEventSelectorsException) Error() string {
+func (s *InvalidEventSelectorsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEventSelectorsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEventSelectorsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEventSelectorsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEventSelectorsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when an operation is called on a trail from a region
// other than the region in which the trail was created.
type InvalidHomeRegionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4598,17 +4598,17 @@ func (s InvalidHomeRegionException) GoString() string {
func newErrorInvalidHomeRegionException(v protocol.ResponseMetadata) error {
return &InvalidHomeRegionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidHomeRegionException) Code() string {
+func (s *InvalidHomeRegionException) Code() string {
return "InvalidHomeRegionException"
}
// Message returns the exception's message.
-func (s InvalidHomeRegionException) Message() string {
+func (s *InvalidHomeRegionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4616,30 +4616,30 @@ func (s InvalidHomeRegionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidHomeRegionException) OrigErr() error {
+func (s *InvalidHomeRegionException) OrigErr() error {
return nil
}
-func (s InvalidHomeRegionException) Error() string {
+func (s *InvalidHomeRegionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidHomeRegionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidHomeRegionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidHomeRegionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidHomeRegionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors
// or GetInsightSelectors request is not valid, or the specified insight type
// in the InsightSelectors statement is not a valid insight type.
type InvalidInsightSelectorsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4656,17 +4656,17 @@ func (s InvalidInsightSelectorsException) GoString() string {
func newErrorInvalidInsightSelectorsException(v protocol.ResponseMetadata) error {
return &InvalidInsightSelectorsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInsightSelectorsException) Code() string {
+func (s *InvalidInsightSelectorsException) Code() string {
return "InvalidInsightSelectorsException"
}
// Message returns the exception's message.
-func (s InvalidInsightSelectorsException) Message() string {
+func (s *InvalidInsightSelectorsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4674,28 +4674,28 @@ func (s InvalidInsightSelectorsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInsightSelectorsException) OrigErr() error {
+func (s *InvalidInsightSelectorsException) OrigErr() error {
return nil
}
-func (s InvalidInsightSelectorsException) Error() string {
+func (s *InvalidInsightSelectorsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInsightSelectorsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInsightSelectorsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInsightSelectorsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInsightSelectorsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the KMS key ARN is invalid.
type InvalidKmsKeyIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4712,17 +4712,17 @@ func (s InvalidKmsKeyIdException) GoString() string {
func newErrorInvalidKmsKeyIdException(v protocol.ResponseMetadata) error {
return &InvalidKmsKeyIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidKmsKeyIdException) Code() string {
+func (s *InvalidKmsKeyIdException) Code() string {
return "InvalidKmsKeyIdException"
}
// Message returns the exception's message.
-func (s InvalidKmsKeyIdException) Message() string {
+func (s *InvalidKmsKeyIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4730,28 +4730,28 @@ func (s InvalidKmsKeyIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidKmsKeyIdException) OrigErr() error {
+func (s *InvalidKmsKeyIdException) OrigErr() error {
return nil
}
-func (s InvalidKmsKeyIdException) Error() string {
+func (s *InvalidKmsKeyIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidKmsKeyIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidKmsKeyIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidKmsKeyIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidKmsKeyIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Occurs when an invalid lookup attribute is specified.
type InvalidLookupAttributesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4768,17 +4768,17 @@ func (s InvalidLookupAttributesException) GoString() string {
func newErrorInvalidLookupAttributesException(v protocol.ResponseMetadata) error {
return &InvalidLookupAttributesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLookupAttributesException) Code() string {
+func (s *InvalidLookupAttributesException) Code() string {
return "InvalidLookupAttributesException"
}
// Message returns the exception's message.
-func (s InvalidLookupAttributesException) Message() string {
+func (s *InvalidLookupAttributesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4786,28 +4786,28 @@ func (s InvalidLookupAttributesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLookupAttributesException) OrigErr() error {
+func (s *InvalidLookupAttributesException) OrigErr() error {
return nil
}
-func (s InvalidLookupAttributesException) Error() string {
+func (s *InvalidLookupAttributesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLookupAttributesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLookupAttributesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLookupAttributesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLookupAttributesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown if the limit specified is invalid.
type InvalidMaxResultsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4824,17 +4824,17 @@ func (s InvalidMaxResultsException) GoString() string {
func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error {
return &InvalidMaxResultsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMaxResultsException) Code() string {
+func (s *InvalidMaxResultsException) Code() string {
return "InvalidMaxResultsException"
}
// Message returns the exception's message.
-func (s InvalidMaxResultsException) Message() string {
+func (s *InvalidMaxResultsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4842,29 +4842,29 @@ func (s InvalidMaxResultsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMaxResultsException) OrigErr() error {
+func (s *InvalidMaxResultsException) OrigErr() error {
return nil
}
-func (s InvalidMaxResultsException) Error() string {
+func (s *InvalidMaxResultsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMaxResultsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMaxResultsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMaxResultsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMaxResultsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Invalid token or token that was previously used in a request with different
// parameters. This exception is thrown if the token is invalid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4881,17 +4881,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4899,29 +4899,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the combination of parameters provided is not
// valid.
type InvalidParameterCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4938,17 +4938,17 @@ func (s InvalidParameterCombinationException) GoString() string {
func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error {
return &InvalidParameterCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterCombinationException) Code() string {
+func (s *InvalidParameterCombinationException) Code() string {
return "InvalidParameterCombinationException"
}
// Message returns the exception's message.
-func (s InvalidParameterCombinationException) Message() string {
+func (s *InvalidParameterCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4956,28 +4956,28 @@ func (s InvalidParameterCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterCombinationException) OrigErr() error {
+func (s *InvalidParameterCombinationException) OrigErr() error {
return nil
}
-func (s InvalidParameterCombinationException) Error() string {
+func (s *InvalidParameterCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided S3 bucket name is not valid.
type InvalidS3BucketNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4994,17 +4994,17 @@ func (s InvalidS3BucketNameException) GoString() string {
func newErrorInvalidS3BucketNameException(v protocol.ResponseMetadata) error {
return &InvalidS3BucketNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidS3BucketNameException) Code() string {
+func (s *InvalidS3BucketNameException) Code() string {
return "InvalidS3BucketNameException"
}
// Message returns the exception's message.
-func (s InvalidS3BucketNameException) Message() string {
+func (s *InvalidS3BucketNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5012,28 +5012,28 @@ func (s InvalidS3BucketNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidS3BucketNameException) OrigErr() error {
+func (s *InvalidS3BucketNameException) OrigErr() error {
return nil
}
-func (s InvalidS3BucketNameException) Error() string {
+func (s *InvalidS3BucketNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidS3BucketNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidS3BucketNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidS3BucketNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidS3BucketNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided S3 prefix is not valid.
type InvalidS3PrefixException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5050,17 +5050,17 @@ func (s InvalidS3PrefixException) GoString() string {
func newErrorInvalidS3PrefixException(v protocol.ResponseMetadata) error {
return &InvalidS3PrefixException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidS3PrefixException) Code() string {
+func (s *InvalidS3PrefixException) Code() string {
return "InvalidS3PrefixException"
}
// Message returns the exception's message.
-func (s InvalidS3PrefixException) Message() string {
+func (s *InvalidS3PrefixException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5068,28 +5068,28 @@ func (s InvalidS3PrefixException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidS3PrefixException) OrigErr() error {
+func (s *InvalidS3PrefixException) OrigErr() error {
return nil
}
-func (s InvalidS3PrefixException) Error() string {
+func (s *InvalidS3PrefixException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidS3PrefixException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidS3PrefixException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidS3PrefixException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidS3PrefixException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided SNS topic name is not valid.
type InvalidSnsTopicNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5106,17 +5106,17 @@ func (s InvalidSnsTopicNameException) GoString() string {
func newErrorInvalidSnsTopicNameException(v protocol.ResponseMetadata) error {
return &InvalidSnsTopicNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSnsTopicNameException) Code() string {
+func (s *InvalidSnsTopicNameException) Code() string {
return "InvalidSnsTopicNameException"
}
// Message returns the exception's message.
-func (s InvalidSnsTopicNameException) Message() string {
+func (s *InvalidSnsTopicNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5124,29 +5124,29 @@ func (s InvalidSnsTopicNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSnsTopicNameException) OrigErr() error {
+func (s *InvalidSnsTopicNameException) OrigErr() error {
return nil
}
-func (s InvalidSnsTopicNameException) Error() string {
+func (s *InvalidSnsTopicNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSnsTopicNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSnsTopicNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSnsTopicNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSnsTopicNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the specified tag key or values are not valid.
// It can also occur if there are duplicate tags or too many tags on the resource.
type InvalidTagParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5163,17 +5163,17 @@ func (s InvalidTagParameterException) GoString() string {
func newErrorInvalidTagParameterException(v protocol.ResponseMetadata) error {
return &InvalidTagParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagParameterException) Code() string {
+func (s *InvalidTagParameterException) Code() string {
return "InvalidTagParameterException"
}
// Message returns the exception's message.
-func (s InvalidTagParameterException) Message() string {
+func (s *InvalidTagParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5181,29 +5181,29 @@ func (s InvalidTagParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagParameterException) OrigErr() error {
+func (s *InvalidTagParameterException) OrigErr() error {
return nil
}
-func (s InvalidTagParameterException) Error() string {
+func (s *InvalidTagParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Occurs if the timestamp values are invalid. Either the start time occurs
// after the end time or the time range is outside the range of possible values.
type InvalidTimeRangeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5220,17 +5220,17 @@ func (s InvalidTimeRangeException) GoString() string {
func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error {
return &InvalidTimeRangeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTimeRangeException) Code() string {
+func (s *InvalidTimeRangeException) Code() string {
return "InvalidTimeRangeException"
}
// Message returns the exception's message.
-func (s InvalidTimeRangeException) Message() string {
+func (s *InvalidTimeRangeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5238,28 +5238,28 @@ func (s InvalidTimeRangeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTimeRangeException) OrigErr() error {
+func (s *InvalidTimeRangeException) OrigErr() error {
return nil
}
-func (s InvalidTimeRangeException) Error() string {
+func (s *InvalidTimeRangeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTimeRangeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTimeRangeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTimeRangeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTimeRangeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Reserved for future use.
type InvalidTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5276,17 +5276,17 @@ func (s InvalidTokenException) GoString() string {
func newErrorInvalidTokenException(v protocol.ResponseMetadata) error {
return &InvalidTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTokenException) Code() string {
+func (s *InvalidTokenException) Code() string {
return "InvalidTokenException"
}
// Message returns the exception's message.
-func (s InvalidTokenException) Message() string {
+func (s *InvalidTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5294,22 +5294,22 @@ func (s InvalidTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTokenException) OrigErr() error {
+func (s *InvalidTokenException) OrigErr() error {
return nil
}
-func (s InvalidTokenException) Error() string {
+func (s *InvalidTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the provided trail name is not valid. Trail
@@ -5327,8 +5327,8 @@ func (s InvalidTokenException) RequestID() string {
//
// * Not be in IP address format (for example, 192.168.5.4)
type InvalidTrailNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5345,17 +5345,17 @@ func (s InvalidTrailNameException) GoString() string {
func newErrorInvalidTrailNameException(v protocol.ResponseMetadata) error {
return &InvalidTrailNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTrailNameException) Code() string {
+func (s *InvalidTrailNameException) Code() string {
return "InvalidTrailNameException"
}
// Message returns the exception's message.
-func (s InvalidTrailNameException) Message() string {
+func (s *InvalidTrailNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5363,29 +5363,29 @@ func (s InvalidTrailNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTrailNameException) OrigErr() error {
+func (s *InvalidTrailNameException) OrigErr() error {
return nil
}
-func (s InvalidTrailNameException) Error() string {
+func (s *InvalidTrailNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTrailNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTrailNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTrailNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTrailNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when there is an issue with the specified KMS key
// and the trail can’t be updated.
type KmsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5402,17 +5402,17 @@ func (s KmsException) GoString() string {
func newErrorKmsException(v protocol.ResponseMetadata) error {
return &KmsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KmsException) Code() string {
+func (s *KmsException) Code() string {
return "KmsException"
}
// Message returns the exception's message.
-func (s KmsException) Message() string {
+func (s *KmsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5420,30 +5420,30 @@ func (s KmsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KmsException) OrigErr() error {
+func (s *KmsException) OrigErr() error {
return nil
}
-func (s KmsException) Error() string {
+func (s *KmsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KmsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KmsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KmsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KmsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is no longer in use.
//
// Deprecated: KmsKeyDisabledException has been deprecated
type KmsKeyDisabledException struct {
- _ struct{} `deprecated:"true" type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `deprecated:"true" type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5460,17 +5460,17 @@ func (s KmsKeyDisabledException) GoString() string {
func newErrorKmsKeyDisabledException(v protocol.ResponseMetadata) error {
return &KmsKeyDisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KmsKeyDisabledException) Code() string {
+func (s *KmsKeyDisabledException) Code() string {
return "KmsKeyDisabledException"
}
// Message returns the exception's message.
-func (s KmsKeyDisabledException) Message() string {
+func (s *KmsKeyDisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5478,29 +5478,29 @@ func (s KmsKeyDisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KmsKeyDisabledException) OrigErr() error {
+func (s *KmsKeyDisabledException) OrigErr() error {
return nil
}
-func (s KmsKeyDisabledException) Error() string {
+func (s *KmsKeyDisabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KmsKeyDisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KmsKeyDisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KmsKeyDisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KmsKeyDisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the KMS key does not exist, or when the S3
// bucket and the KMS key are not in the same region.
type KmsKeyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5517,17 +5517,17 @@ func (s KmsKeyNotFoundException) GoString() string {
func newErrorKmsKeyNotFoundException(v protocol.ResponseMetadata) error {
return &KmsKeyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KmsKeyNotFoundException) Code() string {
+func (s *KmsKeyNotFoundException) Code() string {
return "KmsKeyNotFoundException"
}
// Message returns the exception's message.
-func (s KmsKeyNotFoundException) Message() string {
+func (s *KmsKeyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5535,22 +5535,22 @@ func (s KmsKeyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KmsKeyNotFoundException) OrigErr() error {
+func (s *KmsKeyNotFoundException) OrigErr() error {
return nil
}
-func (s KmsKeyNotFoundException) Error() string {
+func (s *KmsKeyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KmsKeyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KmsKeyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KmsKeyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KmsKeyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Requests the public keys for a specified time range.
@@ -5981,8 +5981,8 @@ func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput {
// This exception is thrown when the maximum number of trails is reached.
type MaximumNumberOfTrailsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5999,17 +5999,17 @@ func (s MaximumNumberOfTrailsExceededException) GoString() string {
func newErrorMaximumNumberOfTrailsExceededException(v protocol.ResponseMetadata) error {
return &MaximumNumberOfTrailsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumNumberOfTrailsExceededException) Code() string {
+func (s *MaximumNumberOfTrailsExceededException) Code() string {
return "MaximumNumberOfTrailsExceededException"
}
// Message returns the exception's message.
-func (s MaximumNumberOfTrailsExceededException) Message() string {
+func (s *MaximumNumberOfTrailsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6017,22 +6017,22 @@ func (s MaximumNumberOfTrailsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumNumberOfTrailsExceededException) OrigErr() error {
+func (s *MaximumNumberOfTrailsExceededException) OrigErr() error {
return nil
}
-func (s MaximumNumberOfTrailsExceededException) Error() string {
+func (s *MaximumNumberOfTrailsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumNumberOfTrailsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumNumberOfTrailsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumNumberOfTrailsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumNumberOfTrailsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the AWS account making the request to create
@@ -6040,8 +6040,8 @@ func (s MaximumNumberOfTrailsExceededException) RequestID() string {
// in AWS Organizations. For more information, see Prepare For Creating a Trail
// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
type NotOrganizationMasterAccountException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6058,17 +6058,17 @@ func (s NotOrganizationMasterAccountException) GoString() string {
func newErrorNotOrganizationMasterAccountException(v protocol.ResponseMetadata) error {
return &NotOrganizationMasterAccountException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotOrganizationMasterAccountException) Code() string {
+func (s *NotOrganizationMasterAccountException) Code() string {
return "NotOrganizationMasterAccountException"
}
// Message returns the exception's message.
-func (s NotOrganizationMasterAccountException) Message() string {
+func (s *NotOrganizationMasterAccountException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6076,28 +6076,28 @@ func (s NotOrganizationMasterAccountException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotOrganizationMasterAccountException) OrigErr() error {
+func (s *NotOrganizationMasterAccountException) OrigErr() error {
return nil
}
-func (s NotOrganizationMasterAccountException) Error() string {
+func (s *NotOrganizationMasterAccountException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotOrganizationMasterAccountException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotOrganizationMasterAccountException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotOrganizationMasterAccountException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotOrganizationMasterAccountException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the requested operation is not permitted.
type OperationNotPermittedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6114,17 +6114,17 @@ func (s OperationNotPermittedException) GoString() string {
func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error {
return &OperationNotPermittedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotPermittedException) Code() string {
+func (s *OperationNotPermittedException) Code() string {
return "OperationNotPermittedException"
}
// Message returns the exception's message.
-func (s OperationNotPermittedException) Message() string {
+func (s *OperationNotPermittedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6132,22 +6132,22 @@ func (s OperationNotPermittedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotPermittedException) OrigErr() error {
+func (s *OperationNotPermittedException) OrigErr() error {
return nil
}
-func (s OperationNotPermittedException) Error() string {
+func (s *OperationNotPermittedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotPermittedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotPermittedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotPermittedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotPermittedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when AWS Organizations is not configured to support
@@ -6155,8 +6155,8 @@ func (s OperationNotPermittedException) RequestID() string {
// creating an organization trail. For more information, see Prepare For Creating
// a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
type OrganizationNotInAllFeaturesModeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6173,17 +6173,17 @@ func (s OrganizationNotInAllFeaturesModeException) GoString() string {
func newErrorOrganizationNotInAllFeaturesModeException(v protocol.ResponseMetadata) error {
return &OrganizationNotInAllFeaturesModeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationNotInAllFeaturesModeException) Code() string {
+func (s *OrganizationNotInAllFeaturesModeException) Code() string {
return "OrganizationNotInAllFeaturesModeException"
}
// Message returns the exception's message.
-func (s OrganizationNotInAllFeaturesModeException) Message() string {
+func (s *OrganizationNotInAllFeaturesModeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6191,30 +6191,30 @@ func (s OrganizationNotInAllFeaturesModeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationNotInAllFeaturesModeException) OrigErr() error {
+func (s *OrganizationNotInAllFeaturesModeException) OrigErr() error {
return nil
}
-func (s OrganizationNotInAllFeaturesModeException) Error() string {
+func (s *OrganizationNotInAllFeaturesModeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationNotInAllFeaturesModeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationNotInAllFeaturesModeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationNotInAllFeaturesModeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationNotInAllFeaturesModeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the request is made from an AWS account that
// is not a member of an organization. To make this request, sign in using the
// credentials of an account that belongs to an organization.
type OrganizationsNotInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6231,17 +6231,17 @@ func (s OrganizationsNotInUseException) GoString() string {
func newErrorOrganizationsNotInUseException(v protocol.ResponseMetadata) error {
return &OrganizationsNotInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationsNotInUseException) Code() string {
+func (s *OrganizationsNotInUseException) Code() string {
return "OrganizationsNotInUseException"
}
// Message returns the exception's message.
-func (s OrganizationsNotInUseException) Message() string {
+func (s *OrganizationsNotInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6249,22 +6249,22 @@ func (s OrganizationsNotInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationsNotInUseException) OrigErr() error {
+func (s *OrganizationsNotInUseException) OrigErr() error {
return nil
}
-func (s OrganizationsNotInUseException) Error() string {
+func (s *OrganizationsNotInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationsNotInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationsNotInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationsNotInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationsNotInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a returned public key.
@@ -6632,8 +6632,8 @@ func (s *Resource) SetResourceType(v string) *Resource {
// This exception is thrown when the specified resource is not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6650,17 +6650,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6668,22 +6668,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A resource tag.
@@ -6722,8 +6722,8 @@ func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag {
// This exception is thrown when the specified resource type is not supported
// by CloudTrail.
type ResourceTypeNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6740,17 +6740,17 @@ func (s ResourceTypeNotSupportedException) GoString() string {
func newErrorResourceTypeNotSupportedException(v protocol.ResponseMetadata) error {
return &ResourceTypeNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceTypeNotSupportedException) Code() string {
+func (s *ResourceTypeNotSupportedException) Code() string {
return "ResourceTypeNotSupportedException"
}
// Message returns the exception's message.
-func (s ResourceTypeNotSupportedException) Message() string {
+func (s *ResourceTypeNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6758,28 +6758,28 @@ func (s ResourceTypeNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceTypeNotSupportedException) OrigErr() error {
+func (s *ResourceTypeNotSupportedException) OrigErr() error {
return nil
}
-func (s ResourceTypeNotSupportedException) Error() string {
+func (s *ResourceTypeNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceTypeNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceTypeNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceTypeNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceTypeNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the specified S3 bucket does not exist.
type S3BucketDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6796,17 +6796,17 @@ func (s S3BucketDoesNotExistException) GoString() string {
func newErrorS3BucketDoesNotExistException(v protocol.ResponseMetadata) error {
return &S3BucketDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s S3BucketDoesNotExistException) Code() string {
+func (s *S3BucketDoesNotExistException) Code() string {
return "S3BucketDoesNotExistException"
}
// Message returns the exception's message.
-func (s S3BucketDoesNotExistException) Message() string {
+func (s *S3BucketDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6814,22 +6814,22 @@ func (s S3BucketDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s S3BucketDoesNotExistException) OrigErr() error {
+func (s *S3BucketDoesNotExistException) OrigErr() error {
return nil
}
-func (s S3BucketDoesNotExistException) Error() string {
+func (s *S3BucketDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s S3BucketDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *S3BucketDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s S3BucketDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *S3BucketDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request to CloudTrail to start logging AWS API calls for an account.
@@ -7002,8 +7002,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The number of tags per trail has exceeded the permitted amount. Currently,
// the limit is 50.
type TagsLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7020,17 +7020,17 @@ func (s TagsLimitExceededException) GoString() string {
func newErrorTagsLimitExceededException(v protocol.ResponseMetadata) error {
return &TagsLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagsLimitExceededException) Code() string {
+func (s *TagsLimitExceededException) Code() string {
return "TagsLimitExceededException"
}
// Message returns the exception's message.
-func (s TagsLimitExceededException) Message() string {
+func (s *TagsLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7038,22 +7038,22 @@ func (s TagsLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagsLimitExceededException) OrigErr() error {
+func (s *TagsLimitExceededException) OrigErr() error {
return nil
}
-func (s TagsLimitExceededException) Error() string {
+func (s *TagsLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagsLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagsLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagsLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagsLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The settings for a trail.
@@ -7235,8 +7235,8 @@ func (s *Trail) SetTrailARN(v string) *Trail {
// This exception is thrown when the specified trail already exists.
type TrailAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7253,17 +7253,17 @@ func (s TrailAlreadyExistsException) GoString() string {
func newErrorTrailAlreadyExistsException(v protocol.ResponseMetadata) error {
return &TrailAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TrailAlreadyExistsException) Code() string {
+func (s *TrailAlreadyExistsException) Code() string {
return "TrailAlreadyExistsException"
}
// Message returns the exception's message.
-func (s TrailAlreadyExistsException) Message() string {
+func (s *TrailAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7271,22 +7271,22 @@ func (s TrailAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TrailAlreadyExistsException) OrigErr() error {
+func (s *TrailAlreadyExistsException) OrigErr() error {
return nil
}
-func (s TrailAlreadyExistsException) Error() string {
+func (s *TrailAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TrailAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TrailAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TrailAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TrailAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a CloudTrail trail, including the trail's name, home region,
@@ -7334,8 +7334,8 @@ func (s *TrailInfo) SetTrailARN(v string) *TrailInfo {
// This exception is thrown when the trail with the given name is not found.
type TrailNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7352,17 +7352,17 @@ func (s TrailNotFoundException) GoString() string {
func newErrorTrailNotFoundException(v protocol.ResponseMetadata) error {
return &TrailNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TrailNotFoundException) Code() string {
+func (s *TrailNotFoundException) Code() string {
return "TrailNotFoundException"
}
// Message returns the exception's message.
-func (s TrailNotFoundException) Message() string {
+func (s *TrailNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7370,28 +7370,28 @@ func (s TrailNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TrailNotFoundException) OrigErr() error {
+func (s *TrailNotFoundException) OrigErr() error {
return nil
}
-func (s TrailNotFoundException) Error() string {
+func (s *TrailNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TrailNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TrailNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TrailNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TrailNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is no longer in use.
type TrailNotProvidedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7408,17 +7408,17 @@ func (s TrailNotProvidedException) GoString() string {
func newErrorTrailNotProvidedException(v protocol.ResponseMetadata) error {
return &TrailNotProvidedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TrailNotProvidedException) Code() string {
+func (s *TrailNotProvidedException) Code() string {
return "TrailNotProvidedException"
}
// Message returns the exception's message.
-func (s TrailNotProvidedException) Message() string {
+func (s *TrailNotProvidedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7426,28 +7426,28 @@ func (s TrailNotProvidedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TrailNotProvidedException) OrigErr() error {
+func (s *TrailNotProvidedException) OrigErr() error {
return nil
}
-func (s TrailNotProvidedException) Error() string {
+func (s *TrailNotProvidedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TrailNotProvidedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TrailNotProvidedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TrailNotProvidedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TrailNotProvidedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the requested operation is not supported.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7464,17 +7464,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7482,22 +7482,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies settings to update for the trail.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go
index dec4cd3834b..635d88c5b8e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go
@@ -2228,7 +2228,8 @@ func (c *CloudWatch) ListTagsForResourceRequest(input *ListTagsForResourceInput)
// ListTagsForResource API operation for Amazon CloudWatch.
//
-// Displays the tags associated with a CloudWatch resource. Alarms support tagging.
+// Displays the tags associated with a CloudWatch resource. Currently, alarms
+// and Contributor Insights rules support tagging.
//
// 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
@@ -3071,7 +3072,8 @@ func (c *CloudWatch) TagResourceRequest(input *TagResourceInput) (req *request.R
// TagResource API operation for Amazon CloudWatch.
//
// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource.
-// Currently, the only CloudWatch resources that can be tagged are alarms.
+// Currently, the only CloudWatch resources that can be tagged are alarms and
+// Contributor Insights rules.
//
// Tags can help you organize and categorize your resources. You can also use
// them to scope user permissions, by granting a user permission to access or
@@ -3086,7 +3088,7 @@ func (c *CloudWatch) TagResourceRequest(input *TagResourceInput) (req *request.R
// associated with the alarm, the new tag value that you specify replaces the
// previous value for that tag.
//
-// You can associate as many as 50 tags with a resource.
+// You can associate as many as 50 tags with a CloudWatch resource.
//
// 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
@@ -6358,8 +6360,14 @@ func (s *ListMetricsOutput) SetNextToken(v string) *ListMetricsOutput {
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
- // The ARN of the CloudWatch resource that you want to view tags for. For more
- // information on ARN format, see Example ARNs (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch)
+ // The ARN of the CloudWatch resource that you want to view tags for.
+ //
+ // The ARN format of an alarm is arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
+ //
+ // The ARN format of a Contributor Insights rule is arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name
+ //
+ // For more information on ARN format, see Resource Types Defined by Amazon
+ // CloudWatch (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies)
// in the Amazon Web Services General Reference.
//
// ResourceARN is a required field
@@ -7798,6 +7806,21 @@ type PutInsightRuleInput struct {
// The state of the rule. Valid values are ENABLED and DISABLED.
RuleState *string `min:"1" type:"string"`
+
+ // A list of key-value pairs to associate with the Contributor Insights rule.
+ // You can associate as many as 50 tags with a rule.
+ //
+ // Tags can help you organize and categorize your resources. You can also use
+ // them to scope user permissions, by granting a user permission to access or
+ // change only the resources that have certain tag values.
+ //
+ // To be able to associate tags with a rule, you must have the cloudwatch:TagResource
+ // permission in addition to the cloudwatch:PutInsightRule permission.
+ //
+ // If you are using this operation to update an existing Contributor Insights
+ // rule, any tags you specify in this parameter are ignored. To change the tags
+ // of an existing rule, use TagResource (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html).
+ Tags []*Tag `type:"list"`
}
// String returns the string representation
@@ -7828,6 +7851,16 @@ func (s *PutInsightRuleInput) Validate() error {
if s.RuleState != nil && len(*s.RuleState) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleState", 1))
}
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7853,6 +7886,12 @@ func (s *PutInsightRuleInput) SetRuleState(v string) *PutInsightRuleInput {
return s
}
+// SetTags sets the Tags field's value.
+func (s *PutInsightRuleInput) SetTags(v []*Tag) *PutInsightRuleInput {
+ s.Tags = v
+ return s
+}
+
type PutInsightRuleOutput struct {
_ struct{} `type:"structure"`
}
@@ -8681,8 +8720,15 @@ func (s *Tag) SetValue(v string) *Tag {
type TagResourceInput struct {
_ struct{} `type:"structure"`
- // The ARN of the CloudWatch alarm that you're adding tags to. The ARN format
- // is arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
+ // The ARN of the CloudWatch resource that you're adding tags to.
+ //
+ // The ARN format of an alarm is arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
+ //
+ // The ARN format of a Contributor Insights rule is arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name
+ //
+ // For more information on ARN format, see Resource Types Defined by Amazon
+ // CloudWatch (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies)
+ // in the Amazon Web Services General Reference.
//
// ResourceARN is a required field
ResourceARN *string `min:"1" type:"string" required:"true"`
@@ -8761,8 +8807,14 @@ func (s TagResourceOutput) GoString() string {
type UntagResourceInput struct {
_ struct{} `type:"structure"`
- // The ARN of the CloudWatch resource that you're removing tags from. For more
- // information on ARN format, see Example ARNs (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch)
+ // The ARN of the CloudWatch resource that you're removing tags from.
+ //
+ // The ARN format of an alarm is arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
+ //
+ // The ARN format of a Contributor Insights rule is arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name
+ //
+ // For more information on ARN format, see Resource Types Defined by Amazon
+ // CloudWatch (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies)
// in the Amazon Web Services General Reference.
//
// ResourceARN is a required field
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go
index 4be852438b6..2069fda2168 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go
@@ -3242,8 +3242,8 @@ func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy {
// There is concurrent modification on a rule or target.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3260,17 +3260,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3278,22 +3278,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A JSON string which you can use to limit the event bus permissions you are
@@ -4708,8 +4708,8 @@ func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer {
// This exception occurs due to unexpected causes.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4726,17 +4726,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4744,28 +4744,28 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The event pattern is not valid.
type InvalidEventPatternException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4782,17 +4782,17 @@ func (s InvalidEventPatternException) GoString() string {
func newErrorInvalidEventPatternException(v protocol.ResponseMetadata) error {
return &InvalidEventPatternException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEventPatternException) Code() string {
+func (s *InvalidEventPatternException) Code() string {
return "InvalidEventPatternException"
}
// Message returns the exception's message.
-func (s InvalidEventPatternException) Message() string {
+func (s *InvalidEventPatternException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4800,28 +4800,28 @@ func (s InvalidEventPatternException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEventPatternException) OrigErr() error {
+func (s *InvalidEventPatternException) OrigErr() error {
return nil
}
-func (s InvalidEventPatternException) Error() string {
+func (s *InvalidEventPatternException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEventPatternException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEventPatternException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEventPatternException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEventPatternException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified state is not a valid state for an event source.
type InvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4838,17 +4838,17 @@ func (s InvalidStateException) GoString() string {
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateException) Code() string {
+func (s *InvalidStateException) Code() string {
return "InvalidStateException"
}
// Message returns the exception's message.
-func (s InvalidStateException) Message() string {
+func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4856,22 +4856,22 @@ func (s InvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateException) OrigErr() error {
+func (s *InvalidStateException) OrigErr() error {
return nil
}
-func (s InvalidStateException) Error() string {
+func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This object enables you to specify a JSON path to extract from the event
@@ -4920,8 +4920,8 @@ func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters {
// You tried to create more rules or add more targets to a rule than is allowed.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4938,17 +4938,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4956,22 +4956,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListEventBusesInput struct {
@@ -5768,8 +5768,8 @@ func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutp
// rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
// or UntagResource.
type ManagedRuleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5786,17 +5786,17 @@ func (s ManagedRuleException) GoString() string {
func newErrorManagedRuleException(v protocol.ResponseMetadata) error {
return &ManagedRuleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ManagedRuleException) Code() string {
+func (s *ManagedRuleException) Code() string {
return "ManagedRuleException"
}
// Message returns the exception's message.
-func (s ManagedRuleException) Message() string {
+func (s *ManagedRuleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5804,22 +5804,22 @@ func (s ManagedRuleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ManagedRuleException) OrigErr() error {
+func (s *ManagedRuleException) OrigErr() error {
return nil
}
-func (s ManagedRuleException) Error() string {
+func (s *ManagedRuleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ManagedRuleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ManagedRuleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ManagedRuleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ManagedRuleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This structure specifies the network configuration for an ECS task.
@@ -5956,8 +5956,8 @@ func (s *PartnerEventSourceAccount) SetState(v string) *PartnerEventSourceAccoun
// The event bus policy is too long. For more information, see the limits.
type PolicyLengthExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5974,17 +5974,17 @@ func (s PolicyLengthExceededException) GoString() string {
func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error {
return &PolicyLengthExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyLengthExceededException) Code() string {
+func (s *PolicyLengthExceededException) Code() string {
return "PolicyLengthExceededException"
}
// Message returns the exception's message.
-func (s PolicyLengthExceededException) Message() string {
+func (s *PolicyLengthExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5992,22 +5992,22 @@ func (s PolicyLengthExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyLengthExceededException) OrigErr() error {
+func (s *PolicyLengthExceededException) OrigErr() error {
return nil
}
-func (s PolicyLengthExceededException) Error() string {
+func (s *PolicyLengthExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyLengthExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyLengthExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyLengthExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyLengthExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutEventsInput struct {
@@ -7096,8 +7096,8 @@ func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEnt
// The resource you are trying to create already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7114,17 +7114,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7132,28 +7132,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An entity that you specified does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7170,17 +7170,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7188,22 +7188,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a rule in Amazon EventBridge.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go
index 594ec846d09..b629ace9dd1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go
@@ -4483,8 +4483,8 @@ func (s CreateLogStreamOutput) GoString() string {
// The event was already logged.
type DataAlreadyAcceptedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`
@@ -4503,17 +4503,17 @@ func (s DataAlreadyAcceptedException) GoString() string {
func newErrorDataAlreadyAcceptedException(v protocol.ResponseMetadata) error {
return &DataAlreadyAcceptedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DataAlreadyAcceptedException) Code() string {
+func (s *DataAlreadyAcceptedException) Code() string {
return "DataAlreadyAcceptedException"
}
// Message returns the exception's message.
-func (s DataAlreadyAcceptedException) Message() string {
+func (s *DataAlreadyAcceptedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4521,22 +4521,22 @@ func (s DataAlreadyAcceptedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DataAlreadyAcceptedException) OrigErr() error {
+func (s *DataAlreadyAcceptedException) OrigErr() error {
return nil
}
-func (s DataAlreadyAcceptedException) Error() string {
+func (s *DataAlreadyAcceptedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DataAlreadyAcceptedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DataAlreadyAcceptedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DataAlreadyAcceptedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DataAlreadyAcceptedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteDestinationInput struct {
@@ -6838,8 +6838,8 @@ func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent {
// The operation is not valid on the specified resource.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6856,17 +6856,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "InvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6874,28 +6874,28 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A parameter is specified incorrectly.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6912,17 +6912,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6930,29 +6930,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The sequence token is not valid. You can get the correct sequence token in
// the expectedSequenceToken field in the InvalidSequenceTokenException message.
type InvalidSequenceTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`
@@ -6971,17 +6971,17 @@ func (s InvalidSequenceTokenException) GoString() string {
func newErrorInvalidSequenceTokenException(v protocol.ResponseMetadata) error {
return &InvalidSequenceTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSequenceTokenException) Code() string {
+func (s *InvalidSequenceTokenException) Code() string {
return "InvalidSequenceTokenException"
}
// Message returns the exception's message.
-func (s InvalidSequenceTokenException) Message() string {
+func (s *InvalidSequenceTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6989,28 +6989,28 @@ func (s InvalidSequenceTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSequenceTokenException) OrigErr() error {
+func (s *InvalidSequenceTokenException) OrigErr() error {
return nil
}
-func (s InvalidSequenceTokenException) Error() string {
+func (s *InvalidSequenceTokenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSequenceTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSequenceTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSequenceTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSequenceTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the maximum number of resources that can be created.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7027,17 +7027,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7045,22 +7045,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListTagsLogGroupInput struct {
@@ -7349,8 +7349,8 @@ func (s *LogStream) SetUploadSequenceToken(v string) *LogStream {
// For more information about valid query syntax, see CloudWatch Logs Insights
// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
type MalformedQueryException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -7370,17 +7370,17 @@ func (s MalformedQueryException) GoString() string {
func newErrorMalformedQueryException(v protocol.ResponseMetadata) error {
return &MalformedQueryException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedQueryException) Code() string {
+func (s *MalformedQueryException) Code() string {
return "MalformedQueryException"
}
// Message returns the exception's message.
-func (s MalformedQueryException) Message() string {
+func (s *MalformedQueryException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7388,22 +7388,22 @@ func (s MalformedQueryException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedQueryException) OrigErr() error {
+func (s *MalformedQueryException) OrigErr() error {
return nil
}
-func (s MalformedQueryException) Error() string {
+func (s *MalformedQueryException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedQueryException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedQueryException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedQueryException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedQueryException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Metric filters express how CloudWatch Logs would extract metric observations
@@ -7595,8 +7595,8 @@ func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation {
// Multiple requests to update the same resource were in conflict.
type OperationAbortedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7613,17 +7613,17 @@ func (s OperationAbortedException) GoString() string {
func newErrorOperationAbortedException(v protocol.ResponseMetadata) error {
return &OperationAbortedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationAbortedException) Code() string {
+func (s *OperationAbortedException) Code() string {
return "OperationAbortedException"
}
// Message returns the exception's message.
-func (s OperationAbortedException) Message() string {
+func (s *OperationAbortedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7631,22 +7631,22 @@ func (s OperationAbortedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationAbortedException) OrigErr() error {
+func (s *OperationAbortedException) OrigErr() error {
return nil
}
-func (s OperationAbortedException) Error() string {
+func (s *OperationAbortedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationAbortedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationAbortedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationAbortedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationAbortedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a log event.
@@ -8622,8 +8622,8 @@ func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogE
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8640,17 +8640,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8658,28 +8658,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8696,17 +8696,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8714,22 +8714,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A policy enabling one or more entities to put logs to a log group in this
@@ -8845,8 +8845,8 @@ func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream {
// The service cannot complete the request.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8863,17 +8863,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8881,22 +8881,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartQueryInput struct {
@@ -9333,8 +9333,8 @@ func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestM
// The most likely cause is an invalid AWS access key ID or secret key.
type UnrecognizedClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9351,17 +9351,17 @@ func (s UnrecognizedClientException) GoString() string {
func newErrorUnrecognizedClientException(v protocol.ResponseMetadata) error {
return &UnrecognizedClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnrecognizedClientException) Code() string {
+func (s *UnrecognizedClientException) Code() string {
return "UnrecognizedClientException"
}
// Message returns the exception's message.
-func (s UnrecognizedClientException) Message() string {
+func (s *UnrecognizedClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9369,22 +9369,22 @@ func (s UnrecognizedClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnrecognizedClientException) OrigErr() error {
+func (s *UnrecognizedClientException) OrigErr() error {
return nil
}
-func (s UnrecognizedClientException) Error() string {
+func (s *UnrecognizedClientException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnrecognizedClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnrecognizedClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnrecognizedClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnrecognizedClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagLogGroupInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
index c22775a00ad..48ec22795e9 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
@@ -2798,8 +2798,8 @@ func (c *CodeBuild) UpdateWebhookWithContext(ctx aws.Context, input *UpdateWebho
// An AWS service limit was exceeded for the calling AWS account.
type AccountLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2816,17 +2816,17 @@ func (s AccountLimitExceededException) GoString() string {
func newErrorAccountLimitExceededException(v protocol.ResponseMetadata) error {
return &AccountLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountLimitExceededException) Code() string {
+func (s *AccountLimitExceededException) Code() string {
return "AccountLimitExceededException"
}
// Message returns the exception's message.
-func (s AccountLimitExceededException) Message() string {
+func (s *AccountLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2834,22 +2834,22 @@ func (s AccountLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountLimitExceededException) OrigErr() error {
+func (s *AccountLimitExceededException) OrigErr() error {
return nil
}
-func (s AccountLimitExceededException) Error() string {
+func (s *AccountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type BatchDeleteBuildsInput struct {
@@ -5333,8 +5333,8 @@ func (s *ImportSourceCredentialsOutput) SetArn(v string) *ImportSourceCredential
// The input value that was provided is not valid.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5351,17 +5351,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5369,22 +5369,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type InvalidateProjectCacheInput struct {
@@ -6588,8 +6588,8 @@ func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
// There was a problem with the underlying OAuth provider.
type OAuthProviderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6606,17 +6606,17 @@ func (s OAuthProviderException) GoString() string {
func newErrorOAuthProviderException(v protocol.ResponseMetadata) error {
return &OAuthProviderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OAuthProviderException) Code() string {
+func (s *OAuthProviderException) Code() string {
return "OAuthProviderException"
}
// Message returns the exception's message.
-func (s OAuthProviderException) Message() string {
+func (s *OAuthProviderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6624,22 +6624,22 @@ func (s OAuthProviderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OAuthProviderException) OrigErr() error {
+func (s *OAuthProviderException) OrigErr() error {
return nil
}
-func (s OAuthProviderException) Error() string {
+func (s *OAuthProviderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OAuthProviderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OAuthProviderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OAuthProviderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OAuthProviderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Additional information about a build phase that has an error. You can use
@@ -8266,8 +8266,8 @@ func (s *ReportGroup) SetType(v string) *ReportGroup {
// The specified AWS resource cannot be created, because an AWS resource with
// the same settings already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8284,17 +8284,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8302,28 +8302,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified AWS resource cannot be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8340,17 +8340,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8358,22 +8358,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about S3 logs for a build project.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go
index 8a444d564da..e79a77db563 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go
@@ -10354,8 +10354,8 @@ func (c *CodeCommit) UpdateRepositoryNameWithContext(ctx aws.Context, input *Upd
// The specified Amazon Resource Name (ARN) does not exist in the AWS account.
type ActorDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10372,17 +10372,17 @@ func (s ActorDoesNotExistException) GoString() string {
func newErrorActorDoesNotExistException(v protocol.ResponseMetadata) error {
return &ActorDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActorDoesNotExistException) Code() string {
+func (s *ActorDoesNotExistException) Code() string {
return "ActorDoesNotExistException"
}
// Message returns the exception's message.
-func (s ActorDoesNotExistException) Message() string {
+func (s *ActorDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10390,22 +10390,22 @@ func (s ActorDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActorDoesNotExistException) OrigErr() error {
+func (s *ActorDoesNotExistException) OrigErr() error {
return nil
}
-func (s ActorDoesNotExistException) Error() string {
+func (s *ActorDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActorDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActorDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActorDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActorDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a specific approval on a pull request.
@@ -10532,8 +10532,8 @@ func (s *ApprovalRule) SetRuleContentSha256(v string) *ApprovalRule {
// The content for the approval rule is empty. You must provide some content
// for an approval rule. The content cannot be null.
type ApprovalRuleContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10550,17 +10550,17 @@ func (s ApprovalRuleContentRequiredException) GoString() string {
func newErrorApprovalRuleContentRequiredException(v protocol.ResponseMetadata) error {
return &ApprovalRuleContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleContentRequiredException) Code() string {
+func (s *ApprovalRuleContentRequiredException) Code() string {
return "ApprovalRuleContentRequiredException"
}
// Message returns the exception's message.
-func (s ApprovalRuleContentRequiredException) Message() string {
+func (s *ApprovalRuleContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10568,28 +10568,28 @@ func (s ApprovalRuleContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleContentRequiredException) OrigErr() error {
+func (s *ApprovalRuleContentRequiredException) OrigErr() error {
return nil
}
-func (s ApprovalRuleContentRequiredException) Error() string {
+func (s *ApprovalRuleContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified approval rule does not exist.
type ApprovalRuleDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10606,17 +10606,17 @@ func (s ApprovalRuleDoesNotExistException) GoString() string {
func newErrorApprovalRuleDoesNotExistException(v protocol.ResponseMetadata) error {
return &ApprovalRuleDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleDoesNotExistException) Code() string {
+func (s *ApprovalRuleDoesNotExistException) Code() string {
return "ApprovalRuleDoesNotExistException"
}
// Message returns the exception's message.
-func (s ApprovalRuleDoesNotExistException) Message() string {
+func (s *ApprovalRuleDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10624,22 +10624,22 @@ func (s ApprovalRuleDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleDoesNotExistException) OrigErr() error {
+func (s *ApprovalRuleDoesNotExistException) OrigErr() error {
return nil
}
-func (s ApprovalRuleDoesNotExistException) Error() string {
+func (s *ApprovalRuleDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about an event for an approval rule.
@@ -10687,8 +10687,8 @@ func (s *ApprovalRuleEventMetadata) SetApprovalRuleName(v string) *ApprovalRuleE
// An approval rule with that name already exists. Approval rule names must
// be unique within the scope of a pull request.
type ApprovalRuleNameAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10705,17 +10705,17 @@ func (s ApprovalRuleNameAlreadyExistsException) GoString() string {
func newErrorApprovalRuleNameAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ApprovalRuleNameAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleNameAlreadyExistsException) Code() string {
+func (s *ApprovalRuleNameAlreadyExistsException) Code() string {
return "ApprovalRuleNameAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ApprovalRuleNameAlreadyExistsException) Message() string {
+func (s *ApprovalRuleNameAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10723,28 +10723,28 @@ func (s ApprovalRuleNameAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleNameAlreadyExistsException) OrigErr() error {
+func (s *ApprovalRuleNameAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ApprovalRuleNameAlreadyExistsException) Error() string {
+func (s *ApprovalRuleNameAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleNameAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleNameAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleNameAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleNameAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An approval rule name is required, but was not specified.
type ApprovalRuleNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10761,17 +10761,17 @@ func (s ApprovalRuleNameRequiredException) GoString() string {
func newErrorApprovalRuleNameRequiredException(v protocol.ResponseMetadata) error {
return &ApprovalRuleNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleNameRequiredException) Code() string {
+func (s *ApprovalRuleNameRequiredException) Code() string {
return "ApprovalRuleNameRequiredException"
}
// Message returns the exception's message.
-func (s ApprovalRuleNameRequiredException) Message() string {
+func (s *ApprovalRuleNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10779,22 +10779,22 @@ func (s ApprovalRuleNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleNameRequiredException) OrigErr() error {
+func (s *ApprovalRuleNameRequiredException) OrigErr() error {
return nil
}
-func (s ApprovalRuleNameRequiredException) Error() string {
+func (s *ApprovalRuleNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about an override event for approval rules for a pull
@@ -10923,8 +10923,8 @@ func (s *ApprovalRuleTemplate) SetRuleContentSha256(v string) *ApprovalRuleTempl
// The content for the approval rule template is empty. You must provide some
// content for an approval rule template. The content cannot be null.
type ApprovalRuleTemplateContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10941,17 +10941,17 @@ func (s ApprovalRuleTemplateContentRequiredException) GoString() string {
func newErrorApprovalRuleTemplateContentRequiredException(v protocol.ResponseMetadata) error {
return &ApprovalRuleTemplateContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleTemplateContentRequiredException) Code() string {
+func (s *ApprovalRuleTemplateContentRequiredException) Code() string {
return "ApprovalRuleTemplateContentRequiredException"
}
// Message returns the exception's message.
-func (s ApprovalRuleTemplateContentRequiredException) Message() string {
+func (s *ApprovalRuleTemplateContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10959,30 +10959,30 @@ func (s ApprovalRuleTemplateContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleTemplateContentRequiredException) OrigErr() error {
+func (s *ApprovalRuleTemplateContentRequiredException) OrigErr() error {
return nil
}
-func (s ApprovalRuleTemplateContentRequiredException) Error() string {
+func (s *ApprovalRuleTemplateContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleTemplateContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleTemplateContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleTemplateContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleTemplateContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified approval rule template does not exist. Verify that the name
// is correct and that you are signed in to the AWS Region where the template
// was created, and then try again.
type ApprovalRuleTemplateDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10999,17 +10999,17 @@ func (s ApprovalRuleTemplateDoesNotExistException) GoString() string {
func newErrorApprovalRuleTemplateDoesNotExistException(v protocol.ResponseMetadata) error {
return &ApprovalRuleTemplateDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleTemplateDoesNotExistException) Code() string {
+func (s *ApprovalRuleTemplateDoesNotExistException) Code() string {
return "ApprovalRuleTemplateDoesNotExistException"
}
// Message returns the exception's message.
-func (s ApprovalRuleTemplateDoesNotExistException) Message() string {
+func (s *ApprovalRuleTemplateDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11017,30 +11017,30 @@ func (s ApprovalRuleTemplateDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleTemplateDoesNotExistException) OrigErr() error {
+func (s *ApprovalRuleTemplateDoesNotExistException) OrigErr() error {
return nil
}
-func (s ApprovalRuleTemplateDoesNotExistException) Error() string {
+func (s *ApprovalRuleTemplateDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleTemplateDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleTemplateDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleTemplateDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleTemplateDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval rule template is associated with one or more repositories. You
// cannot delete a template that is associated with a repository. Remove all
// associations, and then try again.
type ApprovalRuleTemplateInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11057,17 +11057,17 @@ func (s ApprovalRuleTemplateInUseException) GoString() string {
func newErrorApprovalRuleTemplateInUseException(v protocol.ResponseMetadata) error {
return &ApprovalRuleTemplateInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleTemplateInUseException) Code() string {
+func (s *ApprovalRuleTemplateInUseException) Code() string {
return "ApprovalRuleTemplateInUseException"
}
// Message returns the exception's message.
-func (s ApprovalRuleTemplateInUseException) Message() string {
+func (s *ApprovalRuleTemplateInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11075,30 +11075,30 @@ func (s ApprovalRuleTemplateInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleTemplateInUseException) OrigErr() error {
+func (s *ApprovalRuleTemplateInUseException) OrigErr() error {
return nil
}
-func (s ApprovalRuleTemplateInUseException) Error() string {
+func (s *ApprovalRuleTemplateInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleTemplateInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleTemplateInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleTemplateInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleTemplateInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot create an approval rule template with that name because a template
// with that name already exists in this AWS Region for your AWS account. Approval
// rule template names must be unique.
type ApprovalRuleTemplateNameAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11115,17 +11115,17 @@ func (s ApprovalRuleTemplateNameAlreadyExistsException) GoString() string {
func newErrorApprovalRuleTemplateNameAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ApprovalRuleTemplateNameAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleTemplateNameAlreadyExistsException) Code() string {
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) Code() string {
return "ApprovalRuleTemplateNameAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ApprovalRuleTemplateNameAlreadyExistsException) Message() string {
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11133,28 +11133,28 @@ func (s ApprovalRuleTemplateNameAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleTemplateNameAlreadyExistsException) OrigErr() error {
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ApprovalRuleTemplateNameAlreadyExistsException) Error() string {
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleTemplateNameAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleTemplateNameAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleTemplateNameAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An approval rule template name is required, but was not specified.
type ApprovalRuleTemplateNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11171,17 +11171,17 @@ func (s ApprovalRuleTemplateNameRequiredException) GoString() string {
func newErrorApprovalRuleTemplateNameRequiredException(v protocol.ResponseMetadata) error {
return &ApprovalRuleTemplateNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalRuleTemplateNameRequiredException) Code() string {
+func (s *ApprovalRuleTemplateNameRequiredException) Code() string {
return "ApprovalRuleTemplateNameRequiredException"
}
// Message returns the exception's message.
-func (s ApprovalRuleTemplateNameRequiredException) Message() string {
+func (s *ApprovalRuleTemplateNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11189,22 +11189,22 @@ func (s ApprovalRuleTemplateNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalRuleTemplateNameRequiredException) OrigErr() error {
+func (s *ApprovalRuleTemplateNameRequiredException) OrigErr() error {
return nil
}
-func (s ApprovalRuleTemplateNameRequiredException) Error() string {
+func (s *ApprovalRuleTemplateNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalRuleTemplateNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalRuleTemplateNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalRuleTemplateNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalRuleTemplateNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a change in the approval state for a pull request.
@@ -11242,8 +11242,8 @@ func (s *ApprovalStateChangedEventMetadata) SetRevisionId(v string) *ApprovalSta
// An approval state is required, but was not specified.
type ApprovalStateRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11260,17 +11260,17 @@ func (s ApprovalStateRequiredException) GoString() string {
func newErrorApprovalStateRequiredException(v protocol.ResponseMetadata) error {
return &ApprovalStateRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalStateRequiredException) Code() string {
+func (s *ApprovalStateRequiredException) Code() string {
return "ApprovalStateRequiredException"
}
// Message returns the exception's message.
-func (s ApprovalStateRequiredException) Message() string {
+func (s *ApprovalStateRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11278,22 +11278,22 @@ func (s ApprovalStateRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalStateRequiredException) OrigErr() error {
+func (s *ApprovalStateRequiredException) OrigErr() error {
return nil
}
-func (s ApprovalStateRequiredException) Error() string {
+func (s *ApprovalStateRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalStateRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalStateRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalStateRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalStateRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AssociateApprovalRuleTemplateWithRepositoryInput struct {
@@ -11370,8 +11370,8 @@ func (s AssociateApprovalRuleTemplateWithRepositoryOutput) GoString() string {
// The specified Amazon Resource Name (ARN) does not exist in the AWS account.
type AuthorDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11388,17 +11388,17 @@ func (s AuthorDoesNotExistException) GoString() string {
func newErrorAuthorDoesNotExistException(v protocol.ResponseMetadata) error {
return &AuthorDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AuthorDoesNotExistException) Code() string {
+func (s *AuthorDoesNotExistException) Code() string {
return "AuthorDoesNotExistException"
}
// Message returns the exception's message.
-func (s AuthorDoesNotExistException) Message() string {
+func (s *AuthorDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11406,22 +11406,22 @@ func (s AuthorDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AuthorDoesNotExistException) OrigErr() error {
+func (s *AuthorDoesNotExistException) OrigErr() error {
return nil
}
-func (s AuthorDoesNotExistException) Error() string {
+func (s *AuthorDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AuthorDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AuthorDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AuthorDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AuthorDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories
@@ -12195,8 +12195,8 @@ func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *Batch
// The before commit ID and the after commit ID are the same, which is not valid.
// The before commit ID and the after commit ID must be different commit IDs.
type BeforeCommitIdAndAfterCommitIdAreSameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12213,17 +12213,17 @@ func (s BeforeCommitIdAndAfterCommitIdAreSameException) GoString() string {
func newErrorBeforeCommitIdAndAfterCommitIdAreSameException(v protocol.ResponseMetadata) error {
return &BeforeCommitIdAndAfterCommitIdAreSameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) Code() string {
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Code() string {
return "BeforeCommitIdAndAfterCommitIdAreSameException"
}
// Message returns the exception's message.
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) Message() string {
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12231,28 +12231,28 @@ func (s BeforeCommitIdAndAfterCommitIdAreSameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) OrigErr() error {
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) OrigErr() error {
return nil
}
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) Error() string {
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BeforeCommitIdAndAfterCommitIdAreSameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BeforeCommitIdAndAfterCommitIdAreSameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified blob does not exist.
type BlobIdDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12269,17 +12269,17 @@ func (s BlobIdDoesNotExistException) GoString() string {
func newErrorBlobIdDoesNotExistException(v protocol.ResponseMetadata) error {
return &BlobIdDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BlobIdDoesNotExistException) Code() string {
+func (s *BlobIdDoesNotExistException) Code() string {
return "BlobIdDoesNotExistException"
}
// Message returns the exception's message.
-func (s BlobIdDoesNotExistException) Message() string {
+func (s *BlobIdDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12287,28 +12287,28 @@ func (s BlobIdDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BlobIdDoesNotExistException) OrigErr() error {
+func (s *BlobIdDoesNotExistException) OrigErr() error {
return nil
}
-func (s BlobIdDoesNotExistException) Error() string {
+func (s *BlobIdDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BlobIdDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BlobIdDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BlobIdDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BlobIdDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A blob ID is required, but was not specified.
type BlobIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12325,17 +12325,17 @@ func (s BlobIdRequiredException) GoString() string {
func newErrorBlobIdRequiredException(v protocol.ResponseMetadata) error {
return &BlobIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BlobIdRequiredException) Code() string {
+func (s *BlobIdRequiredException) Code() string {
return "BlobIdRequiredException"
}
// Message returns the exception's message.
-func (s BlobIdRequiredException) Message() string {
+func (s *BlobIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12343,22 +12343,22 @@ func (s BlobIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BlobIdRequiredException) OrigErr() error {
+func (s *BlobIdRequiredException) OrigErr() error {
return nil
}
-func (s BlobIdRequiredException) Error() string {
+func (s *BlobIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BlobIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BlobIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BlobIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BlobIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a specific Git blob object.
@@ -12413,8 +12413,8 @@ func (s *BlobMetadata) SetPath(v string) *BlobMetadata {
// The specified branch does not exist.
type BranchDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12431,17 +12431,17 @@ func (s BranchDoesNotExistException) GoString() string {
func newErrorBranchDoesNotExistException(v protocol.ResponseMetadata) error {
return &BranchDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BranchDoesNotExistException) Code() string {
+func (s *BranchDoesNotExistException) Code() string {
return "BranchDoesNotExistException"
}
// Message returns the exception's message.
-func (s BranchDoesNotExistException) Message() string {
+func (s *BranchDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12449,22 +12449,22 @@ func (s BranchDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BranchDoesNotExistException) OrigErr() error {
+func (s *BranchDoesNotExistException) OrigErr() error {
return nil
}
-func (s BranchDoesNotExistException) Error() string {
+func (s *BranchDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BranchDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BranchDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BranchDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BranchDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a branch.
@@ -12502,8 +12502,8 @@ func (s *BranchInfo) SetCommitId(v string) *BranchInfo {
// The specified branch name already exists.
type BranchNameExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12520,17 +12520,17 @@ func (s BranchNameExistsException) GoString() string {
func newErrorBranchNameExistsException(v protocol.ResponseMetadata) error {
return &BranchNameExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BranchNameExistsException) Code() string {
+func (s *BranchNameExistsException) Code() string {
return "BranchNameExistsException"
}
// Message returns the exception's message.
-func (s BranchNameExistsException) Message() string {
+func (s *BranchNameExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12538,30 +12538,30 @@ func (s BranchNameExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BranchNameExistsException) OrigErr() error {
+func (s *BranchNameExistsException) OrigErr() error {
return nil
}
-func (s BranchNameExistsException) Error() string {
+func (s *BranchNameExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BranchNameExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BranchNameExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BranchNameExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BranchNameExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified branch name is not valid because it is a tag name. Enter the
// name of a branch in the repository. For a list of valid branch names, use
// ListBranches.
type BranchNameIsTagNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12578,17 +12578,17 @@ func (s BranchNameIsTagNameException) GoString() string {
func newErrorBranchNameIsTagNameException(v protocol.ResponseMetadata) error {
return &BranchNameIsTagNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BranchNameIsTagNameException) Code() string {
+func (s *BranchNameIsTagNameException) Code() string {
return "BranchNameIsTagNameException"
}
// Message returns the exception's message.
-func (s BranchNameIsTagNameException) Message() string {
+func (s *BranchNameIsTagNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12596,28 +12596,28 @@ func (s BranchNameIsTagNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BranchNameIsTagNameException) OrigErr() error {
+func (s *BranchNameIsTagNameException) OrigErr() error {
return nil
}
-func (s BranchNameIsTagNameException) Error() string {
+func (s *BranchNameIsTagNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BranchNameIsTagNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BranchNameIsTagNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BranchNameIsTagNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BranchNameIsTagNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A branch name is required, but was not specified.
type BranchNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12634,17 +12634,17 @@ func (s BranchNameRequiredException) GoString() string {
func newErrorBranchNameRequiredException(v protocol.ResponseMetadata) error {
return &BranchNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BranchNameRequiredException) Code() string {
+func (s *BranchNameRequiredException) Code() string {
return "BranchNameRequiredException"
}
// Message returns the exception's message.
-func (s BranchNameRequiredException) Message() string {
+func (s *BranchNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12652,29 +12652,29 @@ func (s BranchNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BranchNameRequiredException) OrigErr() error {
+func (s *BranchNameRequiredException) OrigErr() error {
return nil
}
-func (s BranchNameRequiredException) Error() string {
+func (s *BranchNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BranchNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BranchNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BranchNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BranchNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval rule cannot be deleted from the pull request because it was
// created by an approval rule template and applied to the pull request automatically.
type CannotDeleteApprovalRuleFromTemplateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12691,17 +12691,17 @@ func (s CannotDeleteApprovalRuleFromTemplateException) GoString() string {
func newErrorCannotDeleteApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
return &CannotDeleteApprovalRuleFromTemplateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CannotDeleteApprovalRuleFromTemplateException) Code() string {
+func (s *CannotDeleteApprovalRuleFromTemplateException) Code() string {
return "CannotDeleteApprovalRuleFromTemplateException"
}
// Message returns the exception's message.
-func (s CannotDeleteApprovalRuleFromTemplateException) Message() string {
+func (s *CannotDeleteApprovalRuleFromTemplateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12709,29 +12709,29 @@ func (s CannotDeleteApprovalRuleFromTemplateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CannotDeleteApprovalRuleFromTemplateException) OrigErr() error {
+func (s *CannotDeleteApprovalRuleFromTemplateException) OrigErr() error {
return nil
}
-func (s CannotDeleteApprovalRuleFromTemplateException) Error() string {
+func (s *CannotDeleteApprovalRuleFromTemplateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CannotDeleteApprovalRuleFromTemplateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CannotDeleteApprovalRuleFromTemplateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CannotDeleteApprovalRuleFromTemplateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CannotDeleteApprovalRuleFromTemplateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval rule cannot be modified for the pull request because it was
// created by an approval rule template and applied to the pull request automatically.
type CannotModifyApprovalRuleFromTemplateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12748,17 +12748,17 @@ func (s CannotModifyApprovalRuleFromTemplateException) GoString() string {
func newErrorCannotModifyApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error {
return &CannotModifyApprovalRuleFromTemplateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CannotModifyApprovalRuleFromTemplateException) Code() string {
+func (s *CannotModifyApprovalRuleFromTemplateException) Code() string {
return "CannotModifyApprovalRuleFromTemplateException"
}
// Message returns the exception's message.
-func (s CannotModifyApprovalRuleFromTemplateException) Message() string {
+func (s *CannotModifyApprovalRuleFromTemplateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12766,22 +12766,22 @@ func (s CannotModifyApprovalRuleFromTemplateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CannotModifyApprovalRuleFromTemplateException) OrigErr() error {
+func (s *CannotModifyApprovalRuleFromTemplateException) OrigErr() error {
return nil
}
-func (s CannotModifyApprovalRuleFromTemplateException) Error() string {
+func (s *CannotModifyApprovalRuleFromTemplateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CannotModifyApprovalRuleFromTemplateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CannotModifyApprovalRuleFromTemplateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CannotModifyApprovalRuleFromTemplateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CannotModifyApprovalRuleFromTemplateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A client request token is required. A client request token is an unique,
@@ -12790,8 +12790,8 @@ func (s CannotModifyApprovalRuleFromTemplateException) RequestID() string {
// received with the same parameters and a token is included, the request returns
// information about the initial request that used that token.
type ClientRequestTokenRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12808,17 +12808,17 @@ func (s ClientRequestTokenRequiredException) GoString() string {
func newErrorClientRequestTokenRequiredException(v protocol.ResponseMetadata) error {
return &ClientRequestTokenRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientRequestTokenRequiredException) Code() string {
+func (s *ClientRequestTokenRequiredException) Code() string {
return "ClientRequestTokenRequiredException"
}
// Message returns the exception's message.
-func (s ClientRequestTokenRequiredException) Message() string {
+func (s *ClientRequestTokenRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12826,22 +12826,22 @@ func (s ClientRequestTokenRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientRequestTokenRequiredException) OrigErr() error {
+func (s *ClientRequestTokenRequiredException) OrigErr() error {
return nil
}
-func (s ClientRequestTokenRequiredException) Error() string {
+func (s *ClientRequestTokenRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientRequestTokenRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientRequestTokenRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientRequestTokenRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientRequestTokenRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a specific comment.
@@ -12937,8 +12937,8 @@ func (s *Comment) SetLastModifiedDate(v time.Time) *Comment {
// The comment is empty. You must provide some content for a comment. The content
// cannot be null.
type CommentContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12955,17 +12955,17 @@ func (s CommentContentRequiredException) GoString() string {
func newErrorCommentContentRequiredException(v protocol.ResponseMetadata) error {
return &CommentContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentContentRequiredException) Code() string {
+func (s *CommentContentRequiredException) Code() string {
return "CommentContentRequiredException"
}
// Message returns the exception's message.
-func (s CommentContentRequiredException) Message() string {
+func (s *CommentContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12973,28 +12973,28 @@ func (s CommentContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentContentRequiredException) OrigErr() error {
+func (s *CommentContentRequiredException) OrigErr() error {
return nil
}
-func (s CommentContentRequiredException) Error() string {
+func (s *CommentContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The comment is too large. Comments are limited to 1,000 characters.
type CommentContentSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13011,17 +13011,17 @@ func (s CommentContentSizeLimitExceededException) GoString() string {
func newErrorCommentContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &CommentContentSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentContentSizeLimitExceededException) Code() string {
+func (s *CommentContentSizeLimitExceededException) Code() string {
return "CommentContentSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s CommentContentSizeLimitExceededException) Message() string {
+func (s *CommentContentSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13029,29 +13029,29 @@ func (s CommentContentSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentContentSizeLimitExceededException) OrigErr() error {
+func (s *CommentContentSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s CommentContentSizeLimitExceededException) Error() string {
+func (s *CommentContentSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentContentSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentContentSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentContentSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentContentSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This comment has already been deleted. You cannot edit or delete a deleted
// comment.
type CommentDeletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13068,17 +13068,17 @@ func (s CommentDeletedException) GoString() string {
func newErrorCommentDeletedException(v protocol.ResponseMetadata) error {
return &CommentDeletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentDeletedException) Code() string {
+func (s *CommentDeletedException) Code() string {
return "CommentDeletedException"
}
// Message returns the exception's message.
-func (s CommentDeletedException) Message() string {
+func (s *CommentDeletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13086,29 +13086,29 @@ func (s CommentDeletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentDeletedException) OrigErr() error {
+func (s *CommentDeletedException) OrigErr() error {
return nil
}
-func (s CommentDeletedException) Error() string {
+func (s *CommentDeletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentDeletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentDeletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentDeletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentDeletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// No comment exists with the provided ID. Verify that you have used the correct
// ID, and then try again.
type CommentDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13125,17 +13125,17 @@ func (s CommentDoesNotExistException) GoString() string {
func newErrorCommentDoesNotExistException(v protocol.ResponseMetadata) error {
return &CommentDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentDoesNotExistException) Code() string {
+func (s *CommentDoesNotExistException) Code() string {
return "CommentDoesNotExistException"
}
// Message returns the exception's message.
-func (s CommentDoesNotExistException) Message() string {
+func (s *CommentDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13143,28 +13143,28 @@ func (s CommentDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentDoesNotExistException) OrigErr() error {
+func (s *CommentDoesNotExistException) OrigErr() error {
return nil
}
-func (s CommentDoesNotExistException) Error() string {
+func (s *CommentDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The comment ID is missing or null. A comment ID is required.
type CommentIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13181,17 +13181,17 @@ func (s CommentIdRequiredException) GoString() string {
func newErrorCommentIdRequiredException(v protocol.ResponseMetadata) error {
return &CommentIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentIdRequiredException) Code() string {
+func (s *CommentIdRequiredException) Code() string {
return "CommentIdRequiredException"
}
// Message returns the exception's message.
-func (s CommentIdRequiredException) Message() string {
+func (s *CommentIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13199,29 +13199,29 @@ func (s CommentIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentIdRequiredException) OrigErr() error {
+func (s *CommentIdRequiredException) OrigErr() error {
return nil
}
-func (s CommentIdRequiredException) Error() string {
+func (s *CommentIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot modify or delete this comment. Only comment authors can modify
// or delete their comments.
type CommentNotCreatedByCallerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13238,17 +13238,17 @@ func (s CommentNotCreatedByCallerException) GoString() string {
func newErrorCommentNotCreatedByCallerException(v protocol.ResponseMetadata) error {
return &CommentNotCreatedByCallerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommentNotCreatedByCallerException) Code() string {
+func (s *CommentNotCreatedByCallerException) Code() string {
return "CommentNotCreatedByCallerException"
}
// Message returns the exception's message.
-func (s CommentNotCreatedByCallerException) Message() string {
+func (s *CommentNotCreatedByCallerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13256,22 +13256,22 @@ func (s CommentNotCreatedByCallerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommentNotCreatedByCallerException) OrigErr() error {
+func (s *CommentNotCreatedByCallerException) OrigErr() error {
return nil
}
-func (s CommentNotCreatedByCallerException) Error() string {
+func (s *CommentNotCreatedByCallerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommentNotCreatedByCallerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommentNotCreatedByCallerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommentNotCreatedByCallerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommentNotCreatedByCallerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about comments on the comparison between two commits.
@@ -13541,8 +13541,8 @@ func (s *Commit) SetTreeId(v string) *Commit {
// The specified commit does not exist or no commit was specified, and the specified
// repository has no default branch.
type CommitDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13559,17 +13559,17 @@ func (s CommitDoesNotExistException) GoString() string {
func newErrorCommitDoesNotExistException(v protocol.ResponseMetadata) error {
return &CommitDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitDoesNotExistException) Code() string {
+func (s *CommitDoesNotExistException) Code() string {
return "CommitDoesNotExistException"
}
// Message returns the exception's message.
-func (s CommitDoesNotExistException) Message() string {
+func (s *CommitDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13577,28 +13577,28 @@ func (s CommitDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitDoesNotExistException) OrigErr() error {
+func (s *CommitDoesNotExistException) OrigErr() error {
return nil
}
-func (s CommitDoesNotExistException) Error() string {
+func (s *CommitDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified commit ID does not exist.
type CommitIdDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13615,17 +13615,17 @@ func (s CommitIdDoesNotExistException) GoString() string {
func newErrorCommitIdDoesNotExistException(v protocol.ResponseMetadata) error {
return &CommitIdDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitIdDoesNotExistException) Code() string {
+func (s *CommitIdDoesNotExistException) Code() string {
return "CommitIdDoesNotExistException"
}
// Message returns the exception's message.
-func (s CommitIdDoesNotExistException) Message() string {
+func (s *CommitIdDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13633,28 +13633,28 @@ func (s CommitIdDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitIdDoesNotExistException) OrigErr() error {
+func (s *CommitIdDoesNotExistException) OrigErr() error {
return nil
}
-func (s CommitIdDoesNotExistException) Error() string {
+func (s *CommitIdDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitIdDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitIdDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitIdDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitIdDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A commit ID was not specified.
type CommitIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13671,17 +13671,17 @@ func (s CommitIdRequiredException) GoString() string {
func newErrorCommitIdRequiredException(v protocol.ResponseMetadata) error {
return &CommitIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitIdRequiredException) Code() string {
+func (s *CommitIdRequiredException) Code() string {
return "CommitIdRequiredException"
}
// Message returns the exception's message.
-func (s CommitIdRequiredException) Message() string {
+func (s *CommitIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13689,30 +13689,30 @@ func (s CommitIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitIdRequiredException) OrigErr() error {
+func (s *CommitIdRequiredException) OrigErr() error {
return nil
}
-func (s CommitIdRequiredException) Error() string {
+func (s *CommitIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of allowed commit IDs in a batch request is 100. Verify
// that your batch requests contains no more than 100 commit IDs, and then try
// again.
type CommitIdsLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13729,17 +13729,17 @@ func (s CommitIdsLimitExceededException) GoString() string {
func newErrorCommitIdsLimitExceededException(v protocol.ResponseMetadata) error {
return &CommitIdsLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitIdsLimitExceededException) Code() string {
+func (s *CommitIdsLimitExceededException) Code() string {
return "CommitIdsLimitExceededException"
}
// Message returns the exception's message.
-func (s CommitIdsLimitExceededException) Message() string {
+func (s *CommitIdsLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13747,29 +13747,29 @@ func (s CommitIdsLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitIdsLimitExceededException) OrigErr() error {
+func (s *CommitIdsLimitExceededException) OrigErr() error {
return nil
}
-func (s CommitIdsLimitExceededException) Error() string {
+func (s *CommitIdsLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitIdsLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitIdsLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitIdsLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitIdsLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A list of commit IDs is required, but was either not specified or the list
// was empty.
type CommitIdsListRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13786,17 +13786,17 @@ func (s CommitIdsListRequiredException) GoString() string {
func newErrorCommitIdsListRequiredException(v protocol.ResponseMetadata) error {
return &CommitIdsListRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitIdsListRequiredException) Code() string {
+func (s *CommitIdsListRequiredException) Code() string {
return "CommitIdsListRequiredException"
}
// Message returns the exception's message.
-func (s CommitIdsListRequiredException) Message() string {
+func (s *CommitIdsListRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13804,28 +13804,28 @@ func (s CommitIdsListRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitIdsListRequiredException) OrigErr() error {
+func (s *CommitIdsListRequiredException) OrigErr() error {
return nil
}
-func (s CommitIdsListRequiredException) Error() string {
+func (s *CommitIdsListRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitIdsListRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitIdsListRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitIdsListRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitIdsListRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit message is too long. Provide a shorter string.
type CommitMessageLengthExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13842,17 +13842,17 @@ func (s CommitMessageLengthExceededException) GoString() string {
func newErrorCommitMessageLengthExceededException(v protocol.ResponseMetadata) error {
return &CommitMessageLengthExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitMessageLengthExceededException) Code() string {
+func (s *CommitMessageLengthExceededException) Code() string {
return "CommitMessageLengthExceededException"
}
// Message returns the exception's message.
-func (s CommitMessageLengthExceededException) Message() string {
+func (s *CommitMessageLengthExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13860,28 +13860,28 @@ func (s CommitMessageLengthExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitMessageLengthExceededException) OrigErr() error {
+func (s *CommitMessageLengthExceededException) OrigErr() error {
return nil
}
-func (s CommitMessageLengthExceededException) Error() string {
+func (s *CommitMessageLengthExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitMessageLengthExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitMessageLengthExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitMessageLengthExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitMessageLengthExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A commit was not specified.
type CommitRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13898,17 +13898,17 @@ func (s CommitRequiredException) GoString() string {
func newErrorCommitRequiredException(v protocol.ResponseMetadata) error {
return &CommitRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CommitRequiredException) Code() string {
+func (s *CommitRequiredException) Code() string {
return "CommitRequiredException"
}
// Message returns the exception's message.
-func (s CommitRequiredException) Message() string {
+func (s *CommitRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13916,30 +13916,30 @@ func (s CommitRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CommitRequiredException) OrigErr() error {
+func (s *CommitRequiredException) OrigErr() error {
return nil
}
-func (s CommitRequiredException) Error() string {
+func (s *CommitRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CommitRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CommitRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CommitRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CommitRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The merge cannot be completed because the target branch has been modified.
// Another user might have modified the target branch while the merge was in
// progress. Wait a few minutes, and then try again.
type ConcurrentReferenceUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13956,17 +13956,17 @@ func (s ConcurrentReferenceUpdateException) GoString() string {
func newErrorConcurrentReferenceUpdateException(v protocol.ResponseMetadata) error {
return &ConcurrentReferenceUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentReferenceUpdateException) Code() string {
+func (s *ConcurrentReferenceUpdateException) Code() string {
return "ConcurrentReferenceUpdateException"
}
// Message returns the exception's message.
-func (s ConcurrentReferenceUpdateException) Message() string {
+func (s *ConcurrentReferenceUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13974,22 +13974,22 @@ func (s ConcurrentReferenceUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentReferenceUpdateException) OrigErr() error {
+func (s *ConcurrentReferenceUpdateException) OrigErr() error {
return nil
}
-func (s ConcurrentReferenceUpdateException) Error() string {
+func (s *ConcurrentReferenceUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentReferenceUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentReferenceUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentReferenceUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentReferenceUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about conflicts in a merge operation.
@@ -15186,8 +15186,8 @@ func (s *CreateUnreferencedMergeCommitOutput) SetTreeId(v string) *CreateUnrefer
// be deleted. To delete this branch, you must first set another branch as the
// default branch.
type DefaultBranchCannotBeDeletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15204,17 +15204,17 @@ func (s DefaultBranchCannotBeDeletedException) GoString() string {
func newErrorDefaultBranchCannotBeDeletedException(v protocol.ResponseMetadata) error {
return &DefaultBranchCannotBeDeletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DefaultBranchCannotBeDeletedException) Code() string {
+func (s *DefaultBranchCannotBeDeletedException) Code() string {
return "DefaultBranchCannotBeDeletedException"
}
// Message returns the exception's message.
-func (s DefaultBranchCannotBeDeletedException) Message() string {
+func (s *DefaultBranchCannotBeDeletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15222,22 +15222,22 @@ func (s DefaultBranchCannotBeDeletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DefaultBranchCannotBeDeletedException) OrigErr() error {
+func (s *DefaultBranchCannotBeDeletedException) OrigErr() error {
return nil
}
-func (s DefaultBranchCannotBeDeletedException) Error() string {
+func (s *DefaultBranchCannotBeDeletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DefaultBranchCannotBeDeletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DefaultBranchCannotBeDeletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DefaultBranchCannotBeDeletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DefaultBranchCannotBeDeletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteApprovalRuleTemplateInput struct {
@@ -16223,8 +16223,8 @@ func (s *Difference) SetChangeType(v string) *Difference {
// provide a different name for the file, or specify a different path for the
// file.
type DirectoryNameConflictsWithFileNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16241,17 +16241,17 @@ func (s DirectoryNameConflictsWithFileNameException) GoString() string {
func newErrorDirectoryNameConflictsWithFileNameException(v protocol.ResponseMetadata) error {
return &DirectoryNameConflictsWithFileNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryNameConflictsWithFileNameException) Code() string {
+func (s *DirectoryNameConflictsWithFileNameException) Code() string {
return "DirectoryNameConflictsWithFileNameException"
}
// Message returns the exception's message.
-func (s DirectoryNameConflictsWithFileNameException) Message() string {
+func (s *DirectoryNameConflictsWithFileNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16259,22 +16259,22 @@ func (s DirectoryNameConflictsWithFileNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryNameConflictsWithFileNameException) OrigErr() error {
+func (s *DirectoryNameConflictsWithFileNameException) OrigErr() error {
return nil
}
-func (s DirectoryNameConflictsWithFileNameException) Error() string {
+func (s *DirectoryNameConflictsWithFileNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryNameConflictsWithFileNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryNameConflictsWithFileNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryNameConflictsWithFileNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryNameConflictsWithFileNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DisassociateApprovalRuleTemplateFromRepositoryInput struct {
@@ -16351,8 +16351,8 @@ func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) GoString() string
// An encryption integrity check failed.
type EncryptionIntegrityChecksFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16369,17 +16369,17 @@ func (s EncryptionIntegrityChecksFailedException) GoString() string {
func newErrorEncryptionIntegrityChecksFailedException(v protocol.ResponseMetadata) error {
return &EncryptionIntegrityChecksFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionIntegrityChecksFailedException) Code() string {
+func (s *EncryptionIntegrityChecksFailedException) Code() string {
return "EncryptionIntegrityChecksFailedException"
}
// Message returns the exception's message.
-func (s EncryptionIntegrityChecksFailedException) Message() string {
+func (s *EncryptionIntegrityChecksFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16387,28 +16387,28 @@ func (s EncryptionIntegrityChecksFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionIntegrityChecksFailedException) OrigErr() error {
+func (s *EncryptionIntegrityChecksFailedException) OrigErr() error {
return nil
}
-func (s EncryptionIntegrityChecksFailedException) Error() string {
+func (s *EncryptionIntegrityChecksFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionIntegrityChecksFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionIntegrityChecksFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionIntegrityChecksFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionIntegrityChecksFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An encryption key could not be accessed.
type EncryptionKeyAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16425,17 +16425,17 @@ func (s EncryptionKeyAccessDeniedException) GoString() string {
func newErrorEncryptionKeyAccessDeniedException(v protocol.ResponseMetadata) error {
return &EncryptionKeyAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionKeyAccessDeniedException) Code() string {
+func (s *EncryptionKeyAccessDeniedException) Code() string {
return "EncryptionKeyAccessDeniedException"
}
// Message returns the exception's message.
-func (s EncryptionKeyAccessDeniedException) Message() string {
+func (s *EncryptionKeyAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16443,28 +16443,28 @@ func (s EncryptionKeyAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionKeyAccessDeniedException) OrigErr() error {
+func (s *EncryptionKeyAccessDeniedException) OrigErr() error {
return nil
}
-func (s EncryptionKeyAccessDeniedException) Error() string {
+func (s *EncryptionKeyAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionKeyAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionKeyAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionKeyAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionKeyAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The encryption key is disabled.
type EncryptionKeyDisabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16481,17 +16481,17 @@ func (s EncryptionKeyDisabledException) GoString() string {
func newErrorEncryptionKeyDisabledException(v protocol.ResponseMetadata) error {
return &EncryptionKeyDisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionKeyDisabledException) Code() string {
+func (s *EncryptionKeyDisabledException) Code() string {
return "EncryptionKeyDisabledException"
}
// Message returns the exception's message.
-func (s EncryptionKeyDisabledException) Message() string {
+func (s *EncryptionKeyDisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16499,28 +16499,28 @@ func (s EncryptionKeyDisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionKeyDisabledException) OrigErr() error {
+func (s *EncryptionKeyDisabledException) OrigErr() error {
return nil
}
-func (s EncryptionKeyDisabledException) Error() string {
+func (s *EncryptionKeyDisabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionKeyDisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionKeyDisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionKeyDisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionKeyDisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// No encryption key was found.
type EncryptionKeyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16537,17 +16537,17 @@ func (s EncryptionKeyNotFoundException) GoString() string {
func newErrorEncryptionKeyNotFoundException(v protocol.ResponseMetadata) error {
return &EncryptionKeyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionKeyNotFoundException) Code() string {
+func (s *EncryptionKeyNotFoundException) Code() string {
return "EncryptionKeyNotFoundException"
}
// Message returns the exception's message.
-func (s EncryptionKeyNotFoundException) Message() string {
+func (s *EncryptionKeyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16555,28 +16555,28 @@ func (s EncryptionKeyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionKeyNotFoundException) OrigErr() error {
+func (s *EncryptionKeyNotFoundException) OrigErr() error {
return nil
}
-func (s EncryptionKeyNotFoundException) Error() string {
+func (s *EncryptionKeyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionKeyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionKeyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionKeyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionKeyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The encryption key is not available.
type EncryptionKeyUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16593,17 +16593,17 @@ func (s EncryptionKeyUnavailableException) GoString() string {
func newErrorEncryptionKeyUnavailableException(v protocol.ResponseMetadata) error {
return &EncryptionKeyUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionKeyUnavailableException) Code() string {
+func (s *EncryptionKeyUnavailableException) Code() string {
return "EncryptionKeyUnavailableException"
}
// Message returns the exception's message.
-func (s EncryptionKeyUnavailableException) Message() string {
+func (s *EncryptionKeyUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16611,22 +16611,22 @@ func (s EncryptionKeyUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionKeyUnavailableException) OrigErr() error {
+func (s *EncryptionKeyUnavailableException) OrigErr() error {
return nil
}
-func (s EncryptionKeyUnavailableException) Error() string {
+func (s *EncryptionKeyUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionKeyUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionKeyUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionKeyUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionKeyUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type EvaluatePullRequestApprovalRulesInput struct {
@@ -16819,8 +16819,8 @@ func (s *File) SetRelativePath(v string) *File {
// have been specified for the same file. You cannot provide both. Either specify
// a source file or provide the file content directly.
type FileContentAndSourceFileSpecifiedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16837,17 +16837,17 @@ func (s FileContentAndSourceFileSpecifiedException) GoString() string {
func newErrorFileContentAndSourceFileSpecifiedException(v protocol.ResponseMetadata) error {
return &FileContentAndSourceFileSpecifiedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileContentAndSourceFileSpecifiedException) Code() string {
+func (s *FileContentAndSourceFileSpecifiedException) Code() string {
return "FileContentAndSourceFileSpecifiedException"
}
// Message returns the exception's message.
-func (s FileContentAndSourceFileSpecifiedException) Message() string {
+func (s *FileContentAndSourceFileSpecifiedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16855,29 +16855,29 @@ func (s FileContentAndSourceFileSpecifiedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileContentAndSourceFileSpecifiedException) OrigErr() error {
+func (s *FileContentAndSourceFileSpecifiedException) OrigErr() error {
return nil
}
-func (s FileContentAndSourceFileSpecifiedException) Error() string {
+func (s *FileContentAndSourceFileSpecifiedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileContentAndSourceFileSpecifiedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileContentAndSourceFileSpecifiedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileContentAndSourceFileSpecifiedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileContentAndSourceFileSpecifiedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The file cannot be added because it is empty. Empty files cannot be added
// to the repository with this API.
type FileContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16894,17 +16894,17 @@ func (s FileContentRequiredException) GoString() string {
func newErrorFileContentRequiredException(v protocol.ResponseMetadata) error {
return &FileContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileContentRequiredException) Code() string {
+func (s *FileContentRequiredException) Code() string {
return "FileContentRequiredException"
}
// Message returns the exception's message.
-func (s FileContentRequiredException) Message() string {
+func (s *FileContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16912,30 +16912,30 @@ func (s FileContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileContentRequiredException) OrigErr() error {
+func (s *FileContentRequiredException) OrigErr() error {
return nil
}
-func (s FileContentRequiredException) Error() string {
+func (s *FileContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The file cannot be added because it is too large. The maximum file size is
// 6 MB, and the combined file content change size is 7 MB. Consider making
// these changes using a Git client.
type FileContentSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16952,17 +16952,17 @@ func (s FileContentSizeLimitExceededException) GoString() string {
func newErrorFileContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &FileContentSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileContentSizeLimitExceededException) Code() string {
+func (s *FileContentSizeLimitExceededException) Code() string {
return "FileContentSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s FileContentSizeLimitExceededException) Message() string {
+func (s *FileContentSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16970,29 +16970,29 @@ func (s FileContentSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileContentSizeLimitExceededException) OrigErr() error {
+func (s *FileContentSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s FileContentSizeLimitExceededException) Error() string {
+func (s *FileContentSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileContentSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileContentSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileContentSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileContentSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified file does not exist. Verify that you have used the correct
// file name, full path, and extension.
type FileDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17009,17 +17009,17 @@ func (s FileDoesNotExistException) GoString() string {
func newErrorFileDoesNotExistException(v protocol.ResponseMetadata) error {
return &FileDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileDoesNotExistException) Code() string {
+func (s *FileDoesNotExistException) Code() string {
return "FileDoesNotExistException"
}
// Message returns the exception's message.
-func (s FileDoesNotExistException) Message() string {
+func (s *FileDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17027,29 +17027,29 @@ func (s FileDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileDoesNotExistException) OrigErr() error {
+func (s *FileDoesNotExistException) OrigErr() error {
return nil
}
-func (s FileDoesNotExistException) Error() string {
+func (s *FileDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because no files have been specified as added,
// updated, or changed (PutFile or DeleteFile) for the commit.
type FileEntryRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17066,17 +17066,17 @@ func (s FileEntryRequiredException) GoString() string {
func newErrorFileEntryRequiredException(v protocol.ResponseMetadata) error {
return &FileEntryRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileEntryRequiredException) Code() string {
+func (s *FileEntryRequiredException) Code() string {
return "FileEntryRequiredException"
}
// Message returns the exception's message.
-func (s FileEntryRequiredException) Message() string {
+func (s *FileEntryRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17084,22 +17084,22 @@ func (s FileEntryRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileEntryRequiredException) OrigErr() error {
+func (s *FileEntryRequiredException) OrigErr() error {
return nil
}
-func (s FileEntryRequiredException) Error() string {
+func (s *FileEntryRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileEntryRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileEntryRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileEntryRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileEntryRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A file to be added, updated, or deleted as part of a commit.
@@ -17149,8 +17149,8 @@ func (s *FileMetadata) SetFileMode(v string) *FileMetadata {
// The commit cannot be created because no file mode has been specified. A file
// mode is required to update mode permissions for a file.
type FileModeRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17167,17 +17167,17 @@ func (s FileModeRequiredException) GoString() string {
func newErrorFileModeRequiredException(v protocol.ResponseMetadata) error {
return &FileModeRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileModeRequiredException) Code() string {
+func (s *FileModeRequiredException) Code() string {
return "FileModeRequiredException"
}
// Message returns the exception's message.
-func (s FileModeRequiredException) Message() string {
+func (s *FileModeRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17185,22 +17185,22 @@ func (s FileModeRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileModeRequiredException) OrigErr() error {
+func (s *FileModeRequiredException) OrigErr() error {
return nil
}
-func (s FileModeRequiredException) Error() string {
+func (s *FileModeRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileModeRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileModeRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileModeRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileModeRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about file modes in a merge or pull request.
@@ -17250,8 +17250,8 @@ func (s *FileModes) SetSource(v string) *FileModes {
// name for the file, or add the file in a directory that does not match the
// file name.
type FileNameConflictsWithDirectoryNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17268,17 +17268,17 @@ func (s FileNameConflictsWithDirectoryNameException) GoString() string {
func newErrorFileNameConflictsWithDirectoryNameException(v protocol.ResponseMetadata) error {
return &FileNameConflictsWithDirectoryNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileNameConflictsWithDirectoryNameException) Code() string {
+func (s *FileNameConflictsWithDirectoryNameException) Code() string {
return "FileNameConflictsWithDirectoryNameException"
}
// Message returns the exception's message.
-func (s FileNameConflictsWithDirectoryNameException) Message() string {
+func (s *FileNameConflictsWithDirectoryNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17286,30 +17286,30 @@ func (s FileNameConflictsWithDirectoryNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileNameConflictsWithDirectoryNameException) OrigErr() error {
+func (s *FileNameConflictsWithDirectoryNameException) OrigErr() error {
return nil
}
-func (s FileNameConflictsWithDirectoryNameException) Error() string {
+func (s *FileNameConflictsWithDirectoryNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileNameConflictsWithDirectoryNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileNameConflictsWithDirectoryNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileNameConflictsWithDirectoryNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileNameConflictsWithDirectoryNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because a specified file path points to a submodule.
// Verify that the destination files have valid file paths that do not point
// to a submodule.
type FilePathConflictsWithSubmodulePathException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17326,17 +17326,17 @@ func (s FilePathConflictsWithSubmodulePathException) GoString() string {
func newErrorFilePathConflictsWithSubmodulePathException(v protocol.ResponseMetadata) error {
return &FilePathConflictsWithSubmodulePathException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FilePathConflictsWithSubmodulePathException) Code() string {
+func (s *FilePathConflictsWithSubmodulePathException) Code() string {
return "FilePathConflictsWithSubmodulePathException"
}
// Message returns the exception's message.
-func (s FilePathConflictsWithSubmodulePathException) Message() string {
+func (s *FilePathConflictsWithSubmodulePathException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17344,22 +17344,22 @@ func (s FilePathConflictsWithSubmodulePathException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FilePathConflictsWithSubmodulePathException) OrigErr() error {
+func (s *FilePathConflictsWithSubmodulePathException) OrigErr() error {
return nil
}
-func (s FilePathConflictsWithSubmodulePathException) Error() string {
+func (s *FilePathConflictsWithSubmodulePathException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FilePathConflictsWithSubmodulePathException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FilePathConflictsWithSubmodulePathException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FilePathConflictsWithSubmodulePathException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FilePathConflictsWithSubmodulePathException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the size of files in a merge or pull request.
@@ -17408,8 +17408,8 @@ func (s *FileSizes) SetSource(v int64) *FileSizes {
// information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
// (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
type FileTooLargeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17426,17 +17426,17 @@ func (s FileTooLargeException) GoString() string {
func newErrorFileTooLargeException(v protocol.ResponseMetadata) error {
return &FileTooLargeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileTooLargeException) Code() string {
+func (s *FileTooLargeException) Code() string {
return "FileTooLargeException"
}
// Message returns the exception's message.
-func (s FileTooLargeException) Message() string {
+func (s *FileTooLargeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17444,22 +17444,22 @@ func (s FileTooLargeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileTooLargeException) OrigErr() error {
+func (s *FileTooLargeException) OrigErr() error {
return nil
}
-func (s FileTooLargeException) Error() string {
+func (s *FileTooLargeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileTooLargeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileTooLargeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileTooLargeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileTooLargeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a folder in a repository.
@@ -17511,8 +17511,8 @@ func (s *Folder) SetTreeId(v string) *Folder {
// Either reduce the number and size of your changes, or split the changes across
// multiple folders.
type FolderContentSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17529,17 +17529,17 @@ func (s FolderContentSizeLimitExceededException) GoString() string {
func newErrorFolderContentSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &FolderContentSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FolderContentSizeLimitExceededException) Code() string {
+func (s *FolderContentSizeLimitExceededException) Code() string {
return "FolderContentSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s FolderContentSizeLimitExceededException) Message() string {
+func (s *FolderContentSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17547,29 +17547,29 @@ func (s FolderContentSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FolderContentSizeLimitExceededException) OrigErr() error {
+func (s *FolderContentSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s FolderContentSizeLimitExceededException) Error() string {
+func (s *FolderContentSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FolderContentSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FolderContentSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FolderContentSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FolderContentSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified folder does not exist. Either the folder name is not correct,
// or you did not enter the full path to the folder.
type FolderDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17586,17 +17586,17 @@ func (s FolderDoesNotExistException) GoString() string {
func newErrorFolderDoesNotExistException(v protocol.ResponseMetadata) error {
return &FolderDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FolderDoesNotExistException) Code() string {
+func (s *FolderDoesNotExistException) Code() string {
return "FolderDoesNotExistException"
}
// Message returns the exception's message.
-func (s FolderDoesNotExistException) Message() string {
+func (s *FolderDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17604,22 +17604,22 @@ func (s FolderDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FolderDoesNotExistException) OrigErr() error {
+func (s *FolderDoesNotExistException) OrigErr() error {
return nil
}
-func (s FolderDoesNotExistException) Error() string {
+func (s *FolderDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FolderDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FolderDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FolderDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FolderDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetApprovalRuleTemplateInput struct {
@@ -19571,8 +19571,8 @@ func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRe
// The client request token is not valid. Either the token is not in a valid
// format, or the token has been used in a previous request and cannot be reused.
type IdempotencyParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19589,17 +19589,17 @@ func (s IdempotencyParameterMismatchException) GoString() string {
func newErrorIdempotencyParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotencyParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotencyParameterMismatchException) Code() string {
+func (s *IdempotencyParameterMismatchException) Code() string {
return "IdempotencyParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotencyParameterMismatchException) Message() string {
+func (s *IdempotencyParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19607,30 +19607,30 @@ func (s IdempotencyParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotencyParameterMismatchException) OrigErr() error {
+func (s *IdempotencyParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotencyParameterMismatchException) Error() string {
+func (s *IdempotencyParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotencyParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotencyParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotencyParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotencyParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
// the full ARN for the user who initiated the change for the pull request,
// and then try again.
type InvalidActorArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19647,17 +19647,17 @@ func (s InvalidActorArnException) GoString() string {
func newErrorInvalidActorArnException(v protocol.ResponseMetadata) error {
return &InvalidActorArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidActorArnException) Code() string {
+func (s *InvalidActorArnException) Code() string {
return "InvalidActorArnException"
}
// Message returns the exception's message.
-func (s InvalidActorArnException) Message() string {
+func (s *InvalidActorArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19665,28 +19665,28 @@ func (s InvalidActorArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidActorArnException) OrigErr() error {
+func (s *InvalidActorArnException) OrigErr() error {
return nil
}
-func (s InvalidActorArnException) Error() string {
+func (s *InvalidActorArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidActorArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidActorArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidActorArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidActorArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The content for the approval rule is not valid.
type InvalidApprovalRuleContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19703,17 +19703,17 @@ func (s InvalidApprovalRuleContentException) GoString() string {
func newErrorInvalidApprovalRuleContentException(v protocol.ResponseMetadata) error {
return &InvalidApprovalRuleContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalRuleContentException) Code() string {
+func (s *InvalidApprovalRuleContentException) Code() string {
return "InvalidApprovalRuleContentException"
}
// Message returns the exception's message.
-func (s InvalidApprovalRuleContentException) Message() string {
+func (s *InvalidApprovalRuleContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19721,28 +19721,28 @@ func (s InvalidApprovalRuleContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalRuleContentException) OrigErr() error {
+func (s *InvalidApprovalRuleContentException) OrigErr() error {
return nil
}
-func (s InvalidApprovalRuleContentException) Error() string {
+func (s *InvalidApprovalRuleContentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalRuleContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalRuleContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalRuleContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalRuleContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The name for the approval rule is not valid.
type InvalidApprovalRuleNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19759,17 +19759,17 @@ func (s InvalidApprovalRuleNameException) GoString() string {
func newErrorInvalidApprovalRuleNameException(v protocol.ResponseMetadata) error {
return &InvalidApprovalRuleNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalRuleNameException) Code() string {
+func (s *InvalidApprovalRuleNameException) Code() string {
return "InvalidApprovalRuleNameException"
}
// Message returns the exception's message.
-func (s InvalidApprovalRuleNameException) Message() string {
+func (s *InvalidApprovalRuleNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19777,28 +19777,28 @@ func (s InvalidApprovalRuleNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalRuleNameException) OrigErr() error {
+func (s *InvalidApprovalRuleNameException) OrigErr() error {
return nil
}
-func (s InvalidApprovalRuleNameException) Error() string {
+func (s *InvalidApprovalRuleNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalRuleNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalRuleNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalRuleNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalRuleNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The content of the approval rule template is not valid.
type InvalidApprovalRuleTemplateContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19815,17 +19815,17 @@ func (s InvalidApprovalRuleTemplateContentException) GoString() string {
func newErrorInvalidApprovalRuleTemplateContentException(v protocol.ResponseMetadata) error {
return &InvalidApprovalRuleTemplateContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalRuleTemplateContentException) Code() string {
+func (s *InvalidApprovalRuleTemplateContentException) Code() string {
return "InvalidApprovalRuleTemplateContentException"
}
// Message returns the exception's message.
-func (s InvalidApprovalRuleTemplateContentException) Message() string {
+func (s *InvalidApprovalRuleTemplateContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19833,30 +19833,30 @@ func (s InvalidApprovalRuleTemplateContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalRuleTemplateContentException) OrigErr() error {
+func (s *InvalidApprovalRuleTemplateContentException) OrigErr() error {
return nil
}
-func (s InvalidApprovalRuleTemplateContentException) Error() string {
+func (s *InvalidApprovalRuleTemplateContentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalRuleTemplateContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalRuleTemplateContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalRuleTemplateContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalRuleTemplateContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The description for the approval rule template is not valid because it exceeds
// the maximum characters allowed for a description. For more information about
// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
type InvalidApprovalRuleTemplateDescriptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19873,17 +19873,17 @@ func (s InvalidApprovalRuleTemplateDescriptionException) GoString() string {
func newErrorInvalidApprovalRuleTemplateDescriptionException(v protocol.ResponseMetadata) error {
return &InvalidApprovalRuleTemplateDescriptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalRuleTemplateDescriptionException) Code() string {
+func (s *InvalidApprovalRuleTemplateDescriptionException) Code() string {
return "InvalidApprovalRuleTemplateDescriptionException"
}
// Message returns the exception's message.
-func (s InvalidApprovalRuleTemplateDescriptionException) Message() string {
+func (s *InvalidApprovalRuleTemplateDescriptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19891,30 +19891,30 @@ func (s InvalidApprovalRuleTemplateDescriptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalRuleTemplateDescriptionException) OrigErr() error {
+func (s *InvalidApprovalRuleTemplateDescriptionException) OrigErr() error {
return nil
}
-func (s InvalidApprovalRuleTemplateDescriptionException) Error() string {
+func (s *InvalidApprovalRuleTemplateDescriptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalRuleTemplateDescriptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalRuleTemplateDescriptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalRuleTemplateDescriptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalRuleTemplateDescriptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The name of the approval rule template is not valid. Template names must
// be between 1 and 100 valid characters in length. For more information about
// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
type InvalidApprovalRuleTemplateNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19931,17 +19931,17 @@ func (s InvalidApprovalRuleTemplateNameException) GoString() string {
func newErrorInvalidApprovalRuleTemplateNameException(v protocol.ResponseMetadata) error {
return &InvalidApprovalRuleTemplateNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalRuleTemplateNameException) Code() string {
+func (s *InvalidApprovalRuleTemplateNameException) Code() string {
return "InvalidApprovalRuleTemplateNameException"
}
// Message returns the exception's message.
-func (s InvalidApprovalRuleTemplateNameException) Message() string {
+func (s *InvalidApprovalRuleTemplateNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19949,29 +19949,29 @@ func (s InvalidApprovalRuleTemplateNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalRuleTemplateNameException) OrigErr() error {
+func (s *InvalidApprovalRuleTemplateNameException) OrigErr() error {
return nil
}
-func (s InvalidApprovalRuleTemplateNameException) Error() string {
+func (s *InvalidApprovalRuleTemplateNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalRuleTemplateNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalRuleTemplateNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalRuleTemplateNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalRuleTemplateNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The state for the approval is not valid. Valid values include APPROVE and
// REVOKE.
type InvalidApprovalStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19988,17 +19988,17 @@ func (s InvalidApprovalStateException) GoString() string {
func newErrorInvalidApprovalStateException(v protocol.ResponseMetadata) error {
return &InvalidApprovalStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalStateException) Code() string {
+func (s *InvalidApprovalStateException) Code() string {
return "InvalidApprovalStateException"
}
// Message returns the exception's message.
-func (s InvalidApprovalStateException) Message() string {
+func (s *InvalidApprovalStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20006,29 +20006,29 @@ func (s InvalidApprovalStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalStateException) OrigErr() error {
+func (s *InvalidApprovalStateException) OrigErr() error {
return nil
}
-func (s InvalidApprovalStateException) Error() string {
+func (s *InvalidApprovalStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
// the full ARN for the author of the pull request, and then try again.
type InvalidAuthorArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20045,17 +20045,17 @@ func (s InvalidAuthorArnException) GoString() string {
func newErrorInvalidAuthorArnException(v protocol.ResponseMetadata) error {
return &InvalidAuthorArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAuthorArnException) Code() string {
+func (s *InvalidAuthorArnException) Code() string {
return "InvalidAuthorArnException"
}
// Message returns the exception's message.
-func (s InvalidAuthorArnException) Message() string {
+func (s *InvalidAuthorArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20063,28 +20063,28 @@ func (s InvalidAuthorArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAuthorArnException) OrigErr() error {
+func (s *InvalidAuthorArnException) OrigErr() error {
return nil
}
-func (s InvalidAuthorArnException) Error() string {
+func (s *InvalidAuthorArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAuthorArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAuthorArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAuthorArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAuthorArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified blob is not valid.
type InvalidBlobIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20101,17 +20101,17 @@ func (s InvalidBlobIdException) GoString() string {
func newErrorInvalidBlobIdException(v protocol.ResponseMetadata) error {
return &InvalidBlobIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidBlobIdException) Code() string {
+func (s *InvalidBlobIdException) Code() string {
return "InvalidBlobIdException"
}
// Message returns the exception's message.
-func (s InvalidBlobIdException) Message() string {
+func (s *InvalidBlobIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20119,28 +20119,28 @@ func (s InvalidBlobIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidBlobIdException) OrigErr() error {
+func (s *InvalidBlobIdException) OrigErr() error {
return nil
}
-func (s InvalidBlobIdException) Error() string {
+func (s *InvalidBlobIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidBlobIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidBlobIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidBlobIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidBlobIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified reference name is not valid.
type InvalidBranchNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20157,17 +20157,17 @@ func (s InvalidBranchNameException) GoString() string {
func newErrorInvalidBranchNameException(v protocol.ResponseMetadata) error {
return &InvalidBranchNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidBranchNameException) Code() string {
+func (s *InvalidBranchNameException) Code() string {
return "InvalidBranchNameException"
}
// Message returns the exception's message.
-func (s InvalidBranchNameException) Message() string {
+func (s *InvalidBranchNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20175,28 +20175,28 @@ func (s InvalidBranchNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidBranchNameException) OrigErr() error {
+func (s *InvalidBranchNameException) OrigErr() error {
return nil
}
-func (s InvalidBranchNameException) Error() string {
+func (s *InvalidBranchNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidBranchNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidBranchNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidBranchNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidBranchNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The client request token is not valid.
type InvalidClientRequestTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20213,17 +20213,17 @@ func (s InvalidClientRequestTokenException) GoString() string {
func newErrorInvalidClientRequestTokenException(v protocol.ResponseMetadata) error {
return &InvalidClientRequestTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidClientRequestTokenException) Code() string {
+func (s *InvalidClientRequestTokenException) Code() string {
return "InvalidClientRequestTokenException"
}
// Message returns the exception's message.
-func (s InvalidClientRequestTokenException) Message() string {
+func (s *InvalidClientRequestTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20231,29 +20231,29 @@ func (s InvalidClientRequestTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidClientRequestTokenException) OrigErr() error {
+func (s *InvalidClientRequestTokenException) OrigErr() error {
return nil
}
-func (s InvalidClientRequestTokenException) Error() string {
+func (s *InvalidClientRequestTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidClientRequestTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidClientRequestTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidClientRequestTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidClientRequestTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The comment ID is not in a valid format. Make sure that you have provided
// the full comment ID.
type InvalidCommentIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20270,17 +20270,17 @@ func (s InvalidCommentIdException) GoString() string {
func newErrorInvalidCommentIdException(v protocol.ResponseMetadata) error {
return &InvalidCommentIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCommentIdException) Code() string {
+func (s *InvalidCommentIdException) Code() string {
return "InvalidCommentIdException"
}
// Message returns the exception's message.
-func (s InvalidCommentIdException) Message() string {
+func (s *InvalidCommentIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20288,28 +20288,28 @@ func (s InvalidCommentIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCommentIdException) OrigErr() error {
+func (s *InvalidCommentIdException) OrigErr() error {
return nil
}
-func (s InvalidCommentIdException) Error() string {
+func (s *InvalidCommentIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCommentIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCommentIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCommentIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCommentIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified commit is not valid.
type InvalidCommitException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20326,17 +20326,17 @@ func (s InvalidCommitException) GoString() string {
func newErrorInvalidCommitException(v protocol.ResponseMetadata) error {
return &InvalidCommitException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCommitException) Code() string {
+func (s *InvalidCommitException) Code() string {
return "InvalidCommitException"
}
// Message returns the exception's message.
-func (s InvalidCommitException) Message() string {
+func (s *InvalidCommitException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20344,28 +20344,28 @@ func (s InvalidCommitException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCommitException) OrigErr() error {
+func (s *InvalidCommitException) OrigErr() error {
return nil
}
-func (s InvalidCommitException) Error() string {
+func (s *InvalidCommitException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCommitException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCommitException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCommitException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCommitException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified commit ID is not valid.
type InvalidCommitIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20382,17 +20382,17 @@ func (s InvalidCommitIdException) GoString() string {
func newErrorInvalidCommitIdException(v protocol.ResponseMetadata) error {
return &InvalidCommitIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCommitIdException) Code() string {
+func (s *InvalidCommitIdException) Code() string {
return "InvalidCommitIdException"
}
// Message returns the exception's message.
-func (s InvalidCommitIdException) Message() string {
+func (s *InvalidCommitIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20400,28 +20400,28 @@ func (s InvalidCommitIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCommitIdException) OrigErr() error {
+func (s *InvalidCommitIdException) OrigErr() error {
return nil
}
-func (s InvalidCommitIdException) Error() string {
+func (s *InvalidCommitIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCommitIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCommitIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCommitIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCommitIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified conflict detail level is not valid.
type InvalidConflictDetailLevelException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20438,17 +20438,17 @@ func (s InvalidConflictDetailLevelException) GoString() string {
func newErrorInvalidConflictDetailLevelException(v protocol.ResponseMetadata) error {
return &InvalidConflictDetailLevelException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidConflictDetailLevelException) Code() string {
+func (s *InvalidConflictDetailLevelException) Code() string {
return "InvalidConflictDetailLevelException"
}
// Message returns the exception's message.
-func (s InvalidConflictDetailLevelException) Message() string {
+func (s *InvalidConflictDetailLevelException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20456,28 +20456,28 @@ func (s InvalidConflictDetailLevelException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidConflictDetailLevelException) OrigErr() error {
+func (s *InvalidConflictDetailLevelException) OrigErr() error {
return nil
}
-func (s InvalidConflictDetailLevelException) Error() string {
+func (s *InvalidConflictDetailLevelException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidConflictDetailLevelException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidConflictDetailLevelException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidConflictDetailLevelException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidConflictDetailLevelException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified conflict resolution list is not valid.
type InvalidConflictResolutionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20494,17 +20494,17 @@ func (s InvalidConflictResolutionException) GoString() string {
func newErrorInvalidConflictResolutionException(v protocol.ResponseMetadata) error {
return &InvalidConflictResolutionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidConflictResolutionException) Code() string {
+func (s *InvalidConflictResolutionException) Code() string {
return "InvalidConflictResolutionException"
}
// Message returns the exception's message.
-func (s InvalidConflictResolutionException) Message() string {
+func (s *InvalidConflictResolutionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20512,28 +20512,28 @@ func (s InvalidConflictResolutionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidConflictResolutionException) OrigErr() error {
+func (s *InvalidConflictResolutionException) OrigErr() error {
return nil
}
-func (s InvalidConflictResolutionException) Error() string {
+func (s *InvalidConflictResolutionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidConflictResolutionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidConflictResolutionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidConflictResolutionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidConflictResolutionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified conflict resolution strategy is not valid.
type InvalidConflictResolutionStrategyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20550,17 +20550,17 @@ func (s InvalidConflictResolutionStrategyException) GoString() string {
func newErrorInvalidConflictResolutionStrategyException(v protocol.ResponseMetadata) error {
return &InvalidConflictResolutionStrategyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidConflictResolutionStrategyException) Code() string {
+func (s *InvalidConflictResolutionStrategyException) Code() string {
return "InvalidConflictResolutionStrategyException"
}
// Message returns the exception's message.
-func (s InvalidConflictResolutionStrategyException) Message() string {
+func (s *InvalidConflictResolutionStrategyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20568,28 +20568,28 @@ func (s InvalidConflictResolutionStrategyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidConflictResolutionStrategyException) OrigErr() error {
+func (s *InvalidConflictResolutionStrategyException) OrigErr() error {
return nil
}
-func (s InvalidConflictResolutionStrategyException) Error() string {
+func (s *InvalidConflictResolutionStrategyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidConflictResolutionStrategyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidConflictResolutionStrategyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidConflictResolutionStrategyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidConflictResolutionStrategyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified continuation token is not valid.
type InvalidContinuationTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20606,17 +20606,17 @@ func (s InvalidContinuationTokenException) GoString() string {
func newErrorInvalidContinuationTokenException(v protocol.ResponseMetadata) error {
return &InvalidContinuationTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidContinuationTokenException) Code() string {
+func (s *InvalidContinuationTokenException) Code() string {
return "InvalidContinuationTokenException"
}
// Message returns the exception's message.
-func (s InvalidContinuationTokenException) Message() string {
+func (s *InvalidContinuationTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20624,28 +20624,28 @@ func (s InvalidContinuationTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidContinuationTokenException) OrigErr() error {
+func (s *InvalidContinuationTokenException) OrigErr() error {
return nil
}
-func (s InvalidContinuationTokenException) Error() string {
+func (s *InvalidContinuationTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidContinuationTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidContinuationTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidContinuationTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidContinuationTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified deletion parameter is not valid.
type InvalidDeletionParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20662,17 +20662,17 @@ func (s InvalidDeletionParameterException) GoString() string {
func newErrorInvalidDeletionParameterException(v protocol.ResponseMetadata) error {
return &InvalidDeletionParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeletionParameterException) Code() string {
+func (s *InvalidDeletionParameterException) Code() string {
return "InvalidDeletionParameterException"
}
// Message returns the exception's message.
-func (s InvalidDeletionParameterException) Message() string {
+func (s *InvalidDeletionParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20680,29 +20680,29 @@ func (s InvalidDeletionParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeletionParameterException) OrigErr() error {
+func (s *InvalidDeletionParameterException) OrigErr() error {
return nil
}
-func (s InvalidDeletionParameterException) Error() string {
+func (s *InvalidDeletionParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeletionParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeletionParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeletionParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeletionParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request description is not valid. Descriptions cannot be more than
// 1,000 characters.
type InvalidDescriptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20719,17 +20719,17 @@ func (s InvalidDescriptionException) GoString() string {
func newErrorInvalidDescriptionException(v protocol.ResponseMetadata) error {
return &InvalidDescriptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDescriptionException) Code() string {
+func (s *InvalidDescriptionException) Code() string {
return "InvalidDescriptionException"
}
// Message returns the exception's message.
-func (s InvalidDescriptionException) Message() string {
+func (s *InvalidDescriptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20737,29 +20737,29 @@ func (s InvalidDescriptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDescriptionException) OrigErr() error {
+func (s *InvalidDescriptionException) OrigErr() error {
return nil
}
-func (s InvalidDescriptionException) Error() string {
+func (s *InvalidDescriptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDescriptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDescriptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDescriptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDescriptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The destination commit specifier is not valid. You must provide a valid branch
// name, tag, or full commit ID.
type InvalidDestinationCommitSpecifierException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20776,17 +20776,17 @@ func (s InvalidDestinationCommitSpecifierException) GoString() string {
func newErrorInvalidDestinationCommitSpecifierException(v protocol.ResponseMetadata) error {
return &InvalidDestinationCommitSpecifierException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDestinationCommitSpecifierException) Code() string {
+func (s *InvalidDestinationCommitSpecifierException) Code() string {
return "InvalidDestinationCommitSpecifierException"
}
// Message returns the exception's message.
-func (s InvalidDestinationCommitSpecifierException) Message() string {
+func (s *InvalidDestinationCommitSpecifierException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20794,30 +20794,30 @@ func (s InvalidDestinationCommitSpecifierException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDestinationCommitSpecifierException) OrigErr() error {
+func (s *InvalidDestinationCommitSpecifierException) OrigErr() error {
return nil
}
-func (s InvalidDestinationCommitSpecifierException) Error() string {
+func (s *InvalidDestinationCommitSpecifierException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDestinationCommitSpecifierException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDestinationCommitSpecifierException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDestinationCommitSpecifierException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDestinationCommitSpecifierException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified email address either contains one or more characters that are
// not allowed, or it exceeds the maximum number of characters allowed for an
// email address.
type InvalidEmailException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20834,17 +20834,17 @@ func (s InvalidEmailException) GoString() string {
func newErrorInvalidEmailException(v protocol.ResponseMetadata) error {
return &InvalidEmailException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEmailException) Code() string {
+func (s *InvalidEmailException) Code() string {
return "InvalidEmailException"
}
// Message returns the exception's message.
-func (s InvalidEmailException) Message() string {
+func (s *InvalidEmailException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20852,29 +20852,29 @@ func (s InvalidEmailException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEmailException) OrigErr() error {
+func (s *InvalidEmailException) OrigErr() error {
return nil
}
-func (s InvalidEmailException) Error() string {
+func (s *InvalidEmailException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEmailException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEmailException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEmailException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEmailException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The location of the file is not valid. Make sure that you include the file
// name and extension.
type InvalidFileLocationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20891,17 +20891,17 @@ func (s InvalidFileLocationException) GoString() string {
func newErrorInvalidFileLocationException(v protocol.ResponseMetadata) error {
return &InvalidFileLocationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFileLocationException) Code() string {
+func (s *InvalidFileLocationException) Code() string {
return "InvalidFileLocationException"
}
// Message returns the exception's message.
-func (s InvalidFileLocationException) Message() string {
+func (s *InvalidFileLocationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20909,29 +20909,29 @@ func (s InvalidFileLocationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFileLocationException) OrigErr() error {
+func (s *InvalidFileLocationException) OrigErr() error {
return nil
}
-func (s InvalidFileLocationException) Error() string {
+func (s *InvalidFileLocationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFileLocationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFileLocationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFileLocationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFileLocationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified file mode permission is not valid. For a list of valid file
// mode permissions, see PutFile.
type InvalidFileModeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20948,17 +20948,17 @@ func (s InvalidFileModeException) GoString() string {
func newErrorInvalidFileModeException(v protocol.ResponseMetadata) error {
return &InvalidFileModeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFileModeException) Code() string {
+func (s *InvalidFileModeException) Code() string {
return "InvalidFileModeException"
}
// Message returns the exception's message.
-func (s InvalidFileModeException) Message() string {
+func (s *InvalidFileModeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20966,29 +20966,29 @@ func (s InvalidFileModeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFileModeException) OrigErr() error {
+func (s *InvalidFileModeException) OrigErr() error {
return nil
}
-func (s InvalidFileModeException) Error() string {
+func (s *InvalidFileModeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFileModeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFileModeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFileModeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFileModeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The position is not valid. Make sure that the line number exists in the version
// of the file you want to comment on.
type InvalidFilePositionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21005,17 +21005,17 @@ func (s InvalidFilePositionException) GoString() string {
func newErrorInvalidFilePositionException(v protocol.ResponseMetadata) error {
return &InvalidFilePositionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFilePositionException) Code() string {
+func (s *InvalidFilePositionException) Code() string {
return "InvalidFilePositionException"
}
// Message returns the exception's message.
-func (s InvalidFilePositionException) Message() string {
+func (s *InvalidFilePositionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21023,28 +21023,28 @@ func (s InvalidFilePositionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFilePositionException) OrigErr() error {
+func (s *InvalidFilePositionException) OrigErr() error {
return nil
}
-func (s InvalidFilePositionException) Error() string {
+func (s *InvalidFilePositionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFilePositionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFilePositionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFilePositionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFilePositionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified value for the number of conflict files to return is not valid.
type InvalidMaxConflictFilesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21061,17 +21061,17 @@ func (s InvalidMaxConflictFilesException) GoString() string {
func newErrorInvalidMaxConflictFilesException(v protocol.ResponseMetadata) error {
return &InvalidMaxConflictFilesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMaxConflictFilesException) Code() string {
+func (s *InvalidMaxConflictFilesException) Code() string {
return "InvalidMaxConflictFilesException"
}
// Message returns the exception's message.
-func (s InvalidMaxConflictFilesException) Message() string {
+func (s *InvalidMaxConflictFilesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21079,28 +21079,28 @@ func (s InvalidMaxConflictFilesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMaxConflictFilesException) OrigErr() error {
+func (s *InvalidMaxConflictFilesException) OrigErr() error {
return nil
}
-func (s InvalidMaxConflictFilesException) Error() string {
+func (s *InvalidMaxConflictFilesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMaxConflictFilesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMaxConflictFilesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMaxConflictFilesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMaxConflictFilesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified value for the number of merge hunks to return is not valid.
type InvalidMaxMergeHunksException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21117,17 +21117,17 @@ func (s InvalidMaxMergeHunksException) GoString() string {
func newErrorInvalidMaxMergeHunksException(v protocol.ResponseMetadata) error {
return &InvalidMaxMergeHunksException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMaxMergeHunksException) Code() string {
+func (s *InvalidMaxMergeHunksException) Code() string {
return "InvalidMaxMergeHunksException"
}
// Message returns the exception's message.
-func (s InvalidMaxMergeHunksException) Message() string {
+func (s *InvalidMaxMergeHunksException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21135,28 +21135,28 @@ func (s InvalidMaxMergeHunksException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMaxMergeHunksException) OrigErr() error {
+func (s *InvalidMaxMergeHunksException) OrigErr() error {
return nil
}
-func (s InvalidMaxMergeHunksException) Error() string {
+func (s *InvalidMaxMergeHunksException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMaxMergeHunksException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMaxMergeHunksException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMaxMergeHunksException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMaxMergeHunksException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified number of maximum results is not valid.
type InvalidMaxResultsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21173,17 +21173,17 @@ func (s InvalidMaxResultsException) GoString() string {
func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error {
return &InvalidMaxResultsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMaxResultsException) Code() string {
+func (s *InvalidMaxResultsException) Code() string {
return "InvalidMaxResultsException"
}
// Message returns the exception's message.
-func (s InvalidMaxResultsException) Message() string {
+func (s *InvalidMaxResultsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21191,29 +21191,29 @@ func (s InvalidMaxResultsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMaxResultsException) OrigErr() error {
+func (s *InvalidMaxResultsException) OrigErr() error {
return nil
}
-func (s InvalidMaxResultsException) Error() string {
+func (s *InvalidMaxResultsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMaxResultsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMaxResultsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMaxResultsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMaxResultsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified merge option is not valid for this operation. Not all merge
// strategies are supported for all operations.
type InvalidMergeOptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21230,17 +21230,17 @@ func (s InvalidMergeOptionException) GoString() string {
func newErrorInvalidMergeOptionException(v protocol.ResponseMetadata) error {
return &InvalidMergeOptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMergeOptionException) Code() string {
+func (s *InvalidMergeOptionException) Code() string {
return "InvalidMergeOptionException"
}
// Message returns the exception's message.
-func (s InvalidMergeOptionException) Message() string {
+func (s *InvalidMergeOptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21248,28 +21248,28 @@ func (s InvalidMergeOptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMergeOptionException) OrigErr() error {
+func (s *InvalidMergeOptionException) OrigErr() error {
return nil
}
-func (s InvalidMergeOptionException) Error() string {
+func (s *InvalidMergeOptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMergeOptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMergeOptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMergeOptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMergeOptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified sort order is not valid.
type InvalidOrderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21286,17 +21286,17 @@ func (s InvalidOrderException) GoString() string {
func newErrorInvalidOrderException(v protocol.ResponseMetadata) error {
return &InvalidOrderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOrderException) Code() string {
+func (s *InvalidOrderException) Code() string {
return "InvalidOrderException"
}
// Message returns the exception's message.
-func (s InvalidOrderException) Message() string {
+func (s *InvalidOrderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21304,28 +21304,28 @@ func (s InvalidOrderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOrderException) OrigErr() error {
+func (s *InvalidOrderException) OrigErr() error {
return nil
}
-func (s InvalidOrderException) Error() string {
+func (s *InvalidOrderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOrderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOrderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOrderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOrderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
type InvalidOverrideStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21342,17 +21342,17 @@ func (s InvalidOverrideStatusException) GoString() string {
func newErrorInvalidOverrideStatusException(v protocol.ResponseMetadata) error {
return &InvalidOverrideStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOverrideStatusException) Code() string {
+func (s *InvalidOverrideStatusException) Code() string {
return "InvalidOverrideStatusException"
}
// Message returns the exception's message.
-func (s InvalidOverrideStatusException) Message() string {
+func (s *InvalidOverrideStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21360,30 +21360,30 @@ func (s InvalidOverrideStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOverrideStatusException) OrigErr() error {
+func (s *InvalidOverrideStatusException) OrigErr() error {
return nil
}
-func (s InvalidOverrideStatusException) Error() string {
+func (s *InvalidOverrideStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOverrideStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOverrideStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOverrideStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOverrideStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parent commit ID is not valid. The commit ID cannot be empty, and must
// match the head commit ID for the branch of the repository where you want
// to add or update a file.
type InvalidParentCommitIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21400,17 +21400,17 @@ func (s InvalidParentCommitIdException) GoString() string {
func newErrorInvalidParentCommitIdException(v protocol.ResponseMetadata) error {
return &InvalidParentCommitIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParentCommitIdException) Code() string {
+func (s *InvalidParentCommitIdException) Code() string {
return "InvalidParentCommitIdException"
}
// Message returns the exception's message.
-func (s InvalidParentCommitIdException) Message() string {
+func (s *InvalidParentCommitIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21418,28 +21418,28 @@ func (s InvalidParentCommitIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParentCommitIdException) OrigErr() error {
+func (s *InvalidParentCommitIdException) OrigErr() error {
return nil
}
-func (s InvalidParentCommitIdException) Error() string {
+func (s *InvalidParentCommitIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParentCommitIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParentCommitIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParentCommitIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParentCommitIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified path is not valid.
type InvalidPathException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21456,17 +21456,17 @@ func (s InvalidPathException) GoString() string {
func newErrorInvalidPathException(v protocol.ResponseMetadata) error {
return &InvalidPathException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPathException) Code() string {
+func (s *InvalidPathException) Code() string {
return "InvalidPathException"
}
// Message returns the exception's message.
-func (s InvalidPathException) Message() string {
+func (s *InvalidPathException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21474,28 +21474,28 @@ func (s InvalidPathException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPathException) OrigErr() error {
+func (s *InvalidPathException) OrigErr() error {
return nil
}
-func (s InvalidPathException) Error() string {
+func (s *InvalidPathException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPathException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPathException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPathException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPathException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request event type is not valid.
type InvalidPullRequestEventTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21512,17 +21512,17 @@ func (s InvalidPullRequestEventTypeException) GoString() string {
func newErrorInvalidPullRequestEventTypeException(v protocol.ResponseMetadata) error {
return &InvalidPullRequestEventTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPullRequestEventTypeException) Code() string {
+func (s *InvalidPullRequestEventTypeException) Code() string {
return "InvalidPullRequestEventTypeException"
}
// Message returns the exception's message.
-func (s InvalidPullRequestEventTypeException) Message() string {
+func (s *InvalidPullRequestEventTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21530,30 +21530,30 @@ func (s InvalidPullRequestEventTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPullRequestEventTypeException) OrigErr() error {
+func (s *InvalidPullRequestEventTypeException) OrigErr() error {
return nil
}
-func (s InvalidPullRequestEventTypeException) Error() string {
+func (s *InvalidPullRequestEventTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPullRequestEventTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPullRequestEventTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPullRequestEventTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPullRequestEventTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request ID is not valid. Make sure that you have provided the full
// ID and that the pull request is in the specified repository, and then try
// again.
type InvalidPullRequestIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21570,17 +21570,17 @@ func (s InvalidPullRequestIdException) GoString() string {
func newErrorInvalidPullRequestIdException(v protocol.ResponseMetadata) error {
return &InvalidPullRequestIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPullRequestIdException) Code() string {
+func (s *InvalidPullRequestIdException) Code() string {
return "InvalidPullRequestIdException"
}
// Message returns the exception's message.
-func (s InvalidPullRequestIdException) Message() string {
+func (s *InvalidPullRequestIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21588,29 +21588,29 @@ func (s InvalidPullRequestIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPullRequestIdException) OrigErr() error {
+func (s *InvalidPullRequestIdException) OrigErr() error {
return nil
}
-func (s InvalidPullRequestIdException) Error() string {
+func (s *InvalidPullRequestIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPullRequestIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPullRequestIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPullRequestIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPullRequestIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request status is not valid. The only valid values are OPEN and
// CLOSED.
type InvalidPullRequestStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21627,17 +21627,17 @@ func (s InvalidPullRequestStatusException) GoString() string {
func newErrorInvalidPullRequestStatusException(v protocol.ResponseMetadata) error {
return &InvalidPullRequestStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPullRequestStatusException) Code() string {
+func (s *InvalidPullRequestStatusException) Code() string {
return "InvalidPullRequestStatusException"
}
// Message returns the exception's message.
-func (s InvalidPullRequestStatusException) Message() string {
+func (s *InvalidPullRequestStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21645,29 +21645,29 @@ func (s InvalidPullRequestStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPullRequestStatusException) OrigErr() error {
+func (s *InvalidPullRequestStatusException) OrigErr() error {
return nil
}
-func (s InvalidPullRequestStatusException) Error() string {
+func (s *InvalidPullRequestStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPullRequestStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPullRequestStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPullRequestStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPullRequestStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request status update is not valid. The only valid update is from
// OPEN to CLOSED.
type InvalidPullRequestStatusUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21684,17 +21684,17 @@ func (s InvalidPullRequestStatusUpdateException) GoString() string {
func newErrorInvalidPullRequestStatusUpdateException(v protocol.ResponseMetadata) error {
return &InvalidPullRequestStatusUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPullRequestStatusUpdateException) Code() string {
+func (s *InvalidPullRequestStatusUpdateException) Code() string {
return "InvalidPullRequestStatusUpdateException"
}
// Message returns the exception's message.
-func (s InvalidPullRequestStatusUpdateException) Message() string {
+func (s *InvalidPullRequestStatusUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21702,22 +21702,22 @@ func (s InvalidPullRequestStatusUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPullRequestStatusUpdateException) OrigErr() error {
+func (s *InvalidPullRequestStatusUpdateException) OrigErr() error {
return nil
}
-func (s InvalidPullRequestStatusUpdateException) Error() string {
+func (s *InvalidPullRequestStatusUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPullRequestStatusUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPullRequestStatusUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPullRequestStatusUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPullRequestStatusUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified reference name format is not valid. Reference names must conform
@@ -21725,8 +21725,8 @@ func (s InvalidPullRequestStatusUpdateException) RequestID() string {
// see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
// or consult your Git documentation.
type InvalidReferenceNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21743,17 +21743,17 @@ func (s InvalidReferenceNameException) GoString() string {
func newErrorInvalidReferenceNameException(v protocol.ResponseMetadata) error {
return &InvalidReferenceNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidReferenceNameException) Code() string {
+func (s *InvalidReferenceNameException) Code() string {
return "InvalidReferenceNameException"
}
// Message returns the exception's message.
-func (s InvalidReferenceNameException) Message() string {
+func (s *InvalidReferenceNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21761,29 +21761,29 @@ func (s InvalidReferenceNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidReferenceNameException) OrigErr() error {
+func (s *InvalidReferenceNameException) OrigErr() error {
return nil
}
-func (s InvalidReferenceNameException) Error() string {
+func (s *InvalidReferenceNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidReferenceNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidReferenceNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidReferenceNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidReferenceNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Either the enum is not in a valid format, or the specified file version enum
// is not valid in respect to the current file version.
type InvalidRelativeFileVersionEnumException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21800,17 +21800,17 @@ func (s InvalidRelativeFileVersionEnumException) GoString() string {
func newErrorInvalidRelativeFileVersionEnumException(v protocol.ResponseMetadata) error {
return &InvalidRelativeFileVersionEnumException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRelativeFileVersionEnumException) Code() string {
+func (s *InvalidRelativeFileVersionEnumException) Code() string {
return "InvalidRelativeFileVersionEnumException"
}
// Message returns the exception's message.
-func (s InvalidRelativeFileVersionEnumException) Message() string {
+func (s *InvalidRelativeFileVersionEnumException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21818,29 +21818,29 @@ func (s InvalidRelativeFileVersionEnumException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRelativeFileVersionEnumException) OrigErr() error {
+func (s *InvalidRelativeFileVersionEnumException) OrigErr() error {
return nil
}
-func (s InvalidRelativeFileVersionEnumException) Error() string {
+func (s *InvalidRelativeFileVersionEnumException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRelativeFileVersionEnumException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRelativeFileVersionEnumException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRelativeFileVersionEnumException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRelativeFileVersionEnumException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Automerge was specified for resolving the conflict, but the replacement type
// is not valid or content is missing.
type InvalidReplacementContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21857,17 +21857,17 @@ func (s InvalidReplacementContentException) GoString() string {
func newErrorInvalidReplacementContentException(v protocol.ResponseMetadata) error {
return &InvalidReplacementContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidReplacementContentException) Code() string {
+func (s *InvalidReplacementContentException) Code() string {
return "InvalidReplacementContentException"
}
// Message returns the exception's message.
-func (s InvalidReplacementContentException) Message() string {
+func (s *InvalidReplacementContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21875,29 +21875,29 @@ func (s InvalidReplacementContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidReplacementContentException) OrigErr() error {
+func (s *InvalidReplacementContentException) OrigErr() error {
return nil
}
-func (s InvalidReplacementContentException) Error() string {
+func (s *InvalidReplacementContentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidReplacementContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidReplacementContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidReplacementContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidReplacementContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Automerge was specified for resolving the conflict, but the specified replacement
// type is not valid.
type InvalidReplacementTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21914,17 +21914,17 @@ func (s InvalidReplacementTypeException) GoString() string {
func newErrorInvalidReplacementTypeException(v protocol.ResponseMetadata) error {
return &InvalidReplacementTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidReplacementTypeException) Code() string {
+func (s *InvalidReplacementTypeException) Code() string {
return "InvalidReplacementTypeException"
}
// Message returns the exception's message.
-func (s InvalidReplacementTypeException) Message() string {
+func (s *InvalidReplacementTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21932,28 +21932,28 @@ func (s InvalidReplacementTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidReplacementTypeException) OrigErr() error {
+func (s *InvalidReplacementTypeException) OrigErr() error {
return nil
}
-func (s InvalidReplacementTypeException) Error() string {
+func (s *InvalidReplacementTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidReplacementTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidReplacementTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidReplacementTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidReplacementTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified repository description is not valid.
type InvalidRepositoryDescriptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21970,17 +21970,17 @@ func (s InvalidRepositoryDescriptionException) GoString() string {
func newErrorInvalidRepositoryDescriptionException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryDescriptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryDescriptionException) Code() string {
+func (s *InvalidRepositoryDescriptionException) Code() string {
return "InvalidRepositoryDescriptionException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryDescriptionException) Message() string {
+func (s *InvalidRepositoryDescriptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21988,22 +21988,22 @@ func (s InvalidRepositoryDescriptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryDescriptionException) OrigErr() error {
+func (s *InvalidRepositoryDescriptionException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryDescriptionException) Error() string {
+func (s *InvalidRepositoryDescriptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryDescriptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryDescriptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryDescriptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryDescriptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A specified repository name is not valid.
@@ -22012,8 +22012,8 @@ func (s InvalidRepositoryDescriptionException) RequestID() string {
// Other exceptions occur when a required repository parameter is missing, or
// when a specified repository does not exist.
type InvalidRepositoryNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22030,17 +22030,17 @@ func (s InvalidRepositoryNameException) GoString() string {
func newErrorInvalidRepositoryNameException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryNameException) Code() string {
+func (s *InvalidRepositoryNameException) Code() string {
return "InvalidRepositoryNameException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryNameException) Message() string {
+func (s *InvalidRepositoryNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22048,28 +22048,28 @@ func (s InvalidRepositoryNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryNameException) OrigErr() error {
+func (s *InvalidRepositoryNameException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryNameException) Error() string {
+func (s *InvalidRepositoryNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more branch names specified for the trigger is not valid.
type InvalidRepositoryTriggerBranchNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22086,17 +22086,17 @@ func (s InvalidRepositoryTriggerBranchNameException) GoString() string {
func newErrorInvalidRepositoryTriggerBranchNameException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerBranchNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerBranchNameException) Code() string {
+func (s *InvalidRepositoryTriggerBranchNameException) Code() string {
return "InvalidRepositoryTriggerBranchNameException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerBranchNameException) Message() string {
+func (s *InvalidRepositoryTriggerBranchNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22104,28 +22104,28 @@ func (s InvalidRepositoryTriggerBranchNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerBranchNameException) OrigErr() error {
+func (s *InvalidRepositoryTriggerBranchNameException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerBranchNameException) Error() string {
+func (s *InvalidRepositoryTriggerBranchNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerBranchNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerBranchNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerBranchNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerBranchNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The custom data provided for the trigger is not valid.
type InvalidRepositoryTriggerCustomDataException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22142,17 +22142,17 @@ func (s InvalidRepositoryTriggerCustomDataException) GoString() string {
func newErrorInvalidRepositoryTriggerCustomDataException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerCustomDataException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerCustomDataException) Code() string {
+func (s *InvalidRepositoryTriggerCustomDataException) Code() string {
return "InvalidRepositoryTriggerCustomDataException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerCustomDataException) Message() string {
+func (s *InvalidRepositoryTriggerCustomDataException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22160,30 +22160,30 @@ func (s InvalidRepositoryTriggerCustomDataException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerCustomDataException) OrigErr() error {
+func (s *InvalidRepositoryTriggerCustomDataException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerCustomDataException) Error() string {
+func (s *InvalidRepositoryTriggerCustomDataException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerCustomDataException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerCustomDataException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerCustomDataException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerCustomDataException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Resource Name (ARN) for the trigger is not valid for the specified
// destination. The most common reason for this error is that the ARN does not
// meet the requirements for the service type.
type InvalidRepositoryTriggerDestinationArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22200,17 +22200,17 @@ func (s InvalidRepositoryTriggerDestinationArnException) GoString() string {
func newErrorInvalidRepositoryTriggerDestinationArnException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerDestinationArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerDestinationArnException) Code() string {
+func (s *InvalidRepositoryTriggerDestinationArnException) Code() string {
return "InvalidRepositoryTriggerDestinationArnException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerDestinationArnException) Message() string {
+func (s *InvalidRepositoryTriggerDestinationArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22218,29 +22218,29 @@ func (s InvalidRepositoryTriggerDestinationArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerDestinationArnException) OrigErr() error {
+func (s *InvalidRepositoryTriggerDestinationArnException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerDestinationArnException) Error() string {
+func (s *InvalidRepositoryTriggerDestinationArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerDestinationArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerDestinationArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerDestinationArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerDestinationArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more events specified for the trigger is not valid. Check to make
// sure that all events specified match the requirements for allowed events.
type InvalidRepositoryTriggerEventsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22257,17 +22257,17 @@ func (s InvalidRepositoryTriggerEventsException) GoString() string {
func newErrorInvalidRepositoryTriggerEventsException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerEventsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerEventsException) Code() string {
+func (s *InvalidRepositoryTriggerEventsException) Code() string {
return "InvalidRepositoryTriggerEventsException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerEventsException) Message() string {
+func (s *InvalidRepositoryTriggerEventsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22275,28 +22275,28 @@ func (s InvalidRepositoryTriggerEventsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerEventsException) OrigErr() error {
+func (s *InvalidRepositoryTriggerEventsException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerEventsException) Error() string {
+func (s *InvalidRepositoryTriggerEventsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerEventsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerEventsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerEventsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerEventsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The name of the trigger is not valid.
type InvalidRepositoryTriggerNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22313,17 +22313,17 @@ func (s InvalidRepositoryTriggerNameException) GoString() string {
func newErrorInvalidRepositoryTriggerNameException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerNameException) Code() string {
+func (s *InvalidRepositoryTriggerNameException) Code() string {
return "InvalidRepositoryTriggerNameException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerNameException) Message() string {
+func (s *InvalidRepositoryTriggerNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22331,30 +22331,30 @@ func (s InvalidRepositoryTriggerNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerNameException) OrigErr() error {
+func (s *InvalidRepositoryTriggerNameException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerNameException) Error() string {
+func (s *InvalidRepositoryTriggerNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS Region for the trigger target does not match the AWS Region for the
// repository. Triggers must be created in the same Region as the target for
// the trigger.
type InvalidRepositoryTriggerRegionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22371,17 +22371,17 @@ func (s InvalidRepositoryTriggerRegionException) GoString() string {
func newErrorInvalidRepositoryTriggerRegionException(v protocol.ResponseMetadata) error {
return &InvalidRepositoryTriggerRegionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRepositoryTriggerRegionException) Code() string {
+func (s *InvalidRepositoryTriggerRegionException) Code() string {
return "InvalidRepositoryTriggerRegionException"
}
// Message returns the exception's message.
-func (s InvalidRepositoryTriggerRegionException) Message() string {
+func (s *InvalidRepositoryTriggerRegionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22389,30 +22389,30 @@ func (s InvalidRepositoryTriggerRegionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRepositoryTriggerRegionException) OrigErr() error {
+func (s *InvalidRepositoryTriggerRegionException) OrigErr() error {
return nil
}
-func (s InvalidRepositoryTriggerRegionException) Error() string {
+func (s *InvalidRepositoryTriggerRegionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRepositoryTriggerRegionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRepositoryTriggerRegionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRepositoryTriggerRegionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRepositoryTriggerRegionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value for the resource ARN is not valid. For more information about resources
// in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
// in the AWS CodeCommit User Guide.
type InvalidResourceArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22429,17 +22429,17 @@ func (s InvalidResourceArnException) GoString() string {
func newErrorInvalidResourceArnException(v protocol.ResponseMetadata) error {
return &InvalidResourceArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceArnException) Code() string {
+func (s *InvalidResourceArnException) Code() string {
return "InvalidResourceArnException"
}
// Message returns the exception's message.
-func (s InvalidResourceArnException) Message() string {
+func (s *InvalidResourceArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22447,28 +22447,28 @@ func (s InvalidResourceArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceArnException) OrigErr() error {
+func (s *InvalidResourceArnException) OrigErr() error {
return nil
}
-func (s InvalidResourceArnException) Error() string {
+func (s *InvalidResourceArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The revision ID is not valid. Use GetPullRequest to determine the value.
type InvalidRevisionIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22485,17 +22485,17 @@ func (s InvalidRevisionIdException) GoString() string {
func newErrorInvalidRevisionIdException(v protocol.ResponseMetadata) error {
return &InvalidRevisionIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRevisionIdException) Code() string {
+func (s *InvalidRevisionIdException) Code() string {
return "InvalidRevisionIdException"
}
// Message returns the exception's message.
-func (s InvalidRevisionIdException) Message() string {
+func (s *InvalidRevisionIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22503,28 +22503,28 @@ func (s InvalidRevisionIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRevisionIdException) OrigErr() error {
+func (s *InvalidRevisionIdException) OrigErr() error {
return nil
}
-func (s InvalidRevisionIdException) Error() string {
+func (s *InvalidRevisionIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRevisionIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRevisionIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRevisionIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRevisionIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The SHA-256 hash signature for the rule content is not valid.
type InvalidRuleContentSha256Exception struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22541,17 +22541,17 @@ func (s InvalidRuleContentSha256Exception) GoString() string {
func newErrorInvalidRuleContentSha256Exception(v protocol.ResponseMetadata) error {
return &InvalidRuleContentSha256Exception{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRuleContentSha256Exception) Code() string {
+func (s *InvalidRuleContentSha256Exception) Code() string {
return "InvalidRuleContentSha256Exception"
}
// Message returns the exception's message.
-func (s InvalidRuleContentSha256Exception) Message() string {
+func (s *InvalidRuleContentSha256Exception) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22559,28 +22559,28 @@ func (s InvalidRuleContentSha256Exception) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRuleContentSha256Exception) OrigErr() error {
+func (s *InvalidRuleContentSha256Exception) OrigErr() error {
return nil
}
-func (s InvalidRuleContentSha256Exception) Error() string {
+func (s *InvalidRuleContentSha256Exception) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRuleContentSha256Exception) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRuleContentSha256Exception) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRuleContentSha256Exception) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRuleContentSha256Exception) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified sort by value is not valid.
type InvalidSortByException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22597,17 +22597,17 @@ func (s InvalidSortByException) GoString() string {
func newErrorInvalidSortByException(v protocol.ResponseMetadata) error {
return &InvalidSortByException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSortByException) Code() string {
+func (s *InvalidSortByException) Code() string {
return "InvalidSortByException"
}
// Message returns the exception's message.
-func (s InvalidSortByException) Message() string {
+func (s *InvalidSortByException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22615,29 +22615,29 @@ func (s InvalidSortByException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSortByException) OrigErr() error {
+func (s *InvalidSortByException) OrigErr() error {
return nil
}
-func (s InvalidSortByException) Error() string {
+func (s *InvalidSortByException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSortByException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSortByException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSortByException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSortByException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The source commit specifier is not valid. You must provide a valid branch
// name, tag, or full commit ID.
type InvalidSourceCommitSpecifierException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22654,17 +22654,17 @@ func (s InvalidSourceCommitSpecifierException) GoString() string {
func newErrorInvalidSourceCommitSpecifierException(v protocol.ResponseMetadata) error {
return &InvalidSourceCommitSpecifierException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSourceCommitSpecifierException) Code() string {
+func (s *InvalidSourceCommitSpecifierException) Code() string {
return "InvalidSourceCommitSpecifierException"
}
// Message returns the exception's message.
-func (s InvalidSourceCommitSpecifierException) Message() string {
+func (s *InvalidSourceCommitSpecifierException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22672,28 +22672,28 @@ func (s InvalidSourceCommitSpecifierException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSourceCommitSpecifierException) OrigErr() error {
+func (s *InvalidSourceCommitSpecifierException) OrigErr() error {
return nil
}
-func (s InvalidSourceCommitSpecifierException) Error() string {
+func (s *InvalidSourceCommitSpecifierException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSourceCommitSpecifierException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSourceCommitSpecifierException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSourceCommitSpecifierException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSourceCommitSpecifierException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified tag is not valid. Key names cannot be prefixed with aws:.
type InvalidSystemTagUsageException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22710,17 +22710,17 @@ func (s InvalidSystemTagUsageException) GoString() string {
func newErrorInvalidSystemTagUsageException(v protocol.ResponseMetadata) error {
return &InvalidSystemTagUsageException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSystemTagUsageException) Code() string {
+func (s *InvalidSystemTagUsageException) Code() string {
return "InvalidSystemTagUsageException"
}
// Message returns the exception's message.
-func (s InvalidSystemTagUsageException) Message() string {
+func (s *InvalidSystemTagUsageException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22728,28 +22728,28 @@ func (s InvalidSystemTagUsageException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSystemTagUsageException) OrigErr() error {
+func (s *InvalidSystemTagUsageException) OrigErr() error {
return nil
}
-func (s InvalidSystemTagUsageException) Error() string {
+func (s *InvalidSystemTagUsageException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSystemTagUsageException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSystemTagUsageException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSystemTagUsageException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSystemTagUsageException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The list of tags is not valid.
type InvalidTagKeysListException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22766,17 +22766,17 @@ func (s InvalidTagKeysListException) GoString() string {
func newErrorInvalidTagKeysListException(v protocol.ResponseMetadata) error {
return &InvalidTagKeysListException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagKeysListException) Code() string {
+func (s *InvalidTagKeysListException) Code() string {
return "InvalidTagKeysListException"
}
// Message returns the exception's message.
-func (s InvalidTagKeysListException) Message() string {
+func (s *InvalidTagKeysListException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22784,28 +22784,28 @@ func (s InvalidTagKeysListException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagKeysListException) OrigErr() error {
+func (s *InvalidTagKeysListException) OrigErr() error {
return nil
}
-func (s InvalidTagKeysListException) Error() string {
+func (s *InvalidTagKeysListException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagKeysListException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagKeysListException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagKeysListException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagKeysListException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The map of tags is not valid.
type InvalidTagsMapException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22822,17 +22822,17 @@ func (s InvalidTagsMapException) GoString() string {
func newErrorInvalidTagsMapException(v protocol.ResponseMetadata) error {
return &InvalidTagsMapException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagsMapException) Code() string {
+func (s *InvalidTagsMapException) Code() string {
return "InvalidTagsMapException"
}
// Message returns the exception's message.
-func (s InvalidTagsMapException) Message() string {
+func (s *InvalidTagsMapException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22840,28 +22840,28 @@ func (s InvalidTagsMapException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagsMapException) OrigErr() error {
+func (s *InvalidTagsMapException) OrigErr() error {
return nil
}
-func (s InvalidTagsMapException) Error() string {
+func (s *InvalidTagsMapException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagsMapException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagsMapException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagsMapException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagsMapException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified target branch is not valid.
type InvalidTargetBranchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22878,17 +22878,17 @@ func (s InvalidTargetBranchException) GoString() string {
func newErrorInvalidTargetBranchException(v protocol.ResponseMetadata) error {
return &InvalidTargetBranchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetBranchException) Code() string {
+func (s *InvalidTargetBranchException) Code() string {
return "InvalidTargetBranchException"
}
// Message returns the exception's message.
-func (s InvalidTargetBranchException) Message() string {
+func (s *InvalidTargetBranchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22896,30 +22896,30 @@ func (s InvalidTargetBranchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetBranchException) OrigErr() error {
+func (s *InvalidTargetBranchException) OrigErr() error {
return nil
}
-func (s InvalidTargetBranchException) Error() string {
+func (s *InvalidTargetBranchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetBranchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetBranchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetBranchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetBranchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target for the pull request is not valid. A target must contain the full
// values for the repository name, source branch, and destination branch for
// the pull request.
type InvalidTargetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22936,17 +22936,17 @@ func (s InvalidTargetException) GoString() string {
func newErrorInvalidTargetException(v protocol.ResponseMetadata) error {
return &InvalidTargetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetException) Code() string {
+func (s *InvalidTargetException) Code() string {
return "InvalidTargetException"
}
// Message returns the exception's message.
-func (s InvalidTargetException) Message() string {
+func (s *InvalidTargetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22954,22 +22954,22 @@ func (s InvalidTargetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetException) OrigErr() error {
+func (s *InvalidTargetException) OrigErr() error {
return nil
}
-func (s InvalidTargetException) Error() string {
+func (s *InvalidTargetException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The targets for the pull request is not valid or not in a valid format. Targets
@@ -22977,8 +22977,8 @@ func (s InvalidTargetException) RequestID() string {
// for the repository name, source branch, and destination branch for a pull
// request.
type InvalidTargetsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -22995,17 +22995,17 @@ func (s InvalidTargetsException) GoString() string {
func newErrorInvalidTargetsException(v protocol.ResponseMetadata) error {
return &InvalidTargetsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetsException) Code() string {
+func (s *InvalidTargetsException) Code() string {
return "InvalidTargetsException"
}
// Message returns the exception's message.
-func (s InvalidTargetsException) Message() string {
+func (s *InvalidTargetsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23013,29 +23013,29 @@ func (s InvalidTargetsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetsException) OrigErr() error {
+func (s *InvalidTargetsException) OrigErr() error {
return nil
}
-func (s InvalidTargetsException) Error() string {
+func (s *InvalidTargetsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The title of the pull request is not valid. Pull request titles cannot exceed
// 100 characters in length.
type InvalidTitleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23052,17 +23052,17 @@ func (s InvalidTitleException) GoString() string {
func newErrorInvalidTitleException(v protocol.ResponseMetadata) error {
return &InvalidTitleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTitleException) Code() string {
+func (s *InvalidTitleException) Code() string {
return "InvalidTitleException"
}
// Message returns the exception's message.
-func (s InvalidTitleException) Message() string {
+func (s *InvalidTitleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23070,22 +23070,22 @@ func (s InvalidTitleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTitleException) OrigErr() error {
+func (s *InvalidTitleException) OrigErr() error {
return nil
}
-func (s InvalidTitleException) Error() string {
+func (s *InvalidTitleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTitleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTitleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTitleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTitleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about whether a file is binary or textual in a merge or pull
@@ -23801,8 +23801,8 @@ func (s *Location) SetRelativeFileVersion(v string) *Location {
// The pull request cannot be merged automatically into the destination branch.
// You must manually merge the branches and resolve any conflicts.
type ManualMergeRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23819,17 +23819,17 @@ func (s ManualMergeRequiredException) GoString() string {
func newErrorManualMergeRequiredException(v protocol.ResponseMetadata) error {
return &ManualMergeRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ManualMergeRequiredException) Code() string {
+func (s *ManualMergeRequiredException) Code() string {
return "ManualMergeRequiredException"
}
// Message returns the exception's message.
-func (s ManualMergeRequiredException) Message() string {
+func (s *ManualMergeRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23837,28 +23837,28 @@ func (s ManualMergeRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ManualMergeRequiredException) OrigErr() error {
+func (s *ManualMergeRequiredException) OrigErr() error {
return nil
}
-func (s ManualMergeRequiredException) Error() string {
+func (s *ManualMergeRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ManualMergeRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ManualMergeRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ManualMergeRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ManualMergeRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of branches for the trigger was exceeded.
type MaximumBranchesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23875,17 +23875,17 @@ func (s MaximumBranchesExceededException) GoString() string {
func newErrorMaximumBranchesExceededException(v protocol.ResponseMetadata) error {
return &MaximumBranchesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumBranchesExceededException) Code() string {
+func (s *MaximumBranchesExceededException) Code() string {
return "MaximumBranchesExceededException"
}
// Message returns the exception's message.
-func (s MaximumBranchesExceededException) Message() string {
+func (s *MaximumBranchesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23893,28 +23893,28 @@ func (s MaximumBranchesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumBranchesExceededException) OrigErr() error {
+func (s *MaximumBranchesExceededException) OrigErr() error {
return nil
}
-func (s MaximumBranchesExceededException) Error() string {
+func (s *MaximumBranchesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumBranchesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumBranchesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumBranchesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumBranchesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of allowed conflict resolution entries was exceeded.
type MaximumConflictResolutionEntriesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23931,17 +23931,17 @@ func (s MaximumConflictResolutionEntriesExceededException) GoString() string {
func newErrorMaximumConflictResolutionEntriesExceededException(v protocol.ResponseMetadata) error {
return &MaximumConflictResolutionEntriesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumConflictResolutionEntriesExceededException) Code() string {
+func (s *MaximumConflictResolutionEntriesExceededException) Code() string {
return "MaximumConflictResolutionEntriesExceededException"
}
// Message returns the exception's message.
-func (s MaximumConflictResolutionEntriesExceededException) Message() string {
+func (s *MaximumConflictResolutionEntriesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23949,28 +23949,28 @@ func (s MaximumConflictResolutionEntriesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumConflictResolutionEntriesExceededException) OrigErr() error {
+func (s *MaximumConflictResolutionEntriesExceededException) OrigErr() error {
return nil
}
-func (s MaximumConflictResolutionEntriesExceededException) Error() string {
+func (s *MaximumConflictResolutionEntriesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumConflictResolutionEntriesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumConflictResolutionEntriesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumConflictResolutionEntriesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumConflictResolutionEntriesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of files to load exceeds the allowed limit.
type MaximumFileContentToLoadExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23987,17 +23987,17 @@ func (s MaximumFileContentToLoadExceededException) GoString() string {
func newErrorMaximumFileContentToLoadExceededException(v protocol.ResponseMetadata) error {
return &MaximumFileContentToLoadExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumFileContentToLoadExceededException) Code() string {
+func (s *MaximumFileContentToLoadExceededException) Code() string {
return "MaximumFileContentToLoadExceededException"
}
// Message returns the exception's message.
-func (s MaximumFileContentToLoadExceededException) Message() string {
+func (s *MaximumFileContentToLoadExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24005,30 +24005,30 @@ func (s MaximumFileContentToLoadExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumFileContentToLoadExceededException) OrigErr() error {
+func (s *MaximumFileContentToLoadExceededException) OrigErr() error {
return nil
}
-func (s MaximumFileContentToLoadExceededException) Error() string {
+func (s *MaximumFileContentToLoadExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumFileContentToLoadExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumFileContentToLoadExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumFileContentToLoadExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumFileContentToLoadExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of specified files to change as part of this commit exceeds the
// maximum number of files that can be changed in a single commit. Consider
// using a Git client for these changes.
type MaximumFileEntriesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24045,17 +24045,17 @@ func (s MaximumFileEntriesExceededException) GoString() string {
func newErrorMaximumFileEntriesExceededException(v protocol.ResponseMetadata) error {
return &MaximumFileEntriesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumFileEntriesExceededException) Code() string {
+func (s *MaximumFileEntriesExceededException) Code() string {
return "MaximumFileEntriesExceededException"
}
// Message returns the exception's message.
-func (s MaximumFileEntriesExceededException) Message() string {
+func (s *MaximumFileEntriesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24063,29 +24063,29 @@ func (s MaximumFileEntriesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumFileEntriesExceededException) OrigErr() error {
+func (s *MaximumFileEntriesExceededException) OrigErr() error {
return nil
}
-func (s MaximumFileEntriesExceededException) Error() string {
+func (s *MaximumFileEntriesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumFileEntriesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumFileEntriesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumFileEntriesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumFileEntriesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of items to compare between the source or destination branches
// and the merge base has exceeded the maximum allowed.
type MaximumItemsToCompareExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24102,17 +24102,17 @@ func (s MaximumItemsToCompareExceededException) GoString() string {
func newErrorMaximumItemsToCompareExceededException(v protocol.ResponseMetadata) error {
return &MaximumItemsToCompareExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumItemsToCompareExceededException) Code() string {
+func (s *MaximumItemsToCompareExceededException) Code() string {
return "MaximumItemsToCompareExceededException"
}
// Message returns the exception's message.
-func (s MaximumItemsToCompareExceededException) Message() string {
+func (s *MaximumItemsToCompareExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24120,29 +24120,29 @@ func (s MaximumItemsToCompareExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumItemsToCompareExceededException) OrigErr() error {
+func (s *MaximumItemsToCompareExceededException) OrigErr() error {
return nil
}
-func (s MaximumItemsToCompareExceededException) Error() string {
+func (s *MaximumItemsToCompareExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumItemsToCompareExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumItemsToCompareExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumItemsToCompareExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumItemsToCompareExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of approvals required for the approval rule exceeds the maximum
// number allowed.
type MaximumNumberOfApprovalsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24159,17 +24159,17 @@ func (s MaximumNumberOfApprovalsExceededException) GoString() string {
func newErrorMaximumNumberOfApprovalsExceededException(v protocol.ResponseMetadata) error {
return &MaximumNumberOfApprovalsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumNumberOfApprovalsExceededException) Code() string {
+func (s *MaximumNumberOfApprovalsExceededException) Code() string {
return "MaximumNumberOfApprovalsExceededException"
}
// Message returns the exception's message.
-func (s MaximumNumberOfApprovalsExceededException) Message() string {
+func (s *MaximumNumberOfApprovalsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24177,30 +24177,30 @@ func (s MaximumNumberOfApprovalsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumNumberOfApprovalsExceededException) OrigErr() error {
+func (s *MaximumNumberOfApprovalsExceededException) OrigErr() error {
return nil
}
-func (s MaximumNumberOfApprovalsExceededException) Error() string {
+func (s *MaximumNumberOfApprovalsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumNumberOfApprovalsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumNumberOfApprovalsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumNumberOfApprovalsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumNumberOfApprovalsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot create the pull request because the repository has too many open
// pull requests. The maximum number of open pull requests for a repository
// is 1,000. Close one or more open pull requests, and then try again.
type MaximumOpenPullRequestsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24217,17 +24217,17 @@ func (s MaximumOpenPullRequestsExceededException) GoString() string {
func newErrorMaximumOpenPullRequestsExceededException(v protocol.ResponseMetadata) error {
return &MaximumOpenPullRequestsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumOpenPullRequestsExceededException) Code() string {
+func (s *MaximumOpenPullRequestsExceededException) Code() string {
return "MaximumOpenPullRequestsExceededException"
}
// Message returns the exception's message.
-func (s MaximumOpenPullRequestsExceededException) Message() string {
+func (s *MaximumOpenPullRequestsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24235,29 +24235,29 @@ func (s MaximumOpenPullRequestsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumOpenPullRequestsExceededException) OrigErr() error {
+func (s *MaximumOpenPullRequestsExceededException) OrigErr() error {
return nil
}
-func (s MaximumOpenPullRequestsExceededException) Error() string {
+func (s *MaximumOpenPullRequestsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumOpenPullRequestsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumOpenPullRequestsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumOpenPullRequestsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumOpenPullRequestsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of allowed repository names was exceeded. Currently, this
// number is 100.
type MaximumRepositoryNamesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24274,17 +24274,17 @@ func (s MaximumRepositoryNamesExceededException) GoString() string {
func newErrorMaximumRepositoryNamesExceededException(v protocol.ResponseMetadata) error {
return &MaximumRepositoryNamesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumRepositoryNamesExceededException) Code() string {
+func (s *MaximumRepositoryNamesExceededException) Code() string {
return "MaximumRepositoryNamesExceededException"
}
// Message returns the exception's message.
-func (s MaximumRepositoryNamesExceededException) Message() string {
+func (s *MaximumRepositoryNamesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24292,28 +24292,28 @@ func (s MaximumRepositoryNamesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumRepositoryNamesExceededException) OrigErr() error {
+func (s *MaximumRepositoryNamesExceededException) OrigErr() error {
return nil
}
-func (s MaximumRepositoryNamesExceededException) Error() string {
+func (s *MaximumRepositoryNamesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumRepositoryNamesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumRepositoryNamesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumRepositoryNamesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumRepositoryNamesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of triggers allowed for the repository was exceeded.
type MaximumRepositoryTriggersExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24330,17 +24330,17 @@ func (s MaximumRepositoryTriggersExceededException) GoString() string {
func newErrorMaximumRepositoryTriggersExceededException(v protocol.ResponseMetadata) error {
return &MaximumRepositoryTriggersExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumRepositoryTriggersExceededException) Code() string {
+func (s *MaximumRepositoryTriggersExceededException) Code() string {
return "MaximumRepositoryTriggersExceededException"
}
// Message returns the exception's message.
-func (s MaximumRepositoryTriggersExceededException) Message() string {
+func (s *MaximumRepositoryTriggersExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24348,29 +24348,29 @@ func (s MaximumRepositoryTriggersExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumRepositoryTriggersExceededException) OrigErr() error {
+func (s *MaximumRepositoryTriggersExceededException) OrigErr() error {
return nil
}
-func (s MaximumRepositoryTriggersExceededException) Error() string {
+func (s *MaximumRepositoryTriggersExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumRepositoryTriggersExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumRepositoryTriggersExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumRepositoryTriggersExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumRepositoryTriggersExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of approval rule templates for a repository has been exceeded.
// You cannot associate more than 25 approval rule templates with a repository.
type MaximumRuleTemplatesAssociatedWithRepositoryException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24387,17 +24387,17 @@ func (s MaximumRuleTemplatesAssociatedWithRepositoryException) GoString() string
func newErrorMaximumRuleTemplatesAssociatedWithRepositoryException(v protocol.ResponseMetadata) error {
return &MaximumRuleTemplatesAssociatedWithRepositoryException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Code() string {
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Code() string {
return "MaximumRuleTemplatesAssociatedWithRepositoryException"
}
// Message returns the exception's message.
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string {
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24405,22 +24405,22 @@ func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) OrigErr() error {
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) OrigErr() error {
return nil
}
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Error() string {
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaximumRuleTemplatesAssociatedWithRepositoryException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaximumRuleTemplatesAssociatedWithRepositoryException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type MergeBranchesByFastForwardInput struct {
@@ -25114,8 +25114,8 @@ func (s *MergeOperations) SetSource(v string) *MergeOperations {
// A merge option or stategy is required, and none was provided.
type MergeOptionRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25132,17 +25132,17 @@ func (s MergeOptionRequiredException) GoString() string {
func newErrorMergeOptionRequiredException(v protocol.ResponseMetadata) error {
return &MergeOptionRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MergeOptionRequiredException) Code() string {
+func (s *MergeOptionRequiredException) Code() string {
return "MergeOptionRequiredException"
}
// Message returns the exception's message.
-func (s MergeOptionRequiredException) Message() string {
+func (s *MergeOptionRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25150,22 +25150,22 @@ func (s MergeOptionRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MergeOptionRequiredException) OrigErr() error {
+func (s *MergeOptionRequiredException) OrigErr() error {
return nil
}
-func (s MergeOptionRequiredException) Error() string {
+func (s *MergeOptionRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MergeOptionRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MergeOptionRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MergeOptionRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MergeOptionRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type MergePullRequestByFastForwardInput struct {
@@ -25596,8 +25596,8 @@ func (s *MergePullRequestByThreeWayOutput) SetPullRequest(v *PullRequest) *Merge
// More than one conflict resolution entries exists for the conflict. A conflict
// can have only one conflict resolution entry.
type MultipleConflictResolutionEntriesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25614,17 +25614,17 @@ func (s MultipleConflictResolutionEntriesException) GoString() string {
func newErrorMultipleConflictResolutionEntriesException(v protocol.ResponseMetadata) error {
return &MultipleConflictResolutionEntriesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MultipleConflictResolutionEntriesException) Code() string {
+func (s *MultipleConflictResolutionEntriesException) Code() string {
return "MultipleConflictResolutionEntriesException"
}
// Message returns the exception's message.
-func (s MultipleConflictResolutionEntriesException) Message() string {
+func (s *MultipleConflictResolutionEntriesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25632,30 +25632,30 @@ func (s MultipleConflictResolutionEntriesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MultipleConflictResolutionEntriesException) OrigErr() error {
+func (s *MultipleConflictResolutionEntriesException) OrigErr() error {
return nil
}
-func (s MultipleConflictResolutionEntriesException) Error() string {
+func (s *MultipleConflictResolutionEntriesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MultipleConflictResolutionEntriesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MultipleConflictResolutionEntriesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MultipleConflictResolutionEntriesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MultipleConflictResolutionEntriesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot include more than one repository in a pull request. Make sure
// you have specified only one repository name in your request, and then try
// again.
type MultipleRepositoriesInPullRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25672,17 +25672,17 @@ func (s MultipleRepositoriesInPullRequestException) GoString() string {
func newErrorMultipleRepositoriesInPullRequestException(v protocol.ResponseMetadata) error {
return &MultipleRepositoriesInPullRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MultipleRepositoriesInPullRequestException) Code() string {
+func (s *MultipleRepositoriesInPullRequestException) Code() string {
return "MultipleRepositoriesInPullRequestException"
}
// Message returns the exception's message.
-func (s MultipleRepositoriesInPullRequestException) Message() string {
+func (s *MultipleRepositoriesInPullRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25690,29 +25690,29 @@ func (s MultipleRepositoriesInPullRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MultipleRepositoriesInPullRequestException) OrigErr() error {
+func (s *MultipleRepositoriesInPullRequestException) OrigErr() error {
return nil
}
-func (s MultipleRepositoriesInPullRequestException) Error() string {
+func (s *MultipleRepositoriesInPullRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MultipleRepositoriesInPullRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MultipleRepositoriesInPullRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MultipleRepositoriesInPullRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MultipleRepositoriesInPullRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The user name is not valid because it has exceeded the character limit for
// author names.
type NameLengthExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25729,17 +25729,17 @@ func (s NameLengthExceededException) GoString() string {
func newErrorNameLengthExceededException(v protocol.ResponseMetadata) error {
return &NameLengthExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NameLengthExceededException) Code() string {
+func (s *NameLengthExceededException) Code() string {
return "NameLengthExceededException"
}
// Message returns the exception's message.
-func (s NameLengthExceededException) Message() string {
+func (s *NameLengthExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25747,29 +25747,29 @@ func (s NameLengthExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NameLengthExceededException) OrigErr() error {
+func (s *NameLengthExceededException) OrigErr() error {
return nil
}
-func (s NameLengthExceededException) Error() string {
+func (s *NameLengthExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NameLengthExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NameLengthExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NameLengthExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NameLengthExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because no changes will be made to the repository
// as a result of this commit. A commit must contain at least one change.
type NoChangeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25786,17 +25786,17 @@ func (s NoChangeException) GoString() string {
func newErrorNoChangeException(v protocol.ResponseMetadata) error {
return &NoChangeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoChangeException) Code() string {
+func (s *NoChangeException) Code() string {
return "NoChangeException"
}
// Message returns the exception's message.
-func (s NoChangeException) Message() string {
+func (s *NoChangeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25804,29 +25804,29 @@ func (s NoChangeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoChangeException) OrigErr() error {
+func (s *NoChangeException) OrigErr() error {
return nil
}
-func (s NoChangeException) Error() string {
+func (s *NoChangeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoChangeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoChangeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoChangeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoChangeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of approval rule templates has been exceeded for this
// AWS Region.
type NumberOfRuleTemplatesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25843,17 +25843,17 @@ func (s NumberOfRuleTemplatesExceededException) GoString() string {
func newErrorNumberOfRuleTemplatesExceededException(v protocol.ResponseMetadata) error {
return &NumberOfRuleTemplatesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NumberOfRuleTemplatesExceededException) Code() string {
+func (s *NumberOfRuleTemplatesExceededException) Code() string {
return "NumberOfRuleTemplatesExceededException"
}
// Message returns the exception's message.
-func (s NumberOfRuleTemplatesExceededException) Message() string {
+func (s *NumberOfRuleTemplatesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25861,29 +25861,29 @@ func (s NumberOfRuleTemplatesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NumberOfRuleTemplatesExceededException) OrigErr() error {
+func (s *NumberOfRuleTemplatesExceededException) OrigErr() error {
return nil
}
-func (s NumberOfRuleTemplatesExceededException) Error() string {
+func (s *NumberOfRuleTemplatesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NumberOfRuleTemplatesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NumberOfRuleTemplatesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NumberOfRuleTemplatesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NumberOfRuleTemplatesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval rule cannot be added. The pull request has the maximum number
// of approval rules associated with it.
type NumberOfRulesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25900,17 +25900,17 @@ func (s NumberOfRulesExceededException) GoString() string {
func newErrorNumberOfRulesExceededException(v protocol.ResponseMetadata) error {
return &NumberOfRulesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NumberOfRulesExceededException) Code() string {
+func (s *NumberOfRulesExceededException) Code() string {
return "NumberOfRulesExceededException"
}
// Message returns the exception's message.
-func (s NumberOfRulesExceededException) Message() string {
+func (s *NumberOfRulesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25918,22 +25918,22 @@ func (s NumberOfRulesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NumberOfRulesExceededException) OrigErr() error {
+func (s *NumberOfRulesExceededException) OrigErr() error {
return nil
}
-func (s NumberOfRulesExceededException) Error() string {
+func (s *NumberOfRulesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NumberOfRulesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NumberOfRulesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NumberOfRulesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NumberOfRulesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the type of an object in a merge operation.
@@ -26014,8 +26014,8 @@ func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *Orig
// The pull request has already had its approval rules set to override.
type OverrideAlreadySetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26032,17 +26032,17 @@ func (s OverrideAlreadySetException) GoString() string {
func newErrorOverrideAlreadySetException(v protocol.ResponseMetadata) error {
return &OverrideAlreadySetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OverrideAlreadySetException) Code() string {
+func (s *OverrideAlreadySetException) Code() string {
return "OverrideAlreadySetException"
}
// Message returns the exception's message.
-func (s OverrideAlreadySetException) Message() string {
+func (s *OverrideAlreadySetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26050,22 +26050,22 @@ func (s OverrideAlreadySetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OverrideAlreadySetException) OrigErr() error {
+func (s *OverrideAlreadySetException) OrigErr() error {
return nil
}
-func (s OverrideAlreadySetException) Error() string {
+func (s *OverrideAlreadySetException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OverrideAlreadySetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OverrideAlreadySetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OverrideAlreadySetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OverrideAlreadySetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type OverridePullRequestApprovalRulesInput struct {
@@ -26156,8 +26156,8 @@ func (s OverridePullRequestApprovalRulesOutput) GoString() string {
// An override status is required, but no value was provided. Valid values include
// OVERRIDE and REVOKE.
type OverrideStatusRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26174,17 +26174,17 @@ func (s OverrideStatusRequiredException) GoString() string {
func newErrorOverrideStatusRequiredException(v protocol.ResponseMetadata) error {
return &OverrideStatusRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OverrideStatusRequiredException) Code() string {
+func (s *OverrideStatusRequiredException) Code() string {
return "OverrideStatusRequiredException"
}
// Message returns the exception's message.
-func (s OverrideStatusRequiredException) Message() string {
+func (s *OverrideStatusRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26192,29 +26192,29 @@ func (s OverrideStatusRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OverrideStatusRequiredException) OrigErr() error {
+func (s *OverrideStatusRequiredException) OrigErr() error {
return nil
}
-func (s OverrideStatusRequiredException) Error() string {
+func (s *OverrideStatusRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OverrideStatusRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OverrideStatusRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OverrideStatusRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OverrideStatusRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parent commit ID is not valid because it does not exist. The specified
// parent commit ID does not exist in the specified branch of the repository.
type ParentCommitDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26231,17 +26231,17 @@ func (s ParentCommitDoesNotExistException) GoString() string {
func newErrorParentCommitDoesNotExistException(v protocol.ResponseMetadata) error {
return &ParentCommitDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParentCommitDoesNotExistException) Code() string {
+func (s *ParentCommitDoesNotExistException) Code() string {
return "ParentCommitDoesNotExistException"
}
// Message returns the exception's message.
-func (s ParentCommitDoesNotExistException) Message() string {
+func (s *ParentCommitDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26249,30 +26249,30 @@ func (s ParentCommitDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParentCommitDoesNotExistException) OrigErr() error {
+func (s *ParentCommitDoesNotExistException) OrigErr() error {
return nil
}
-func (s ParentCommitDoesNotExistException) Error() string {
+func (s *ParentCommitDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParentCommitDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParentCommitDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParentCommitDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParentCommitDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The file could not be added because the provided parent commit ID is not
// the current tip of the specified branch. To view the full commit ID of the
// current head of the branch, use GetBranch.
type ParentCommitIdOutdatedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26289,17 +26289,17 @@ func (s ParentCommitIdOutdatedException) GoString() string {
func newErrorParentCommitIdOutdatedException(v protocol.ResponseMetadata) error {
return &ParentCommitIdOutdatedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParentCommitIdOutdatedException) Code() string {
+func (s *ParentCommitIdOutdatedException) Code() string {
return "ParentCommitIdOutdatedException"
}
// Message returns the exception's message.
-func (s ParentCommitIdOutdatedException) Message() string {
+func (s *ParentCommitIdOutdatedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26307,30 +26307,30 @@ func (s ParentCommitIdOutdatedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParentCommitIdOutdatedException) OrigErr() error {
+func (s *ParentCommitIdOutdatedException) OrigErr() error {
return nil
}
-func (s ParentCommitIdOutdatedException) Error() string {
+func (s *ParentCommitIdOutdatedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParentCommitIdOutdatedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParentCommitIdOutdatedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParentCommitIdOutdatedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParentCommitIdOutdatedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A parent commit ID is required. To view the full commit ID of a branch in
// a repository, use GetBranch or a Git command (for example, git pull or git
// log).
type ParentCommitIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26347,17 +26347,17 @@ func (s ParentCommitIdRequiredException) GoString() string {
func newErrorParentCommitIdRequiredException(v protocol.ResponseMetadata) error {
return &ParentCommitIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParentCommitIdRequiredException) Code() string {
+func (s *ParentCommitIdRequiredException) Code() string {
return "ParentCommitIdRequiredException"
}
// Message returns the exception's message.
-func (s ParentCommitIdRequiredException) Message() string {
+func (s *ParentCommitIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26365,28 +26365,28 @@ func (s ParentCommitIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParentCommitIdRequiredException) OrigErr() error {
+func (s *ParentCommitIdRequiredException) OrigErr() error {
return nil
}
-func (s ParentCommitIdRequiredException) Error() string {
+func (s *ParentCommitIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParentCommitIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParentCommitIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParentCommitIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParentCommitIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified path does not exist.
type PathDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26403,17 +26403,17 @@ func (s PathDoesNotExistException) GoString() string {
func newErrorPathDoesNotExistException(v protocol.ResponseMetadata) error {
return &PathDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PathDoesNotExistException) Code() string {
+func (s *PathDoesNotExistException) Code() string {
return "PathDoesNotExistException"
}
// Message returns the exception's message.
-func (s PathDoesNotExistException) Message() string {
+func (s *PathDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26421,28 +26421,28 @@ func (s PathDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PathDoesNotExistException) OrigErr() error {
+func (s *PathDoesNotExistException) OrigErr() error {
return nil
}
-func (s PathDoesNotExistException) Error() string {
+func (s *PathDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PathDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PathDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PathDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PathDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The folderPath for a location cannot be null.
type PathRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26459,17 +26459,17 @@ func (s PathRequiredException) GoString() string {
func newErrorPathRequiredException(v protocol.ResponseMetadata) error {
return &PathRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PathRequiredException) Code() string {
+func (s *PathRequiredException) Code() string {
return "PathRequiredException"
}
// Message returns the exception's message.
-func (s PathRequiredException) Message() string {
+func (s *PathRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26477,22 +26477,22 @@ func (s PathRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PathRequiredException) OrigErr() error {
+func (s *PathRequiredException) OrigErr() error {
return nil
}
-func (s PathRequiredException) Error() string {
+func (s *PathRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PathRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PathRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PathRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PathRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PostCommentForComparedCommitInput struct {
@@ -27099,8 +27099,8 @@ func (s *PullRequest) SetTitle(v string) *PullRequest {
// The pull request status cannot be updated because it is already closed.
type PullRequestAlreadyClosedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27117,17 +27117,17 @@ func (s PullRequestAlreadyClosedException) GoString() string {
func newErrorPullRequestAlreadyClosedException(v protocol.ResponseMetadata) error {
return &PullRequestAlreadyClosedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestAlreadyClosedException) Code() string {
+func (s *PullRequestAlreadyClosedException) Code() string {
return "PullRequestAlreadyClosedException"
}
// Message returns the exception's message.
-func (s PullRequestAlreadyClosedException) Message() string {
+func (s *PullRequestAlreadyClosedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27135,29 +27135,29 @@ func (s PullRequestAlreadyClosedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestAlreadyClosedException) OrigErr() error {
+func (s *PullRequestAlreadyClosedException) OrigErr() error {
return nil
}
-func (s PullRequestAlreadyClosedException) Error() string {
+func (s *PullRequestAlreadyClosedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestAlreadyClosedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestAlreadyClosedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestAlreadyClosedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestAlreadyClosedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pull request cannot be merged because one or more approval rules applied
// to the pull request have conditions that have not been met.
type PullRequestApprovalRulesNotSatisfiedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27174,17 +27174,17 @@ func (s PullRequestApprovalRulesNotSatisfiedException) GoString() string {
func newErrorPullRequestApprovalRulesNotSatisfiedException(v protocol.ResponseMetadata) error {
return &PullRequestApprovalRulesNotSatisfiedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestApprovalRulesNotSatisfiedException) Code() string {
+func (s *PullRequestApprovalRulesNotSatisfiedException) Code() string {
return "PullRequestApprovalRulesNotSatisfiedException"
}
// Message returns the exception's message.
-func (s PullRequestApprovalRulesNotSatisfiedException) Message() string {
+func (s *PullRequestApprovalRulesNotSatisfiedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27192,30 +27192,30 @@ func (s PullRequestApprovalRulesNotSatisfiedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestApprovalRulesNotSatisfiedException) OrigErr() error {
+func (s *PullRequestApprovalRulesNotSatisfiedException) OrigErr() error {
return nil
}
-func (s PullRequestApprovalRulesNotSatisfiedException) Error() string {
+func (s *PullRequestApprovalRulesNotSatisfiedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestApprovalRulesNotSatisfiedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestApprovalRulesNotSatisfiedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestApprovalRulesNotSatisfiedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestApprovalRulesNotSatisfiedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval cannot be applied because the user approving the pull request
// matches the user who created the pull request. You cannot approve a pull
// request that you created.
type PullRequestCannotBeApprovedByAuthorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27232,17 +27232,17 @@ func (s PullRequestCannotBeApprovedByAuthorException) GoString() string {
func newErrorPullRequestCannotBeApprovedByAuthorException(v protocol.ResponseMetadata) error {
return &PullRequestCannotBeApprovedByAuthorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestCannotBeApprovedByAuthorException) Code() string {
+func (s *PullRequestCannotBeApprovedByAuthorException) Code() string {
return "PullRequestCannotBeApprovedByAuthorException"
}
// Message returns the exception's message.
-func (s PullRequestCannotBeApprovedByAuthorException) Message() string {
+func (s *PullRequestCannotBeApprovedByAuthorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27250,22 +27250,22 @@ func (s PullRequestCannotBeApprovedByAuthorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestCannotBeApprovedByAuthorException) OrigErr() error {
+func (s *PullRequestCannotBeApprovedByAuthorException) OrigErr() error {
return nil
}
-func (s PullRequestCannotBeApprovedByAuthorException) Error() string {
+func (s *PullRequestCannotBeApprovedByAuthorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestCannotBeApprovedByAuthorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestCannotBeApprovedByAuthorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestCannotBeApprovedByAuthorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestCannotBeApprovedByAuthorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Metadata about the pull request that is used when comparing the pull request
@@ -27325,8 +27325,8 @@ func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullReque
// The pull request ID could not be found. Make sure that you have specified
// the correct repository name and pull request ID, and then try again.
type PullRequestDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27343,17 +27343,17 @@ func (s PullRequestDoesNotExistException) GoString() string {
func newErrorPullRequestDoesNotExistException(v protocol.ResponseMetadata) error {
return &PullRequestDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestDoesNotExistException) Code() string {
+func (s *PullRequestDoesNotExistException) Code() string {
return "PullRequestDoesNotExistException"
}
// Message returns the exception's message.
-func (s PullRequestDoesNotExistException) Message() string {
+func (s *PullRequestDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27361,22 +27361,22 @@ func (s PullRequestDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestDoesNotExistException) OrigErr() error {
+func (s *PullRequestDoesNotExistException) OrigErr() error {
return nil
}
-func (s PullRequestDoesNotExistException) Error() string {
+func (s *PullRequestDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a pull request event.
@@ -27498,8 +27498,8 @@ func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullReque
// A pull request ID is required, but none was provided.
type PullRequestIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27516,17 +27516,17 @@ func (s PullRequestIdRequiredException) GoString() string {
func newErrorPullRequestIdRequiredException(v protocol.ResponseMetadata) error {
return &PullRequestIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestIdRequiredException) Code() string {
+func (s *PullRequestIdRequiredException) Code() string {
return "PullRequestIdRequiredException"
}
// Message returns the exception's message.
-func (s PullRequestIdRequiredException) Message() string {
+func (s *PullRequestIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27534,22 +27534,22 @@ func (s PullRequestIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestIdRequiredException) OrigErr() error {
+func (s *PullRequestIdRequiredException) OrigErr() error {
return nil
}
-func (s PullRequestIdRequiredException) Error() string {
+func (s *PullRequestIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about the change in the merge state for a pull request
@@ -27675,8 +27675,8 @@ func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *
// A pull request status is required, but none was provided.
type PullRequestStatusRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27693,17 +27693,17 @@ func (s PullRequestStatusRequiredException) GoString() string {
func newErrorPullRequestStatusRequiredException(v protocol.ResponseMetadata) error {
return &PullRequestStatusRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PullRequestStatusRequiredException) Code() string {
+func (s *PullRequestStatusRequiredException) Code() string {
return "PullRequestStatusRequiredException"
}
// Message returns the exception's message.
-func (s PullRequestStatusRequiredException) Message() string {
+func (s *PullRequestStatusRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27711,22 +27711,22 @@ func (s PullRequestStatusRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PullRequestStatusRequiredException) OrigErr() error {
+func (s *PullRequestStatusRequiredException) OrigErr() error {
return nil
}
-func (s PullRequestStatusRequiredException) Error() string {
+func (s *PullRequestStatusRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PullRequestStatusRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PullRequestStatusRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PullRequestStatusRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PullRequestStatusRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a pull request target.
@@ -27893,8 +27893,8 @@ func (s *PutFileEntry) SetSourceFile(v *SourceFileSpecifier) *PutFileEntry {
// The commit cannot be created because one or more files specified in the commit
// reference both a file and a folder.
type PutFileEntryConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27911,17 +27911,17 @@ func (s PutFileEntryConflictException) GoString() string {
func newErrorPutFileEntryConflictException(v protocol.ResponseMetadata) error {
return &PutFileEntryConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PutFileEntryConflictException) Code() string {
+func (s *PutFileEntryConflictException) Code() string {
return "PutFileEntryConflictException"
}
// Message returns the exception's message.
-func (s PutFileEntryConflictException) Message() string {
+func (s *PutFileEntryConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27929,22 +27929,22 @@ func (s PutFileEntryConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PutFileEntryConflictException) OrigErr() error {
+func (s *PutFileEntryConflictException) OrigErr() error {
return nil
}
-func (s PutFileEntryConflictException) Error() string {
+func (s *PutFileEntryConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PutFileEntryConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PutFileEntryConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PutFileEntryConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PutFileEntryConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutFileInput struct {
@@ -28233,8 +28233,8 @@ func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositor
// The specified reference does not exist. You must provide a full commit ID.
type ReferenceDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28251,17 +28251,17 @@ func (s ReferenceDoesNotExistException) GoString() string {
func newErrorReferenceDoesNotExistException(v protocol.ResponseMetadata) error {
return &ReferenceDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReferenceDoesNotExistException) Code() string {
+func (s *ReferenceDoesNotExistException) Code() string {
return "ReferenceDoesNotExistException"
}
// Message returns the exception's message.
-func (s ReferenceDoesNotExistException) Message() string {
+func (s *ReferenceDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28269,28 +28269,28 @@ func (s ReferenceDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReferenceDoesNotExistException) OrigErr() error {
+func (s *ReferenceDoesNotExistException) OrigErr() error {
return nil
}
-func (s ReferenceDoesNotExistException) Error() string {
+func (s *ReferenceDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReferenceDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReferenceDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReferenceDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReferenceDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A reference name is required, but none was provided.
type ReferenceNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28307,17 +28307,17 @@ func (s ReferenceNameRequiredException) GoString() string {
func newErrorReferenceNameRequiredException(v protocol.ResponseMetadata) error {
return &ReferenceNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReferenceNameRequiredException) Code() string {
+func (s *ReferenceNameRequiredException) Code() string {
return "ReferenceNameRequiredException"
}
// Message returns the exception's message.
-func (s ReferenceNameRequiredException) Message() string {
+func (s *ReferenceNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28325,28 +28325,28 @@ func (s ReferenceNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReferenceNameRequiredException) OrigErr() error {
+func (s *ReferenceNameRequiredException) OrigErr() error {
return nil
}
-func (s ReferenceNameRequiredException) Error() string {
+func (s *ReferenceNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReferenceNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReferenceNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReferenceNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReferenceNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified reference is not a supported type.
type ReferenceTypeNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28363,17 +28363,17 @@ func (s ReferenceTypeNotSupportedException) GoString() string {
func newErrorReferenceTypeNotSupportedException(v protocol.ResponseMetadata) error {
return &ReferenceTypeNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReferenceTypeNotSupportedException) Code() string {
+func (s *ReferenceTypeNotSupportedException) Code() string {
return "ReferenceTypeNotSupportedException"
}
// Message returns the exception's message.
-func (s ReferenceTypeNotSupportedException) Message() string {
+func (s *ReferenceTypeNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28381,22 +28381,22 @@ func (s ReferenceTypeNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReferenceTypeNotSupportedException) OrigErr() error {
+func (s *ReferenceTypeNotSupportedException) OrigErr() error {
return nil
}
-func (s ReferenceTypeNotSupportedException) Error() string {
+func (s *ReferenceTypeNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReferenceTypeNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReferenceTypeNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReferenceTypeNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReferenceTypeNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a replacement content entry in the conflict of a merge
@@ -28475,8 +28475,8 @@ func (s *ReplaceContentEntry) SetReplacementType(v string) *ReplaceContentEntry
// USE_NEW_CONTENT was specified, but no replacement content has been provided.
type ReplacementContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28493,17 +28493,17 @@ func (s ReplacementContentRequiredException) GoString() string {
func newErrorReplacementContentRequiredException(v protocol.ResponseMetadata) error {
return &ReplacementContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReplacementContentRequiredException) Code() string {
+func (s *ReplacementContentRequiredException) Code() string {
return "ReplacementContentRequiredException"
}
// Message returns the exception's message.
-func (s ReplacementContentRequiredException) Message() string {
+func (s *ReplacementContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28511,28 +28511,28 @@ func (s ReplacementContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReplacementContentRequiredException) OrigErr() error {
+func (s *ReplacementContentRequiredException) OrigErr() error {
return nil
}
-func (s ReplacementContentRequiredException) Error() string {
+func (s *ReplacementContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReplacementContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReplacementContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReplacementContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReplacementContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A replacement type is required.
type ReplacementTypeRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28549,17 +28549,17 @@ func (s ReplacementTypeRequiredException) GoString() string {
func newErrorReplacementTypeRequiredException(v protocol.ResponseMetadata) error {
return &ReplacementTypeRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReplacementTypeRequiredException) Code() string {
+func (s *ReplacementTypeRequiredException) Code() string {
return "ReplacementTypeRequiredException"
}
// Message returns the exception's message.
-func (s ReplacementTypeRequiredException) Message() string {
+func (s *ReplacementTypeRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28567,28 +28567,28 @@ func (s ReplacementTypeRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReplacementTypeRequiredException) OrigErr() error {
+func (s *ReplacementTypeRequiredException) OrigErr() error {
return nil
}
-func (s ReplacementTypeRequiredException) Error() string {
+func (s *ReplacementTypeRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReplacementTypeRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReplacementTypeRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReplacementTypeRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReplacementTypeRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified repository does not exist.
type RepositoryDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28605,17 +28605,17 @@ func (s RepositoryDoesNotExistException) GoString() string {
func newErrorRepositoryDoesNotExistException(v protocol.ResponseMetadata) error {
return &RepositoryDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryDoesNotExistException) Code() string {
+func (s *RepositoryDoesNotExistException) Code() string {
return "RepositoryDoesNotExistException"
}
// Message returns the exception's message.
-func (s RepositoryDoesNotExistException) Message() string {
+func (s *RepositoryDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28623,28 +28623,28 @@ func (s RepositoryDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryDoesNotExistException) OrigErr() error {
+func (s *RepositoryDoesNotExistException) OrigErr() error {
return nil
}
-func (s RepositoryDoesNotExistException) Error() string {
+func (s *RepositoryDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A repository resource limit was exceeded.
type RepositoryLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28661,17 +28661,17 @@ func (s RepositoryLimitExceededException) GoString() string {
func newErrorRepositoryLimitExceededException(v protocol.ResponseMetadata) error {
return &RepositoryLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryLimitExceededException) Code() string {
+func (s *RepositoryLimitExceededException) Code() string {
return "RepositoryLimitExceededException"
}
// Message returns the exception's message.
-func (s RepositoryLimitExceededException) Message() string {
+func (s *RepositoryLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28679,22 +28679,22 @@ func (s RepositoryLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryLimitExceededException) OrigErr() error {
+func (s *RepositoryLimitExceededException) OrigErr() error {
return nil
}
-func (s RepositoryLimitExceededException) Error() string {
+func (s *RepositoryLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a repository.
@@ -28804,8 +28804,8 @@ func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata {
// The specified repository name already exists.
type RepositoryNameExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28822,17 +28822,17 @@ func (s RepositoryNameExistsException) GoString() string {
func newErrorRepositoryNameExistsException(v protocol.ResponseMetadata) error {
return &RepositoryNameExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNameExistsException) Code() string {
+func (s *RepositoryNameExistsException) Code() string {
return "RepositoryNameExistsException"
}
// Message returns the exception's message.
-func (s RepositoryNameExistsException) Message() string {
+func (s *RepositoryNameExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28840,22 +28840,22 @@ func (s RepositoryNameExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNameExistsException) OrigErr() error {
+func (s *RepositoryNameExistsException) OrigErr() error {
return nil
}
-func (s RepositoryNameExistsException) Error() string {
+func (s *RepositoryNameExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNameExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNameExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNameExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNameExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a repository name and ID.
@@ -28893,8 +28893,8 @@ func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair
// A repository name is required, but was not specified.
type RepositoryNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28911,17 +28911,17 @@ func (s RepositoryNameRequiredException) GoString() string {
func newErrorRepositoryNameRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNameRequiredException) Code() string {
+func (s *RepositoryNameRequiredException) Code() string {
return "RepositoryNameRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryNameRequiredException) Message() string {
+func (s *RepositoryNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28929,28 +28929,28 @@ func (s RepositoryNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNameRequiredException) OrigErr() error {
+func (s *RepositoryNameRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryNameRequiredException) Error() string {
+func (s *RepositoryNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// At least one repository name object is required, but was not specified.
type RepositoryNamesRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28967,17 +28967,17 @@ func (s RepositoryNamesRequiredException) GoString() string {
func newErrorRepositoryNamesRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryNamesRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNamesRequiredException) Code() string {
+func (s *RepositoryNamesRequiredException) Code() string {
return "RepositoryNamesRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryNamesRequiredException) Message() string {
+func (s *RepositoryNamesRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28985,30 +28985,30 @@ func (s RepositoryNamesRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNamesRequiredException) OrigErr() error {
+func (s *RepositoryNamesRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryNamesRequiredException) Error() string {
+func (s *RepositoryNamesRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNamesRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNamesRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNamesRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNamesRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The repository does not contain any pull requests with that pull request
// ID. Use GetPullRequest to verify the correct repository name for the pull
// request ID.
type RepositoryNotAssociatedWithPullRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29025,17 +29025,17 @@ func (s RepositoryNotAssociatedWithPullRequestException) GoString() string {
func newErrorRepositoryNotAssociatedWithPullRequestException(v protocol.ResponseMetadata) error {
return &RepositoryNotAssociatedWithPullRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNotAssociatedWithPullRequestException) Code() string {
+func (s *RepositoryNotAssociatedWithPullRequestException) Code() string {
return "RepositoryNotAssociatedWithPullRequestException"
}
// Message returns the exception's message.
-func (s RepositoryNotAssociatedWithPullRequestException) Message() string {
+func (s *RepositoryNotAssociatedWithPullRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29043,22 +29043,22 @@ func (s RepositoryNotAssociatedWithPullRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNotAssociatedWithPullRequestException) OrigErr() error {
+func (s *RepositoryNotAssociatedWithPullRequestException) OrigErr() error {
return nil
}
-func (s RepositoryNotAssociatedWithPullRequestException) Error() string {
+func (s *RepositoryNotAssociatedWithPullRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNotAssociatedWithPullRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNotAssociatedWithPullRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNotAssociatedWithPullRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNotAssociatedWithPullRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a trigger for a repository.
@@ -29158,8 +29158,8 @@ func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger {
// At least one branch name is required, but was not specified in the trigger
// configuration.
type RepositoryTriggerBranchNameListRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29176,17 +29176,17 @@ func (s RepositoryTriggerBranchNameListRequiredException) GoString() string {
func newErrorRepositoryTriggerBranchNameListRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryTriggerBranchNameListRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryTriggerBranchNameListRequiredException) Code() string {
+func (s *RepositoryTriggerBranchNameListRequiredException) Code() string {
return "RepositoryTriggerBranchNameListRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryTriggerBranchNameListRequiredException) Message() string {
+func (s *RepositoryTriggerBranchNameListRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29194,29 +29194,29 @@ func (s RepositoryTriggerBranchNameListRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryTriggerBranchNameListRequiredException) OrigErr() error {
+func (s *RepositoryTriggerBranchNameListRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryTriggerBranchNameListRequiredException) Error() string {
+func (s *RepositoryTriggerBranchNameListRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryTriggerBranchNameListRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryTriggerBranchNameListRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryTriggerBranchNameListRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryTriggerBranchNameListRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A destination ARN for the target service for the trigger is required, but
// was not specified.
type RepositoryTriggerDestinationArnRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29233,17 +29233,17 @@ func (s RepositoryTriggerDestinationArnRequiredException) GoString() string {
func newErrorRepositoryTriggerDestinationArnRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryTriggerDestinationArnRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryTriggerDestinationArnRequiredException) Code() string {
+func (s *RepositoryTriggerDestinationArnRequiredException) Code() string {
return "RepositoryTriggerDestinationArnRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryTriggerDestinationArnRequiredException) Message() string {
+func (s *RepositoryTriggerDestinationArnRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29251,28 +29251,28 @@ func (s RepositoryTriggerDestinationArnRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryTriggerDestinationArnRequiredException) OrigErr() error {
+func (s *RepositoryTriggerDestinationArnRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryTriggerDestinationArnRequiredException) Error() string {
+func (s *RepositoryTriggerDestinationArnRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryTriggerDestinationArnRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryTriggerDestinationArnRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryTriggerDestinationArnRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryTriggerDestinationArnRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// At least one event for the trigger is required, but was not specified.
type RepositoryTriggerEventsListRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29289,17 +29289,17 @@ func (s RepositoryTriggerEventsListRequiredException) GoString() string {
func newErrorRepositoryTriggerEventsListRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryTriggerEventsListRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryTriggerEventsListRequiredException) Code() string {
+func (s *RepositoryTriggerEventsListRequiredException) Code() string {
return "RepositoryTriggerEventsListRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryTriggerEventsListRequiredException) Message() string {
+func (s *RepositoryTriggerEventsListRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29307,22 +29307,22 @@ func (s RepositoryTriggerEventsListRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryTriggerEventsListRequiredException) OrigErr() error {
+func (s *RepositoryTriggerEventsListRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryTriggerEventsListRequiredException) Error() string {
+func (s *RepositoryTriggerEventsListRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryTriggerEventsListRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryTriggerEventsListRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryTriggerEventsListRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryTriggerEventsListRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A trigger failed to run.
@@ -29360,8 +29360,8 @@ func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTrig
// A name for the trigger is required, but was not specified.
type RepositoryTriggerNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29378,17 +29378,17 @@ func (s RepositoryTriggerNameRequiredException) GoString() string {
func newErrorRepositoryTriggerNameRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryTriggerNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryTriggerNameRequiredException) Code() string {
+func (s *RepositoryTriggerNameRequiredException) Code() string {
return "RepositoryTriggerNameRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryTriggerNameRequiredException) Message() string {
+func (s *RepositoryTriggerNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29396,28 +29396,28 @@ func (s RepositoryTriggerNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryTriggerNameRequiredException) OrigErr() error {
+func (s *RepositoryTriggerNameRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryTriggerNameRequiredException) Error() string {
+func (s *RepositoryTriggerNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryTriggerNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryTriggerNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryTriggerNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryTriggerNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The list of triggers for the repository is required, but was not specified.
type RepositoryTriggersListRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29434,17 +29434,17 @@ func (s RepositoryTriggersListRequiredException) GoString() string {
func newErrorRepositoryTriggersListRequiredException(v protocol.ResponseMetadata) error {
return &RepositoryTriggersListRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryTriggersListRequiredException) Code() string {
+func (s *RepositoryTriggersListRequiredException) Code() string {
return "RepositoryTriggersListRequiredException"
}
// Message returns the exception's message.
-func (s RepositoryTriggersListRequiredException) Message() string {
+func (s *RepositoryTriggersListRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29452,22 +29452,22 @@ func (s RepositoryTriggersListRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryTriggersListRequiredException) OrigErr() error {
+func (s *RepositoryTriggersListRequiredException) OrigErr() error {
return nil
}
-func (s RepositoryTriggersListRequiredException) Error() string {
+func (s *RepositoryTriggersListRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryTriggersListRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryTriggersListRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryTriggersListRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryTriggersListRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required.
@@ -29475,8 +29475,8 @@ func (s RepositoryTriggersListRequiredException) RequestID() string {
// and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats)
// in the AWS CodeCommit User Guide.
type ResourceArnRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29493,17 +29493,17 @@ func (s ResourceArnRequiredException) GoString() string {
func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error {
return &ResourceArnRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceArnRequiredException) Code() string {
+func (s *ResourceArnRequiredException) Code() string {
return "ResourceArnRequiredException"
}
// Message returns the exception's message.
-func (s ResourceArnRequiredException) Message() string {
+func (s *ResourceArnRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29511,29 +29511,29 @@ func (s ResourceArnRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceArnRequiredException) OrigErr() error {
+func (s *ResourceArnRequiredException) OrigErr() error {
return nil
}
-func (s ResourceArnRequiredException) Error() string {
+func (s *ResourceArnRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceArnRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceArnRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceArnRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceArnRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because one of the changes specifies copying
// or moving a .gitkeep file.
type RestrictedSourceFileException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29550,17 +29550,17 @@ func (s RestrictedSourceFileException) GoString() string {
func newErrorRestrictedSourceFileException(v protocol.ResponseMetadata) error {
return &RestrictedSourceFileException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RestrictedSourceFileException) Code() string {
+func (s *RestrictedSourceFileException) Code() string {
return "RestrictedSourceFileException"
}
// Message returns the exception's message.
-func (s RestrictedSourceFileException) Message() string {
+func (s *RestrictedSourceFileException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29568,28 +29568,28 @@ func (s RestrictedSourceFileException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RestrictedSourceFileException) OrigErr() error {
+func (s *RestrictedSourceFileException) OrigErr() error {
return nil
}
-func (s RestrictedSourceFileException) Error() string {
+func (s *RestrictedSourceFileException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RestrictedSourceFileException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RestrictedSourceFileException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RestrictedSourceFileException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RestrictedSourceFileException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A revision ID is required, but was not provided.
type RevisionIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29606,17 +29606,17 @@ func (s RevisionIdRequiredException) GoString() string {
func newErrorRevisionIdRequiredException(v protocol.ResponseMetadata) error {
return &RevisionIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RevisionIdRequiredException) Code() string {
+func (s *RevisionIdRequiredException) Code() string {
return "RevisionIdRequiredException"
}
// Message returns the exception's message.
-func (s RevisionIdRequiredException) Message() string {
+func (s *RevisionIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29624,29 +29624,29 @@ func (s RevisionIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RevisionIdRequiredException) OrigErr() error {
+func (s *RevisionIdRequiredException) OrigErr() error {
return nil
}
-func (s RevisionIdRequiredException) Error() string {
+func (s *RevisionIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RevisionIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RevisionIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RevisionIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RevisionIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The revision ID provided in the request does not match the current revision
// ID. Use GetPullRequest to retrieve the current revision ID.
type RevisionNotCurrentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29663,17 +29663,17 @@ func (s RevisionNotCurrentException) GoString() string {
func newErrorRevisionNotCurrentException(v protocol.ResponseMetadata) error {
return &RevisionNotCurrentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RevisionNotCurrentException) Code() string {
+func (s *RevisionNotCurrentException) Code() string {
return "RevisionNotCurrentException"
}
// Message returns the exception's message.
-func (s RevisionNotCurrentException) Message() string {
+func (s *RevisionNotCurrentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29681,30 +29681,30 @@ func (s RevisionNotCurrentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RevisionNotCurrentException) OrigErr() error {
+func (s *RevisionNotCurrentException) OrigErr() error {
return nil
}
-func (s RevisionNotCurrentException) Error() string {
+func (s *RevisionNotCurrentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RevisionNotCurrentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RevisionNotCurrentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RevisionNotCurrentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RevisionNotCurrentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The file was not added or updated because the content of the file is exactly
// the same as the content of that file in the repository and branch that you
// specified.
type SameFileContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29721,17 +29721,17 @@ func (s SameFileContentException) GoString() string {
func newErrorSameFileContentException(v protocol.ResponseMetadata) error {
return &SameFileContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SameFileContentException) Code() string {
+func (s *SameFileContentException) Code() string {
return "SameFileContentException"
}
// Message returns the exception's message.
-func (s SameFileContentException) Message() string {
+func (s *SameFileContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29739,22 +29739,22 @@ func (s SameFileContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SameFileContentException) OrigErr() error {
+func (s *SameFileContentException) OrigErr() error {
return nil
}
-func (s SameFileContentException) Error() string {
+func (s *SameFileContentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SameFileContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SameFileContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SameFileContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SameFileContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because one or more changes in this commit duplicate
@@ -29762,8 +29762,8 @@ func (s SameFileContentException) RequestID() string {
// request to the same file in the same file path twice, or make a delete request
// and a move request to the same file as part of the same commit.
type SamePathRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29780,17 +29780,17 @@ func (s SamePathRequestException) GoString() string {
func newErrorSamePathRequestException(v protocol.ResponseMetadata) error {
return &SamePathRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SamePathRequestException) Code() string {
+func (s *SamePathRequestException) Code() string {
return "SamePathRequestException"
}
// Message returns the exception's message.
-func (s SamePathRequestException) Message() string {
+func (s *SamePathRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29798,22 +29798,22 @@ func (s SamePathRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SamePathRequestException) OrigErr() error {
+func (s *SamePathRequestException) OrigErr() error {
return nil
}
-func (s SamePathRequestException) Error() string {
+func (s *SamePathRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SamePathRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SamePathRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SamePathRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SamePathRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the file mode changes.
@@ -29872,8 +29872,8 @@ func (s *SetFileModeEntry) SetFilePath(v string) *SetFileModeEntry {
// The source branch and destination branch for the pull request are the same.
// You must specify different branches for the source and destination.
type SourceAndDestinationAreSameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29890,17 +29890,17 @@ func (s SourceAndDestinationAreSameException) GoString() string {
func newErrorSourceAndDestinationAreSameException(v protocol.ResponseMetadata) error {
return &SourceAndDestinationAreSameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SourceAndDestinationAreSameException) Code() string {
+func (s *SourceAndDestinationAreSameException) Code() string {
return "SourceAndDestinationAreSameException"
}
// Message returns the exception's message.
-func (s SourceAndDestinationAreSameException) Message() string {
+func (s *SourceAndDestinationAreSameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29908,29 +29908,29 @@ func (s SourceAndDestinationAreSameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SourceAndDestinationAreSameException) OrigErr() error {
+func (s *SourceAndDestinationAreSameException) OrigErr() error {
return nil
}
-func (s SourceAndDestinationAreSameException) Error() string {
+func (s *SourceAndDestinationAreSameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SourceAndDestinationAreSameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SourceAndDestinationAreSameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SourceAndDestinationAreSameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SourceAndDestinationAreSameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The commit cannot be created because no source files or file content have
// been specified for the commit.
type SourceFileOrContentRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29947,17 +29947,17 @@ func (s SourceFileOrContentRequiredException) GoString() string {
func newErrorSourceFileOrContentRequiredException(v protocol.ResponseMetadata) error {
return &SourceFileOrContentRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SourceFileOrContentRequiredException) Code() string {
+func (s *SourceFileOrContentRequiredException) Code() string {
return "SourceFileOrContentRequiredException"
}
// Message returns the exception's message.
-func (s SourceFileOrContentRequiredException) Message() string {
+func (s *SourceFileOrContentRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29965,22 +29965,22 @@ func (s SourceFileOrContentRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SourceFileOrContentRequiredException) OrigErr() error {
+func (s *SourceFileOrContentRequiredException) OrigErr() error {
return nil
}
-func (s SourceFileOrContentRequiredException) Error() string {
+func (s *SourceFileOrContentRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SourceFileOrContentRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SourceFileOrContentRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SourceFileOrContentRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SourceFileOrContentRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a source file that is part of changes made in a commit.
@@ -30128,8 +30128,8 @@ func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink {
// A list of tag keys is required. The list cannot be empty or null.
type TagKeysListRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30146,17 +30146,17 @@ func (s TagKeysListRequiredException) GoString() string {
func newErrorTagKeysListRequiredException(v protocol.ResponseMetadata) error {
return &TagKeysListRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagKeysListRequiredException) Code() string {
+func (s *TagKeysListRequiredException) Code() string {
return "TagKeysListRequiredException"
}
// Message returns the exception's message.
-func (s TagKeysListRequiredException) Message() string {
+func (s *TagKeysListRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30164,28 +30164,28 @@ func (s TagKeysListRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagKeysListRequiredException) OrigErr() error {
+func (s *TagKeysListRequiredException) OrigErr() error {
return nil
}
-func (s TagKeysListRequiredException) Error() string {
+func (s *TagKeysListRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagKeysListRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagKeysListRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagKeysListRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagKeysListRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The tag policy is not valid.
type TagPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30202,17 +30202,17 @@ func (s TagPolicyException) GoString() string {
func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
return &TagPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagPolicyException) Code() string {
+func (s *TagPolicyException) Code() string {
return "TagPolicyException"
}
// Message returns the exception's message.
-func (s TagPolicyException) Message() string {
+func (s *TagPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30220,22 +30220,22 @@ func (s TagPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagPolicyException) OrigErr() error {
+func (s *TagPolicyException) OrigErr() error {
return nil
}
-func (s TagPolicyException) Error() string {
+func (s *TagPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -30307,8 +30307,8 @@ func (s TagResourceOutput) GoString() string {
// A map of tags is required.
type TagsMapRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30325,17 +30325,17 @@ func (s TagsMapRequiredException) GoString() string {
func newErrorTagsMapRequiredException(v protocol.ResponseMetadata) error {
return &TagsMapRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagsMapRequiredException) Code() string {
+func (s *TagsMapRequiredException) Code() string {
return "TagsMapRequiredException"
}
// Message returns the exception's message.
-func (s TagsMapRequiredException) Message() string {
+func (s *TagsMapRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30343,22 +30343,22 @@ func (s TagsMapRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagsMapRequiredException) OrigErr() error {
+func (s *TagsMapRequiredException) OrigErr() error {
return nil
}
-func (s TagsMapRequiredException) Error() string {
+func (s *TagsMapRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagsMapRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagsMapRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagsMapRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagsMapRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about a target for a pull request.
@@ -30432,8 +30432,8 @@ func (s *Target) SetSourceReference(v string) *Target {
// target must contain the full values for the repository name, source branch,
// and destination branch for the pull request.
type TargetRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30450,17 +30450,17 @@ func (s TargetRequiredException) GoString() string {
func newErrorTargetRequiredException(v protocol.ResponseMetadata) error {
return &TargetRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetRequiredException) Code() string {
+func (s *TargetRequiredException) Code() string {
return "TargetRequiredException"
}
// Message returns the exception's message.
-func (s TargetRequiredException) Message() string {
+func (s *TargetRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30468,28 +30468,28 @@ func (s TargetRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetRequiredException) OrigErr() error {
+func (s *TargetRequiredException) OrigErr() error {
return nil
}
-func (s TargetRequiredException) Error() string {
+func (s *TargetRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An array of target objects is required. It cannot be empty or null.
type TargetsRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30506,17 +30506,17 @@ func (s TargetsRequiredException) GoString() string {
func newErrorTargetsRequiredException(v protocol.ResponseMetadata) error {
return &TargetsRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetsRequiredException) Code() string {
+func (s *TargetsRequiredException) Code() string {
return "TargetsRequiredException"
}
// Message returns the exception's message.
-func (s TargetsRequiredException) Message() string {
+func (s *TargetsRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30524,22 +30524,22 @@ func (s TargetsRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetsRequiredException) OrigErr() error {
+func (s *TargetsRequiredException) OrigErr() error {
return nil
}
-func (s TargetsRequiredException) Error() string {
+func (s *TargetsRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetsRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetsRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetsRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetsRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a test repository triggers operation.
@@ -30647,8 +30647,8 @@ func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *Tes
// the tip of the source branch specified in your request. The pull request
// might have been updated. Make sure that you have the latest changes.
type TipOfSourceReferenceIsDifferentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30665,17 +30665,17 @@ func (s TipOfSourceReferenceIsDifferentException) GoString() string {
func newErrorTipOfSourceReferenceIsDifferentException(v protocol.ResponseMetadata) error {
return &TipOfSourceReferenceIsDifferentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TipOfSourceReferenceIsDifferentException) Code() string {
+func (s *TipOfSourceReferenceIsDifferentException) Code() string {
return "TipOfSourceReferenceIsDifferentException"
}
// Message returns the exception's message.
-func (s TipOfSourceReferenceIsDifferentException) Message() string {
+func (s *TipOfSourceReferenceIsDifferentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30683,30 +30683,30 @@ func (s TipOfSourceReferenceIsDifferentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TipOfSourceReferenceIsDifferentException) OrigErr() error {
+func (s *TipOfSourceReferenceIsDifferentException) OrigErr() error {
return nil
}
-func (s TipOfSourceReferenceIsDifferentException) Error() string {
+func (s *TipOfSourceReferenceIsDifferentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TipOfSourceReferenceIsDifferentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TipOfSourceReferenceIsDifferentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TipOfSourceReferenceIsDifferentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TipOfSourceReferenceIsDifferentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The divergence between the tips of the provided commit specifiers is too
// great to determine whether there might be any merge conflicts. Locally compare
// the specifiers using git diff or a diff tool.
type TipsDivergenceExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30723,17 +30723,17 @@ func (s TipsDivergenceExceededException) GoString() string {
func newErrorTipsDivergenceExceededException(v protocol.ResponseMetadata) error {
return &TipsDivergenceExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TipsDivergenceExceededException) Code() string {
+func (s *TipsDivergenceExceededException) Code() string {
return "TipsDivergenceExceededException"
}
// Message returns the exception's message.
-func (s TipsDivergenceExceededException) Message() string {
+func (s *TipsDivergenceExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30741,28 +30741,28 @@ func (s TipsDivergenceExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TipsDivergenceExceededException) OrigErr() error {
+func (s *TipsDivergenceExceededException) OrigErr() error {
return nil
}
-func (s TipsDivergenceExceededException) Error() string {
+func (s *TipsDivergenceExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TipsDivergenceExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TipsDivergenceExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TipsDivergenceExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TipsDivergenceExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A pull request title is required. It cannot be empty or null.
type TitleRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30779,17 +30779,17 @@ func (s TitleRequiredException) GoString() string {
func newErrorTitleRequiredException(v protocol.ResponseMetadata) error {
return &TitleRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TitleRequiredException) Code() string {
+func (s *TitleRequiredException) Code() string {
return "TitleRequiredException"
}
// Message returns the exception's message.
-func (s TitleRequiredException) Message() string {
+func (s *TitleRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30797,28 +30797,28 @@ func (s TitleRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TitleRequiredException) OrigErr() error {
+func (s *TitleRequiredException) OrigErr() error {
return nil
}
-func (s TitleRequiredException) Error() string {
+func (s *TitleRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TitleRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TitleRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TitleRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TitleRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of tags for an AWS CodeCommit resource has been exceeded.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30835,17 +30835,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30853,22 +30853,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go
index 16e57401deb..33832844aa3 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go
@@ -5176,8 +5176,8 @@ func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfigurati
// The maximum number of alarms for a deployment group (10) was exceeded.
type AlarmsLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5194,17 +5194,17 @@ func (s AlarmsLimitExceededException) GoString() string {
func newErrorAlarmsLimitExceededException(v protocol.ResponseMetadata) error {
return &AlarmsLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlarmsLimitExceededException) Code() string {
+func (s *AlarmsLimitExceededException) Code() string {
return "AlarmsLimitExceededException"
}
// Message returns the exception's message.
-func (s AlarmsLimitExceededException) Message() string {
+func (s *AlarmsLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5212,22 +5212,22 @@ func (s AlarmsLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlarmsLimitExceededException) OrigErr() error {
+func (s *AlarmsLimitExceededException) OrigErr() error {
return nil
}
-func (s AlarmsLimitExceededException) Error() string {
+func (s *AlarmsLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlarmsLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlarmsLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlarmsLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlarmsLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted
@@ -5280,8 +5280,8 @@ func (s *AppSpecContent) SetSha256(v string) *AppSpecContent {
// An application with the specified name with the IAM user or AWS account already
// exists.
type ApplicationAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5298,17 +5298,17 @@ func (s ApplicationAlreadyExistsException) GoString() string {
func newErrorApplicationAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ApplicationAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApplicationAlreadyExistsException) Code() string {
+func (s *ApplicationAlreadyExistsException) Code() string {
return "ApplicationAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ApplicationAlreadyExistsException) Message() string {
+func (s *ApplicationAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5316,28 +5316,28 @@ func (s ApplicationAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApplicationAlreadyExistsException) OrigErr() error {
+func (s *ApplicationAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ApplicationAlreadyExistsException) Error() string {
+func (s *ApplicationAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApplicationAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApplicationAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApplicationAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApplicationAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The application does not exist with the IAM user or AWS account.
type ApplicationDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5354,17 +5354,17 @@ func (s ApplicationDoesNotExistException) GoString() string {
func newErrorApplicationDoesNotExistException(v protocol.ResponseMetadata) error {
return &ApplicationDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApplicationDoesNotExistException) Code() string {
+func (s *ApplicationDoesNotExistException) Code() string {
return "ApplicationDoesNotExistException"
}
// Message returns the exception's message.
-func (s ApplicationDoesNotExistException) Message() string {
+func (s *ApplicationDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5372,22 +5372,22 @@ func (s ApplicationDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApplicationDoesNotExistException) OrigErr() error {
+func (s *ApplicationDoesNotExistException) OrigErr() error {
return nil
}
-func (s ApplicationDoesNotExistException) Error() string {
+func (s *ApplicationDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApplicationDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApplicationDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApplicationDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApplicationDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an application.
@@ -5463,8 +5463,8 @@ func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo {
// More applications were attempted to be created than are allowed.
type ApplicationLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5481,17 +5481,17 @@ func (s ApplicationLimitExceededException) GoString() string {
func newErrorApplicationLimitExceededException(v protocol.ResponseMetadata) error {
return &ApplicationLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApplicationLimitExceededException) Code() string {
+func (s *ApplicationLimitExceededException) Code() string {
return "ApplicationLimitExceededException"
}
// Message returns the exception's message.
-func (s ApplicationLimitExceededException) Message() string {
+func (s *ApplicationLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5499,28 +5499,28 @@ func (s ApplicationLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApplicationLimitExceededException) OrigErr() error {
+func (s *ApplicationLimitExceededException) OrigErr() error {
return nil
}
-func (s ApplicationLimitExceededException) Error() string {
+func (s *ApplicationLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApplicationLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApplicationLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApplicationLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApplicationLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The minimum number of required application names was not specified.
type ApplicationNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5537,17 +5537,17 @@ func (s ApplicationNameRequiredException) GoString() string {
func newErrorApplicationNameRequiredException(v protocol.ResponseMetadata) error {
return &ApplicationNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApplicationNameRequiredException) Code() string {
+func (s *ApplicationNameRequiredException) Code() string {
return "ApplicationNameRequiredException"
}
// Message returns the exception's message.
-func (s ApplicationNameRequiredException) Message() string {
+func (s *ApplicationNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5555,29 +5555,29 @@ func (s ApplicationNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApplicationNameRequiredException) OrigErr() error {
+func (s *ApplicationNameRequiredException) OrigErr() error {
return nil
}
-func (s ApplicationNameRequiredException) Error() string {
+func (s *ApplicationNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApplicationNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApplicationNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApplicationNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApplicationNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified ARN is not supported. For example, it might be an ARN for a
// resource that is not expected.
type ArnNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5594,17 +5594,17 @@ func (s ArnNotSupportedException) GoString() string {
func newErrorArnNotSupportedException(v protocol.ResponseMetadata) error {
return &ArnNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ArnNotSupportedException) Code() string {
+func (s *ArnNotSupportedException) Code() string {
return "ArnNotSupportedException"
}
// Message returns the exception's message.
-func (s ArnNotSupportedException) Message() string {
+func (s *ArnNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5612,22 +5612,22 @@ func (s ArnNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ArnNotSupportedException) OrigErr() error {
+func (s *ArnNotSupportedException) OrigErr() error {
return nil
}
-func (s ArnNotSupportedException) Error() string {
+func (s *ArnNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ArnNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ArnNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ArnNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ArnNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a configuration for automatically rolling back to a previous
@@ -6245,8 +6245,8 @@ func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo)
// The maximum number of names or IDs allowed for this request (100) was exceeded.
type BatchLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6263,17 +6263,17 @@ func (s BatchLimitExceededException) GoString() string {
func newErrorBatchLimitExceededException(v protocol.ResponseMetadata) error {
return &BatchLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BatchLimitExceededException) Code() string {
+func (s *BatchLimitExceededException) Code() string {
return "BatchLimitExceededException"
}
// Message returns the exception's message.
-func (s BatchLimitExceededException) Message() string {
+func (s *BatchLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6281,22 +6281,22 @@ func (s BatchLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BatchLimitExceededException) OrigErr() error {
+func (s *BatchLimitExceededException) OrigErr() error {
return nil
}
-func (s BatchLimitExceededException) Error() string {
+func (s *BatchLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BatchLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BatchLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BatchLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BatchLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about blue/green deployment options for a deployment group.
@@ -6394,8 +6394,8 @@ func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64)
// A bucket name is required, but was not provided.
type BucketNameFilterRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6412,17 +6412,17 @@ func (s BucketNameFilterRequiredException) GoString() string {
func newErrorBucketNameFilterRequiredException(v protocol.ResponseMetadata) error {
return &BucketNameFilterRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BucketNameFilterRequiredException) Code() string {
+func (s *BucketNameFilterRequiredException) Code() string {
return "BucketNameFilterRequiredException"
}
// Message returns the exception's message.
-func (s BucketNameFilterRequiredException) Message() string {
+func (s *BucketNameFilterRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6430,22 +6430,22 @@ func (s BucketNameFilterRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BucketNameFilterRequiredException) OrigErr() error {
+func (s *BucketNameFilterRequiredException) OrigErr() error {
return nil
}
-func (s BucketNameFilterRequiredException) Error() string {
+func (s *BucketNameFilterRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BucketNameFilterRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BucketNameFilterRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BucketNameFilterRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BucketNameFilterRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ContinueDeploymentInput struct {
@@ -7402,8 +7402,8 @@ func (s *DeleteGitHubAccountTokenOutput) SetTokenName(v string) *DeleteGitHubAcc
// The deployment is already complete.
type DeploymentAlreadyCompletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7420,17 +7420,17 @@ func (s DeploymentAlreadyCompletedException) GoString() string {
func newErrorDeploymentAlreadyCompletedException(v protocol.ResponseMetadata) error {
return &DeploymentAlreadyCompletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentAlreadyCompletedException) Code() string {
+func (s *DeploymentAlreadyCompletedException) Code() string {
return "DeploymentAlreadyCompletedException"
}
// Message returns the exception's message.
-func (s DeploymentAlreadyCompletedException) Message() string {
+func (s *DeploymentAlreadyCompletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7438,29 +7438,29 @@ func (s DeploymentAlreadyCompletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentAlreadyCompletedException) OrigErr() error {
+func (s *DeploymentAlreadyCompletedException) OrigErr() error {
return nil
}
-func (s DeploymentAlreadyCompletedException) Error() string {
+func (s *DeploymentAlreadyCompletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentAlreadyCompletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentAlreadyCompletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentAlreadyCompletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentAlreadyCompletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A deployment configuration with the specified name with the IAM user or AWS
// account already exists .
type DeploymentConfigAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7477,17 +7477,17 @@ func (s DeploymentConfigAlreadyExistsException) GoString() string {
func newErrorDeploymentConfigAlreadyExistsException(v protocol.ResponseMetadata) error {
return &DeploymentConfigAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentConfigAlreadyExistsException) Code() string {
+func (s *DeploymentConfigAlreadyExistsException) Code() string {
return "DeploymentConfigAlreadyExistsException"
}
// Message returns the exception's message.
-func (s DeploymentConfigAlreadyExistsException) Message() string {
+func (s *DeploymentConfigAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7495,28 +7495,28 @@ func (s DeploymentConfigAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentConfigAlreadyExistsException) OrigErr() error {
+func (s *DeploymentConfigAlreadyExistsException) OrigErr() error {
return nil
}
-func (s DeploymentConfigAlreadyExistsException) Error() string {
+func (s *DeploymentConfigAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentConfigAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentConfigAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentConfigAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentConfigAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment configuration does not exist with the IAM user or AWS account.
type DeploymentConfigDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7533,17 +7533,17 @@ func (s DeploymentConfigDoesNotExistException) GoString() string {
func newErrorDeploymentConfigDoesNotExistException(v protocol.ResponseMetadata) error {
return &DeploymentConfigDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentConfigDoesNotExistException) Code() string {
+func (s *DeploymentConfigDoesNotExistException) Code() string {
return "DeploymentConfigDoesNotExistException"
}
// Message returns the exception's message.
-func (s DeploymentConfigDoesNotExistException) Message() string {
+func (s *DeploymentConfigDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7551,28 +7551,28 @@ func (s DeploymentConfigDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentConfigDoesNotExistException) OrigErr() error {
+func (s *DeploymentConfigDoesNotExistException) OrigErr() error {
return nil
}
-func (s DeploymentConfigDoesNotExistException) Error() string {
+func (s *DeploymentConfigDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentConfigDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentConfigDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentConfigDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentConfigDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment configuration is still in use.
type DeploymentConfigInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7589,17 +7589,17 @@ func (s DeploymentConfigInUseException) GoString() string {
func newErrorDeploymentConfigInUseException(v protocol.ResponseMetadata) error {
return &DeploymentConfigInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentConfigInUseException) Code() string {
+func (s *DeploymentConfigInUseException) Code() string {
return "DeploymentConfigInUseException"
}
// Message returns the exception's message.
-func (s DeploymentConfigInUseException) Message() string {
+func (s *DeploymentConfigInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7607,22 +7607,22 @@ func (s DeploymentConfigInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentConfigInUseException) OrigErr() error {
+func (s *DeploymentConfigInUseException) OrigErr() error {
return nil
}
-func (s DeploymentConfigInUseException) Error() string {
+func (s *DeploymentConfigInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentConfigInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentConfigInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentConfigInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentConfigInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a deployment configuration.
@@ -7697,8 +7697,8 @@ func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig)
// The deployment configurations limit was exceeded.
type DeploymentConfigLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7715,17 +7715,17 @@ func (s DeploymentConfigLimitExceededException) GoString() string {
func newErrorDeploymentConfigLimitExceededException(v protocol.ResponseMetadata) error {
return &DeploymentConfigLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentConfigLimitExceededException) Code() string {
+func (s *DeploymentConfigLimitExceededException) Code() string {
return "DeploymentConfigLimitExceededException"
}
// Message returns the exception's message.
-func (s DeploymentConfigLimitExceededException) Message() string {
+func (s *DeploymentConfigLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7733,28 +7733,28 @@ func (s DeploymentConfigLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentConfigLimitExceededException) OrigErr() error {
+func (s *DeploymentConfigLimitExceededException) OrigErr() error {
return nil
}
-func (s DeploymentConfigLimitExceededException) Error() string {
+func (s *DeploymentConfigLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentConfigLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentConfigLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentConfigLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentConfigLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment configuration name was not specified.
type DeploymentConfigNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7771,17 +7771,17 @@ func (s DeploymentConfigNameRequiredException) GoString() string {
func newErrorDeploymentConfigNameRequiredException(v protocol.ResponseMetadata) error {
return &DeploymentConfigNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentConfigNameRequiredException) Code() string {
+func (s *DeploymentConfigNameRequiredException) Code() string {
return "DeploymentConfigNameRequiredException"
}
// Message returns the exception's message.
-func (s DeploymentConfigNameRequiredException) Message() string {
+func (s *DeploymentConfigNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7789,28 +7789,28 @@ func (s DeploymentConfigNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentConfigNameRequiredException) OrigErr() error {
+func (s *DeploymentConfigNameRequiredException) OrigErr() error {
return nil
}
-func (s DeploymentConfigNameRequiredException) Error() string {
+func (s *DeploymentConfigNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentConfigNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentConfigNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentConfigNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentConfigNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment with the IAM user or AWS account does not exist.
type DeploymentDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7827,17 +7827,17 @@ func (s DeploymentDoesNotExistException) GoString() string {
func newErrorDeploymentDoesNotExistException(v protocol.ResponseMetadata) error {
return &DeploymentDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentDoesNotExistException) Code() string {
+func (s *DeploymentDoesNotExistException) Code() string {
return "DeploymentDoesNotExistException"
}
// Message returns the exception's message.
-func (s DeploymentDoesNotExistException) Message() string {
+func (s *DeploymentDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7845,29 +7845,29 @@ func (s DeploymentDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentDoesNotExistException) OrigErr() error {
+func (s *DeploymentDoesNotExistException) OrigErr() error {
return nil
}
-func (s DeploymentDoesNotExistException) Error() string {
+func (s *DeploymentDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A deployment group with the specified name with the IAM user or AWS account
// already exists.
type DeploymentGroupAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7884,17 +7884,17 @@ func (s DeploymentGroupAlreadyExistsException) GoString() string {
func newErrorDeploymentGroupAlreadyExistsException(v protocol.ResponseMetadata) error {
return &DeploymentGroupAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentGroupAlreadyExistsException) Code() string {
+func (s *DeploymentGroupAlreadyExistsException) Code() string {
return "DeploymentGroupAlreadyExistsException"
}
// Message returns the exception's message.
-func (s DeploymentGroupAlreadyExistsException) Message() string {
+func (s *DeploymentGroupAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7902,28 +7902,28 @@ func (s DeploymentGroupAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentGroupAlreadyExistsException) OrigErr() error {
+func (s *DeploymentGroupAlreadyExistsException) OrigErr() error {
return nil
}
-func (s DeploymentGroupAlreadyExistsException) Error() string {
+func (s *DeploymentGroupAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentGroupAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentGroupAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentGroupAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentGroupAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The named deployment group with the IAM user or AWS account does not exist.
type DeploymentGroupDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7940,17 +7940,17 @@ func (s DeploymentGroupDoesNotExistException) GoString() string {
func newErrorDeploymentGroupDoesNotExistException(v protocol.ResponseMetadata) error {
return &DeploymentGroupDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentGroupDoesNotExistException) Code() string {
+func (s *DeploymentGroupDoesNotExistException) Code() string {
return "DeploymentGroupDoesNotExistException"
}
// Message returns the exception's message.
-func (s DeploymentGroupDoesNotExistException) Message() string {
+func (s *DeploymentGroupDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7958,22 +7958,22 @@ func (s DeploymentGroupDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentGroupDoesNotExistException) OrigErr() error {
+func (s *DeploymentGroupDoesNotExistException) OrigErr() error {
return nil
}
-func (s DeploymentGroupDoesNotExistException) Error() string {
+func (s *DeploymentGroupDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentGroupDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentGroupDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentGroupDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentGroupDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a deployment group.
@@ -8199,8 +8199,8 @@ func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *Depl
// The deployment groups limit was exceeded.
type DeploymentGroupLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8217,17 +8217,17 @@ func (s DeploymentGroupLimitExceededException) GoString() string {
func newErrorDeploymentGroupLimitExceededException(v protocol.ResponseMetadata) error {
return &DeploymentGroupLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentGroupLimitExceededException) Code() string {
+func (s *DeploymentGroupLimitExceededException) Code() string {
return "DeploymentGroupLimitExceededException"
}
// Message returns the exception's message.
-func (s DeploymentGroupLimitExceededException) Message() string {
+func (s *DeploymentGroupLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8235,28 +8235,28 @@ func (s DeploymentGroupLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentGroupLimitExceededException) OrigErr() error {
+func (s *DeploymentGroupLimitExceededException) OrigErr() error {
return nil
}
-func (s DeploymentGroupLimitExceededException) Error() string {
+func (s *DeploymentGroupLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentGroupLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentGroupLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentGroupLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentGroupLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment group name was not specified.
type DeploymentGroupNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8273,17 +8273,17 @@ func (s DeploymentGroupNameRequiredException) GoString() string {
func newErrorDeploymentGroupNameRequiredException(v protocol.ResponseMetadata) error {
return &DeploymentGroupNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentGroupNameRequiredException) Code() string {
+func (s *DeploymentGroupNameRequiredException) Code() string {
return "DeploymentGroupNameRequiredException"
}
// Message returns the exception's message.
-func (s DeploymentGroupNameRequiredException) Message() string {
+func (s *DeploymentGroupNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8291,28 +8291,28 @@ func (s DeploymentGroupNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentGroupNameRequiredException) OrigErr() error {
+func (s *DeploymentGroupNameRequiredException) OrigErr() error {
return nil
}
-func (s DeploymentGroupNameRequiredException) Error() string {
+func (s *DeploymentGroupNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentGroupNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentGroupNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentGroupNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentGroupNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// At least one deployment ID must be specified.
type DeploymentIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8329,17 +8329,17 @@ func (s DeploymentIdRequiredException) GoString() string {
func newErrorDeploymentIdRequiredException(v protocol.ResponseMetadata) error {
return &DeploymentIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentIdRequiredException) Code() string {
+func (s *DeploymentIdRequiredException) Code() string {
return "DeploymentIdRequiredException"
}
// Message returns the exception's message.
-func (s DeploymentIdRequiredException) Message() string {
+func (s *DeploymentIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8347,22 +8347,22 @@ func (s DeploymentIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentIdRequiredException) OrigErr() error {
+func (s *DeploymentIdRequiredException) OrigErr() error {
return nil
}
-func (s DeploymentIdRequiredException) Error() string {
+func (s *DeploymentIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a deployment.
@@ -8679,8 +8679,8 @@ func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo
// The deployment does not have a status of Ready and can't continue yet.
type DeploymentIsNotInReadyStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8697,17 +8697,17 @@ func (s DeploymentIsNotInReadyStateException) GoString() string {
func newErrorDeploymentIsNotInReadyStateException(v protocol.ResponseMetadata) error {
return &DeploymentIsNotInReadyStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentIsNotInReadyStateException) Code() string {
+func (s *DeploymentIsNotInReadyStateException) Code() string {
return "DeploymentIsNotInReadyStateException"
}
// Message returns the exception's message.
-func (s DeploymentIsNotInReadyStateException) Message() string {
+func (s *DeploymentIsNotInReadyStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8715,28 +8715,28 @@ func (s DeploymentIsNotInReadyStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentIsNotInReadyStateException) OrigErr() error {
+func (s *DeploymentIsNotInReadyStateException) OrigErr() error {
return nil
}
-func (s DeploymentIsNotInReadyStateException) Error() string {
+func (s *DeploymentIsNotInReadyStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentIsNotInReadyStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentIsNotInReadyStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentIsNotInReadyStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentIsNotInReadyStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of allowed deployments was exceeded.
type DeploymentLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8753,17 +8753,17 @@ func (s DeploymentLimitExceededException) GoString() string {
func newErrorDeploymentLimitExceededException(v protocol.ResponseMetadata) error {
return &DeploymentLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentLimitExceededException) Code() string {
+func (s *DeploymentLimitExceededException) Code() string {
return "DeploymentLimitExceededException"
}
// Message returns the exception's message.
-func (s DeploymentLimitExceededException) Message() string {
+func (s *DeploymentLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8771,28 +8771,28 @@ func (s DeploymentLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentLimitExceededException) OrigErr() error {
+func (s *DeploymentLimitExceededException) OrigErr() error {
return nil
}
-func (s DeploymentLimitExceededException) Error() string {
+func (s *DeploymentLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified deployment has not started.
type DeploymentNotStartedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8809,17 +8809,17 @@ func (s DeploymentNotStartedException) GoString() string {
func newErrorDeploymentNotStartedException(v protocol.ResponseMetadata) error {
return &DeploymentNotStartedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentNotStartedException) Code() string {
+func (s *DeploymentNotStartedException) Code() string {
return "DeploymentNotStartedException"
}
// Message returns the exception's message.
-func (s DeploymentNotStartedException) Message() string {
+func (s *DeploymentNotStartedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8827,22 +8827,22 @@ func (s DeploymentNotStartedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentNotStartedException) OrigErr() error {
+func (s *DeploymentNotStartedException) OrigErr() error {
return nil
}
-func (s DeploymentNotStartedException) Error() string {
+func (s *DeploymentNotStartedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentNotStartedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentNotStartedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentNotStartedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentNotStartedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the deployment status of the instances in the deployment.
@@ -9052,8 +9052,8 @@ func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget {
// The provided target ID does not belong to the attempted deployment.
type DeploymentTargetDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9070,17 +9070,17 @@ func (s DeploymentTargetDoesNotExistException) GoString() string {
func newErrorDeploymentTargetDoesNotExistException(v protocol.ResponseMetadata) error {
return &DeploymentTargetDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentTargetDoesNotExistException) Code() string {
+func (s *DeploymentTargetDoesNotExistException) Code() string {
return "DeploymentTargetDoesNotExistException"
}
// Message returns the exception's message.
-func (s DeploymentTargetDoesNotExistException) Message() string {
+func (s *DeploymentTargetDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9088,28 +9088,28 @@ func (s DeploymentTargetDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentTargetDoesNotExistException) OrigErr() error {
+func (s *DeploymentTargetDoesNotExistException) OrigErr() error {
return nil
}
-func (s DeploymentTargetDoesNotExistException) Error() string {
+func (s *DeploymentTargetDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentTargetDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentTargetDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentTargetDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentTargetDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A deployment target ID was not provided.
type DeploymentTargetIdRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9126,17 +9126,17 @@ func (s DeploymentTargetIdRequiredException) GoString() string {
func newErrorDeploymentTargetIdRequiredException(v protocol.ResponseMetadata) error {
return &DeploymentTargetIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentTargetIdRequiredException) Code() string {
+func (s *DeploymentTargetIdRequiredException) Code() string {
return "DeploymentTargetIdRequiredException"
}
// Message returns the exception's message.
-func (s DeploymentTargetIdRequiredException) Message() string {
+func (s *DeploymentTargetIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9144,22 +9144,22 @@ func (s DeploymentTargetIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentTargetIdRequiredException) OrigErr() error {
+func (s *DeploymentTargetIdRequiredException) OrigErr() error {
return nil
}
-func (s DeploymentTargetIdRequiredException) Error() string {
+func (s *DeploymentTargetIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentTargetIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentTargetIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentTargetIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentTargetIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of targets that can be associated with an Amazon ECS or
@@ -9167,8 +9167,8 @@ func (s DeploymentTargetIdRequiredException) RequestID() string {
// must have exactly one item. This exception does not apply to EC2/On-premises
// deployments.
type DeploymentTargetListSizeExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9185,17 +9185,17 @@ func (s DeploymentTargetListSizeExceededException) GoString() string {
func newErrorDeploymentTargetListSizeExceededException(v protocol.ResponseMetadata) error {
return &DeploymentTargetListSizeExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeploymentTargetListSizeExceededException) Code() string {
+func (s *DeploymentTargetListSizeExceededException) Code() string {
return "DeploymentTargetListSizeExceededException"
}
// Message returns the exception's message.
-func (s DeploymentTargetListSizeExceededException) Message() string {
+func (s *DeploymentTargetListSizeExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9203,22 +9203,22 @@ func (s DeploymentTargetListSizeExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeploymentTargetListSizeExceededException) OrigErr() error {
+func (s *DeploymentTargetListSizeExceededException) OrigErr() error {
return nil
}
-func (s DeploymentTargetListSizeExceededException) Error() string {
+func (s *DeploymentTargetListSizeExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeploymentTargetListSizeExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeploymentTargetListSizeExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeploymentTargetListSizeExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeploymentTargetListSizeExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a DeregisterOnPremisesInstance operation.
@@ -9276,8 +9276,8 @@ func (s DeregisterOnPremisesInstanceOutput) GoString() string {
// The description is too long.
type DescriptionTooLongException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9294,17 +9294,17 @@ func (s DescriptionTooLongException) GoString() string {
func newErrorDescriptionTooLongException(v protocol.ResponseMetadata) error {
return &DescriptionTooLongException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DescriptionTooLongException) Code() string {
+func (s *DescriptionTooLongException) Code() string {
return "DescriptionTooLongException"
}
// Message returns the exception's message.
-func (s DescriptionTooLongException) Message() string {
+func (s *DescriptionTooLongException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9312,22 +9312,22 @@ func (s DescriptionTooLongException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DescriptionTooLongException) OrigErr() error {
+func (s *DescriptionTooLongException) OrigErr() error {
return nil
}
-func (s DescriptionTooLongException) Error() string {
+func (s *DescriptionTooLongException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DescriptionTooLongException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DescriptionTooLongException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DescriptionTooLongException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DescriptionTooLongException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Diagnostic information about executable scripts that are part of a deployment.
@@ -9509,8 +9509,8 @@ func (s *ECSService) SetServiceName(v string) *ECSService {
// The Amazon ECS service is associated with more than one deployment groups.
// An Amazon ECS service can be associated with only one deployment group.
type ECSServiceMappingLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9527,17 +9527,17 @@ func (s ECSServiceMappingLimitExceededException) GoString() string {
func newErrorECSServiceMappingLimitExceededException(v protocol.ResponseMetadata) error {
return &ECSServiceMappingLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ECSServiceMappingLimitExceededException) Code() string {
+func (s *ECSServiceMappingLimitExceededException) Code() string {
return "ECSServiceMappingLimitExceededException"
}
// Message returns the exception's message.
-func (s ECSServiceMappingLimitExceededException) Message() string {
+func (s *ECSServiceMappingLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9545,22 +9545,22 @@ func (s ECSServiceMappingLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ECSServiceMappingLimitExceededException) OrigErr() error {
+func (s *ECSServiceMappingLimitExceededException) OrigErr() error {
return nil
}
-func (s ECSServiceMappingLimitExceededException) Error() string {
+func (s *ECSServiceMappingLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ECSServiceMappingLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ECSServiceMappingLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ECSServiceMappingLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ECSServiceMappingLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the target of an Amazon ECS deployment.
@@ -10491,8 +10491,8 @@ func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPre
// No GitHub account connection exists with the named specified in the call.
type GitHubAccountTokenDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10509,17 +10509,17 @@ func (s GitHubAccountTokenDoesNotExistException) GoString() string {
func newErrorGitHubAccountTokenDoesNotExistException(v protocol.ResponseMetadata) error {
return &GitHubAccountTokenDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GitHubAccountTokenDoesNotExistException) Code() string {
+func (s *GitHubAccountTokenDoesNotExistException) Code() string {
return "GitHubAccountTokenDoesNotExistException"
}
// Message returns the exception's message.
-func (s GitHubAccountTokenDoesNotExistException) Message() string {
+func (s *GitHubAccountTokenDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10527,28 +10527,28 @@ func (s GitHubAccountTokenDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GitHubAccountTokenDoesNotExistException) OrigErr() error {
+func (s *GitHubAccountTokenDoesNotExistException) OrigErr() error {
return nil
}
-func (s GitHubAccountTokenDoesNotExistException) Error() string {
+func (s *GitHubAccountTokenDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GitHubAccountTokenDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GitHubAccountTokenDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GitHubAccountTokenDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GitHubAccountTokenDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The call is missing a required GitHub account connection name.
type GitHubAccountTokenNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10565,17 +10565,17 @@ func (s GitHubAccountTokenNameRequiredException) GoString() string {
func newErrorGitHubAccountTokenNameRequiredException(v protocol.ResponseMetadata) error {
return &GitHubAccountTokenNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GitHubAccountTokenNameRequiredException) Code() string {
+func (s *GitHubAccountTokenNameRequiredException) Code() string {
return "GitHubAccountTokenNameRequiredException"
}
// Message returns the exception's message.
-func (s GitHubAccountTokenNameRequiredException) Message() string {
+func (s *GitHubAccountTokenNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10583,22 +10583,22 @@ func (s GitHubAccountTokenNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GitHubAccountTokenNameRequiredException) OrigErr() error {
+func (s *GitHubAccountTokenNameRequiredException) OrigErr() error {
return nil
}
-func (s GitHubAccountTokenNameRequiredException) Error() string {
+func (s *GitHubAccountTokenNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GitHubAccountTokenNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GitHubAccountTokenNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GitHubAccountTokenNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GitHubAccountTokenNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the location of application artifacts stored in GitHub.
@@ -10672,8 +10672,8 @@ func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioni
// No IAM ARN was included in the request. You must use an IAM session ARN or
// IAM user ARN in the request.
type IamArnRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10690,17 +10690,17 @@ func (s IamArnRequiredException) GoString() string {
func newErrorIamArnRequiredException(v protocol.ResponseMetadata) error {
return &IamArnRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IamArnRequiredException) Code() string {
+func (s *IamArnRequiredException) Code() string {
return "IamArnRequiredException"
}
// Message returns the exception's message.
-func (s IamArnRequiredException) Message() string {
+func (s *IamArnRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10708,29 +10708,29 @@ func (s IamArnRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IamArnRequiredException) OrigErr() error {
+func (s *IamArnRequiredException) OrigErr() error {
return nil
}
-func (s IamArnRequiredException) Error() string {
+func (s *IamArnRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IamArnRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IamArnRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IamArnRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IamArnRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request included an IAM session ARN that has already been used to register
// a different instance.
type IamSessionArnAlreadyRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10747,17 +10747,17 @@ func (s IamSessionArnAlreadyRegisteredException) GoString() string {
func newErrorIamSessionArnAlreadyRegisteredException(v protocol.ResponseMetadata) error {
return &IamSessionArnAlreadyRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IamSessionArnAlreadyRegisteredException) Code() string {
+func (s *IamSessionArnAlreadyRegisteredException) Code() string {
return "IamSessionArnAlreadyRegisteredException"
}
// Message returns the exception's message.
-func (s IamSessionArnAlreadyRegisteredException) Message() string {
+func (s *IamSessionArnAlreadyRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10765,28 +10765,28 @@ func (s IamSessionArnAlreadyRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IamSessionArnAlreadyRegisteredException) OrigErr() error {
+func (s *IamSessionArnAlreadyRegisteredException) OrigErr() error {
return nil
}
-func (s IamSessionArnAlreadyRegisteredException) Error() string {
+func (s *IamSessionArnAlreadyRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IamSessionArnAlreadyRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IamSessionArnAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IamSessionArnAlreadyRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IamSessionArnAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified IAM user ARN is already registered with an on-premises instance.
type IamUserArnAlreadyRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10803,17 +10803,17 @@ func (s IamUserArnAlreadyRegisteredException) GoString() string {
func newErrorIamUserArnAlreadyRegisteredException(v protocol.ResponseMetadata) error {
return &IamUserArnAlreadyRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IamUserArnAlreadyRegisteredException) Code() string {
+func (s *IamUserArnAlreadyRegisteredException) Code() string {
return "IamUserArnAlreadyRegisteredException"
}
// Message returns the exception's message.
-func (s IamUserArnAlreadyRegisteredException) Message() string {
+func (s *IamUserArnAlreadyRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10821,28 +10821,28 @@ func (s IamUserArnAlreadyRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IamUserArnAlreadyRegisteredException) OrigErr() error {
+func (s *IamUserArnAlreadyRegisteredException) OrigErr() error {
return nil
}
-func (s IamUserArnAlreadyRegisteredException) Error() string {
+func (s *IamUserArnAlreadyRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IamUserArnAlreadyRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IamUserArnAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IamUserArnAlreadyRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IamUserArnAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An IAM user ARN was not specified.
type IamUserArnRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10859,17 +10859,17 @@ func (s IamUserArnRequiredException) GoString() string {
func newErrorIamUserArnRequiredException(v protocol.ResponseMetadata) error {
return &IamUserArnRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IamUserArnRequiredException) Code() string {
+func (s *IamUserArnRequiredException) Code() string {
return "IamUserArnRequiredException"
}
// Message returns the exception's message.
-func (s IamUserArnRequiredException) Message() string {
+func (s *IamUserArnRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10877,30 +10877,30 @@ func (s IamUserArnRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IamUserArnRequiredException) OrigErr() error {
+func (s *IamUserArnRequiredException) OrigErr() error {
return nil
}
-func (s IamUserArnRequiredException) Error() string {
+func (s *IamUserArnRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IamUserArnRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IamUserArnRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IamUserArnRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IamUserArnRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified instance does not exist in the deployment group.
//
// Deprecated: This exception is deprecated, use DeploymentTargetDoesNotExistException instead.
type InstanceDoesNotExistException struct {
- _ struct{} `deprecated:"true" type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `deprecated:"true" type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10917,17 +10917,17 @@ func (s InstanceDoesNotExistException) GoString() string {
func newErrorInstanceDoesNotExistException(v protocol.ResponseMetadata) error {
return &InstanceDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceDoesNotExistException) Code() string {
+func (s *InstanceDoesNotExistException) Code() string {
return "InstanceDoesNotExistException"
}
// Message returns the exception's message.
-func (s InstanceDoesNotExistException) Message() string {
+func (s *InstanceDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10935,30 +10935,30 @@ func (s InstanceDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceDoesNotExistException) OrigErr() error {
+func (s *InstanceDoesNotExistException) OrigErr() error {
return nil
}
-func (s InstanceDoesNotExistException) Error() string {
+func (s *InstanceDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The instance ID was not specified.
//
// Deprecated: This exception is deprecated, use DeploymentTargetIdRequiredException instead.
type InstanceIdRequiredException struct {
- _ struct{} `deprecated:"true" type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `deprecated:"true" type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10975,17 +10975,17 @@ func (s InstanceIdRequiredException) GoString() string {
func newErrorInstanceIdRequiredException(v protocol.ResponseMetadata) error {
return &InstanceIdRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceIdRequiredException) Code() string {
+func (s *InstanceIdRequiredException) Code() string {
return "InstanceIdRequiredException"
}
// Message returns the exception's message.
-func (s InstanceIdRequiredException) Message() string {
+func (s *InstanceIdRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10993,22 +10993,22 @@ func (s InstanceIdRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceIdRequiredException) OrigErr() error {
+func (s *InstanceIdRequiredException) OrigErr() error {
return nil
}
-func (s InstanceIdRequiredException) Error() string {
+func (s *InstanceIdRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceIdRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceIdRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceIdRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceIdRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an on-premises instance.
@@ -11093,8 +11093,8 @@ func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo {
// The maximum number of allowed on-premises instances in a single call was
// exceeded.
type InstanceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11111,17 +11111,17 @@ func (s InstanceLimitExceededException) GoString() string {
func newErrorInstanceLimitExceededException(v protocol.ResponseMetadata) error {
return &InstanceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceLimitExceededException) Code() string {
+func (s *InstanceLimitExceededException) Code() string {
return "InstanceLimitExceededException"
}
// Message returns the exception's message.
-func (s InstanceLimitExceededException) Message() string {
+func (s *InstanceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11129,28 +11129,28 @@ func (s InstanceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceLimitExceededException) OrigErr() error {
+func (s *InstanceLimitExceededException) OrigErr() error {
return nil
}
-func (s InstanceLimitExceededException) Error() string {
+func (s *InstanceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified on-premises instance name is already registered.
type InstanceNameAlreadyRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11167,17 +11167,17 @@ func (s InstanceNameAlreadyRegisteredException) GoString() string {
func newErrorInstanceNameAlreadyRegisteredException(v protocol.ResponseMetadata) error {
return &InstanceNameAlreadyRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceNameAlreadyRegisteredException) Code() string {
+func (s *InstanceNameAlreadyRegisteredException) Code() string {
return "InstanceNameAlreadyRegisteredException"
}
// Message returns the exception's message.
-func (s InstanceNameAlreadyRegisteredException) Message() string {
+func (s *InstanceNameAlreadyRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11185,28 +11185,28 @@ func (s InstanceNameAlreadyRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceNameAlreadyRegisteredException) OrigErr() error {
+func (s *InstanceNameAlreadyRegisteredException) OrigErr() error {
return nil
}
-func (s InstanceNameAlreadyRegisteredException) Error() string {
+func (s *InstanceNameAlreadyRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceNameAlreadyRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceNameAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceNameAlreadyRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceNameAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An on-premises instance name was not specified.
type InstanceNameRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11223,17 +11223,17 @@ func (s InstanceNameRequiredException) GoString() string {
func newErrorInstanceNameRequiredException(v protocol.ResponseMetadata) error {
return &InstanceNameRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceNameRequiredException) Code() string {
+func (s *InstanceNameRequiredException) Code() string {
return "InstanceNameRequiredException"
}
// Message returns the exception's message.
-func (s InstanceNameRequiredException) Message() string {
+func (s *InstanceNameRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11241,28 +11241,28 @@ func (s InstanceNameRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceNameRequiredException) OrigErr() error {
+func (s *InstanceNameRequiredException) OrigErr() error {
return nil
}
-func (s InstanceNameRequiredException) Error() string {
+func (s *InstanceNameRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceNameRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceNameRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceNameRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceNameRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified on-premises instance is not registered.
type InstanceNotRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11279,17 +11279,17 @@ func (s InstanceNotRegisteredException) GoString() string {
func newErrorInstanceNotRegisteredException(v protocol.ResponseMetadata) error {
return &InstanceNotRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceNotRegisteredException) Code() string {
+func (s *InstanceNotRegisteredException) Code() string {
return "InstanceNotRegisteredException"
}
// Message returns the exception's message.
-func (s InstanceNotRegisteredException) Message() string {
+func (s *InstanceNotRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11297,22 +11297,22 @@ func (s InstanceNotRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceNotRegisteredException) OrigErr() error {
+func (s *InstanceNotRegisteredException) OrigErr() error {
return nil
}
-func (s InstanceNotRegisteredException) Error() string {
+func (s *InstanceNotRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceNotRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceNotRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceNotRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceNotRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an instance in a deployment.
@@ -11495,8 +11495,8 @@ func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget {
//
// * The alarm configuration is enabled, but the alarm list is empty.
type InvalidAlarmConfigException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11513,17 +11513,17 @@ func (s InvalidAlarmConfigException) GoString() string {
func newErrorInvalidAlarmConfigException(v protocol.ResponseMetadata) error {
return &InvalidAlarmConfigException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAlarmConfigException) Code() string {
+func (s *InvalidAlarmConfigException) Code() string {
return "InvalidAlarmConfigException"
}
// Message returns the exception's message.
-func (s InvalidAlarmConfigException) Message() string {
+func (s *InvalidAlarmConfigException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11531,28 +11531,28 @@ func (s InvalidAlarmConfigException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAlarmConfigException) OrigErr() error {
+func (s *InvalidAlarmConfigException) OrigErr() error {
return nil
}
-func (s InvalidAlarmConfigException) Error() string {
+func (s *InvalidAlarmConfigException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAlarmConfigException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAlarmConfigException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAlarmConfigException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAlarmConfigException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The application name was specified in an invalid format.
type InvalidApplicationNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11569,17 +11569,17 @@ func (s InvalidApplicationNameException) GoString() string {
func newErrorInvalidApplicationNameException(v protocol.ResponseMetadata) error {
return &InvalidApplicationNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApplicationNameException) Code() string {
+func (s *InvalidApplicationNameException) Code() string {
return "InvalidApplicationNameException"
}
// Message returns the exception's message.
-func (s InvalidApplicationNameException) Message() string {
+func (s *InvalidApplicationNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11587,28 +11587,28 @@ func (s InvalidApplicationNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApplicationNameException) OrigErr() error {
+func (s *InvalidApplicationNameException) OrigErr() error {
return nil
}
-func (s InvalidApplicationNameException) Error() string {
+func (s *InvalidApplicationNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApplicationNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApplicationNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApplicationNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApplicationNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified ARN is not in a valid format.
type InvalidArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11625,17 +11625,17 @@ func (s InvalidArnException) GoString() string {
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArnException) Code() string {
+func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
-func (s InvalidArnException) Message() string {
+func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11643,30 +11643,30 @@ func (s InvalidArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArnException) OrigErr() error {
+func (s *InvalidArnException) OrigErr() error {
return nil
}
-func (s InvalidArnException) Error() string {
+func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The automatic rollback configuration was specified in an invalid format.
// For example, automatic rollback is enabled, but an invalid triggering event
// type or no event types were listed.
type InvalidAutoRollbackConfigException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11683,17 +11683,17 @@ func (s InvalidAutoRollbackConfigException) GoString() string {
func newErrorInvalidAutoRollbackConfigException(v protocol.ResponseMetadata) error {
return &InvalidAutoRollbackConfigException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAutoRollbackConfigException) Code() string {
+func (s *InvalidAutoRollbackConfigException) Code() string {
return "InvalidAutoRollbackConfigException"
}
// Message returns the exception's message.
-func (s InvalidAutoRollbackConfigException) Message() string {
+func (s *InvalidAutoRollbackConfigException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11701,28 +11701,28 @@ func (s InvalidAutoRollbackConfigException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAutoRollbackConfigException) OrigErr() error {
+func (s *InvalidAutoRollbackConfigException) OrigErr() error {
return nil
}
-func (s InvalidAutoRollbackConfigException) Error() string {
+func (s *InvalidAutoRollbackConfigException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAutoRollbackConfigException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAutoRollbackConfigException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAutoRollbackConfigException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAutoRollbackConfigException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Auto Scaling group was specified in an invalid format or does not exist.
type InvalidAutoScalingGroupException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11739,17 +11739,17 @@ func (s InvalidAutoScalingGroupException) GoString() string {
func newErrorInvalidAutoScalingGroupException(v protocol.ResponseMetadata) error {
return &InvalidAutoScalingGroupException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAutoScalingGroupException) Code() string {
+func (s *InvalidAutoScalingGroupException) Code() string {
return "InvalidAutoScalingGroupException"
}
// Message returns the exception's message.
-func (s InvalidAutoScalingGroupException) Message() string {
+func (s *InvalidAutoScalingGroupException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11757,30 +11757,30 @@ func (s InvalidAutoScalingGroupException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAutoScalingGroupException) OrigErr() error {
+func (s *InvalidAutoScalingGroupException) OrigErr() error {
return nil
}
-func (s InvalidAutoScalingGroupException) Error() string {
+func (s *InvalidAutoScalingGroupException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAutoScalingGroupException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAutoScalingGroupException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAutoScalingGroupException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAutoScalingGroupException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration for the blue/green deployment group was provided in an
// invalid format. For information about deployment configuration format, see
// CreateDeploymentConfig.
type InvalidBlueGreenDeploymentConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11797,17 +11797,17 @@ func (s InvalidBlueGreenDeploymentConfigurationException) GoString() string {
func newErrorInvalidBlueGreenDeploymentConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidBlueGreenDeploymentConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidBlueGreenDeploymentConfigurationException) Code() string {
+func (s *InvalidBlueGreenDeploymentConfigurationException) Code() string {
return "InvalidBlueGreenDeploymentConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidBlueGreenDeploymentConfigurationException) Message() string {
+func (s *InvalidBlueGreenDeploymentConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11815,28 +11815,28 @@ func (s InvalidBlueGreenDeploymentConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidBlueGreenDeploymentConfigurationException) OrigErr() error {
+func (s *InvalidBlueGreenDeploymentConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidBlueGreenDeploymentConfigurationException) Error() string {
+func (s *InvalidBlueGreenDeploymentConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidBlueGreenDeploymentConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidBlueGreenDeploymentConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidBlueGreenDeploymentConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidBlueGreenDeploymentConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The bucket name either doesn't exist or was specified in an invalid format.
type InvalidBucketNameFilterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11853,17 +11853,17 @@ func (s InvalidBucketNameFilterException) GoString() string {
func newErrorInvalidBucketNameFilterException(v protocol.ResponseMetadata) error {
return &InvalidBucketNameFilterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidBucketNameFilterException) Code() string {
+func (s *InvalidBucketNameFilterException) Code() string {
return "InvalidBucketNameFilterException"
}
// Message returns the exception's message.
-func (s InvalidBucketNameFilterException) Message() string {
+func (s *InvalidBucketNameFilterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11871,28 +11871,28 @@ func (s InvalidBucketNameFilterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidBucketNameFilterException) OrigErr() error {
+func (s *InvalidBucketNameFilterException) OrigErr() error {
return nil
}
-func (s InvalidBucketNameFilterException) Error() string {
+func (s *InvalidBucketNameFilterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidBucketNameFilterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidBucketNameFilterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidBucketNameFilterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidBucketNameFilterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The computePlatform is invalid. The computePlatform should be Lambda or Server.
type InvalidComputePlatformException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11909,17 +11909,17 @@ func (s InvalidComputePlatformException) GoString() string {
func newErrorInvalidComputePlatformException(v protocol.ResponseMetadata) error {
return &InvalidComputePlatformException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidComputePlatformException) Code() string {
+func (s *InvalidComputePlatformException) Code() string {
return "InvalidComputePlatformException"
}
// Message returns the exception's message.
-func (s InvalidComputePlatformException) Message() string {
+func (s *InvalidComputePlatformException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11927,28 +11927,28 @@ func (s InvalidComputePlatformException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidComputePlatformException) OrigErr() error {
+func (s *InvalidComputePlatformException) OrigErr() error {
return nil
}
-func (s InvalidComputePlatformException) Error() string {
+func (s *InvalidComputePlatformException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidComputePlatformException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidComputePlatformException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidComputePlatformException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidComputePlatformException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployed state filter was specified in an invalid format.
type InvalidDeployedStateFilterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11965,17 +11965,17 @@ func (s InvalidDeployedStateFilterException) GoString() string {
func newErrorInvalidDeployedStateFilterException(v protocol.ResponseMetadata) error {
return &InvalidDeployedStateFilterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeployedStateFilterException) Code() string {
+func (s *InvalidDeployedStateFilterException) Code() string {
return "InvalidDeployedStateFilterException"
}
// Message returns the exception's message.
-func (s InvalidDeployedStateFilterException) Message() string {
+func (s *InvalidDeployedStateFilterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11983,28 +11983,28 @@ func (s InvalidDeployedStateFilterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeployedStateFilterException) OrigErr() error {
+func (s *InvalidDeployedStateFilterException) OrigErr() error {
return nil
}
-func (s InvalidDeployedStateFilterException) Error() string {
+func (s *InvalidDeployedStateFilterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeployedStateFilterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeployedStateFilterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeployedStateFilterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeployedStateFilterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment configuration name was specified in an invalid format.
type InvalidDeploymentConfigNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12021,17 +12021,17 @@ func (s InvalidDeploymentConfigNameException) GoString() string {
func newErrorInvalidDeploymentConfigNameException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentConfigNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentConfigNameException) Code() string {
+func (s *InvalidDeploymentConfigNameException) Code() string {
return "InvalidDeploymentConfigNameException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentConfigNameException) Message() string {
+func (s *InvalidDeploymentConfigNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12039,28 +12039,28 @@ func (s InvalidDeploymentConfigNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentConfigNameException) OrigErr() error {
+func (s *InvalidDeploymentConfigNameException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentConfigNameException) Error() string {
+func (s *InvalidDeploymentConfigNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentConfigNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentConfigNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentConfigNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentConfigNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The deployment group name was specified in an invalid format.
type InvalidDeploymentGroupNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12077,17 +12077,17 @@ func (s InvalidDeploymentGroupNameException) GoString() string {
func newErrorInvalidDeploymentGroupNameException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentGroupNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentGroupNameException) Code() string {
+func (s *InvalidDeploymentGroupNameException) Code() string {
return "InvalidDeploymentGroupNameException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentGroupNameException) Message() string {
+func (s *InvalidDeploymentGroupNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12095,28 +12095,28 @@ func (s InvalidDeploymentGroupNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentGroupNameException) OrigErr() error {
+func (s *InvalidDeploymentGroupNameException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentGroupNameException) Error() string {
+func (s *InvalidDeploymentGroupNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentGroupNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentGroupNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentGroupNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentGroupNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// At least one of the deployment IDs was specified in an invalid format.
type InvalidDeploymentIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12133,17 +12133,17 @@ func (s InvalidDeploymentIdException) GoString() string {
func newErrorInvalidDeploymentIdException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentIdException) Code() string {
+func (s *InvalidDeploymentIdException) Code() string {
return "InvalidDeploymentIdException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentIdException) Message() string {
+func (s *InvalidDeploymentIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12151,29 +12151,29 @@ func (s InvalidDeploymentIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentIdException) OrigErr() error {
+func (s *InvalidDeploymentIdException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentIdException) Error() string {
+func (s *InvalidDeploymentIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An instance type was specified for an in-place deployment. Instance types
// are supported for blue/green deployments only.
type InvalidDeploymentInstanceTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12190,17 +12190,17 @@ func (s InvalidDeploymentInstanceTypeException) GoString() string {
func newErrorInvalidDeploymentInstanceTypeException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentInstanceTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentInstanceTypeException) Code() string {
+func (s *InvalidDeploymentInstanceTypeException) Code() string {
return "InvalidDeploymentInstanceTypeException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentInstanceTypeException) Message() string {
+func (s *InvalidDeploymentInstanceTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12208,28 +12208,28 @@ func (s InvalidDeploymentInstanceTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentInstanceTypeException) OrigErr() error {
+func (s *InvalidDeploymentInstanceTypeException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentInstanceTypeException) Error() string {
+func (s *InvalidDeploymentInstanceTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentInstanceTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentInstanceTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentInstanceTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentInstanceTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified deployment status doesn't exist or cannot be determined.
type InvalidDeploymentStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12246,17 +12246,17 @@ func (s InvalidDeploymentStatusException) GoString() string {
func newErrorInvalidDeploymentStatusException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentStatusException) Code() string {
+func (s *InvalidDeploymentStatusException) Code() string {
return "InvalidDeploymentStatusException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentStatusException) Message() string {
+func (s *InvalidDeploymentStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12264,30 +12264,30 @@ func (s InvalidDeploymentStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentStatusException) OrigErr() error {
+func (s *InvalidDeploymentStatusException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentStatusException) Error() string {
+func (s *InvalidDeploymentStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid deployment style was specified. Valid deployment types include
// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL"
// and "WITHOUT_TRAFFIC_CONTROL."
type InvalidDeploymentStyleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12304,17 +12304,17 @@ func (s InvalidDeploymentStyleException) GoString() string {
func newErrorInvalidDeploymentStyleException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentStyleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentStyleException) Code() string {
+func (s *InvalidDeploymentStyleException) Code() string {
return "InvalidDeploymentStyleException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentStyleException) Message() string {
+func (s *InvalidDeploymentStyleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12322,28 +12322,28 @@ func (s InvalidDeploymentStyleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentStyleException) OrigErr() error {
+func (s *InvalidDeploymentStyleException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentStyleException) Error() string {
+func (s *InvalidDeploymentStyleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentStyleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentStyleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentStyleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentStyleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target ID provided was not valid.
type InvalidDeploymentTargetIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12360,17 +12360,17 @@ func (s InvalidDeploymentTargetIdException) GoString() string {
func newErrorInvalidDeploymentTargetIdException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentTargetIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentTargetIdException) Code() string {
+func (s *InvalidDeploymentTargetIdException) Code() string {
return "InvalidDeploymentTargetIdException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentTargetIdException) Message() string {
+func (s *InvalidDeploymentTargetIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12378,28 +12378,28 @@ func (s InvalidDeploymentTargetIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentTargetIdException) OrigErr() error {
+func (s *InvalidDeploymentTargetIdException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentTargetIdException) Error() string {
+func (s *InvalidDeploymentTargetIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentTargetIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentTargetIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentTargetIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentTargetIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The wait type is invalid.
type InvalidDeploymentWaitTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12416,17 +12416,17 @@ func (s InvalidDeploymentWaitTypeException) GoString() string {
func newErrorInvalidDeploymentWaitTypeException(v protocol.ResponseMetadata) error {
return &InvalidDeploymentWaitTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeploymentWaitTypeException) Code() string {
+func (s *InvalidDeploymentWaitTypeException) Code() string {
return "InvalidDeploymentWaitTypeException"
}
// Message returns the exception's message.
-func (s InvalidDeploymentWaitTypeException) Message() string {
+func (s *InvalidDeploymentWaitTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12434,29 +12434,29 @@ func (s InvalidDeploymentWaitTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeploymentWaitTypeException) OrigErr() error {
+func (s *InvalidDeploymentWaitTypeException) OrigErr() error {
return nil
}
-func (s InvalidDeploymentWaitTypeException) Error() string {
+func (s *InvalidDeploymentWaitTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeploymentWaitTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeploymentWaitTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeploymentWaitTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeploymentWaitTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but
// only one of these data types can be used in a single call.
type InvalidEC2TagCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12473,17 +12473,17 @@ func (s InvalidEC2TagCombinationException) GoString() string {
func newErrorInvalidEC2TagCombinationException(v protocol.ResponseMetadata) error {
return &InvalidEC2TagCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEC2TagCombinationException) Code() string {
+func (s *InvalidEC2TagCombinationException) Code() string {
return "InvalidEC2TagCombinationException"
}
// Message returns the exception's message.
-func (s InvalidEC2TagCombinationException) Message() string {
+func (s *InvalidEC2TagCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12491,28 +12491,28 @@ func (s InvalidEC2TagCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEC2TagCombinationException) OrigErr() error {
+func (s *InvalidEC2TagCombinationException) OrigErr() error {
return nil
}
-func (s InvalidEC2TagCombinationException) Error() string {
+func (s *InvalidEC2TagCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEC2TagCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEC2TagCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEC2TagCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEC2TagCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The tag was specified in an invalid format.
type InvalidEC2TagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12529,17 +12529,17 @@ func (s InvalidEC2TagException) GoString() string {
func newErrorInvalidEC2TagException(v protocol.ResponseMetadata) error {
return &InvalidEC2TagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEC2TagException) Code() string {
+func (s *InvalidEC2TagException) Code() string {
return "InvalidEC2TagException"
}
// Message returns the exception's message.
-func (s InvalidEC2TagException) Message() string {
+func (s *InvalidEC2TagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12547,28 +12547,28 @@ func (s InvalidEC2TagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEC2TagException) OrigErr() error {
+func (s *InvalidEC2TagException) OrigErr() error {
return nil
}
-func (s InvalidEC2TagException) Error() string {
+func (s *InvalidEC2TagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEC2TagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEC2TagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEC2TagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEC2TagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon ECS service identifier is not valid.
type InvalidECSServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12585,17 +12585,17 @@ func (s InvalidECSServiceException) GoString() string {
func newErrorInvalidECSServiceException(v protocol.ResponseMetadata) error {
return &InvalidECSServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidECSServiceException) Code() string {
+func (s *InvalidECSServiceException) Code() string {
return "InvalidECSServiceException"
}
// Message returns the exception's message.
-func (s InvalidECSServiceException) Message() string {
+func (s *InvalidECSServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12603,22 +12603,22 @@ func (s InvalidECSServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidECSServiceException) OrigErr() error {
+func (s *InvalidECSServiceException) OrigErr() error {
return nil
}
-func (s InvalidECSServiceException) Error() string {
+func (s *InvalidECSServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidECSServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidECSServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidECSServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidECSServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy
@@ -12626,8 +12626,8 @@ func (s InvalidECSServiceException) RequestID() string {
// but weren't part of the previous successful deployment. Valid values include
// "DISALLOW," "OVERWRITE," and "RETAIN."
type InvalidFileExistsBehaviorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12644,17 +12644,17 @@ func (s InvalidFileExistsBehaviorException) GoString() string {
func newErrorInvalidFileExistsBehaviorException(v protocol.ResponseMetadata) error {
return &InvalidFileExistsBehaviorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFileExistsBehaviorException) Code() string {
+func (s *InvalidFileExistsBehaviorException) Code() string {
return "InvalidFileExistsBehaviorException"
}
// Message returns the exception's message.
-func (s InvalidFileExistsBehaviorException) Message() string {
+func (s *InvalidFileExistsBehaviorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12662,28 +12662,28 @@ func (s InvalidFileExistsBehaviorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFileExistsBehaviorException) OrigErr() error {
+func (s *InvalidFileExistsBehaviorException) OrigErr() error {
return nil
}
-func (s InvalidFileExistsBehaviorException) Error() string {
+func (s *InvalidFileExistsBehaviorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFileExistsBehaviorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFileExistsBehaviorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFileExistsBehaviorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFileExistsBehaviorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The GitHub token is not valid.
type InvalidGitHubAccountTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12700,17 +12700,17 @@ func (s InvalidGitHubAccountTokenException) GoString() string {
func newErrorInvalidGitHubAccountTokenException(v protocol.ResponseMetadata) error {
return &InvalidGitHubAccountTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGitHubAccountTokenException) Code() string {
+func (s *InvalidGitHubAccountTokenException) Code() string {
return "InvalidGitHubAccountTokenException"
}
// Message returns the exception's message.
-func (s InvalidGitHubAccountTokenException) Message() string {
+func (s *InvalidGitHubAccountTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12718,28 +12718,28 @@ func (s InvalidGitHubAccountTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGitHubAccountTokenException) OrigErr() error {
+func (s *InvalidGitHubAccountTokenException) OrigErr() error {
return nil
}
-func (s InvalidGitHubAccountTokenException) Error() string {
+func (s *InvalidGitHubAccountTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGitHubAccountTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGitHubAccountTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGitHubAccountTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGitHubAccountTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The format of the specified GitHub account connection name is invalid.
type InvalidGitHubAccountTokenNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12756,17 +12756,17 @@ func (s InvalidGitHubAccountTokenNameException) GoString() string {
func newErrorInvalidGitHubAccountTokenNameException(v protocol.ResponseMetadata) error {
return &InvalidGitHubAccountTokenNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGitHubAccountTokenNameException) Code() string {
+func (s *InvalidGitHubAccountTokenNameException) Code() string {
return "InvalidGitHubAccountTokenNameException"
}
// Message returns the exception's message.
-func (s InvalidGitHubAccountTokenNameException) Message() string {
+func (s *InvalidGitHubAccountTokenNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12774,28 +12774,28 @@ func (s InvalidGitHubAccountTokenNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGitHubAccountTokenNameException) OrigErr() error {
+func (s *InvalidGitHubAccountTokenNameException) OrigErr() error {
return nil
}
-func (s InvalidGitHubAccountTokenNameException) Error() string {
+func (s *InvalidGitHubAccountTokenNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGitHubAccountTokenNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGitHubAccountTokenNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGitHubAccountTokenNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGitHubAccountTokenNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The IAM session ARN was specified in an invalid format.
type InvalidIamSessionArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12812,17 +12812,17 @@ func (s InvalidIamSessionArnException) GoString() string {
func newErrorInvalidIamSessionArnException(v protocol.ResponseMetadata) error {
return &InvalidIamSessionArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidIamSessionArnException) Code() string {
+func (s *InvalidIamSessionArnException) Code() string {
return "InvalidIamSessionArnException"
}
// Message returns the exception's message.
-func (s InvalidIamSessionArnException) Message() string {
+func (s *InvalidIamSessionArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12830,28 +12830,28 @@ func (s InvalidIamSessionArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidIamSessionArnException) OrigErr() error {
+func (s *InvalidIamSessionArnException) OrigErr() error {
return nil
}
-func (s InvalidIamSessionArnException) Error() string {
+func (s *InvalidIamSessionArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidIamSessionArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidIamSessionArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidIamSessionArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidIamSessionArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The IAM user ARN was specified in an invalid format.
type InvalidIamUserArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12868,17 +12868,17 @@ func (s InvalidIamUserArnException) GoString() string {
func newErrorInvalidIamUserArnException(v protocol.ResponseMetadata) error {
return &InvalidIamUserArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidIamUserArnException) Code() string {
+func (s *InvalidIamUserArnException) Code() string {
return "InvalidIamUserArnException"
}
// Message returns the exception's message.
-func (s InvalidIamUserArnException) Message() string {
+func (s *InvalidIamUserArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12886,29 +12886,29 @@ func (s InvalidIamUserArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidIamUserArnException) OrigErr() error {
+func (s *InvalidIamUserArnException) OrigErr() error {
return nil
}
-func (s InvalidIamUserArnException) Error() string {
+func (s *InvalidIamUserArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidIamUserArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidIamUserArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidIamUserArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidIamUserArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments,
// false is expected. For EC2/On-premises deployments, true or false is expected.
type InvalidIgnoreApplicationStopFailuresValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12925,17 +12925,17 @@ func (s InvalidIgnoreApplicationStopFailuresValueException) GoString() string {
func newErrorInvalidIgnoreApplicationStopFailuresValueException(v protocol.ResponseMetadata) error {
return &InvalidIgnoreApplicationStopFailuresValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidIgnoreApplicationStopFailuresValueException) Code() string {
+func (s *InvalidIgnoreApplicationStopFailuresValueException) Code() string {
return "InvalidIgnoreApplicationStopFailuresValueException"
}
// Message returns the exception's message.
-func (s InvalidIgnoreApplicationStopFailuresValueException) Message() string {
+func (s *InvalidIgnoreApplicationStopFailuresValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12943,28 +12943,28 @@ func (s InvalidIgnoreApplicationStopFailuresValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidIgnoreApplicationStopFailuresValueException) OrigErr() error {
+func (s *InvalidIgnoreApplicationStopFailuresValueException) OrigErr() error {
return nil
}
-func (s InvalidIgnoreApplicationStopFailuresValueException) Error() string {
+func (s *InvalidIgnoreApplicationStopFailuresValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidIgnoreApplicationStopFailuresValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidIgnoreApplicationStopFailuresValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidIgnoreApplicationStopFailuresValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidIgnoreApplicationStopFailuresValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The input was specified in an invalid format.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12981,17 +12981,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12999,28 +12999,28 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The on-premises instance name was specified in an invalid format.
type InvalidInstanceNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13037,17 +13037,17 @@ func (s InvalidInstanceNameException) GoString() string {
func newErrorInvalidInstanceNameException(v protocol.ResponseMetadata) error {
return &InvalidInstanceNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInstanceNameException) Code() string {
+func (s *InvalidInstanceNameException) Code() string {
return "InvalidInstanceNameException"
}
// Message returns the exception's message.
-func (s InvalidInstanceNameException) Message() string {
+func (s *InvalidInstanceNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13055,28 +13055,28 @@ func (s InvalidInstanceNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInstanceNameException) OrigErr() error {
+func (s *InvalidInstanceNameException) OrigErr() error {
return nil
}
-func (s InvalidInstanceNameException) Error() string {
+func (s *InvalidInstanceNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInstanceNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInstanceNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInstanceNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInstanceNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified instance status does not exist.
type InvalidInstanceStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13093,17 +13093,17 @@ func (s InvalidInstanceStatusException) GoString() string {
func newErrorInvalidInstanceStatusException(v protocol.ResponseMetadata) error {
return &InvalidInstanceStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInstanceStatusException) Code() string {
+func (s *InvalidInstanceStatusException) Code() string {
return "InvalidInstanceStatusException"
}
// Message returns the exception's message.
-func (s InvalidInstanceStatusException) Message() string {
+func (s *InvalidInstanceStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13111,30 +13111,30 @@ func (s InvalidInstanceStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInstanceStatusException) OrigErr() error {
+func (s *InvalidInstanceStatusException) OrigErr() error {
return nil
}
-func (s InvalidInstanceStatusException) Error() string {
+func (s *InvalidInstanceStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInstanceStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInstanceStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInstanceStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInstanceStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid instance type was specified for instances in a blue/green deployment.
// Valid values include "Blue" for an original environment and "Green" for a
// replacement environment.
type InvalidInstanceTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13151,17 +13151,17 @@ func (s InvalidInstanceTypeException) GoString() string {
func newErrorInvalidInstanceTypeException(v protocol.ResponseMetadata) error {
return &InvalidInstanceTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInstanceTypeException) Code() string {
+func (s *InvalidInstanceTypeException) Code() string {
return "InvalidInstanceTypeException"
}
// Message returns the exception's message.
-func (s InvalidInstanceTypeException) Message() string {
+func (s *InvalidInstanceTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13169,28 +13169,28 @@ func (s InvalidInstanceTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInstanceTypeException) OrigErr() error {
+func (s *InvalidInstanceTypeException) OrigErr() error {
return nil
}
-func (s InvalidInstanceTypeException) Error() string {
+func (s *InvalidInstanceTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInstanceTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInstanceTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInstanceTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInstanceTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified key prefix filter was specified in an invalid format.
type InvalidKeyPrefixFilterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13207,17 +13207,17 @@ func (s InvalidKeyPrefixFilterException) GoString() string {
func newErrorInvalidKeyPrefixFilterException(v protocol.ResponseMetadata) error {
return &InvalidKeyPrefixFilterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidKeyPrefixFilterException) Code() string {
+func (s *InvalidKeyPrefixFilterException) Code() string {
return "InvalidKeyPrefixFilterException"
}
// Message returns the exception's message.
-func (s InvalidKeyPrefixFilterException) Message() string {
+func (s *InvalidKeyPrefixFilterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13225,29 +13225,29 @@ func (s InvalidKeyPrefixFilterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidKeyPrefixFilterException) OrigErr() error {
+func (s *InvalidKeyPrefixFilterException) OrigErr() error {
return nil
}
-func (s InvalidKeyPrefixFilterException) Error() string {
+func (s *InvalidKeyPrefixFilterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidKeyPrefixFilterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidKeyPrefixFilterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidKeyPrefixFilterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidKeyPrefixFilterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A lifecycle event hook is invalid. Review the hooks section in your AppSpec
// file to ensure the lifecycle events and hooks functions are valid.
type InvalidLifecycleEventHookExecutionIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13264,17 +13264,17 @@ func (s InvalidLifecycleEventHookExecutionIdException) GoString() string {
func newErrorInvalidLifecycleEventHookExecutionIdException(v protocol.ResponseMetadata) error {
return &InvalidLifecycleEventHookExecutionIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLifecycleEventHookExecutionIdException) Code() string {
+func (s *InvalidLifecycleEventHookExecutionIdException) Code() string {
return "InvalidLifecycleEventHookExecutionIdException"
}
// Message returns the exception's message.
-func (s InvalidLifecycleEventHookExecutionIdException) Message() string {
+func (s *InvalidLifecycleEventHookExecutionIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13282,29 +13282,29 @@ func (s InvalidLifecycleEventHookExecutionIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLifecycleEventHookExecutionIdException) OrigErr() error {
+func (s *InvalidLifecycleEventHookExecutionIdException) OrigErr() error {
return nil
}
-func (s InvalidLifecycleEventHookExecutionIdException) Error() string {
+func (s *InvalidLifecycleEventHookExecutionIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLifecycleEventHookExecutionIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLifecycleEventHookExecutionIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLifecycleEventHookExecutionIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLifecycleEventHookExecutionIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The result of a Lambda validation function that verifies a lifecycle event
// is invalid. It should return Succeeded or Failed.
type InvalidLifecycleEventHookExecutionStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13321,17 +13321,17 @@ func (s InvalidLifecycleEventHookExecutionStatusException) GoString() string {
func newErrorInvalidLifecycleEventHookExecutionStatusException(v protocol.ResponseMetadata) error {
return &InvalidLifecycleEventHookExecutionStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLifecycleEventHookExecutionStatusException) Code() string {
+func (s *InvalidLifecycleEventHookExecutionStatusException) Code() string {
return "InvalidLifecycleEventHookExecutionStatusException"
}
// Message returns the exception's message.
-func (s InvalidLifecycleEventHookExecutionStatusException) Message() string {
+func (s *InvalidLifecycleEventHookExecutionStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13339,28 +13339,28 @@ func (s InvalidLifecycleEventHookExecutionStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLifecycleEventHookExecutionStatusException) OrigErr() error {
+func (s *InvalidLifecycleEventHookExecutionStatusException) OrigErr() error {
return nil
}
-func (s InvalidLifecycleEventHookExecutionStatusException) Error() string {
+func (s *InvalidLifecycleEventHookExecutionStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLifecycleEventHookExecutionStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLifecycleEventHookExecutionStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLifecycleEventHookExecutionStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLifecycleEventHookExecutionStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid load balancer name, or no load balancer name, was specified.
type InvalidLoadBalancerInfoException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13377,17 +13377,17 @@ func (s InvalidLoadBalancerInfoException) GoString() string {
func newErrorInvalidLoadBalancerInfoException(v protocol.ResponseMetadata) error {
return &InvalidLoadBalancerInfoException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLoadBalancerInfoException) Code() string {
+func (s *InvalidLoadBalancerInfoException) Code() string {
return "InvalidLoadBalancerInfoException"
}
// Message returns the exception's message.
-func (s InvalidLoadBalancerInfoException) Message() string {
+func (s *InvalidLoadBalancerInfoException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13395,28 +13395,28 @@ func (s InvalidLoadBalancerInfoException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLoadBalancerInfoException) OrigErr() error {
+func (s *InvalidLoadBalancerInfoException) OrigErr() error {
return nil
}
-func (s InvalidLoadBalancerInfoException) Error() string {
+func (s *InvalidLoadBalancerInfoException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLoadBalancerInfoException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLoadBalancerInfoException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLoadBalancerInfoException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLoadBalancerInfoException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The minimum healthy instance value was specified in an invalid format.
type InvalidMinimumHealthyHostValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13433,17 +13433,17 @@ func (s InvalidMinimumHealthyHostValueException) GoString() string {
func newErrorInvalidMinimumHealthyHostValueException(v protocol.ResponseMetadata) error {
return &InvalidMinimumHealthyHostValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMinimumHealthyHostValueException) Code() string {
+func (s *InvalidMinimumHealthyHostValueException) Code() string {
return "InvalidMinimumHealthyHostValueException"
}
// Message returns the exception's message.
-func (s InvalidMinimumHealthyHostValueException) Message() string {
+func (s *InvalidMinimumHealthyHostValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13451,28 +13451,28 @@ func (s InvalidMinimumHealthyHostValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMinimumHealthyHostValueException) OrigErr() error {
+func (s *InvalidMinimumHealthyHostValueException) OrigErr() error {
return nil
}
-func (s InvalidMinimumHealthyHostValueException) Error() string {
+func (s *InvalidMinimumHealthyHostValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMinimumHealthyHostValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMinimumHealthyHostValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMinimumHealthyHostValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMinimumHealthyHostValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The next token was specified in an invalid format.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13489,17 +13489,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13507,29 +13507,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet,
// but only one of these data types can be used in a single call.
type InvalidOnPremisesTagCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13546,17 +13546,17 @@ func (s InvalidOnPremisesTagCombinationException) GoString() string {
func newErrorInvalidOnPremisesTagCombinationException(v protocol.ResponseMetadata) error {
return &InvalidOnPremisesTagCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOnPremisesTagCombinationException) Code() string {
+func (s *InvalidOnPremisesTagCombinationException) Code() string {
return "InvalidOnPremisesTagCombinationException"
}
// Message returns the exception's message.
-func (s InvalidOnPremisesTagCombinationException) Message() string {
+func (s *InvalidOnPremisesTagCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13564,28 +13564,28 @@ func (s InvalidOnPremisesTagCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOnPremisesTagCombinationException) OrigErr() error {
+func (s *InvalidOnPremisesTagCombinationException) OrigErr() error {
return nil
}
-func (s InvalidOnPremisesTagCombinationException) Error() string {
+func (s *InvalidOnPremisesTagCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOnPremisesTagCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOnPremisesTagCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOnPremisesTagCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOnPremisesTagCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid operation was detected.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13602,17 +13602,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "InvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13620,28 +13620,28 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The registration status was specified in an invalid format.
type InvalidRegistrationStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13658,17 +13658,17 @@ func (s InvalidRegistrationStatusException) GoString() string {
func newErrorInvalidRegistrationStatusException(v protocol.ResponseMetadata) error {
return &InvalidRegistrationStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRegistrationStatusException) Code() string {
+func (s *InvalidRegistrationStatusException) Code() string {
return "InvalidRegistrationStatusException"
}
// Message returns the exception's message.
-func (s InvalidRegistrationStatusException) Message() string {
+func (s *InvalidRegistrationStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13676,28 +13676,28 @@ func (s InvalidRegistrationStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRegistrationStatusException) OrigErr() error {
+func (s *InvalidRegistrationStatusException) OrigErr() error {
return nil
}
-func (s InvalidRegistrationStatusException) Error() string {
+func (s *InvalidRegistrationStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRegistrationStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRegistrationStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRegistrationStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRegistrationStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The revision was specified in an invalid format.
type InvalidRevisionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13714,17 +13714,17 @@ func (s InvalidRevisionException) GoString() string {
func newErrorInvalidRevisionException(v protocol.ResponseMetadata) error {
return &InvalidRevisionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRevisionException) Code() string {
+func (s *InvalidRevisionException) Code() string {
return "InvalidRevisionException"
}
// Message returns the exception's message.
-func (s InvalidRevisionException) Message() string {
+func (s *InvalidRevisionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13732,30 +13732,30 @@ func (s InvalidRevisionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRevisionException) OrigErr() error {
+func (s *InvalidRevisionException) OrigErr() error {
return nil
}
-func (s InvalidRevisionException) Error() string {
+func (s *InvalidRevisionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRevisionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRevisionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRevisionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRevisionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The service role ARN was specified in an invalid format. Or, if an Auto Scaling
// group was specified, the specified service role does not grant the appropriate
// permissions to Amazon EC2 Auto Scaling.
type InvalidRoleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13772,17 +13772,17 @@ func (s InvalidRoleException) GoString() string {
func newErrorInvalidRoleException(v protocol.ResponseMetadata) error {
return &InvalidRoleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRoleException) Code() string {
+func (s *InvalidRoleException) Code() string {
return "InvalidRoleException"
}
// Message returns the exception's message.
-func (s InvalidRoleException) Message() string {
+func (s *InvalidRoleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13790,29 +13790,29 @@ func (s InvalidRoleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRoleException) OrigErr() error {
+func (s *InvalidRoleException) OrigErr() error {
return nil
}
-func (s InvalidRoleException) Error() string {
+func (s *InvalidRoleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRoleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRoleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRoleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRoleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The column name to sort by is either not present or was specified in an invalid
// format.
type InvalidSortByException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13829,17 +13829,17 @@ func (s InvalidSortByException) GoString() string {
func newErrorInvalidSortByException(v protocol.ResponseMetadata) error {
return &InvalidSortByException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSortByException) Code() string {
+func (s *InvalidSortByException) Code() string {
return "InvalidSortByException"
}
// Message returns the exception's message.
-func (s InvalidSortByException) Message() string {
+func (s *InvalidSortByException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13847,28 +13847,28 @@ func (s InvalidSortByException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSortByException) OrigErr() error {
+func (s *InvalidSortByException) OrigErr() error {
return nil
}
-func (s InvalidSortByException) Error() string {
+func (s *InvalidSortByException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSortByException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSortByException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSortByException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSortByException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The sort order was specified in an invalid format.
type InvalidSortOrderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13885,17 +13885,17 @@ func (s InvalidSortOrderException) GoString() string {
func newErrorInvalidSortOrderException(v protocol.ResponseMetadata) error {
return &InvalidSortOrderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSortOrderException) Code() string {
+func (s *InvalidSortOrderException) Code() string {
return "InvalidSortOrderException"
}
// Message returns the exception's message.
-func (s InvalidSortOrderException) Message() string {
+func (s *InvalidSortOrderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13903,28 +13903,28 @@ func (s InvalidSortOrderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSortOrderException) OrigErr() error {
+func (s *InvalidSortOrderException) OrigErr() error {
return nil
}
-func (s InvalidSortOrderException) Error() string {
+func (s *InvalidSortOrderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSortOrderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSortOrderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSortOrderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSortOrderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The tag was specified in an invalid format.
type InvalidTagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13941,17 +13941,17 @@ func (s InvalidTagException) GoString() string {
func newErrorInvalidTagException(v protocol.ResponseMetadata) error {
return &InvalidTagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagException) Code() string {
+func (s *InvalidTagException) Code() string {
return "InvalidTagException"
}
// Message returns the exception's message.
-func (s InvalidTagException) Message() string {
+func (s *InvalidTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13959,28 +13959,28 @@ func (s InvalidTagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagException) OrigErr() error {
+func (s *InvalidTagException) OrigErr() error {
return nil
}
-func (s InvalidTagException) Error() string {
+func (s *InvalidTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The tag filter was specified in an invalid format.
type InvalidTagFilterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13997,17 +13997,17 @@ func (s InvalidTagFilterException) GoString() string {
func newErrorInvalidTagFilterException(v protocol.ResponseMetadata) error {
return &InvalidTagFilterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagFilterException) Code() string {
+func (s *InvalidTagFilterException) Code() string {
return "InvalidTagFilterException"
}
// Message returns the exception's message.
-func (s InvalidTagFilterException) Message() string {
+func (s *InvalidTagFilterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14015,28 +14015,28 @@ func (s InvalidTagFilterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagFilterException) OrigErr() error {
+func (s *InvalidTagFilterException) OrigErr() error {
return nil
}
-func (s InvalidTagFilterException) Error() string {
+func (s *InvalidTagFilterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagFilterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagFilterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagFilterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagFilterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified tags are not valid.
type InvalidTagsToAddException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14053,17 +14053,17 @@ func (s InvalidTagsToAddException) GoString() string {
func newErrorInvalidTagsToAddException(v protocol.ResponseMetadata) error {
return &InvalidTagsToAddException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagsToAddException) Code() string {
+func (s *InvalidTagsToAddException) Code() string {
return "InvalidTagsToAddException"
}
// Message returns the exception's message.
-func (s InvalidTagsToAddException) Message() string {
+func (s *InvalidTagsToAddException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14071,28 +14071,28 @@ func (s InvalidTagsToAddException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagsToAddException) OrigErr() error {
+func (s *InvalidTagsToAddException) OrigErr() error {
return nil
}
-func (s InvalidTagsToAddException) Error() string {
+func (s *InvalidTagsToAddException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagsToAddException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagsToAddException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagsToAddException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagsToAddException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target filter name is invalid.
type InvalidTargetFilterNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14109,17 +14109,17 @@ func (s InvalidTargetFilterNameException) GoString() string {
func newErrorInvalidTargetFilterNameException(v protocol.ResponseMetadata) error {
return &InvalidTargetFilterNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetFilterNameException) Code() string {
+func (s *InvalidTargetFilterNameException) Code() string {
return "InvalidTargetFilterNameException"
}
// Message returns the exception's message.
-func (s InvalidTargetFilterNameException) Message() string {
+func (s *InvalidTargetFilterNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14127,28 +14127,28 @@ func (s InvalidTargetFilterNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetFilterNameException) OrigErr() error {
+func (s *InvalidTargetFilterNameException) OrigErr() error {
return nil
}
-func (s InvalidTargetFilterNameException) Error() string {
+func (s *InvalidTargetFilterNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetFilterNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetFilterNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetFilterNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetFilterNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A target group pair associated with this deployment is not valid.
type InvalidTargetGroupPairException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14165,17 +14165,17 @@ func (s InvalidTargetGroupPairException) GoString() string {
func newErrorInvalidTargetGroupPairException(v protocol.ResponseMetadata) error {
return &InvalidTargetGroupPairException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetGroupPairException) Code() string {
+func (s *InvalidTargetGroupPairException) Code() string {
return "InvalidTargetGroupPairException"
}
// Message returns the exception's message.
-func (s InvalidTargetGroupPairException) Message() string {
+func (s *InvalidTargetGroupPairException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14183,22 +14183,22 @@ func (s InvalidTargetGroupPairException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetGroupPairException) OrigErr() error {
+func (s *InvalidTargetGroupPairException) OrigErr() error {
return nil
}
-func (s InvalidTargetGroupPairException) Error() string {
+func (s *InvalidTargetGroupPairException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetGroupPairException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetGroupPairException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetGroupPairException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetGroupPairException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target instance configuration is invalid. Possible causes include:
@@ -14212,8 +14212,8 @@ func (s InvalidTargetGroupPairException) RequestID() string {
//
// * A specified tag is not currently applied to any instances.
type InvalidTargetInstancesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14230,17 +14230,17 @@ func (s InvalidTargetInstancesException) GoString() string {
func newErrorInvalidTargetInstancesException(v protocol.ResponseMetadata) error {
return &InvalidTargetInstancesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetInstancesException) Code() string {
+func (s *InvalidTargetInstancesException) Code() string {
return "InvalidTargetInstancesException"
}
// Message returns the exception's message.
-func (s InvalidTargetInstancesException) Message() string {
+func (s *InvalidTargetInstancesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14248,28 +14248,28 @@ func (s InvalidTargetInstancesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetInstancesException) OrigErr() error {
+func (s *InvalidTargetInstancesException) OrigErr() error {
return nil
}
-func (s InvalidTargetInstancesException) Error() string {
+func (s *InvalidTargetInstancesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetInstancesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetInstancesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetInstancesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetInstancesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified time range was specified in an invalid format.
type InvalidTimeRangeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14286,17 +14286,17 @@ func (s InvalidTimeRangeException) GoString() string {
func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error {
return &InvalidTimeRangeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTimeRangeException) Code() string {
+func (s *InvalidTimeRangeException) Code() string {
return "InvalidTimeRangeException"
}
// Message returns the exception's message.
-func (s InvalidTimeRangeException) Message() string {
+func (s *InvalidTimeRangeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14304,29 +14304,29 @@ func (s InvalidTimeRangeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTimeRangeException) OrigErr() error {
+func (s *InvalidTimeRangeException) OrigErr() error {
return nil
}
-func (s InvalidTimeRangeException) Error() string {
+func (s *InvalidTimeRangeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTimeRangeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTimeRangeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTimeRangeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTimeRangeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration that specifies how traffic is routed during a deployment
// is invalid.
type InvalidTrafficRoutingConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14343,17 +14343,17 @@ func (s InvalidTrafficRoutingConfigurationException) GoString() string {
func newErrorInvalidTrafficRoutingConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidTrafficRoutingConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTrafficRoutingConfigurationException) Code() string {
+func (s *InvalidTrafficRoutingConfigurationException) Code() string {
return "InvalidTrafficRoutingConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidTrafficRoutingConfigurationException) Message() string {
+func (s *InvalidTrafficRoutingConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14361,28 +14361,28 @@ func (s InvalidTrafficRoutingConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTrafficRoutingConfigurationException) OrigErr() error {
+func (s *InvalidTrafficRoutingConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidTrafficRoutingConfigurationException) Error() string {
+func (s *InvalidTrafficRoutingConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTrafficRoutingConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTrafficRoutingConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTrafficRoutingConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTrafficRoutingConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The trigger was specified in an invalid format.
type InvalidTriggerConfigException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14399,17 +14399,17 @@ func (s InvalidTriggerConfigException) GoString() string {
func newErrorInvalidTriggerConfigException(v protocol.ResponseMetadata) error {
return &InvalidTriggerConfigException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTriggerConfigException) Code() string {
+func (s *InvalidTriggerConfigException) Code() string {
return "InvalidTriggerConfigException"
}
// Message returns the exception's message.
-func (s InvalidTriggerConfigException) Message() string {
+func (s *InvalidTriggerConfigException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14417,29 +14417,29 @@ func (s InvalidTriggerConfigException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTriggerConfigException) OrigErr() error {
+func (s *InvalidTriggerConfigException) OrigErr() error {
return nil
}
-func (s InvalidTriggerConfigException) Error() string {
+func (s *InvalidTriggerConfigException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTriggerConfigException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTriggerConfigException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTriggerConfigException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTriggerConfigException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments,
// false is expected. For EC2/On-premises deployments, true or false is expected.
type InvalidUpdateOutdatedInstancesOnlyValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14456,17 +14456,17 @@ func (s InvalidUpdateOutdatedInstancesOnlyValueException) GoString() string {
func newErrorInvalidUpdateOutdatedInstancesOnlyValueException(v protocol.ResponseMetadata) error {
return &InvalidUpdateOutdatedInstancesOnlyValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) Code() string {
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Code() string {
return "InvalidUpdateOutdatedInstancesOnlyValueException"
}
// Message returns the exception's message.
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) Message() string {
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14474,22 +14474,22 @@ func (s InvalidUpdateOutdatedInstancesOnlyValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) OrigErr() error {
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) OrigErr() error {
return nil
}
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) Error() string {
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidUpdateOutdatedInstancesOnlyValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidUpdateOutdatedInstancesOnlyValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a Lambda function specified in a deployment.
@@ -14762,8 +14762,8 @@ func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent {
// An attempt to return the status of an already completed lifecycle event occurred.
type LifecycleEventAlreadyCompletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14780,17 +14780,17 @@ func (s LifecycleEventAlreadyCompletedException) GoString() string {
func newErrorLifecycleEventAlreadyCompletedException(v protocol.ResponseMetadata) error {
return &LifecycleEventAlreadyCompletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LifecycleEventAlreadyCompletedException) Code() string {
+func (s *LifecycleEventAlreadyCompletedException) Code() string {
return "LifecycleEventAlreadyCompletedException"
}
// Message returns the exception's message.
-func (s LifecycleEventAlreadyCompletedException) Message() string {
+func (s *LifecycleEventAlreadyCompletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14798,28 +14798,28 @@ func (s LifecycleEventAlreadyCompletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LifecycleEventAlreadyCompletedException) OrigErr() error {
+func (s *LifecycleEventAlreadyCompletedException) OrigErr() error {
return nil
}
-func (s LifecycleEventAlreadyCompletedException) Error() string {
+func (s *LifecycleEventAlreadyCompletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LifecycleEventAlreadyCompletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LifecycleEventAlreadyCompletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LifecycleEventAlreadyCompletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LifecycleEventAlreadyCompletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The limit for lifecycle hooks was exceeded.
type LifecycleHookLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14836,17 +14836,17 @@ func (s LifecycleHookLimitExceededException) GoString() string {
func newErrorLifecycleHookLimitExceededException(v protocol.ResponseMetadata) error {
return &LifecycleHookLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LifecycleHookLimitExceededException) Code() string {
+func (s *LifecycleHookLimitExceededException) Code() string {
return "LifecycleHookLimitExceededException"
}
// Message returns the exception's message.
-func (s LifecycleHookLimitExceededException) Message() string {
+func (s *LifecycleHookLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14854,22 +14854,22 @@ func (s LifecycleHookLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LifecycleHookLimitExceededException) OrigErr() error {
+func (s *LifecycleHookLimitExceededException) OrigErr() error {
return nil
}
-func (s LifecycleHookLimitExceededException) Error() string {
+func (s *LifecycleHookLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LifecycleHookLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LifecycleHookLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LifecycleHookLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LifecycleHookLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a ListApplicationRevisions operation.
@@ -15925,8 +15925,8 @@ func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts {
// Both an IAM user ARN and an IAM session ARN were included in the request.
// Use only one ARN type.
type MultipleIamArnsProvidedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15943,17 +15943,17 @@ func (s MultipleIamArnsProvidedException) GoString() string {
func newErrorMultipleIamArnsProvidedException(v protocol.ResponseMetadata) error {
return &MultipleIamArnsProvidedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MultipleIamArnsProvidedException) Code() string {
+func (s *MultipleIamArnsProvidedException) Code() string {
return "MultipleIamArnsProvidedException"
}
// Message returns the exception's message.
-func (s MultipleIamArnsProvidedException) Message() string {
+func (s *MultipleIamArnsProvidedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15961,22 +15961,22 @@ func (s MultipleIamArnsProvidedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MultipleIamArnsProvidedException) OrigErr() error {
+func (s *MultipleIamArnsProvidedException) OrigErr() error {
return nil
}
-func (s MultipleIamArnsProvidedException) Error() string {
+func (s *MultipleIamArnsProvidedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MultipleIamArnsProvidedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MultipleIamArnsProvidedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MultipleIamArnsProvidedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MultipleIamArnsProvidedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about groups of on-premises instance tags.
@@ -16007,8 +16007,8 @@ func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremises
// The API used does not support the deployment.
type OperationNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16025,17 +16025,17 @@ func (s OperationNotSupportedException) GoString() string {
func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error {
return &OperationNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotSupportedException) Code() string {
+func (s *OperationNotSupportedException) Code() string {
return "OperationNotSupportedException"
}
// Message returns the exception's message.
-func (s OperationNotSupportedException) Message() string {
+func (s *OperationNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16043,22 +16043,22 @@ func (s OperationNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotSupportedException) OrigErr() error {
+func (s *OperationNotSupportedException) OrigErr() error {
return nil
}
-func (s OperationNotSupportedException) Error() string {
+func (s *OperationNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutLifecycleEventHookExecutionStatusInput struct {
@@ -16389,8 +16389,8 @@ func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string {
// The ARN of a resource is required, but was not found.
type ResourceArnRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16407,17 +16407,17 @@ func (s ResourceArnRequiredException) GoString() string {
func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error {
return &ResourceArnRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceArnRequiredException) Code() string {
+func (s *ResourceArnRequiredException) Code() string {
return "ResourceArnRequiredException"
}
// Message returns the exception's message.
-func (s ResourceArnRequiredException) Message() string {
+func (s *ResourceArnRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16425,28 +16425,28 @@ func (s ResourceArnRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceArnRequiredException) OrigErr() error {
+func (s *ResourceArnRequiredException) OrigErr() error {
return nil
}
-func (s ResourceArnRequiredException) Error() string {
+func (s *ResourceArnRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceArnRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceArnRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceArnRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceArnRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource could not be validated.
type ResourceValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16463,17 +16463,17 @@ func (s ResourceValidationException) GoString() string {
func newErrorResourceValidationException(v protocol.ResponseMetadata) error {
return &ResourceValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceValidationException) Code() string {
+func (s *ResourceValidationException) Code() string {
return "ResourceValidationException"
}
// Message returns the exception's message.
-func (s ResourceValidationException) Message() string {
+func (s *ResourceValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16481,28 +16481,28 @@ func (s ResourceValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceValidationException) OrigErr() error {
+func (s *ResourceValidationException) OrigErr() error {
return nil
}
-func (s ResourceValidationException) Error() string {
+func (s *ResourceValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The named revision does not exist with the IAM user or AWS account.
type RevisionDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16519,17 +16519,17 @@ func (s RevisionDoesNotExistException) GoString() string {
func newErrorRevisionDoesNotExistException(v protocol.ResponseMetadata) error {
return &RevisionDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RevisionDoesNotExistException) Code() string {
+func (s *RevisionDoesNotExistException) Code() string {
return "RevisionDoesNotExistException"
}
// Message returns the exception's message.
-func (s RevisionDoesNotExistException) Message() string {
+func (s *RevisionDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16537,22 +16537,22 @@ func (s RevisionDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RevisionDoesNotExistException) OrigErr() error {
+func (s *RevisionDoesNotExistException) OrigErr() error {
return nil
}
-func (s RevisionDoesNotExistException) Error() string {
+func (s *RevisionDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RevisionDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RevisionDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RevisionDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RevisionDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an application revision.
@@ -16661,8 +16661,8 @@ func (s *RevisionLocation) SetString_(v *RawString) *RevisionLocation {
// The revision ID was not specified.
type RevisionRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16679,17 +16679,17 @@ func (s RevisionRequiredException) GoString() string {
func newErrorRevisionRequiredException(v protocol.ResponseMetadata) error {
return &RevisionRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RevisionRequiredException) Code() string {
+func (s *RevisionRequiredException) Code() string {
return "RevisionRequiredException"
}
// Message returns the exception's message.
-func (s RevisionRequiredException) Message() string {
+func (s *RevisionRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16697,28 +16697,28 @@ func (s RevisionRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RevisionRequiredException) OrigErr() error {
+func (s *RevisionRequiredException) OrigErr() error {
return nil
}
-func (s RevisionRequiredException) Error() string {
+func (s *RevisionRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RevisionRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RevisionRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RevisionRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RevisionRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The role ID was not specified.
type RoleRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16735,17 +16735,17 @@ func (s RoleRequiredException) GoString() string {
func newErrorRoleRequiredException(v protocol.ResponseMetadata) error {
return &RoleRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RoleRequiredException) Code() string {
+func (s *RoleRequiredException) Code() string {
return "RoleRequiredException"
}
// Message returns the exception's message.
-func (s RoleRequiredException) Message() string {
+func (s *RoleRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16753,22 +16753,22 @@ func (s RoleRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RoleRequiredException) OrigErr() error {
+func (s *RoleRequiredException) OrigErr() error {
return nil
}
-func (s RoleRequiredException) Error() string {
+func (s *RoleRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RoleRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RoleRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RoleRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RoleRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a deployment rollback.
@@ -17099,8 +17099,8 @@ func (s *TagFilter) SetValue(v string) *TagFilter {
// The maximum allowed number of tags was exceeded.
type TagLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17117,17 +17117,17 @@ func (s TagLimitExceededException) GoString() string {
func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error {
return &TagLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagLimitExceededException) Code() string {
+func (s *TagLimitExceededException) Code() string {
return "TagLimitExceededException"
}
// Message returns the exception's message.
-func (s TagLimitExceededException) Message() string {
+func (s *TagLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17135,28 +17135,28 @@ func (s TagLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagLimitExceededException) OrigErr() error {
+func (s *TagLimitExceededException) OrigErr() error {
return nil
}
-func (s TagLimitExceededException) Error() string {
+func (s *TagLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A tag was not specified.
type TagRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17173,17 +17173,17 @@ func (s TagRequiredException) GoString() string {
func newErrorTagRequiredException(v protocol.ResponseMetadata) error {
return &TagRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagRequiredException) Code() string {
+func (s *TagRequiredException) Code() string {
return "TagRequiredException"
}
// Message returns the exception's message.
-func (s TagRequiredException) Message() string {
+func (s *TagRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17191,22 +17191,22 @@ func (s TagRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagRequiredException) OrigErr() error {
+func (s *TagRequiredException) OrigErr() error {
return nil
}
-func (s TagRequiredException) Error() string {
+func (s *TagRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -17282,8 +17282,8 @@ func (s TagResourceOutput) GoString() string {
// The number of tag groups included in the tag set list exceeded the maximum
// allowed limit of 3.
type TagSetListLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17300,17 +17300,17 @@ func (s TagSetListLimitExceededException) GoString() string {
func newErrorTagSetListLimitExceededException(v protocol.ResponseMetadata) error {
return &TagSetListLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagSetListLimitExceededException) Code() string {
+func (s *TagSetListLimitExceededException) Code() string {
return "TagSetListLimitExceededException"
}
// Message returns the exception's message.
-func (s TagSetListLimitExceededException) Message() string {
+func (s *TagSetListLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17318,22 +17318,22 @@ func (s TagSetListLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagSetListLimitExceededException) OrigErr() error {
+func (s *TagSetListLimitExceededException) OrigErr() error {
return nil
}
-func (s TagSetListLimitExceededException) Error() string {
+func (s *TagSetListLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagSetListLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagSetListLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagSetListLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagSetListLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a target group in Elastic Load Balancing to use in a deployment.
@@ -17465,8 +17465,8 @@ func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances {
// An API function was called too frequently.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17483,17 +17483,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17501,22 +17501,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A configuration that shifts traffic from one version of a Lambda function
@@ -17752,8 +17752,8 @@ func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig {
// The maximum allowed number of triggers was exceeded.
type TriggerTargetsLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17770,17 +17770,17 @@ func (s TriggerTargetsLimitExceededException) GoString() string {
func newErrorTriggerTargetsLimitExceededException(v protocol.ResponseMetadata) error {
return &TriggerTargetsLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TriggerTargetsLimitExceededException) Code() string {
+func (s *TriggerTargetsLimitExceededException) Code() string {
return "TriggerTargetsLimitExceededException"
}
// Message returns the exception's message.
-func (s TriggerTargetsLimitExceededException) Message() string {
+func (s *TriggerTargetsLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17788,28 +17788,28 @@ func (s TriggerTargetsLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TriggerTargetsLimitExceededException) OrigErr() error {
+func (s *TriggerTargetsLimitExceededException) OrigErr() error {
return nil
}
-func (s TriggerTargetsLimitExceededException) Error() string {
+func (s *TriggerTargetsLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TriggerTargetsLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TriggerTargetsLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TriggerTargetsLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TriggerTargetsLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A call was submitted that is not supported for the specified deployment type.
type UnsupportedActionForDeploymentTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17826,17 +17826,17 @@ func (s UnsupportedActionForDeploymentTypeException) GoString() string {
func newErrorUnsupportedActionForDeploymentTypeException(v protocol.ResponseMetadata) error {
return &UnsupportedActionForDeploymentTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedActionForDeploymentTypeException) Code() string {
+func (s *UnsupportedActionForDeploymentTypeException) Code() string {
return "UnsupportedActionForDeploymentTypeException"
}
// Message returns the exception's message.
-func (s UnsupportedActionForDeploymentTypeException) Message() string {
+func (s *UnsupportedActionForDeploymentTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17844,22 +17844,22 @@ func (s UnsupportedActionForDeploymentTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedActionForDeploymentTypeException) OrigErr() error {
+func (s *UnsupportedActionForDeploymentTypeException) OrigErr() error {
return nil
}
-func (s UnsupportedActionForDeploymentTypeException) Error() string {
+func (s *UnsupportedActionForDeploymentTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedActionForDeploymentTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedActionForDeploymentTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedActionForDeploymentTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedActionForDeploymentTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go
index 49b9395f614..0c40af453e0 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go
@@ -4684,8 +4684,8 @@ func (s *ActionExecutionResult) SetExternalExecutionUrl(v string) *ActionExecuti
// The specified action cannot be found.
type ActionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4702,17 +4702,17 @@ func (s ActionNotFoundException) GoString() string {
func newErrorActionNotFoundException(v protocol.ResponseMetadata) error {
return &ActionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActionNotFoundException) Code() string {
+func (s *ActionNotFoundException) Code() string {
return "ActionNotFoundException"
}
// Message returns the exception's message.
-func (s ActionNotFoundException) Message() string {
+func (s *ActionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4720,22 +4720,22 @@ func (s ActionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActionNotFoundException) OrigErr() error {
+func (s *ActionNotFoundException) OrigErr() error {
return nil
}
-func (s ActionNotFoundException) Error() string {
+func (s *ActionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about the version (or revision) of an action.
@@ -5037,8 +5037,8 @@ func (s *ActionTypeId) SetVersion(v string) *ActionTypeId {
// The specified action type cannot be found.
type ActionTypeNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5055,17 +5055,17 @@ func (s ActionTypeNotFoundException) GoString() string {
func newErrorActionTypeNotFoundException(v protocol.ResponseMetadata) error {
return &ActionTypeNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActionTypeNotFoundException) Code() string {
+func (s *ActionTypeNotFoundException) Code() string {
return "ActionTypeNotFoundException"
}
// Message returns the exception's message.
-func (s ActionTypeNotFoundException) Message() string {
+func (s *ActionTypeNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5073,22 +5073,22 @@ func (s ActionTypeNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActionTypeNotFoundException) OrigErr() error {
+func (s *ActionTypeNotFoundException) OrigErr() error {
return nil
}
-func (s ActionTypeNotFoundException) Error() string {
+func (s *ActionTypeNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActionTypeNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActionTypeNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActionTypeNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActionTypeNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about the settings for an action type.
@@ -5176,8 +5176,8 @@ func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionType
// The approval action has already been approved or rejected.
type ApprovalAlreadyCompletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5194,17 +5194,17 @@ func (s ApprovalAlreadyCompletedException) GoString() string {
func newErrorApprovalAlreadyCompletedException(v protocol.ResponseMetadata) error {
return &ApprovalAlreadyCompletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ApprovalAlreadyCompletedException) Code() string {
+func (s *ApprovalAlreadyCompletedException) Code() string {
return "ApprovalAlreadyCompletedException"
}
// Message returns the exception's message.
-func (s ApprovalAlreadyCompletedException) Message() string {
+func (s *ApprovalAlreadyCompletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5212,22 +5212,22 @@ func (s ApprovalAlreadyCompletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ApprovalAlreadyCompletedException) OrigErr() error {
+func (s *ApprovalAlreadyCompletedException) OrigErr() error {
return nil
}
-func (s ApprovalAlreadyCompletedException) Error() string {
+func (s *ApprovalAlreadyCompletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ApprovalAlreadyCompletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ApprovalAlreadyCompletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ApprovalAlreadyCompletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ApprovalAlreadyCompletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about the result of an approval request.
@@ -5661,8 +5661,8 @@ func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration {
// Unable to modify the tag due to a simultaneous update request.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -5679,17 +5679,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5697,22 +5697,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a CreateCustomActionType operation.
@@ -6465,8 +6465,8 @@ func (s DisableStageTransitionOutput) GoString() string {
// out of sequence tasks. If you already chose to stop and abandon, you cannot
// make that request again.
type DuplicatedStopRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -6483,17 +6483,17 @@ func (s DuplicatedStopRequestException) GoString() string {
func newErrorDuplicatedStopRequestException(v protocol.ResponseMetadata) error {
return &DuplicatedStopRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicatedStopRequestException) Code() string {
+func (s *DuplicatedStopRequestException) Code() string {
return "DuplicatedStopRequestException"
}
// Message returns the exception's message.
-func (s DuplicatedStopRequestException) Message() string {
+func (s *DuplicatedStopRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6501,22 +6501,22 @@ func (s DuplicatedStopRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicatedStopRequestException) OrigErr() error {
+func (s *DuplicatedStopRequestException) OrigErr() error {
return nil
}
-func (s DuplicatedStopRequestException) Error() string {
+func (s *DuplicatedStopRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicatedStopRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicatedStopRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicatedStopRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicatedStopRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of an EnableStageTransition action.
@@ -7347,8 +7347,8 @@ func (s *InputArtifact) SetName(v string) *InputArtifact {
// The action declaration was specified in an invalid format.
type InvalidActionDeclarationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7365,17 +7365,17 @@ func (s InvalidActionDeclarationException) GoString() string {
func newErrorInvalidActionDeclarationException(v protocol.ResponseMetadata) error {
return &InvalidActionDeclarationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidActionDeclarationException) Code() string {
+func (s *InvalidActionDeclarationException) Code() string {
return "InvalidActionDeclarationException"
}
// Message returns the exception's message.
-func (s InvalidActionDeclarationException) Message() string {
+func (s *InvalidActionDeclarationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7383,28 +7383,28 @@ func (s InvalidActionDeclarationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidActionDeclarationException) OrigErr() error {
+func (s *InvalidActionDeclarationException) OrigErr() error {
return nil
}
-func (s InvalidActionDeclarationException) Error() string {
+func (s *InvalidActionDeclarationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidActionDeclarationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidActionDeclarationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidActionDeclarationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidActionDeclarationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The approval request already received a response or has expired.
type InvalidApprovalTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7421,17 +7421,17 @@ func (s InvalidApprovalTokenException) GoString() string {
func newErrorInvalidApprovalTokenException(v protocol.ResponseMetadata) error {
return &InvalidApprovalTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApprovalTokenException) Code() string {
+func (s *InvalidApprovalTokenException) Code() string {
return "InvalidApprovalTokenException"
}
// Message returns the exception's message.
-func (s InvalidApprovalTokenException) Message() string {
+func (s *InvalidApprovalTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7439,28 +7439,28 @@ func (s InvalidApprovalTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApprovalTokenException) OrigErr() error {
+func (s *InvalidApprovalTokenException) OrigErr() error {
return nil
}
-func (s InvalidApprovalTokenException) Error() string {
+func (s *InvalidApprovalTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApprovalTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApprovalTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApprovalTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApprovalTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource ARN is invalid.
type InvalidArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -7477,17 +7477,17 @@ func (s InvalidArnException) GoString() string {
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArnException) Code() string {
+func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
-func (s InvalidArnException) Message() string {
+func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7495,28 +7495,28 @@ func (s InvalidArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArnException) OrigErr() error {
+func (s *InvalidArnException) OrigErr() error {
return nil
}
-func (s InvalidArnException) Error() string {
+func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Reserved for future use.
type InvalidBlockerDeclarationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7533,17 +7533,17 @@ func (s InvalidBlockerDeclarationException) GoString() string {
func newErrorInvalidBlockerDeclarationException(v protocol.ResponseMetadata) error {
return &InvalidBlockerDeclarationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidBlockerDeclarationException) Code() string {
+func (s *InvalidBlockerDeclarationException) Code() string {
return "InvalidBlockerDeclarationException"
}
// Message returns the exception's message.
-func (s InvalidBlockerDeclarationException) Message() string {
+func (s *InvalidBlockerDeclarationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7551,28 +7551,28 @@ func (s InvalidBlockerDeclarationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidBlockerDeclarationException) OrigErr() error {
+func (s *InvalidBlockerDeclarationException) OrigErr() error {
return nil
}
-func (s InvalidBlockerDeclarationException) Error() string {
+func (s *InvalidBlockerDeclarationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidBlockerDeclarationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidBlockerDeclarationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidBlockerDeclarationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidBlockerDeclarationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The client token was specified in an invalid format
type InvalidClientTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7589,17 +7589,17 @@ func (s InvalidClientTokenException) GoString() string {
func newErrorInvalidClientTokenException(v protocol.ResponseMetadata) error {
return &InvalidClientTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidClientTokenException) Code() string {
+func (s *InvalidClientTokenException) Code() string {
return "InvalidClientTokenException"
}
// Message returns the exception's message.
-func (s InvalidClientTokenException) Message() string {
+func (s *InvalidClientTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7607,28 +7607,28 @@ func (s InvalidClientTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidClientTokenException) OrigErr() error {
+func (s *InvalidClientTokenException) OrigErr() error {
return nil
}
-func (s InvalidClientTokenException) Error() string {
+func (s *InvalidClientTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidClientTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidClientTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidClientTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidClientTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The job was specified in an invalid format or cannot be found.
type InvalidJobException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7645,17 +7645,17 @@ func (s InvalidJobException) GoString() string {
func newErrorInvalidJobException(v protocol.ResponseMetadata) error {
return &InvalidJobException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidJobException) Code() string {
+func (s *InvalidJobException) Code() string {
return "InvalidJobException"
}
// Message returns the exception's message.
-func (s InvalidJobException) Message() string {
+func (s *InvalidJobException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7663,28 +7663,28 @@ func (s InvalidJobException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidJobException) OrigErr() error {
+func (s *InvalidJobException) OrigErr() error {
return nil
}
-func (s InvalidJobException) Error() string {
+func (s *InvalidJobException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidJobException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidJobException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidJobException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidJobException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The job state was specified in an invalid format.
type InvalidJobStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7701,17 +7701,17 @@ func (s InvalidJobStateException) GoString() string {
func newErrorInvalidJobStateException(v protocol.ResponseMetadata) error {
return &InvalidJobStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidJobStateException) Code() string {
+func (s *InvalidJobStateException) Code() string {
return "InvalidJobStateException"
}
// Message returns the exception's message.
-func (s InvalidJobStateException) Message() string {
+func (s *InvalidJobStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7719,29 +7719,29 @@ func (s InvalidJobStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidJobStateException) OrigErr() error {
+func (s *InvalidJobStateException) OrigErr() error {
return nil
}
-func (s InvalidJobStateException) Error() string {
+func (s *InvalidJobStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidJobStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidJobStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidJobStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidJobStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The next token was specified in an invalid format. Make sure that the next
// token you provide is the token returned by a previous call.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7758,17 +7758,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7776,28 +7776,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The nonce was specified in an invalid format.
type InvalidNonceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7814,17 +7814,17 @@ func (s InvalidNonceException) GoString() string {
func newErrorInvalidNonceException(v protocol.ResponseMetadata) error {
return &InvalidNonceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNonceException) Code() string {
+func (s *InvalidNonceException) Code() string {
return "InvalidNonceException"
}
// Message returns the exception's message.
-func (s InvalidNonceException) Message() string {
+func (s *InvalidNonceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7832,28 +7832,28 @@ func (s InvalidNonceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNonceException) OrigErr() error {
+func (s *InvalidNonceException) OrigErr() error {
return nil
}
-func (s InvalidNonceException) Error() string {
+func (s *InvalidNonceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNonceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNonceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNonceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNonceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The stage declaration was specified in an invalid format.
type InvalidStageDeclarationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7870,17 +7870,17 @@ func (s InvalidStageDeclarationException) GoString() string {
func newErrorInvalidStageDeclarationException(v protocol.ResponseMetadata) error {
return &InvalidStageDeclarationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStageDeclarationException) Code() string {
+func (s *InvalidStageDeclarationException) Code() string {
return "InvalidStageDeclarationException"
}
// Message returns the exception's message.
-func (s InvalidStageDeclarationException) Message() string {
+func (s *InvalidStageDeclarationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7888,28 +7888,28 @@ func (s InvalidStageDeclarationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStageDeclarationException) OrigErr() error {
+func (s *InvalidStageDeclarationException) OrigErr() error {
return nil
}
-func (s InvalidStageDeclarationException) Error() string {
+func (s *InvalidStageDeclarationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStageDeclarationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStageDeclarationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStageDeclarationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStageDeclarationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The structure was specified in an invalid format.
type InvalidStructureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7926,17 +7926,17 @@ func (s InvalidStructureException) GoString() string {
func newErrorInvalidStructureException(v protocol.ResponseMetadata) error {
return &InvalidStructureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStructureException) Code() string {
+func (s *InvalidStructureException) Code() string {
return "InvalidStructureException"
}
// Message returns the exception's message.
-func (s InvalidStructureException) Message() string {
+func (s *InvalidStructureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7944,28 +7944,28 @@ func (s InvalidStructureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStructureException) OrigErr() error {
+func (s *InvalidStructureException) OrigErr() error {
return nil
}
-func (s InvalidStructureException) Error() string {
+func (s *InvalidStructureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStructureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStructureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStructureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStructureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource tags are invalid.
type InvalidTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -7982,17 +7982,17 @@ func (s InvalidTagsException) GoString() string {
func newErrorInvalidTagsException(v protocol.ResponseMetadata) error {
return &InvalidTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagsException) Code() string {
+func (s *InvalidTagsException) Code() string {
return "InvalidTagsException"
}
// Message returns the exception's message.
-func (s InvalidTagsException) Message() string {
+func (s *InvalidTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8000,28 +8000,28 @@ func (s InvalidTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagsException) OrigErr() error {
+func (s *InvalidTagsException) OrigErr() error {
return nil
}
-func (s InvalidTagsException) Error() string {
+func (s *InvalidTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified authentication type is in an invalid format.
type InvalidWebhookAuthenticationParametersException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8038,17 +8038,17 @@ func (s InvalidWebhookAuthenticationParametersException) GoString() string {
func newErrorInvalidWebhookAuthenticationParametersException(v protocol.ResponseMetadata) error {
return &InvalidWebhookAuthenticationParametersException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidWebhookAuthenticationParametersException) Code() string {
+func (s *InvalidWebhookAuthenticationParametersException) Code() string {
return "InvalidWebhookAuthenticationParametersException"
}
// Message returns the exception's message.
-func (s InvalidWebhookAuthenticationParametersException) Message() string {
+func (s *InvalidWebhookAuthenticationParametersException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8056,28 +8056,28 @@ func (s InvalidWebhookAuthenticationParametersException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidWebhookAuthenticationParametersException) OrigErr() error {
+func (s *InvalidWebhookAuthenticationParametersException) OrigErr() error {
return nil
}
-func (s InvalidWebhookAuthenticationParametersException) Error() string {
+func (s *InvalidWebhookAuthenticationParametersException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidWebhookAuthenticationParametersException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidWebhookAuthenticationParametersException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidWebhookAuthenticationParametersException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidWebhookAuthenticationParametersException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified event filter rule is in an invalid format.
type InvalidWebhookFilterPatternException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8094,17 +8094,17 @@ func (s InvalidWebhookFilterPatternException) GoString() string {
func newErrorInvalidWebhookFilterPatternException(v protocol.ResponseMetadata) error {
return &InvalidWebhookFilterPatternException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidWebhookFilterPatternException) Code() string {
+func (s *InvalidWebhookFilterPatternException) Code() string {
return "InvalidWebhookFilterPatternException"
}
// Message returns the exception's message.
-func (s InvalidWebhookFilterPatternException) Message() string {
+func (s *InvalidWebhookFilterPatternException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8112,22 +8112,22 @@ func (s InvalidWebhookFilterPatternException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidWebhookFilterPatternException) OrigErr() error {
+func (s *InvalidWebhookFilterPatternException) OrigErr() error {
return nil
}
-func (s InvalidWebhookFilterPatternException) Error() string {
+func (s *InvalidWebhookFilterPatternException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidWebhookFilterPatternException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidWebhookFilterPatternException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidWebhookFilterPatternException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidWebhookFilterPatternException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about a job.
@@ -8323,8 +8323,8 @@ func (s *JobDetails) SetId(v string) *JobDetails {
// The job was specified in an invalid format or cannot be found.
type JobNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8341,17 +8341,17 @@ func (s JobNotFoundException) GoString() string {
func newErrorJobNotFoundException(v protocol.ResponseMetadata) error {
return &JobNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s JobNotFoundException) Code() string {
+func (s *JobNotFoundException) Code() string {
return "JobNotFoundException"
}
// Message returns the exception's message.
-func (s JobNotFoundException) Message() string {
+func (s *JobNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8359,29 +8359,29 @@ func (s JobNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s JobNotFoundException) OrigErr() error {
+func (s *JobNotFoundException) OrigErr() error {
return nil
}
-func (s JobNotFoundException) Error() string {
+func (s *JobNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s JobNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *JobNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s JobNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *JobNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of pipelines associated with the AWS account has exceeded the
// limit allowed for the account.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8398,17 +8398,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8416,22 +8416,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListActionExecutionsInput struct {
@@ -9086,8 +9086,8 @@ func (s *ListWebhooksOutput) SetWebhooks(v []*ListWebhookItem) *ListWebhooksOutp
// The stage has failed in a later run of the pipeline and the pipelineExecutionId
// associated with the request is out of date.
type NotLatestPipelineExecutionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9104,17 +9104,17 @@ func (s NotLatestPipelineExecutionException) GoString() string {
func newErrorNotLatestPipelineExecutionException(v protocol.ResponseMetadata) error {
return &NotLatestPipelineExecutionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotLatestPipelineExecutionException) Code() string {
+func (s *NotLatestPipelineExecutionException) Code() string {
return "NotLatestPipelineExecutionException"
}
// Message returns the exception's message.
-func (s NotLatestPipelineExecutionException) Message() string {
+func (s *NotLatestPipelineExecutionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9122,22 +9122,22 @@ func (s NotLatestPipelineExecutionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotLatestPipelineExecutionException) OrigErr() error {
+func (s *NotLatestPipelineExecutionException) OrigErr() error {
return nil
}
-func (s NotLatestPipelineExecutionException) Error() string {
+func (s *NotLatestPipelineExecutionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotLatestPipelineExecutionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotLatestPipelineExecutionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotLatestPipelineExecutionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotLatestPipelineExecutionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about the output of an action.
@@ -9192,8 +9192,8 @@ func (s *OutputArtifact) SetName(v string) *OutputArtifact {
// Exceeded the total size limit for all variables in the pipeline.
type OutputVariablesSizeExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -9210,17 +9210,17 @@ func (s OutputVariablesSizeExceededException) GoString() string {
func newErrorOutputVariablesSizeExceededException(v protocol.ResponseMetadata) error {
return &OutputVariablesSizeExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OutputVariablesSizeExceededException) Code() string {
+func (s *OutputVariablesSizeExceededException) Code() string {
return "OutputVariablesSizeExceededException"
}
// Message returns the exception's message.
-func (s OutputVariablesSizeExceededException) Message() string {
+func (s *OutputVariablesSizeExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9228,22 +9228,22 @@ func (s OutputVariablesSizeExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OutputVariablesSizeExceededException) OrigErr() error {
+func (s *OutputVariablesSizeExceededException) OrigErr() error {
return nil
}
-func (s OutputVariablesSizeExceededException) Error() string {
+func (s *OutputVariablesSizeExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OutputVariablesSizeExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OutputVariablesSizeExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OutputVariablesSizeExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OutputVariablesSizeExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about a pipeline to a job worker.
@@ -9532,8 +9532,8 @@ func (s *PipelineExecution) SetStatus(v string) *PipelineExecution {
// The pipeline execution was specified in an invalid format or cannot be found,
// or an execution ID does not belong to the specified pipeline.
type PipelineExecutionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9550,17 +9550,17 @@ func (s PipelineExecutionNotFoundException) GoString() string {
func newErrorPipelineExecutionNotFoundException(v protocol.ResponseMetadata) error {
return &PipelineExecutionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineExecutionNotFoundException) Code() string {
+func (s *PipelineExecutionNotFoundException) Code() string {
return "PipelineExecutionNotFoundException"
}
// Message returns the exception's message.
-func (s PipelineExecutionNotFoundException) Message() string {
+func (s *PipelineExecutionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9568,29 +9568,29 @@ func (s PipelineExecutionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineExecutionNotFoundException) OrigErr() error {
+func (s *PipelineExecutionNotFoundException) OrigErr() error {
return nil
}
-func (s PipelineExecutionNotFoundException) Error() string {
+func (s *PipelineExecutionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineExecutionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineExecutionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineExecutionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineExecutionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Unable to stop the pipeline execution. The execution might already be in
// a Stopped state, or it might no longer be in progress.
type PipelineExecutionNotStoppableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -9607,17 +9607,17 @@ func (s PipelineExecutionNotStoppableException) GoString() string {
func newErrorPipelineExecutionNotStoppableException(v protocol.ResponseMetadata) error {
return &PipelineExecutionNotStoppableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineExecutionNotStoppableException) Code() string {
+func (s *PipelineExecutionNotStoppableException) Code() string {
return "PipelineExecutionNotStoppableException"
}
// Message returns the exception's message.
-func (s PipelineExecutionNotStoppableException) Message() string {
+func (s *PipelineExecutionNotStoppableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9625,22 +9625,22 @@ func (s PipelineExecutionNotStoppableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineExecutionNotStoppableException) OrigErr() error {
+func (s *PipelineExecutionNotStoppableException) OrigErr() error {
return nil
}
-func (s PipelineExecutionNotStoppableException) Error() string {
+func (s *PipelineExecutionNotStoppableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineExecutionNotStoppableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineExecutionNotStoppableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineExecutionNotStoppableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineExecutionNotStoppableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Summary information about a pipeline execution.
@@ -9786,8 +9786,8 @@ func (s *PipelineMetadata) SetUpdated(v time.Time) *PipelineMetadata {
// The specified pipeline name is already in use.
type PipelineNameInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9804,17 +9804,17 @@ func (s PipelineNameInUseException) GoString() string {
func newErrorPipelineNameInUseException(v protocol.ResponseMetadata) error {
return &PipelineNameInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineNameInUseException) Code() string {
+func (s *PipelineNameInUseException) Code() string {
return "PipelineNameInUseException"
}
// Message returns the exception's message.
-func (s PipelineNameInUseException) Message() string {
+func (s *PipelineNameInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9822,28 +9822,28 @@ func (s PipelineNameInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineNameInUseException) OrigErr() error {
+func (s *PipelineNameInUseException) OrigErr() error {
return nil
}
-func (s PipelineNameInUseException) Error() string {
+func (s *PipelineNameInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineNameInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineNameInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineNameInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineNameInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pipeline was specified in an invalid format or cannot be found.
type PipelineNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9860,17 +9860,17 @@ func (s PipelineNotFoundException) GoString() string {
func newErrorPipelineNotFoundException(v protocol.ResponseMetadata) error {
return &PipelineNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineNotFoundException) Code() string {
+func (s *PipelineNotFoundException) Code() string {
return "PipelineNotFoundException"
}
// Message returns the exception's message.
-func (s PipelineNotFoundException) Message() string {
+func (s *PipelineNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9878,22 +9878,22 @@ func (s PipelineNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineNotFoundException) OrigErr() error {
+func (s *PipelineNotFoundException) OrigErr() error {
return nil
}
-func (s PipelineNotFoundException) Error() string {
+func (s *PipelineNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns a summary of a pipeline.
@@ -9949,8 +9949,8 @@ func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary {
// The pipeline version was specified in an invalid format or cannot be found.
type PipelineVersionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9967,17 +9967,17 @@ func (s PipelineVersionNotFoundException) GoString() string {
func newErrorPipelineVersionNotFoundException(v protocol.ResponseMetadata) error {
return &PipelineVersionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineVersionNotFoundException) Code() string {
+func (s *PipelineVersionNotFoundException) Code() string {
return "PipelineVersionNotFoundException"
}
// Message returns the exception's message.
-func (s PipelineVersionNotFoundException) Message() string {
+func (s *PipelineVersionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9985,22 +9985,22 @@ func (s PipelineVersionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineVersionNotFoundException) OrigErr() error {
+func (s *PipelineVersionNotFoundException) OrigErr() error {
return nil
}
-func (s PipelineVersionNotFoundException) Error() string {
+func (s *PipelineVersionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineVersionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineVersionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineVersionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineVersionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a PollForJobs action.
@@ -10980,8 +10980,8 @@ func (s RegisterWebhookWithThirdPartyOutput) GoString() string {
// The resource was specified in an invalid format.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10998,17 +10998,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11016,22 +11016,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input of a RetryStageExecution action.
@@ -11427,8 +11427,8 @@ func (s *StageExecution) SetStatus(v string) *StageExecution {
// The stage was specified in an invalid format or cannot be found.
type StageNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11445,17 +11445,17 @@ func (s StageNotFoundException) GoString() string {
func newErrorStageNotFoundException(v protocol.ResponseMetadata) error {
return &StageNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StageNotFoundException) Code() string {
+func (s *StageNotFoundException) Code() string {
return "StageNotFoundException"
}
// Message returns the exception's message.
-func (s StageNotFoundException) Message() string {
+func (s *StageNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11463,29 +11463,29 @@ func (s StageNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StageNotFoundException) OrigErr() error {
+func (s *StageNotFoundException) OrigErr() error {
return nil
}
-func (s StageNotFoundException) Error() string {
+func (s *StageNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StageNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StageNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StageNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StageNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Unable to retry. The pipeline structure or stage state might have changed
// while actions awaited retry, or the stage contains no failed actions.
type StageNotRetryableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11502,17 +11502,17 @@ func (s StageNotRetryableException) GoString() string {
func newErrorStageNotRetryableException(v protocol.ResponseMetadata) error {
return &StageNotRetryableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StageNotRetryableException) Code() string {
+func (s *StageNotRetryableException) Code() string {
return "StageNotRetryableException"
}
// Message returns the exception's message.
-func (s StageNotRetryableException) Message() string {
+func (s *StageNotRetryableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11520,22 +11520,22 @@ func (s StageNotRetryableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StageNotRetryableException) OrigErr() error {
+func (s *StageNotRetryableException) OrigErr() error {
return nil
}
-func (s StageNotRetryableException) Error() string {
+func (s *StageNotRetryableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StageNotRetryableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StageNotRetryableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StageNotRetryableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StageNotRetryableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about the state of the stage.
@@ -12106,8 +12106,8 @@ func (s *ThirdPartyJobDetails) SetNonce(v string) *ThirdPartyJobDetails {
// The tags limit for a resource has been exceeded.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" min:"1" type:"string"`
}
@@ -12124,17 +12124,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12142,22 +12142,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about the state of transitions between one stage and
@@ -12349,8 +12349,8 @@ func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipeli
// The validation was specified in an invalid format.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12367,17 +12367,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12385,22 +12385,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The authentication applied to incoming webhook trigger requests.
@@ -12673,8 +12673,8 @@ func (s *WebhookFilterRule) SetMatchEquals(v string) *WebhookFilterRule {
// The specified webhook was entered in an invalid format or cannot be found.
type WebhookNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12691,17 +12691,17 @@ func (s WebhookNotFoundException) GoString() string {
func newErrorWebhookNotFoundException(v protocol.ResponseMetadata) error {
return &WebhookNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WebhookNotFoundException) Code() string {
+func (s *WebhookNotFoundException) Code() string {
return "WebhookNotFoundException"
}
// Message returns the exception's message.
-func (s WebhookNotFoundException) Message() string {
+func (s *WebhookNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12709,22 +12709,22 @@ func (s WebhookNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WebhookNotFoundException) OrigErr() error {
+func (s *WebhookNotFoundException) OrigErr() error {
return nil
}
-func (s WebhookNotFoundException) Error() string {
+func (s *WebhookNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WebhookNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WebhookNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WebhookNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WebhookNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/codestarnotifications/api.go b/vendor/github.com/aws/aws-sdk-go/service/codestarnotifications/api.go
index c69e76f54dc..9f8640133b4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/codestarnotifications/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/codestarnotifications/api.go
@@ -1305,8 +1305,8 @@ func (c *CodeStarNotifications) UpdateNotificationRuleWithContext(ctx aws.Contex
// AWS CodeStar Notifications can't create the notification rule because you
// do not have sufficient permissions.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1323,17 +1323,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1341,29 +1341,29 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS CodeStar Notifications can't complete the request because the resource
// is being modified by another process. Wait a few minutes and try again.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1380,17 +1380,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1398,28 +1398,28 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Some or all of the configuration is incomplete, missing, or not valid.
type ConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1436,17 +1436,17 @@ func (s ConfigurationException) GoString() string {
func newErrorConfigurationException(v protocol.ResponseMetadata) error {
return &ConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConfigurationException) Code() string {
+func (s *ConfigurationException) Code() string {
return "ConfigurationException"
}
// Message returns the exception's message.
-func (s ConfigurationException) Message() string {
+func (s *ConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1454,22 +1454,22 @@ func (s ConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConfigurationException) OrigErr() error {
+func (s *ConfigurationException) OrigErr() error {
return nil
}
-func (s ConfigurationException) Error() string {
+func (s *ConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateNotificationRuleInput struct {
@@ -1989,8 +1989,8 @@ func (s *EventTypeSummary) SetServiceName(v string) *EventTypeSummary {
// The value for the enumeration token used in the request to return the next
// batch of the results is not valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2007,17 +2007,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2025,30 +2025,30 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply
// to accounts, notification rules, notifications, resources, and targets. For
// more information, see Limits.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2065,17 +2065,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2083,22 +2083,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a filter to apply to the list of returned event types.
@@ -2677,8 +2677,8 @@ func (s *NotificationRuleSummary) SetId(v string) *NotificationRuleSummary {
// A resource with the same name or ID already exists. Notification rule names
// must be unique in your AWS account.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2695,17 +2695,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2713,29 +2713,29 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS CodeStar Notifications can't find a resource that matches the provided
// ARN.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2752,17 +2752,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2770,22 +2770,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SubscribeInput struct {
@@ -3312,8 +3312,8 @@ func (s UpdateNotificationRuleOutput) GoString() string {
// One or more parameter values are not valid.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -3330,17 +3330,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3348,22 +3348,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go
index 6b104b41f68..adea5962eaa 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go
@@ -2161,8 +2161,8 @@ func (c *CognitoIdentity) UpdateIdentityPoolWithContext(ctx aws.Context, input *
// Thrown if there are parallel requests to modify a resource.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by a ConcurrentModificationException.
Message_ *string `locationName:"message" type:"string"`
@@ -2180,17 +2180,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2198,22 +2198,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Input to the CreateIdentityPool action.
@@ -2620,8 +2620,8 @@ func (s *DescribeIdentityPoolInput) SetIdentityPoolId(v string) *DescribeIdentit
// The provided developer user identifier is already registered with Cognito
// under a different identity ID.
type DeveloperUserAlreadyRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// This developer user identifier is already registered with Cognito.
Message_ *string `locationName:"message" type:"string"`
@@ -2639,17 +2639,17 @@ func (s DeveloperUserAlreadyRegisteredException) GoString() string {
func newErrorDeveloperUserAlreadyRegisteredException(v protocol.ResponseMetadata) error {
return &DeveloperUserAlreadyRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeveloperUserAlreadyRegisteredException) Code() string {
+func (s *DeveloperUserAlreadyRegisteredException) Code() string {
return "DeveloperUserAlreadyRegisteredException"
}
// Message returns the exception's message.
-func (s DeveloperUserAlreadyRegisteredException) Message() string {
+func (s *DeveloperUserAlreadyRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2657,29 +2657,29 @@ func (s DeveloperUserAlreadyRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeveloperUserAlreadyRegisteredException) OrigErr() error {
+func (s *DeveloperUserAlreadyRegisteredException) OrigErr() error {
return nil
}
-func (s DeveloperUserAlreadyRegisteredException) Error() string {
+func (s *DeveloperUserAlreadyRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeveloperUserAlreadyRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeveloperUserAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeveloperUserAlreadyRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeveloperUserAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An exception thrown when a dependent service such as Facebook or Twitter
// is not responding
type ExternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by an ExternalServiceException
Message_ *string `locationName:"message" type:"string"`
@@ -2697,17 +2697,17 @@ func (s ExternalServiceException) GoString() string {
func newErrorExternalServiceException(v protocol.ResponseMetadata) error {
return &ExternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExternalServiceException) Code() string {
+func (s *ExternalServiceException) Code() string {
return "ExternalServiceException"
}
// Message returns the exception's message.
-func (s ExternalServiceException) Message() string {
+func (s *ExternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2715,22 +2715,22 @@ func (s ExternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExternalServiceException) OrigErr() error {
+func (s *ExternalServiceException) OrigErr() error {
return nil
}
-func (s ExternalServiceException) Error() string {
+func (s *ExternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Input to the GetCredentialsForIdentity action.
@@ -3489,8 +3489,8 @@ func (s *IdentityPoolShortDescription) SetIdentityPoolName(v string) *IdentityPo
// Thrown when the service encounters an error during processing the request.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by an InternalErrorException.
Message_ *string `locationName:"message" type:"string"`
@@ -3508,17 +3508,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3526,29 +3526,29 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Thrown if the identity pool has no role associated for the given auth type
// (auth/unauth) or if the AssumeRole fails.
type InvalidIdentityPoolConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned for an InvalidIdentityPoolConfigurationException
Message_ *string `locationName:"message" type:"string"`
@@ -3566,17 +3566,17 @@ func (s InvalidIdentityPoolConfigurationException) GoString() string {
func newErrorInvalidIdentityPoolConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidIdentityPoolConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidIdentityPoolConfigurationException) Code() string {
+func (s *InvalidIdentityPoolConfigurationException) Code() string {
return "InvalidIdentityPoolConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidIdentityPoolConfigurationException) Message() string {
+func (s *InvalidIdentityPoolConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3584,28 +3584,28 @@ func (s InvalidIdentityPoolConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidIdentityPoolConfigurationException) OrigErr() error {
+func (s *InvalidIdentityPoolConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidIdentityPoolConfigurationException) Error() string {
+func (s *InvalidIdentityPoolConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidIdentityPoolConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidIdentityPoolConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidIdentityPoolConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidIdentityPoolConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Thrown for missing or bad input parameter(s).
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by an InvalidParameterException.
Message_ *string `locationName:"message" type:"string"`
@@ -3623,17 +3623,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3641,28 +3641,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Thrown when the total number of user pools has exceeded a preset limit.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by a LimitExceededException.
Message_ *string `locationName:"message" type:"string"`
@@ -3680,17 +3680,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3698,22 +3698,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Input to the ListIdentities action.
@@ -4354,8 +4354,8 @@ func (s *MergeDeveloperIdentitiesOutput) SetIdentityId(v string) *MergeDeveloper
// Thrown when a user is not authorized to access the requested resource.
type NotAuthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by a NotAuthorizedException
Message_ *string `locationName:"message" type:"string"`
@@ -4373,17 +4373,17 @@ func (s NotAuthorizedException) GoString() string {
func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error {
return &NotAuthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotAuthorizedException) Code() string {
+func (s *NotAuthorizedException) Code() string {
return "NotAuthorizedException"
}
// Message returns the exception's message.
-func (s NotAuthorizedException) Message() string {
+func (s *NotAuthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4391,22 +4391,22 @@ func (s NotAuthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotAuthorizedException) OrigErr() error {
+func (s *NotAuthorizedException) OrigErr() error {
return nil
}
-func (s NotAuthorizedException) Error() string {
+func (s *NotAuthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotAuthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotAuthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotAuthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotAuthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A provider representing an Amazon Cognito user pool and its client ID.
@@ -4479,8 +4479,8 @@ func (s *Provider) SetServerSideTokenCheck(v bool) *Provider {
// Thrown when a user tries to use a login which is already linked to another
// account.
type ResourceConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by a ResourceConflictException.
Message_ *string `locationName:"message" type:"string"`
@@ -4498,17 +4498,17 @@ func (s ResourceConflictException) GoString() string {
func newErrorResourceConflictException(v protocol.ResponseMetadata) error {
return &ResourceConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceConflictException) Code() string {
+func (s *ResourceConflictException) Code() string {
return "ResourceConflictException"
}
// Message returns the exception's message.
-func (s ResourceConflictException) Message() string {
+func (s *ResourceConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4516,29 +4516,29 @@ func (s ResourceConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceConflictException) OrigErr() error {
+func (s *ResourceConflictException) OrigErr() error {
return nil
}
-func (s ResourceConflictException) Error() string {
+func (s *ResourceConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Thrown when the requested resource (for example, a dataset or record) does
// not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned by a ResourceNotFoundException.
Message_ *string `locationName:"message" type:"string"`
@@ -4556,17 +4556,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4574,22 +4574,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A role mapping.
@@ -4882,8 +4882,8 @@ func (s TagResourceOutput) GoString() string {
// Thrown when a request is throttled.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Message returned by a TooManyRequestsException
Message_ *string `locationName:"message" type:"string"`
@@ -4901,17 +4901,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4919,22 +4919,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Input to the UnlinkDeveloperIdentity action.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go
index 8fd262b54ff..428171c8443 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go
@@ -6058,11 +6058,12 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp
//
// Calling this API causes a message to be sent to the end user with a confirmation
// code that is required to change the user's password. For the Username parameter,
-// you can use the username or user alias. If a verified phone number exists
-// for the user, the confirmation code is sent to the phone number. Otherwise,
-// if a verified email exists, the confirmation code is sent to the email. If
-// neither a verified phone number nor a verified email exists, InvalidParameterException
-// is thrown. To use the confirmation code for resetting the password, call .
+// you can use the username or user alias. The method used to send the confirmation
+// code is sent according to the specified AccountRecoverySetting. For more
+// information, see Recovering User Accounts in the Amazon Cognito Developer
+// Guide. If neither a verified phone number nor a verified email exists, an
+// InvalidParameterException is thrown. To use the confirmation code for resetting
+// the password, call .
//
// 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
@@ -14772,8 +14773,8 @@ func (s AdminUserGlobalSignOutOutput) GoString() string {
// account. This exception tells user that an account with this email or phone
// already exists.
type AliasExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message sent to the user when an alias exists.
Message_ *string `locationName:"message" type:"string"`
@@ -14791,17 +14792,17 @@ func (s AliasExistsException) GoString() string {
func newErrorAliasExistsException(v protocol.ResponseMetadata) error {
return &AliasExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AliasExistsException) Code() string {
+func (s *AliasExistsException) Code() string {
return "AliasExistsException"
}
// Message returns the exception's message.
-func (s AliasExistsException) Message() string {
+func (s *AliasExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14809,26 +14810,30 @@ func (s AliasExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AliasExistsException) OrigErr() error {
+func (s *AliasExistsException) OrigErr() error {
return nil
}
-func (s AliasExistsException) Error() string {
+func (s *AliasExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AliasExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AliasExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AliasExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AliasExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Pinpoint analytics configuration for collecting metrics for a
// user pool.
+//
+// Cognito User Pools only supports sending events to Amazon Pinpoint projects
+// in the US East (N. Virginia) us-east-1 Region, regardless of the region in
+// which the user pool resides.
type AnalyticsConfigurationType struct {
_ struct{} `type:"structure"`
@@ -14913,6 +14918,10 @@ func (s *AnalyticsConfigurationType) SetUserDataShared(v bool) *AnalyticsConfigu
//
// An endpoint uniquely identifies a mobile device, email address, or phone
// number that can receive messages from Amazon Pinpoint analytics.
+//
+// Cognito User Pools only supports sending events to Amazon Pinpoint projects
+// in the US East (N. Virginia) us-east-1 Region, regardless of the region in
+// which the user pool resides.
type AnalyticsMetadataType struct {
_ struct{} `type:"structure"`
@@ -15392,8 +15401,8 @@ func (s *CodeDeliveryDetailsType) SetDestination(v string) *CodeDeliveryDetailsT
// This exception is thrown when a verification code fails to deliver successfully.
type CodeDeliveryFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message sent when a verification code fails to deliver successfully.
Message_ *string `locationName:"message" type:"string"`
@@ -15411,17 +15420,17 @@ func (s CodeDeliveryFailureException) GoString() string {
func newErrorCodeDeliveryFailureException(v protocol.ResponseMetadata) error {
return &CodeDeliveryFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CodeDeliveryFailureException) Code() string {
+func (s *CodeDeliveryFailureException) Code() string {
return "CodeDeliveryFailureException"
}
// Message returns the exception's message.
-func (s CodeDeliveryFailureException) Message() string {
+func (s *CodeDeliveryFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15429,29 +15438,29 @@ func (s CodeDeliveryFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CodeDeliveryFailureException) OrigErr() error {
+func (s *CodeDeliveryFailureException) OrigErr() error {
return nil
}
-func (s CodeDeliveryFailureException) Error() string {
+func (s *CodeDeliveryFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CodeDeliveryFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CodeDeliveryFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CodeDeliveryFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CodeDeliveryFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown if the provided code does not match what the server
// was expecting.
type CodeMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message provided when the code mismatch exception is thrown.
Message_ *string `locationName:"message" type:"string"`
@@ -15469,17 +15478,17 @@ func (s CodeMismatchException) GoString() string {
func newErrorCodeMismatchException(v protocol.ResponseMetadata) error {
return &CodeMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CodeMismatchException) Code() string {
+func (s *CodeMismatchException) Code() string {
return "CodeMismatchException"
}
// Message returns the exception's message.
-func (s CodeMismatchException) Message() string {
+func (s *CodeMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15487,22 +15496,22 @@ func (s CodeMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CodeMismatchException) OrigErr() error {
+func (s *CodeMismatchException) OrigErr() error {
return nil
}
-func (s CodeMismatchException) Error() string {
+func (s *CodeMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CodeMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CodeMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CodeMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CodeMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The compromised credentials actions type
@@ -15600,8 +15609,8 @@ func (s *CompromisedCredentialsRiskConfigurationType) SetEventFilter(v []*string
// This exception is thrown if two or more modifications are happening concurrently.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message provided when the concurrent exception is thrown.
Message_ *string `locationName:"message" type:"string"`
@@ -15619,17 +15628,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15637,22 +15646,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Confirms the device request.
@@ -16356,7 +16365,7 @@ type CreateIdentityProviderInput struct {
// discovery URL specified by oidc_issuer key jwks_uri if not available from
// discovery URL specified by oidc_issuer key authorize_scopes
//
- // * For SAML providers: MetadataFile OR MetadataURL IDPSignOut optional
+ // * For SAML providers: MetadataFile OR MetadataURL IDPSignout optional
//
// ProviderDetails is a required field
ProviderDetails map[string]*string `type:"map" required:"true"`
@@ -16726,6 +16735,10 @@ type CreateUserPoolClientInput struct {
// The Amazon Pinpoint analytics configuration for collecting metrics for this
// user pool.
+ //
+ // Cognito User Pools only supports sending events to Amazon Pinpoint projects
+ // in the US East (N. Virginia) us-east-1 Region, regardless of the region in
+ // which the user pool resides.
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
// A list of allowed redirect (callback) URLs for the identity providers.
@@ -18821,8 +18834,8 @@ func (s *DomainDescriptionType) SetVersion(v string) *DomainDescriptionType {
// This exception is thrown when the provider is already supported by the user
// pool.
type DuplicateProviderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18839,17 +18852,17 @@ func (s DuplicateProviderException) GoString() string {
func newErrorDuplicateProviderException(v protocol.ResponseMetadata) error {
return &DuplicateProviderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateProviderException) Code() string {
+func (s *DuplicateProviderException) Code() string {
return "DuplicateProviderException"
}
// Message returns the exception's message.
-func (s DuplicateProviderException) Message() string {
+func (s *DuplicateProviderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18857,22 +18870,22 @@ func (s DuplicateProviderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateProviderException) OrigErr() error {
+func (s *DuplicateProviderException) OrigErr() error {
return nil
}
-func (s DuplicateProviderException) Error() string {
+func (s *DuplicateProviderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateProviderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateProviderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateProviderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateProviderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The email configuration type.
@@ -19017,8 +19030,8 @@ func (s *EmailConfigurationType) SetSourceArn(v string) *EmailConfigurationType
// This exception is thrown when there is a code mismatch and the service fails
// to configure the software token TOTP multi-factor authentication (MFA).
type EnableSoftwareTokenMFAException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19035,17 +19048,17 @@ func (s EnableSoftwareTokenMFAException) GoString() string {
func newErrorEnableSoftwareTokenMFAException(v protocol.ResponseMetadata) error {
return &EnableSoftwareTokenMFAException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EnableSoftwareTokenMFAException) Code() string {
+func (s *EnableSoftwareTokenMFAException) Code() string {
return "EnableSoftwareTokenMFAException"
}
// Message returns the exception's message.
-func (s EnableSoftwareTokenMFAException) Message() string {
+func (s *EnableSoftwareTokenMFAException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19053,22 +19066,22 @@ func (s EnableSoftwareTokenMFAException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EnableSoftwareTokenMFAException) OrigErr() error {
+func (s *EnableSoftwareTokenMFAException) OrigErr() error {
return nil
}
-func (s EnableSoftwareTokenMFAException) Error() string {
+func (s *EnableSoftwareTokenMFAException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EnableSoftwareTokenMFAException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EnableSoftwareTokenMFAException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EnableSoftwareTokenMFAException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EnableSoftwareTokenMFAException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the user context data captured at the time of an event request.
@@ -19181,6 +19194,10 @@ func (s *EventFeedbackType) SetProvider(v string) *EventFeedbackType {
type EventRiskType struct {
_ struct{} `type:"structure"`
+ // Indicates whether compromised credentials were detected during an authentication
+ // event.
+ CompromisedCredentialsDetected *bool `type:"boolean"`
+
// The risk decision.
RiskDecision *string `type:"string" enum:"RiskDecisionType"`
@@ -19198,6 +19215,12 @@ func (s EventRiskType) GoString() string {
return s.String()
}
+// SetCompromisedCredentialsDetected sets the CompromisedCredentialsDetected field's value.
+func (s *EventRiskType) SetCompromisedCredentialsDetected(v bool) *EventRiskType {
+ s.CompromisedCredentialsDetected = &v
+ return s
+}
+
// SetRiskDecision sets the RiskDecision field's value.
func (s *EventRiskType) SetRiskDecision(v string) *EventRiskType {
s.RiskDecision = &v
@@ -19212,8 +19235,8 @@ func (s *EventRiskType) SetRiskLevel(v string) *EventRiskType {
// This exception is thrown if a code has expired.
type ExpiredCodeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the expired code exception is thrown.
Message_ *string `locationName:"message" type:"string"`
@@ -19231,17 +19254,17 @@ func (s ExpiredCodeException) GoString() string {
func newErrorExpiredCodeException(v protocol.ResponseMetadata) error {
return &ExpiredCodeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredCodeException) Code() string {
+func (s *ExpiredCodeException) Code() string {
return "ExpiredCodeException"
}
// Message returns the exception's message.
-func (s ExpiredCodeException) Message() string {
+func (s *ExpiredCodeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19249,22 +19272,22 @@ func (s ExpiredCodeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredCodeException) OrigErr() error {
+func (s *ExpiredCodeException) OrigErr() error {
return nil
}
-func (s ExpiredCodeException) Error() string {
+func (s *ExpiredCodeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredCodeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredCodeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredCodeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredCodeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the request to forget the device.
@@ -20331,8 +20354,8 @@ func (s GlobalSignOutOutput) GoString() string {
// This exception is thrown when Amazon Cognito encounters a group that already
// exists in the user pool.
type GroupExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20349,17 +20372,17 @@ func (s GroupExistsException) GoString() string {
func newErrorGroupExistsException(v protocol.ResponseMetadata) error {
return &GroupExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GroupExistsException) Code() string {
+func (s *GroupExistsException) Code() string {
return "GroupExistsException"
}
// Message returns the exception's message.
-func (s GroupExistsException) Message() string {
+func (s *GroupExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20367,22 +20390,22 @@ func (s GroupExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GroupExistsException) OrigErr() error {
+func (s *GroupExistsException) OrigErr() error {
return nil
}
-func (s GroupExistsException) Error() string {
+func (s *GroupExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GroupExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GroupExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GroupExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GroupExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The group type.
@@ -20891,8 +20914,8 @@ func (s *InitiateAuthOutput) SetSession(v string) *InitiateAuthOutput {
// This exception is thrown when Amazon Cognito encounters an internal error.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when Amazon Cognito throws an internal error exception.
Message_ *string `locationName:"message" type:"string"`
@@ -20910,17 +20933,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20928,29 +20951,29 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when Amazon Cognito is not allowed to use your email
// identity. HTTP status code: 400.
type InvalidEmailRoleAccessPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when you have an unverified email address or the identity
// policy is not set on an email address that Amazon Cognito can access.
@@ -20969,17 +20992,17 @@ func (s InvalidEmailRoleAccessPolicyException) GoString() string {
func newErrorInvalidEmailRoleAccessPolicyException(v protocol.ResponseMetadata) error {
return &InvalidEmailRoleAccessPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidEmailRoleAccessPolicyException) Code() string {
+func (s *InvalidEmailRoleAccessPolicyException) Code() string {
return "InvalidEmailRoleAccessPolicyException"
}
// Message returns the exception's message.
-func (s InvalidEmailRoleAccessPolicyException) Message() string {
+func (s *InvalidEmailRoleAccessPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20987,29 +21010,29 @@ func (s InvalidEmailRoleAccessPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidEmailRoleAccessPolicyException) OrigErr() error {
+func (s *InvalidEmailRoleAccessPolicyException) OrigErr() error {
return nil
}
-func (s InvalidEmailRoleAccessPolicyException) Error() string {
+func (s *InvalidEmailRoleAccessPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidEmailRoleAccessPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidEmailRoleAccessPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidEmailRoleAccessPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidEmailRoleAccessPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the Amazon Cognito service encounters an invalid
// AWS Lambda response.
type InvalidLambdaResponseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service throws an invalid AWS
// Lambda response exception.
@@ -21028,17 +21051,17 @@ func (s InvalidLambdaResponseException) GoString() string {
func newErrorInvalidLambdaResponseException(v protocol.ResponseMetadata) error {
return &InvalidLambdaResponseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLambdaResponseException) Code() string {
+func (s *InvalidLambdaResponseException) Code() string {
return "InvalidLambdaResponseException"
}
// Message returns the exception's message.
-func (s InvalidLambdaResponseException) Message() string {
+func (s *InvalidLambdaResponseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21046,28 +21069,28 @@ func (s InvalidLambdaResponseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLambdaResponseException) OrigErr() error {
+func (s *InvalidLambdaResponseException) OrigErr() error {
return nil
}
-func (s InvalidLambdaResponseException) Error() string {
+func (s *InvalidLambdaResponseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLambdaResponseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLambdaResponseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLambdaResponseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLambdaResponseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the specified OAuth flow is invalid.
type InvalidOAuthFlowException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21084,17 +21107,17 @@ func (s InvalidOAuthFlowException) GoString() string {
func newErrorInvalidOAuthFlowException(v protocol.ResponseMetadata) error {
return &InvalidOAuthFlowException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOAuthFlowException) Code() string {
+func (s *InvalidOAuthFlowException) Code() string {
return "InvalidOAuthFlowException"
}
// Message returns the exception's message.
-func (s InvalidOAuthFlowException) Message() string {
+func (s *InvalidOAuthFlowException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21102,29 +21125,29 @@ func (s InvalidOAuthFlowException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOAuthFlowException) OrigErr() error {
+func (s *InvalidOAuthFlowException) OrigErr() error {
return nil
}
-func (s InvalidOAuthFlowException) Error() string {
+func (s *InvalidOAuthFlowException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOAuthFlowException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOAuthFlowException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOAuthFlowException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOAuthFlowException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the Amazon Cognito service encounters an invalid
// parameter.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service throws an invalid parameter
// exception.
@@ -21143,17 +21166,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21161,29 +21184,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the Amazon Cognito service encounters an invalid
// password.
type InvalidPasswordException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service throws an invalid user
// password exception.
@@ -21202,17 +21225,17 @@ func (s InvalidPasswordException) GoString() string {
func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error {
return &InvalidPasswordException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPasswordException) Code() string {
+func (s *InvalidPasswordException) Code() string {
return "InvalidPasswordException"
}
// Message returns the exception's message.
-func (s InvalidPasswordException) Message() string {
+func (s *InvalidPasswordException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21220,29 +21243,29 @@ func (s InvalidPasswordException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPasswordException) OrigErr() error {
+func (s *InvalidPasswordException) OrigErr() error {
return nil
}
-func (s InvalidPasswordException) Error() string {
+func (s *InvalidPasswordException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPasswordException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPasswordException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPasswordException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPasswordException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is returned when the role provided for SMS configuration does
// not have permission to publish using Amazon SNS.
type InvalidSmsRoleAccessPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message retuned when the invalid SMS role access policy exception is
// thrown.
@@ -21261,17 +21284,17 @@ func (s InvalidSmsRoleAccessPolicyException) GoString() string {
func newErrorInvalidSmsRoleAccessPolicyException(v protocol.ResponseMetadata) error {
return &InvalidSmsRoleAccessPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSmsRoleAccessPolicyException) Code() string {
+func (s *InvalidSmsRoleAccessPolicyException) Code() string {
return "InvalidSmsRoleAccessPolicyException"
}
// Message returns the exception's message.
-func (s InvalidSmsRoleAccessPolicyException) Message() string {
+func (s *InvalidSmsRoleAccessPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21279,22 +21302,22 @@ func (s InvalidSmsRoleAccessPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSmsRoleAccessPolicyException) OrigErr() error {
+func (s *InvalidSmsRoleAccessPolicyException) OrigErr() error {
return nil
}
-func (s InvalidSmsRoleAccessPolicyException) Error() string {
+func (s *InvalidSmsRoleAccessPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSmsRoleAccessPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSmsRoleAccessPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSmsRoleAccessPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSmsRoleAccessPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the trust relationship is invalid for the role
@@ -21302,8 +21325,8 @@ func (s InvalidSmsRoleAccessPolicyException) RequestID() string {
// or the external ID provided in the role does not match what is provided in
// the SMS configuration for the user pool.
type InvalidSmsRoleTrustRelationshipException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the role trust relationship for the SMS message
// is invalid.
@@ -21322,17 +21345,17 @@ func (s InvalidSmsRoleTrustRelationshipException) GoString() string {
func newErrorInvalidSmsRoleTrustRelationshipException(v protocol.ResponseMetadata) error {
return &InvalidSmsRoleTrustRelationshipException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSmsRoleTrustRelationshipException) Code() string {
+func (s *InvalidSmsRoleTrustRelationshipException) Code() string {
return "InvalidSmsRoleTrustRelationshipException"
}
// Message returns the exception's message.
-func (s InvalidSmsRoleTrustRelationshipException) Message() string {
+func (s *InvalidSmsRoleTrustRelationshipException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21340,28 +21363,28 @@ func (s InvalidSmsRoleTrustRelationshipException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSmsRoleTrustRelationshipException) OrigErr() error {
+func (s *InvalidSmsRoleTrustRelationshipException) OrigErr() error {
return nil
}
-func (s InvalidSmsRoleTrustRelationshipException) Error() string {
+func (s *InvalidSmsRoleTrustRelationshipException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSmsRoleTrustRelationshipException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSmsRoleTrustRelationshipException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSmsRoleTrustRelationshipException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSmsRoleTrustRelationshipException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the user pool configuration is invalid.
type InvalidUserPoolConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the user pool configuration is invalid.
Message_ *string `locationName:"message" type:"string"`
@@ -21379,17 +21402,17 @@ func (s InvalidUserPoolConfigurationException) GoString() string {
func newErrorInvalidUserPoolConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidUserPoolConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidUserPoolConfigurationException) Code() string {
+func (s *InvalidUserPoolConfigurationException) Code() string {
return "InvalidUserPoolConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidUserPoolConfigurationException) Message() string {
+func (s *InvalidUserPoolConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21397,22 +21420,22 @@ func (s InvalidUserPoolConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidUserPoolConfigurationException) OrigErr() error {
+func (s *InvalidUserPoolConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidUserPoolConfigurationException) Error() string {
+func (s *InvalidUserPoolConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidUserPoolConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidUserPoolConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidUserPoolConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidUserPoolConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the configuration for AWS Lambda triggers.
@@ -21563,8 +21586,8 @@ func (s *LambdaConfigType) SetVerifyAuthChallengeResponse(v string) *LambdaConfi
// This exception is thrown when a user exceeds the limit for a requested AWS
// resource.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when Amazon Cognito throws a limit exceeded exception.
Message_ *string `locationName:"message" type:"string"`
@@ -21582,17 +21605,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21600,22 +21623,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the request to list the devices.
@@ -22641,8 +22664,8 @@ func (s *ListUsersOutput) SetUsers(v []*UserType) *ListUsersOutput {
// This exception is thrown when Amazon Cognito cannot find a multi-factor authentication
// (MFA) method.
type MFAMethodNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when Amazon Cognito throws an MFA method not found exception.
Message_ *string `locationName:"message" type:"string"`
@@ -22660,17 +22683,17 @@ func (s MFAMethodNotFoundException) GoString() string {
func newErrorMFAMethodNotFoundException(v protocol.ResponseMetadata) error {
return &MFAMethodNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MFAMethodNotFoundException) Code() string {
+func (s *MFAMethodNotFoundException) Code() string {
return "MFAMethodNotFoundException"
}
// Message returns the exception's message.
-func (s MFAMethodNotFoundException) Message() string {
+func (s *MFAMethodNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22678,22 +22701,22 @@ func (s MFAMethodNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MFAMethodNotFoundException) OrigErr() error {
+func (s *MFAMethodNotFoundException) OrigErr() error {
return nil
}
-func (s MFAMethodNotFoundException) Error() string {
+func (s *MFAMethodNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MFAMethodNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MFAMethodNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MFAMethodNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MFAMethodNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This data type is no longer supported. You can use it only for SMS MFA configurations.
@@ -22846,8 +22869,8 @@ func (s *NewDeviceMetadataType) SetDeviceKey(v string) *NewDeviceMetadataType {
// This exception is thrown when a user is not authorized.
type NotAuthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns a not authorized
// exception.
@@ -22866,17 +22889,17 @@ func (s NotAuthorizedException) GoString() string {
func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error {
return &NotAuthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotAuthorizedException) Code() string {
+func (s *NotAuthorizedException) Code() string {
return "NotAuthorizedException"
}
// Message returns the exception's message.
-func (s NotAuthorizedException) Message() string {
+func (s *NotAuthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22884,22 +22907,22 @@ func (s NotAuthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotAuthorizedException) OrigErr() error {
+func (s *NotAuthorizedException) OrigErr() error {
return nil
}
-func (s NotAuthorizedException) Error() string {
+func (s *NotAuthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotAuthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotAuthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotAuthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotAuthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The notify configuration type.
@@ -23204,8 +23227,8 @@ func (s *PasswordPolicyType) SetTemporaryPasswordValidityDays(v int64) *Password
// This exception is thrown when a password reset is required.
type PasswordResetRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when a password reset is required.
Message_ *string `locationName:"message" type:"string"`
@@ -23223,17 +23246,17 @@ func (s PasswordResetRequiredException) GoString() string {
func newErrorPasswordResetRequiredException(v protocol.ResponseMetadata) error {
return &PasswordResetRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PasswordResetRequiredException) Code() string {
+func (s *PasswordResetRequiredException) Code() string {
return "PasswordResetRequiredException"
}
// Message returns the exception's message.
-func (s PasswordResetRequiredException) Message() string {
+func (s *PasswordResetRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23241,28 +23264,28 @@ func (s PasswordResetRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PasswordResetRequiredException) OrigErr() error {
+func (s *PasswordResetRequiredException) OrigErr() error {
return nil
}
-func (s PasswordResetRequiredException) Error() string {
+func (s *PasswordResetRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PasswordResetRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PasswordResetRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PasswordResetRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PasswordResetRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when a precondition is not met.
type PreconditionNotMetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when a precondition is not met.
Message_ *string `locationName:"message" type:"string"`
@@ -23280,17 +23303,17 @@ func (s PreconditionNotMetException) GoString() string {
func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error {
return &PreconditionNotMetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreconditionNotMetException) Code() string {
+func (s *PreconditionNotMetException) Code() string {
return "PreconditionNotMetException"
}
// Message returns the exception's message.
-func (s PreconditionNotMetException) Message() string {
+func (s *PreconditionNotMetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23298,22 +23321,22 @@ func (s PreconditionNotMetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreconditionNotMetException) OrigErr() error {
+func (s *PreconditionNotMetException) OrigErr() error {
return nil
}
-func (s PreconditionNotMetException) Error() string {
+func (s *PreconditionNotMetException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreconditionNotMetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreconditionNotMetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreconditionNotMetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreconditionNotMetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A container for identity provider details.
@@ -23638,8 +23661,8 @@ func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDet
// This exception is thrown when the Amazon Cognito service cannot find the
// requested resource.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns a resource not
// found exception.
@@ -23658,17 +23681,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23676,22 +23699,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A resource server scope.
@@ -24272,8 +24295,8 @@ func (s *SchemaAttributeType) SetStringAttributeConstraints(v *StringAttributeCo
// This exception is thrown when the specified scope does not exist.
type ScopeDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -24290,17 +24313,17 @@ func (s ScopeDoesNotExistException) GoString() string {
func newErrorScopeDoesNotExistException(v protocol.ResponseMetadata) error {
return &ScopeDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ScopeDoesNotExistException) Code() string {
+func (s *ScopeDoesNotExistException) Code() string {
return "ScopeDoesNotExistException"
}
// Message returns the exception's message.
-func (s ScopeDoesNotExistException) Message() string {
+func (s *ScopeDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24308,22 +24331,22 @@ func (s ScopeDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ScopeDoesNotExistException) OrigErr() error {
+func (s *ScopeDoesNotExistException) OrigErr() error {
return nil
}
-func (s ScopeDoesNotExistException) Error() string {
+func (s *ScopeDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ScopeDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ScopeDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ScopeDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ScopeDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SetRiskConfigurationInput struct {
@@ -25176,8 +25199,8 @@ func (s *SmsMfaConfigType) SetSmsConfiguration(v *SmsConfigurationType) *SmsMfaC
// This exception is thrown when the software token TOTP multi-factor authentication
// (MFA) is not enabled for the user pool.
type SoftwareTokenMFANotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25194,17 +25217,17 @@ func (s SoftwareTokenMFANotFoundException) GoString() string {
func newErrorSoftwareTokenMFANotFoundException(v protocol.ResponseMetadata) error {
return &SoftwareTokenMFANotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SoftwareTokenMFANotFoundException) Code() string {
+func (s *SoftwareTokenMFANotFoundException) Code() string {
return "SoftwareTokenMFANotFoundException"
}
// Message returns the exception's message.
-func (s SoftwareTokenMFANotFoundException) Message() string {
+func (s *SoftwareTokenMFANotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25212,22 +25235,22 @@ func (s SoftwareTokenMFANotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SoftwareTokenMFANotFoundException) OrigErr() error {
+func (s *SoftwareTokenMFANotFoundException) OrigErr() error {
return nil
}
-func (s SoftwareTokenMFANotFoundException) Error() string {
+func (s *SoftwareTokenMFANotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SoftwareTokenMFANotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SoftwareTokenMFANotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SoftwareTokenMFANotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SoftwareTokenMFANotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The type used for enabling software token MFA at the user pool level.
@@ -25560,8 +25583,8 @@ func (s TagResourceOutput) GoString() string {
// This exception is thrown when the user has made too many failed attempts
// for a given action (e.g., sign in).
type TooManyFailedAttemptsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns a too many failed
// attempts exception.
@@ -25580,17 +25603,17 @@ func (s TooManyFailedAttemptsException) GoString() string {
func newErrorTooManyFailedAttemptsException(v protocol.ResponseMetadata) error {
return &TooManyFailedAttemptsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyFailedAttemptsException) Code() string {
+func (s *TooManyFailedAttemptsException) Code() string {
return "TooManyFailedAttemptsException"
}
// Message returns the exception's message.
-func (s TooManyFailedAttemptsException) Message() string {
+func (s *TooManyFailedAttemptsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25598,29 +25621,29 @@ func (s TooManyFailedAttemptsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyFailedAttemptsException) OrigErr() error {
+func (s *TooManyFailedAttemptsException) OrigErr() error {
return nil
}
-func (s TooManyFailedAttemptsException) Error() string {
+func (s *TooManyFailedAttemptsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyFailedAttemptsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyFailedAttemptsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyFailedAttemptsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyFailedAttemptsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the user has made too many requests for a given
// operation.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns a too many requests
// exception.
@@ -25639,17 +25662,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25657,22 +25680,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A container for the UI customization information for a user pool's built-in
@@ -25757,8 +25780,8 @@ func (s *UICustomizationType) SetUserPoolId(v string) *UICustomizationType {
// This exception is thrown when the Amazon Cognito service encounters an unexpected
// exception with the AWS Lambda service.
type UnexpectedLambdaException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns an unexpected
// AWS Lambda exception.
@@ -25777,17 +25800,17 @@ func (s UnexpectedLambdaException) GoString() string {
func newErrorUnexpectedLambdaException(v protocol.ResponseMetadata) error {
return &UnexpectedLambdaException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnexpectedLambdaException) Code() string {
+func (s *UnexpectedLambdaException) Code() string {
return "UnexpectedLambdaException"
}
// Message returns the exception's message.
-func (s UnexpectedLambdaException) Message() string {
+func (s *UnexpectedLambdaException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25795,28 +25818,28 @@ func (s UnexpectedLambdaException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnexpectedLambdaException) OrigErr() error {
+func (s *UnexpectedLambdaException) OrigErr() error {
return nil
}
-func (s UnexpectedLambdaException) Error() string {
+func (s *UnexpectedLambdaException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnexpectedLambdaException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnexpectedLambdaException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnexpectedLambdaException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnexpectedLambdaException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the specified identifier is not supported.
type UnsupportedIdentityProviderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -25833,17 +25856,17 @@ func (s UnsupportedIdentityProviderException) GoString() string {
func newErrorUnsupportedIdentityProviderException(v protocol.ResponseMetadata) error {
return &UnsupportedIdentityProviderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedIdentityProviderException) Code() string {
+func (s *UnsupportedIdentityProviderException) Code() string {
return "UnsupportedIdentityProviderException"
}
// Message returns the exception's message.
-func (s UnsupportedIdentityProviderException) Message() string {
+func (s *UnsupportedIdentityProviderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25851,28 +25874,28 @@ func (s UnsupportedIdentityProviderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedIdentityProviderException) OrigErr() error {
+func (s *UnsupportedIdentityProviderException) OrigErr() error {
return nil
}
-func (s UnsupportedIdentityProviderException) Error() string {
+func (s *UnsupportedIdentityProviderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedIdentityProviderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedIdentityProviderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedIdentityProviderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedIdentityProviderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request failed because the user is in an unsupported state.
type UnsupportedUserStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the user is in an unsupported state.
Message_ *string `locationName:"message" type:"string"`
@@ -25890,17 +25913,17 @@ func (s UnsupportedUserStateException) GoString() string {
func newErrorUnsupportedUserStateException(v protocol.ResponseMetadata) error {
return &UnsupportedUserStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedUserStateException) Code() string {
+func (s *UnsupportedUserStateException) Code() string {
return "UnsupportedUserStateException"
}
// Message returns the exception's message.
-func (s UnsupportedUserStateException) Message() string {
+func (s *UnsupportedUserStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25908,22 +25931,22 @@ func (s UnsupportedUserStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedUserStateException) OrigErr() error {
+func (s *UnsupportedUserStateException) OrigErr() error {
return nil
}
-func (s UnsupportedUserStateException) Error() string {
+func (s *UnsupportedUserStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedUserStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedUserStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedUserStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedUserStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -26692,6 +26715,10 @@ type UpdateUserPoolClientInput struct {
// The Amazon Pinpoint analytics configuration for collecting metrics for this
// user pool.
+ //
+ // Cognito User Pools only supports sending events to Amazon Pinpoint projects
+ // in the US East (N. Virginia) us-east-1 Region, regardless of the region in
+ // which the user pool resides.
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
// A list of allowed redirect (callback) URLs for the identity providers.
@@ -27404,8 +27431,8 @@ func (s *UserContextDataType) SetEncodedData(v string) *UserContextDataType {
// This exception is thrown when you are trying to modify a user pool while
// a user import job is in progress for that pool.
type UserImportInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the user pool has an import job running.
Message_ *string `locationName:"message" type:"string"`
@@ -27423,17 +27450,17 @@ func (s UserImportInProgressException) GoString() string {
func newErrorUserImportInProgressException(v protocol.ResponseMetadata) error {
return &UserImportInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserImportInProgressException) Code() string {
+func (s *UserImportInProgressException) Code() string {
return "UserImportInProgressException"
}
// Message returns the exception's message.
-func (s UserImportInProgressException) Message() string {
+func (s *UserImportInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27441,22 +27468,22 @@ func (s UserImportInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserImportInProgressException) OrigErr() error {
+func (s *UserImportInProgressException) OrigErr() error {
return nil
}
-func (s UserImportInProgressException) Error() string {
+func (s *UserImportInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserImportInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserImportInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserImportInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserImportInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The user import job type.
@@ -27617,8 +27644,8 @@ func (s *UserImportJobType) SetUserPoolId(v string) *UserImportJobType {
// This exception is thrown when the Amazon Cognito service encounters a user
// validation exception with the AWS Lambda service.
type UserLambdaValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when the Amazon Cognito service returns a user validation
// exception with the AWS Lambda service.
@@ -27637,17 +27664,17 @@ func (s UserLambdaValidationException) GoString() string {
func newErrorUserLambdaValidationException(v protocol.ResponseMetadata) error {
return &UserLambdaValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserLambdaValidationException) Code() string {
+func (s *UserLambdaValidationException) Code() string {
return "UserLambdaValidationException"
}
// Message returns the exception's message.
-func (s UserLambdaValidationException) Message() string {
+func (s *UserLambdaValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27655,28 +27682,28 @@ func (s UserLambdaValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserLambdaValidationException) OrigErr() error {
+func (s *UserLambdaValidationException) OrigErr() error {
return nil
}
-func (s UserLambdaValidationException) Error() string {
+func (s *UserLambdaValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserLambdaValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserLambdaValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserLambdaValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserLambdaValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when a user is not confirmed successfully.
type UserNotConfirmedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when a user is not confirmed successfully.
Message_ *string `locationName:"message" type:"string"`
@@ -27694,17 +27721,17 @@ func (s UserNotConfirmedException) GoString() string {
func newErrorUserNotConfirmedException(v protocol.ResponseMetadata) error {
return &UserNotConfirmedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserNotConfirmedException) Code() string {
+func (s *UserNotConfirmedException) Code() string {
return "UserNotConfirmedException"
}
// Message returns the exception's message.
-func (s UserNotConfirmedException) Message() string {
+func (s *UserNotConfirmedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27712,28 +27739,28 @@ func (s UserNotConfirmedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserNotConfirmedException) OrigErr() error {
+func (s *UserNotConfirmedException) OrigErr() error {
return nil
}
-func (s UserNotConfirmedException) Error() string {
+func (s *UserNotConfirmedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserNotConfirmedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserNotConfirmedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserNotConfirmedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserNotConfirmedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when a user is not found.
type UserNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when a user is not found.
Message_ *string `locationName:"message" type:"string"`
@@ -27751,17 +27778,17 @@ func (s UserNotFoundException) GoString() string {
func newErrorUserNotFoundException(v protocol.ResponseMetadata) error {
return &UserNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserNotFoundException) Code() string {
+func (s *UserNotFoundException) Code() string {
return "UserNotFoundException"
}
// Message returns the exception's message.
-func (s UserNotFoundException) Message() string {
+func (s *UserNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27769,28 +27796,28 @@ func (s UserNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserNotFoundException) OrigErr() error {
+func (s *UserNotFoundException) OrigErr() error {
return nil
}
-func (s UserNotFoundException) Error() string {
+func (s *UserNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when user pool add-ons are not enabled.
type UserPoolAddOnNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -27807,17 +27834,17 @@ func (s UserPoolAddOnNotEnabledException) GoString() string {
func newErrorUserPoolAddOnNotEnabledException(v protocol.ResponseMetadata) error {
return &UserPoolAddOnNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserPoolAddOnNotEnabledException) Code() string {
+func (s *UserPoolAddOnNotEnabledException) Code() string {
return "UserPoolAddOnNotEnabledException"
}
// Message returns the exception's message.
-func (s UserPoolAddOnNotEnabledException) Message() string {
+func (s *UserPoolAddOnNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27825,22 +27852,22 @@ func (s UserPoolAddOnNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserPoolAddOnNotEnabledException) OrigErr() error {
+func (s *UserPoolAddOnNotEnabledException) OrigErr() error {
return nil
}
-func (s UserPoolAddOnNotEnabledException) Error() string {
+func (s *UserPoolAddOnNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserPoolAddOnNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserPoolAddOnNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserPoolAddOnNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserPoolAddOnNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The user pool add-ons type.
@@ -27953,6 +27980,10 @@ type UserPoolClientType struct {
AllowedOAuthScopes []*string `type:"list"`
// The Amazon Pinpoint analytics configuration for the user pool client.
+ //
+ // Cognito User Pools only supports sending events to Amazon Pinpoint projects
+ // in the US East (N. Virginia) us-east-1 Region, regardless of the region in
+ // which the user pool resides.
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
// A list of allowed redirect (callback) URLs for the identity providers.
@@ -28323,8 +28354,8 @@ func (s *UserPoolPolicyType) SetPasswordPolicy(v *PasswordPolicyType) *UserPoolP
// This exception is thrown when a user pool tag cannot be set or updated.
type UserPoolTaggingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28341,17 +28372,17 @@ func (s UserPoolTaggingException) GoString() string {
func newErrorUserPoolTaggingException(v protocol.ResponseMetadata) error {
return &UserPoolTaggingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserPoolTaggingException) Code() string {
+func (s *UserPoolTaggingException) Code() string {
return "UserPoolTaggingException"
}
// Message returns the exception's message.
-func (s UserPoolTaggingException) Message() string {
+func (s *UserPoolTaggingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28359,22 +28390,22 @@ func (s UserPoolTaggingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserPoolTaggingException) OrigErr() error {
+func (s *UserPoolTaggingException) OrigErr() error {
return nil
}
-func (s UserPoolTaggingException) Error() string {
+func (s *UserPoolTaggingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserPoolTaggingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserPoolTaggingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserPoolTaggingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserPoolTaggingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A container for information about the user pool.
@@ -28845,8 +28876,8 @@ func (s *UsernameConfigurationType) SetCaseSensitive(v bool) *UsernameConfigurat
// This exception is thrown when Amazon Cognito encounters a user name that
// already exists in the user pool.
type UsernameExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message returned when Amazon Cognito throws a user name exists exception.
Message_ *string `locationName:"message" type:"string"`
@@ -28864,17 +28895,17 @@ func (s UsernameExistsException) GoString() string {
func newErrorUsernameExistsException(v protocol.ResponseMetadata) error {
return &UsernameExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UsernameExistsException) Code() string {
+func (s *UsernameExistsException) Code() string {
return "UsernameExistsException"
}
// Message returns the exception's message.
-func (s UsernameExistsException) Message() string {
+func (s *UsernameExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28882,22 +28913,22 @@ func (s UsernameExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UsernameExistsException) OrigErr() error {
+func (s *UsernameExistsException) OrigErr() error {
return nil
}
-func (s UsernameExistsException) Error() string {
+func (s *UsernameExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UsernameExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UsernameExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UsernameExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UsernameExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The template for verification messages.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
index 42c7282c8c1..f767f1baf2d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
@@ -10602,8 +10602,8 @@ func (s *ConformancePackStatusDetail) SetStackArn(v string) *ConformancePackStat
// You have specified a template that is not valid or supported.
type ConformancePackTemplateValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10620,17 +10620,17 @@ func (s ConformancePackTemplateValidationException) GoString() string {
func newErrorConformancePackTemplateValidationException(v protocol.ResponseMetadata) error {
return &ConformancePackTemplateValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConformancePackTemplateValidationException) Code() string {
+func (s *ConformancePackTemplateValidationException) Code() string {
return "ConformancePackTemplateValidationException"
}
// Message returns the exception's message.
-func (s ConformancePackTemplateValidationException) Message() string {
+func (s *ConformancePackTemplateValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10638,22 +10638,22 @@ func (s ConformancePackTemplateValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConformancePackTemplateValidationException) OrigErr() error {
+func (s *ConformancePackTemplateValidationException) OrigErr() error {
return nil
}
-func (s ConformancePackTemplateValidationException) Error() string {
+func (s *ConformancePackTemplateValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConformancePackTemplateValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConformancePackTemplateValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConformancePackTemplateValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConformancePackTemplateValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteAggregationAuthorizationInput struct {
@@ -15624,8 +15624,8 @@ func (s *GroupedResourceCount) SetResourceCount(v int64) *GroupedResourceCount {
// Your Amazon S3 bucket policy does not permit AWS Config to write to it.
type InsufficientDeliveryPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15642,17 +15642,17 @@ func (s InsufficientDeliveryPolicyException) GoString() string {
func newErrorInsufficientDeliveryPolicyException(v protocol.ResponseMetadata) error {
return &InsufficientDeliveryPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientDeliveryPolicyException) Code() string {
+func (s *InsufficientDeliveryPolicyException) Code() string {
return "InsufficientDeliveryPolicyException"
}
// Message returns the exception's message.
-func (s InsufficientDeliveryPolicyException) Message() string {
+func (s *InsufficientDeliveryPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15660,22 +15660,22 @@ func (s InsufficientDeliveryPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientDeliveryPolicyException) OrigErr() error {
+func (s *InsufficientDeliveryPolicyException) OrigErr() error {
return nil
}
-func (s InsufficientDeliveryPolicyException) Error() string {
+func (s *InsufficientDeliveryPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientDeliveryPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientDeliveryPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientDeliveryPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientDeliveryPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Indicates one of the following errors:
@@ -15694,8 +15694,8 @@ func (s InsufficientDeliveryPolicyException) RequestID() string {
// pack cannot be created because you do not have permissions: To call IAM
// GetRole action or create a service linked role. To read Amazon S3 bucket.
type InsufficientPermissionsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15712,17 +15712,17 @@ func (s InsufficientPermissionsException) GoString() string {
func newErrorInsufficientPermissionsException(v protocol.ResponseMetadata) error {
return &InsufficientPermissionsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientPermissionsException) Code() string {
+func (s *InsufficientPermissionsException) Code() string {
return "InsufficientPermissionsException"
}
// Message returns the exception's message.
-func (s InsufficientPermissionsException) Message() string {
+func (s *InsufficientPermissionsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15730,28 +15730,28 @@ func (s InsufficientPermissionsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientPermissionsException) OrigErr() error {
+func (s *InsufficientPermissionsException) OrigErr() error {
return nil
}
-func (s InsufficientPermissionsException) Error() string {
+func (s *InsufficientPermissionsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientPermissionsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientPermissionsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientPermissionsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientPermissionsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have provided a configuration recorder name that is not valid.
type InvalidConfigurationRecorderNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15768,17 +15768,17 @@ func (s InvalidConfigurationRecorderNameException) GoString() string {
func newErrorInvalidConfigurationRecorderNameException(v protocol.ResponseMetadata) error {
return &InvalidConfigurationRecorderNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidConfigurationRecorderNameException) Code() string {
+func (s *InvalidConfigurationRecorderNameException) Code() string {
return "InvalidConfigurationRecorderNameException"
}
// Message returns the exception's message.
-func (s InvalidConfigurationRecorderNameException) Message() string {
+func (s *InvalidConfigurationRecorderNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15786,28 +15786,28 @@ func (s InvalidConfigurationRecorderNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidConfigurationRecorderNameException) OrigErr() error {
+func (s *InvalidConfigurationRecorderNameException) OrigErr() error {
return nil
}
-func (s InvalidConfigurationRecorderNameException) Error() string {
+func (s *InvalidConfigurationRecorderNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidConfigurationRecorderNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidConfigurationRecorderNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidConfigurationRecorderNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidConfigurationRecorderNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified delivery channel name is not valid.
type InvalidDeliveryChannelNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15824,17 +15824,17 @@ func (s InvalidDeliveryChannelNameException) GoString() string {
func newErrorInvalidDeliveryChannelNameException(v protocol.ResponseMetadata) error {
return &InvalidDeliveryChannelNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeliveryChannelNameException) Code() string {
+func (s *InvalidDeliveryChannelNameException) Code() string {
return "InvalidDeliveryChannelNameException"
}
// Message returns the exception's message.
-func (s InvalidDeliveryChannelNameException) Message() string {
+func (s *InvalidDeliveryChannelNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15842,28 +15842,28 @@ func (s InvalidDeliveryChannelNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeliveryChannelNameException) OrigErr() error {
+func (s *InvalidDeliveryChannelNameException) OrigErr() error {
return nil
}
-func (s InvalidDeliveryChannelNameException) Error() string {
+func (s *InvalidDeliveryChannelNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeliveryChannelNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeliveryChannelNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeliveryChannelNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeliveryChannelNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The syntax of the query is incorrect.
type InvalidExpressionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15880,17 +15880,17 @@ func (s InvalidExpressionException) GoString() string {
func newErrorInvalidExpressionException(v protocol.ResponseMetadata) error {
return &InvalidExpressionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidExpressionException) Code() string {
+func (s *InvalidExpressionException) Code() string {
return "InvalidExpressionException"
}
// Message returns the exception's message.
-func (s InvalidExpressionException) Message() string {
+func (s *InvalidExpressionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15898,28 +15898,28 @@ func (s InvalidExpressionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidExpressionException) OrigErr() error {
+func (s *InvalidExpressionException) OrigErr() error {
return nil
}
-func (s InvalidExpressionException) Error() string {
+func (s *InvalidExpressionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidExpressionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidExpressionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidExpressionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidExpressionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified limit is outside the allowable range.
type InvalidLimitException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15936,17 +15936,17 @@ func (s InvalidLimitException) GoString() string {
func newErrorInvalidLimitException(v protocol.ResponseMetadata) error {
return &InvalidLimitException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLimitException) Code() string {
+func (s *InvalidLimitException) Code() string {
return "InvalidLimitException"
}
// Message returns the exception's message.
-func (s InvalidLimitException) Message() string {
+func (s *InvalidLimitException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15954,29 +15954,29 @@ func (s InvalidLimitException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLimitException) OrigErr() error {
+func (s *InvalidLimitException) OrigErr() error {
return nil
}
-func (s InvalidLimitException) Error() string {
+func (s *InvalidLimitException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLimitException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLimitException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLimitException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLimitException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified next token is invalid. Specify the nextToken string that was
// returned in the previous response to get the next page of results.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15993,17 +15993,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16011,29 +16011,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more of the specified parameters are invalid. Verify that your parameters
// are valid and try again.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16050,17 +16050,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16068,29 +16068,29 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Config throws an exception if the recording group does not contain a
// valid list of resource types. Invalid values might also be incorrectly formatted.
type InvalidRecordingGroupException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16107,17 +16107,17 @@ func (s InvalidRecordingGroupException) GoString() string {
func newErrorInvalidRecordingGroupException(v protocol.ResponseMetadata) error {
return &InvalidRecordingGroupException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRecordingGroupException) Code() string {
+func (s *InvalidRecordingGroupException) Code() string {
return "InvalidRecordingGroupException"
}
// Message returns the exception's message.
-func (s InvalidRecordingGroupException) Message() string {
+func (s *InvalidRecordingGroupException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16125,28 +16125,28 @@ func (s InvalidRecordingGroupException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRecordingGroupException) OrigErr() error {
+func (s *InvalidRecordingGroupException) OrigErr() error {
return nil
}
-func (s InvalidRecordingGroupException) Error() string {
+func (s *InvalidRecordingGroupException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRecordingGroupException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRecordingGroupException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRecordingGroupException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRecordingGroupException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified ResultToken is invalid.
type InvalidResultTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16163,17 +16163,17 @@ func (s InvalidResultTokenException) GoString() string {
func newErrorInvalidResultTokenException(v protocol.ResponseMetadata) error {
return &InvalidResultTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResultTokenException) Code() string {
+func (s *InvalidResultTokenException) Code() string {
return "InvalidResultTokenException"
}
// Message returns the exception's message.
-func (s InvalidResultTokenException) Message() string {
+func (s *InvalidResultTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16181,28 +16181,28 @@ func (s InvalidResultTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResultTokenException) OrigErr() error {
+func (s *InvalidResultTokenException) OrigErr() error {
return nil
}
-func (s InvalidResultTokenException) Error() string {
+func (s *InvalidResultTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResultTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResultTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResultTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResultTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have provided a null or empty role ARN.
type InvalidRoleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16219,17 +16219,17 @@ func (s InvalidRoleException) GoString() string {
func newErrorInvalidRoleException(v protocol.ResponseMetadata) error {
return &InvalidRoleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRoleException) Code() string {
+func (s *InvalidRoleException) Code() string {
return "InvalidRoleException"
}
// Message returns the exception's message.
-func (s InvalidRoleException) Message() string {
+func (s *InvalidRoleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16237,28 +16237,28 @@ func (s InvalidRoleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRoleException) OrigErr() error {
+func (s *InvalidRoleException) OrigErr() error {
return nil
}
-func (s InvalidRoleException) Error() string {
+func (s *InvalidRoleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRoleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRoleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRoleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRoleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified Amazon S3 key prefix is not valid.
type InvalidS3KeyPrefixException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16275,17 +16275,17 @@ func (s InvalidS3KeyPrefixException) GoString() string {
func newErrorInvalidS3KeyPrefixException(v protocol.ResponseMetadata) error {
return &InvalidS3KeyPrefixException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidS3KeyPrefixException) Code() string {
+func (s *InvalidS3KeyPrefixException) Code() string {
return "InvalidS3KeyPrefixException"
}
// Message returns the exception's message.
-func (s InvalidS3KeyPrefixException) Message() string {
+func (s *InvalidS3KeyPrefixException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16293,28 +16293,28 @@ func (s InvalidS3KeyPrefixException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidS3KeyPrefixException) OrigErr() error {
+func (s *InvalidS3KeyPrefixException) OrigErr() error {
return nil
}
-func (s InvalidS3KeyPrefixException) Error() string {
+func (s *InvalidS3KeyPrefixException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidS3KeyPrefixException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidS3KeyPrefixException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidS3KeyPrefixException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidS3KeyPrefixException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified Amazon SNS topic does not exist.
type InvalidSNSTopicARNException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16331,17 +16331,17 @@ func (s InvalidSNSTopicARNException) GoString() string {
func newErrorInvalidSNSTopicARNException(v protocol.ResponseMetadata) error {
return &InvalidSNSTopicARNException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSNSTopicARNException) Code() string {
+func (s *InvalidSNSTopicARNException) Code() string {
return "InvalidSNSTopicARNException"
}
// Message returns the exception's message.
-func (s InvalidSNSTopicARNException) Message() string {
+func (s *InvalidSNSTopicARNException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16349,29 +16349,29 @@ func (s InvalidSNSTopicARNException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSNSTopicARNException) OrigErr() error {
+func (s *InvalidSNSTopicARNException) OrigErr() error {
return nil
}
-func (s InvalidSNSTopicARNException) Error() string {
+func (s *InvalidSNSTopicARNException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSNSTopicARNException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSNSTopicARNException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSNSTopicARNException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSNSTopicARNException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified time range is not valid. The earlier time is not chronologically
// before the later time.
type InvalidTimeRangeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16388,17 +16388,17 @@ func (s InvalidTimeRangeException) GoString() string {
func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error {
return &InvalidTimeRangeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTimeRangeException) Code() string {
+func (s *InvalidTimeRangeException) Code() string {
return "InvalidTimeRangeException"
}
// Message returns the exception's message.
-func (s InvalidTimeRangeException) Message() string {
+func (s *InvalidTimeRangeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16406,29 +16406,29 @@ func (s InvalidTimeRangeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTimeRangeException) OrigErr() error {
+func (s *InvalidTimeRangeException) OrigErr() error {
return nil
}
-func (s InvalidTimeRangeException) Error() string {
+func (s *InvalidTimeRangeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTimeRangeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTimeRangeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTimeRangeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTimeRangeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot delete the delivery channel you specified because the configuration
// recorder is running.
type LastDeliveryChannelDeleteFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16445,17 +16445,17 @@ func (s LastDeliveryChannelDeleteFailedException) GoString() string {
func newErrorLastDeliveryChannelDeleteFailedException(v protocol.ResponseMetadata) error {
return &LastDeliveryChannelDeleteFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LastDeliveryChannelDeleteFailedException) Code() string {
+func (s *LastDeliveryChannelDeleteFailedException) Code() string {
return "LastDeliveryChannelDeleteFailedException"
}
// Message returns the exception's message.
-func (s LastDeliveryChannelDeleteFailedException) Message() string {
+func (s *LastDeliveryChannelDeleteFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16463,22 +16463,22 @@ func (s LastDeliveryChannelDeleteFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LastDeliveryChannelDeleteFailedException) OrigErr() error {
+func (s *LastDeliveryChannelDeleteFailedException) OrigErr() error {
return nil
}
-func (s LastDeliveryChannelDeleteFailedException) Error() string {
+func (s *LastDeliveryChannelDeleteFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LastDeliveryChannelDeleteFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LastDeliveryChannelDeleteFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LastDeliveryChannelDeleteFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LastDeliveryChannelDeleteFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// For StartConfigRulesEvaluation API, this exception is thrown if an evaluation
@@ -16488,8 +16488,8 @@ func (s LastDeliveryChannelDeleteFailedException) RequestID() string {
// For PutConfigurationAggregator API, this exception is thrown if the number
// of accounts and aggregators exceeds the limit.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16506,17 +16506,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16524,22 +16524,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAggregateDiscoveredResourcesInput struct {
@@ -16890,8 +16890,8 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
// You have reached the limit (100,000) of active custom resource types in your
// account. Delete unused resources using DeleteResourceConfig.
type MaxActiveResourcesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16908,17 +16908,17 @@ func (s MaxActiveResourcesExceededException) GoString() string {
func newErrorMaxActiveResourcesExceededException(v protocol.ResponseMetadata) error {
return &MaxActiveResourcesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxActiveResourcesExceededException) Code() string {
+func (s *MaxActiveResourcesExceededException) Code() string {
return "MaxActiveResourcesExceededException"
}
// Message returns the exception's message.
-func (s MaxActiveResourcesExceededException) Message() string {
+func (s *MaxActiveResourcesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16926,30 +16926,30 @@ func (s MaxActiveResourcesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxActiveResourcesExceededException) OrigErr() error {
+func (s *MaxActiveResourcesExceededException) OrigErr() error {
return nil
}
-func (s MaxActiveResourcesExceededException) Error() string {
+func (s *MaxActiveResourcesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxActiveResourcesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxActiveResourcesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxActiveResourcesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxActiveResourcesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Failed to add the AWS Config rule because the account already contains the
// maximum number of 150 rules. Consider deleting any deactivated rules before
// you add new rules.
type MaxNumberOfConfigRulesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16966,17 +16966,17 @@ func (s MaxNumberOfConfigRulesExceededException) GoString() string {
func newErrorMaxNumberOfConfigRulesExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfConfigRulesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfConfigRulesExceededException) Code() string {
+func (s *MaxNumberOfConfigRulesExceededException) Code() string {
return "MaxNumberOfConfigRulesExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfConfigRulesExceededException) Message() string {
+func (s *MaxNumberOfConfigRulesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16984,28 +16984,28 @@ func (s MaxNumberOfConfigRulesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfConfigRulesExceededException) OrigErr() error {
+func (s *MaxNumberOfConfigRulesExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfConfigRulesExceededException) Error() string {
+func (s *MaxNumberOfConfigRulesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfConfigRulesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfConfigRulesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfConfigRulesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfConfigRulesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the limit of the number of recorders you can create.
type MaxNumberOfConfigurationRecordersExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17022,17 +17022,17 @@ func (s MaxNumberOfConfigurationRecordersExceededException) GoString() string {
func newErrorMaxNumberOfConfigurationRecordersExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfConfigurationRecordersExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfConfigurationRecordersExceededException) Code() string {
+func (s *MaxNumberOfConfigurationRecordersExceededException) Code() string {
return "MaxNumberOfConfigurationRecordersExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfConfigurationRecordersExceededException) Message() string {
+func (s *MaxNumberOfConfigurationRecordersExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17040,29 +17040,29 @@ func (s MaxNumberOfConfigurationRecordersExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfConfigurationRecordersExceededException) OrigErr() error {
+func (s *MaxNumberOfConfigurationRecordersExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfConfigurationRecordersExceededException) Error() string {
+func (s *MaxNumberOfConfigurationRecordersExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfConfigurationRecordersExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfConfigurationRecordersExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfConfigurationRecordersExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfConfigurationRecordersExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the limit (6) of the number of conformance packs in an account
// (6 conformance pack with 25 AWS Config rules per pack).
type MaxNumberOfConformancePacksExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17079,17 +17079,17 @@ func (s MaxNumberOfConformancePacksExceededException) GoString() string {
func newErrorMaxNumberOfConformancePacksExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfConformancePacksExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfConformancePacksExceededException) Code() string {
+func (s *MaxNumberOfConformancePacksExceededException) Code() string {
return "MaxNumberOfConformancePacksExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfConformancePacksExceededException) Message() string {
+func (s *MaxNumberOfConformancePacksExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17097,28 +17097,28 @@ func (s MaxNumberOfConformancePacksExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfConformancePacksExceededException) OrigErr() error {
+func (s *MaxNumberOfConformancePacksExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfConformancePacksExceededException) Error() string {
+func (s *MaxNumberOfConformancePacksExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfConformancePacksExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfConformancePacksExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfConformancePacksExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfConformancePacksExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the limit of the number of delivery channels you can create.
type MaxNumberOfDeliveryChannelsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17135,17 +17135,17 @@ func (s MaxNumberOfDeliveryChannelsExceededException) GoString() string {
func newErrorMaxNumberOfDeliveryChannelsExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfDeliveryChannelsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfDeliveryChannelsExceededException) Code() string {
+func (s *MaxNumberOfDeliveryChannelsExceededException) Code() string {
return "MaxNumberOfDeliveryChannelsExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfDeliveryChannelsExceededException) Message() string {
+func (s *MaxNumberOfDeliveryChannelsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17153,29 +17153,29 @@ func (s MaxNumberOfDeliveryChannelsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfDeliveryChannelsExceededException) OrigErr() error {
+func (s *MaxNumberOfDeliveryChannelsExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfDeliveryChannelsExceededException) Error() string {
+func (s *MaxNumberOfDeliveryChannelsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfDeliveryChannelsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfDeliveryChannelsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfDeliveryChannelsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfDeliveryChannelsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the limit of the number of organization config rules you
// can create.
type MaxNumberOfOrganizationConfigRulesExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17192,17 +17192,17 @@ func (s MaxNumberOfOrganizationConfigRulesExceededException) GoString() string {
func newErrorMaxNumberOfOrganizationConfigRulesExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfOrganizationConfigRulesExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfOrganizationConfigRulesExceededException) Code() string {
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) Code() string {
return "MaxNumberOfOrganizationConfigRulesExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfOrganizationConfigRulesExceededException) Message() string {
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17210,30 +17210,30 @@ func (s MaxNumberOfOrganizationConfigRulesExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfOrganizationConfigRulesExceededException) OrigErr() error {
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfOrganizationConfigRulesExceededException) Error() string {
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfOrganizationConfigRulesExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfOrganizationConfigRulesExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfOrganizationConfigRulesExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the limit (6) of the number of organization conformance
// packs in an account (6 conformance pack with 25 AWS Config rules per pack
// per account).
type MaxNumberOfOrganizationConformancePacksExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17250,17 +17250,17 @@ func (s MaxNumberOfOrganizationConformancePacksExceededException) GoString() str
func newErrorMaxNumberOfOrganizationConformancePacksExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfOrganizationConformancePacksExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfOrganizationConformancePacksExceededException) Code() string {
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) Code() string {
return "MaxNumberOfOrganizationConformancePacksExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfOrganizationConformancePacksExceededException) Message() string {
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17268,29 +17268,29 @@ func (s MaxNumberOfOrganizationConformancePacksExceededException) Message() stri
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfOrganizationConformancePacksExceededException) OrigErr() error {
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfOrganizationConformancePacksExceededException) Error() string {
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfOrganizationConformancePacksExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfOrganizationConformancePacksExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfOrganizationConformancePacksExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Failed to add the retention configuration because a retention configuration
// with that name already exists.
type MaxNumberOfRetentionConfigurationsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17307,17 +17307,17 @@ func (s MaxNumberOfRetentionConfigurationsExceededException) GoString() string {
func newErrorMaxNumberOfRetentionConfigurationsExceededException(v protocol.ResponseMetadata) error {
return &MaxNumberOfRetentionConfigurationsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxNumberOfRetentionConfigurationsExceededException) Code() string {
+func (s *MaxNumberOfRetentionConfigurationsExceededException) Code() string {
return "MaxNumberOfRetentionConfigurationsExceededException"
}
// Message returns the exception's message.
-func (s MaxNumberOfRetentionConfigurationsExceededException) Message() string {
+func (s *MaxNumberOfRetentionConfigurationsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17325,22 +17325,22 @@ func (s MaxNumberOfRetentionConfigurationsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxNumberOfRetentionConfigurationsExceededException) OrigErr() error {
+func (s *MaxNumberOfRetentionConfigurationsExceededException) OrigErr() error {
return nil
}
-func (s MaxNumberOfRetentionConfigurationsExceededException) Error() string {
+func (s *MaxNumberOfRetentionConfigurationsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxNumberOfRetentionConfigurationsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxNumberOfRetentionConfigurationsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxNumberOfRetentionConfigurationsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxNumberOfRetentionConfigurationsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Organization config rule creation or deletion status in each member account.
@@ -17450,8 +17450,8 @@ func (s *MemberAccountStatus) SetMemberAccountRuleStatus(v string) *MemberAccoun
// There are no configuration recorders available to provide the role needed
// to describe your resources. Create a configuration recorder.
type NoAvailableConfigurationRecorderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17468,17 +17468,17 @@ func (s NoAvailableConfigurationRecorderException) GoString() string {
func newErrorNoAvailableConfigurationRecorderException(v protocol.ResponseMetadata) error {
return &NoAvailableConfigurationRecorderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAvailableConfigurationRecorderException) Code() string {
+func (s *NoAvailableConfigurationRecorderException) Code() string {
return "NoAvailableConfigurationRecorderException"
}
// Message returns the exception's message.
-func (s NoAvailableConfigurationRecorderException) Message() string {
+func (s *NoAvailableConfigurationRecorderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17486,28 +17486,28 @@ func (s NoAvailableConfigurationRecorderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAvailableConfigurationRecorderException) OrigErr() error {
+func (s *NoAvailableConfigurationRecorderException) OrigErr() error {
return nil
}
-func (s NoAvailableConfigurationRecorderException) Error() string {
+func (s *NoAvailableConfigurationRecorderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAvailableConfigurationRecorderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAvailableConfigurationRecorderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAvailableConfigurationRecorderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAvailableConfigurationRecorderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There is no delivery channel available to record configurations.
type NoAvailableDeliveryChannelException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17524,17 +17524,17 @@ func (s NoAvailableDeliveryChannelException) GoString() string {
func newErrorNoAvailableDeliveryChannelException(v protocol.ResponseMetadata) error {
return &NoAvailableDeliveryChannelException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAvailableDeliveryChannelException) Code() string {
+func (s *NoAvailableDeliveryChannelException) Code() string {
return "NoAvailableDeliveryChannelException"
}
// Message returns the exception's message.
-func (s NoAvailableDeliveryChannelException) Message() string {
+func (s *NoAvailableDeliveryChannelException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17542,28 +17542,28 @@ func (s NoAvailableDeliveryChannelException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAvailableDeliveryChannelException) OrigErr() error {
+func (s *NoAvailableDeliveryChannelException) OrigErr() error {
return nil
}
-func (s NoAvailableDeliveryChannelException) Error() string {
+func (s *NoAvailableDeliveryChannelException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAvailableDeliveryChannelException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAvailableDeliveryChannelException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAvailableDeliveryChannelException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAvailableDeliveryChannelException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Organization is no longer available.
type NoAvailableOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17580,17 +17580,17 @@ func (s NoAvailableOrganizationException) GoString() string {
func newErrorNoAvailableOrganizationException(v protocol.ResponseMetadata) error {
return &NoAvailableOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAvailableOrganizationException) Code() string {
+func (s *NoAvailableOrganizationException) Code() string {
return "NoAvailableOrganizationException"
}
// Message returns the exception's message.
-func (s NoAvailableOrganizationException) Message() string {
+func (s *NoAvailableOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17598,28 +17598,28 @@ func (s NoAvailableOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAvailableOrganizationException) OrigErr() error {
+func (s *NoAvailableOrganizationException) OrigErr() error {
return nil
}
-func (s NoAvailableOrganizationException) Error() string {
+func (s *NoAvailableOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAvailableOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAvailableOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAvailableOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAvailableOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There is no configuration recorder running.
type NoRunningConfigurationRecorderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17636,17 +17636,17 @@ func (s NoRunningConfigurationRecorderException) GoString() string {
func newErrorNoRunningConfigurationRecorderException(v protocol.ResponseMetadata) error {
return &NoRunningConfigurationRecorderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoRunningConfigurationRecorderException) Code() string {
+func (s *NoRunningConfigurationRecorderException) Code() string {
return "NoRunningConfigurationRecorderException"
}
// Message returns the exception's message.
-func (s NoRunningConfigurationRecorderException) Message() string {
+func (s *NoRunningConfigurationRecorderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17654,28 +17654,28 @@ func (s NoRunningConfigurationRecorderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoRunningConfigurationRecorderException) OrigErr() error {
+func (s *NoRunningConfigurationRecorderException) OrigErr() error {
return nil
}
-func (s NoRunningConfigurationRecorderException) Error() string {
+func (s *NoRunningConfigurationRecorderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoRunningConfigurationRecorderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoRunningConfigurationRecorderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoRunningConfigurationRecorderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoRunningConfigurationRecorderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified Amazon S3 bucket does not exist.
type NoSuchBucketException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17692,17 +17692,17 @@ func (s NoSuchBucketException) GoString() string {
func newErrorNoSuchBucketException(v protocol.ResponseMetadata) error {
return &NoSuchBucketException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchBucketException) Code() string {
+func (s *NoSuchBucketException) Code() string {
return "NoSuchBucketException"
}
// Message returns the exception's message.
-func (s NoSuchBucketException) Message() string {
+func (s *NoSuchBucketException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17710,29 +17710,29 @@ func (s NoSuchBucketException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchBucketException) OrigErr() error {
+func (s *NoSuchBucketException) OrigErr() error {
return nil
}
-func (s NoSuchBucketException) Error() string {
+func (s *NoSuchBucketException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchBucketException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchBucketException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchBucketException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchBucketException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more AWS Config rules in the request are invalid. Verify that the
// rule names are correct and try again.
type NoSuchConfigRuleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17749,17 +17749,17 @@ func (s NoSuchConfigRuleException) GoString() string {
func newErrorNoSuchConfigRuleException(v protocol.ResponseMetadata) error {
return &NoSuchConfigRuleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchConfigRuleException) Code() string {
+func (s *NoSuchConfigRuleException) Code() string {
return "NoSuchConfigRuleException"
}
// Message returns the exception's message.
-func (s NoSuchConfigRuleException) Message() string {
+func (s *NoSuchConfigRuleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17767,28 +17767,28 @@ func (s NoSuchConfigRuleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchConfigRuleException) OrigErr() error {
+func (s *NoSuchConfigRuleException) OrigErr() error {
return nil
}
-func (s NoSuchConfigRuleException) Error() string {
+func (s *NoSuchConfigRuleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchConfigRuleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchConfigRuleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchConfigRuleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchConfigRuleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Config rule that you passed in the filter does not exist.
type NoSuchConfigRuleInConformancePackException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17805,17 +17805,17 @@ func (s NoSuchConfigRuleInConformancePackException) GoString() string {
func newErrorNoSuchConfigRuleInConformancePackException(v protocol.ResponseMetadata) error {
return &NoSuchConfigRuleInConformancePackException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchConfigRuleInConformancePackException) Code() string {
+func (s *NoSuchConfigRuleInConformancePackException) Code() string {
return "NoSuchConfigRuleInConformancePackException"
}
// Message returns the exception's message.
-func (s NoSuchConfigRuleInConformancePackException) Message() string {
+func (s *NoSuchConfigRuleInConformancePackException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17823,28 +17823,28 @@ func (s NoSuchConfigRuleInConformancePackException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchConfigRuleInConformancePackException) OrigErr() error {
+func (s *NoSuchConfigRuleInConformancePackException) OrigErr() error {
return nil
}
-func (s NoSuchConfigRuleInConformancePackException) Error() string {
+func (s *NoSuchConfigRuleInConformancePackException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchConfigRuleInConformancePackException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchConfigRuleInConformancePackException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchConfigRuleInConformancePackException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchConfigRuleInConformancePackException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified a configuration aggregator that does not exist.
type NoSuchConfigurationAggregatorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17861,17 +17861,17 @@ func (s NoSuchConfigurationAggregatorException) GoString() string {
func newErrorNoSuchConfigurationAggregatorException(v protocol.ResponseMetadata) error {
return &NoSuchConfigurationAggregatorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchConfigurationAggregatorException) Code() string {
+func (s *NoSuchConfigurationAggregatorException) Code() string {
return "NoSuchConfigurationAggregatorException"
}
// Message returns the exception's message.
-func (s NoSuchConfigurationAggregatorException) Message() string {
+func (s *NoSuchConfigurationAggregatorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17879,28 +17879,28 @@ func (s NoSuchConfigurationAggregatorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchConfigurationAggregatorException) OrigErr() error {
+func (s *NoSuchConfigurationAggregatorException) OrigErr() error {
return nil
}
-func (s NoSuchConfigurationAggregatorException) Error() string {
+func (s *NoSuchConfigurationAggregatorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchConfigurationAggregatorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchConfigurationAggregatorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchConfigurationAggregatorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchConfigurationAggregatorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified a configuration recorder that does not exist.
type NoSuchConfigurationRecorderException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17917,17 +17917,17 @@ func (s NoSuchConfigurationRecorderException) GoString() string {
func newErrorNoSuchConfigurationRecorderException(v protocol.ResponseMetadata) error {
return &NoSuchConfigurationRecorderException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchConfigurationRecorderException) Code() string {
+func (s *NoSuchConfigurationRecorderException) Code() string {
return "NoSuchConfigurationRecorderException"
}
// Message returns the exception's message.
-func (s NoSuchConfigurationRecorderException) Message() string {
+func (s *NoSuchConfigurationRecorderException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17935,28 +17935,28 @@ func (s NoSuchConfigurationRecorderException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchConfigurationRecorderException) OrigErr() error {
+func (s *NoSuchConfigurationRecorderException) OrigErr() error {
return nil
}
-func (s NoSuchConfigurationRecorderException) Error() string {
+func (s *NoSuchConfigurationRecorderException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchConfigurationRecorderException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchConfigurationRecorderException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchConfigurationRecorderException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchConfigurationRecorderException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You specified one or more conformance packs that do not exist.
type NoSuchConformancePackException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17973,17 +17973,17 @@ func (s NoSuchConformancePackException) GoString() string {
func newErrorNoSuchConformancePackException(v protocol.ResponseMetadata) error {
return &NoSuchConformancePackException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchConformancePackException) Code() string {
+func (s *NoSuchConformancePackException) Code() string {
return "NoSuchConformancePackException"
}
// Message returns the exception's message.
-func (s NoSuchConformancePackException) Message() string {
+func (s *NoSuchConformancePackException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17991,28 +17991,28 @@ func (s NoSuchConformancePackException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchConformancePackException) OrigErr() error {
+func (s *NoSuchConformancePackException) OrigErr() error {
return nil
}
-func (s NoSuchConformancePackException) Error() string {
+func (s *NoSuchConformancePackException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchConformancePackException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchConformancePackException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchConformancePackException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchConformancePackException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified a delivery channel that does not exist.
type NoSuchDeliveryChannelException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18029,17 +18029,17 @@ func (s NoSuchDeliveryChannelException) GoString() string {
func newErrorNoSuchDeliveryChannelException(v protocol.ResponseMetadata) error {
return &NoSuchDeliveryChannelException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchDeliveryChannelException) Code() string {
+func (s *NoSuchDeliveryChannelException) Code() string {
return "NoSuchDeliveryChannelException"
}
// Message returns the exception's message.
-func (s NoSuchDeliveryChannelException) Message() string {
+func (s *NoSuchDeliveryChannelException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18047,28 +18047,28 @@ func (s NoSuchDeliveryChannelException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchDeliveryChannelException) OrigErr() error {
+func (s *NoSuchDeliveryChannelException) OrigErr() error {
return nil
}
-func (s NoSuchDeliveryChannelException) Error() string {
+func (s *NoSuchDeliveryChannelException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchDeliveryChannelException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchDeliveryChannelException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchDeliveryChannelException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchDeliveryChannelException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You specified one or more organization config rules that do not exist.
type NoSuchOrganizationConfigRuleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18085,17 +18085,17 @@ func (s NoSuchOrganizationConfigRuleException) GoString() string {
func newErrorNoSuchOrganizationConfigRuleException(v protocol.ResponseMetadata) error {
return &NoSuchOrganizationConfigRuleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchOrganizationConfigRuleException) Code() string {
+func (s *NoSuchOrganizationConfigRuleException) Code() string {
return "NoSuchOrganizationConfigRuleException"
}
// Message returns the exception's message.
-func (s NoSuchOrganizationConfigRuleException) Message() string {
+func (s *NoSuchOrganizationConfigRuleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18103,22 +18103,22 @@ func (s NoSuchOrganizationConfigRuleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchOrganizationConfigRuleException) OrigErr() error {
+func (s *NoSuchOrganizationConfigRuleException) OrigErr() error {
return nil
}
-func (s NoSuchOrganizationConfigRuleException) Error() string {
+func (s *NoSuchOrganizationConfigRuleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchOrganizationConfigRuleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchOrganizationConfigRuleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchOrganizationConfigRuleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchOrganizationConfigRuleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Config organization conformance pack that you passed in the filter does
@@ -18127,8 +18127,8 @@ func (s NoSuchOrganizationConfigRuleException) RequestID() string {
// For DeleteOrganizationConformancePack, you tried to delete an organization
// conformance pack that does not exist.
type NoSuchOrganizationConformancePackException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18145,17 +18145,17 @@ func (s NoSuchOrganizationConformancePackException) GoString() string {
func newErrorNoSuchOrganizationConformancePackException(v protocol.ResponseMetadata) error {
return &NoSuchOrganizationConformancePackException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchOrganizationConformancePackException) Code() string {
+func (s *NoSuchOrganizationConformancePackException) Code() string {
return "NoSuchOrganizationConformancePackException"
}
// Message returns the exception's message.
-func (s NoSuchOrganizationConformancePackException) Message() string {
+func (s *NoSuchOrganizationConformancePackException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18163,28 +18163,28 @@ func (s NoSuchOrganizationConformancePackException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchOrganizationConformancePackException) OrigErr() error {
+func (s *NoSuchOrganizationConformancePackException) OrigErr() error {
return nil
}
-func (s NoSuchOrganizationConformancePackException) Error() string {
+func (s *NoSuchOrganizationConformancePackException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchOrganizationConformancePackException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchOrganizationConformancePackException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchOrganizationConformancePackException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchOrganizationConformancePackException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You specified an AWS Config rule without a remediation configuration.
type NoSuchRemediationConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18201,17 +18201,17 @@ func (s NoSuchRemediationConfigurationException) GoString() string {
func newErrorNoSuchRemediationConfigurationException(v protocol.ResponseMetadata) error {
return &NoSuchRemediationConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchRemediationConfigurationException) Code() string {
+func (s *NoSuchRemediationConfigurationException) Code() string {
return "NoSuchRemediationConfigurationException"
}
// Message returns the exception's message.
-func (s NoSuchRemediationConfigurationException) Message() string {
+func (s *NoSuchRemediationConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18219,28 +18219,28 @@ func (s NoSuchRemediationConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchRemediationConfigurationException) OrigErr() error {
+func (s *NoSuchRemediationConfigurationException) OrigErr() error {
return nil
}
-func (s NoSuchRemediationConfigurationException) Error() string {
+func (s *NoSuchRemediationConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchRemediationConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchRemediationConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchRemediationConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchRemediationConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You tried to delete a remediation exception that does not exist.
type NoSuchRemediationExceptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18257,17 +18257,17 @@ func (s NoSuchRemediationExceptionException) GoString() string {
func newErrorNoSuchRemediationExceptionException(v protocol.ResponseMetadata) error {
return &NoSuchRemediationExceptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchRemediationExceptionException) Code() string {
+func (s *NoSuchRemediationExceptionException) Code() string {
return "NoSuchRemediationExceptionException"
}
// Message returns the exception's message.
-func (s NoSuchRemediationExceptionException) Message() string {
+func (s *NoSuchRemediationExceptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18275,28 +18275,28 @@ func (s NoSuchRemediationExceptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchRemediationExceptionException) OrigErr() error {
+func (s *NoSuchRemediationExceptionException) OrigErr() error {
return nil
}
-func (s NoSuchRemediationExceptionException) Error() string {
+func (s *NoSuchRemediationExceptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchRemediationExceptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchRemediationExceptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchRemediationExceptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchRemediationExceptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified a retention configuration that does not exist.
type NoSuchRetentionConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18313,17 +18313,17 @@ func (s NoSuchRetentionConfigurationException) GoString() string {
func newErrorNoSuchRetentionConfigurationException(v protocol.ResponseMetadata) error {
return &NoSuchRetentionConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchRetentionConfigurationException) Code() string {
+func (s *NoSuchRetentionConfigurationException) Code() string {
return "NoSuchRetentionConfigurationException"
}
// Message returns the exception's message.
-func (s NoSuchRetentionConfigurationException) Message() string {
+func (s *NoSuchRetentionConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18331,22 +18331,22 @@ func (s NoSuchRetentionConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchRetentionConfigurationException) OrigErr() error {
+func (s *NoSuchRetentionConfigurationException) OrigErr() error {
return nil
}
-func (s NoSuchRetentionConfigurationException) Error() string {
+func (s *NoSuchRetentionConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchRetentionConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchRetentionConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchRetentionConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchRetentionConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// For PutConfigAggregator API, no permission to call EnableAWSServiceAccess
@@ -18356,8 +18356,8 @@ func (s NoSuchRetentionConfigurationException) RequestID() string {
// Config throws an exception if APIs are called from member accounts. All APIs
// must be called from organization master account.
type OrganizationAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18374,17 +18374,17 @@ func (s OrganizationAccessDeniedException) GoString() string {
func newErrorOrganizationAccessDeniedException(v protocol.ResponseMetadata) error {
return &OrganizationAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationAccessDeniedException) Code() string {
+func (s *OrganizationAccessDeniedException) Code() string {
return "OrganizationAccessDeniedException"
}
// Message returns the exception's message.
-func (s OrganizationAccessDeniedException) Message() string {
+func (s *OrganizationAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18392,22 +18392,22 @@ func (s OrganizationAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationAccessDeniedException) OrigErr() error {
+func (s *OrganizationAccessDeniedException) OrigErr() error {
return nil
}
-func (s OrganizationAccessDeniedException) Error() string {
+func (s *OrganizationAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This object contains regions to set up the aggregator and an IAM role to
@@ -18475,8 +18475,8 @@ func (s *OrganizationAggregationSource) SetRoleArn(v string) *OrganizationAggreg
// AWS Config resource cannot be created because your organization does not
// have all features enabled.
type OrganizationAllFeaturesNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18493,17 +18493,17 @@ func (s OrganizationAllFeaturesNotEnabledException) GoString() string {
func newErrorOrganizationAllFeaturesNotEnabledException(v protocol.ResponseMetadata) error {
return &OrganizationAllFeaturesNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationAllFeaturesNotEnabledException) Code() string {
+func (s *OrganizationAllFeaturesNotEnabledException) Code() string {
return "OrganizationAllFeaturesNotEnabledException"
}
// Message returns the exception's message.
-func (s OrganizationAllFeaturesNotEnabledException) Message() string {
+func (s *OrganizationAllFeaturesNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18511,22 +18511,22 @@ func (s OrganizationAllFeaturesNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationAllFeaturesNotEnabledException) OrigErr() error {
+func (s *OrganizationAllFeaturesNotEnabledException) OrigErr() error {
return nil
}
-func (s OrganizationAllFeaturesNotEnabledException) Error() string {
+func (s *OrganizationAllFeaturesNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationAllFeaturesNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationAllFeaturesNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationAllFeaturesNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationAllFeaturesNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An organization config rule that has information about config rules that
@@ -19009,8 +19009,8 @@ func (s *OrganizationConformancePackStatus) SetStatus(v string) *OrganizationCon
// You have specified a template that is not valid or supported.
type OrganizationConformancePackTemplateValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19027,17 +19027,17 @@ func (s OrganizationConformancePackTemplateValidationException) GoString() strin
func newErrorOrganizationConformancePackTemplateValidationException(v protocol.ResponseMetadata) error {
return &OrganizationConformancePackTemplateValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationConformancePackTemplateValidationException) Code() string {
+func (s *OrganizationConformancePackTemplateValidationException) Code() string {
return "OrganizationConformancePackTemplateValidationException"
}
// Message returns the exception's message.
-func (s OrganizationConformancePackTemplateValidationException) Message() string {
+func (s *OrganizationConformancePackTemplateValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19045,22 +19045,22 @@ func (s OrganizationConformancePackTemplateValidationException) Message() string
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationConformancePackTemplateValidationException) OrigErr() error {
+func (s *OrganizationConformancePackTemplateValidationException) OrigErr() error {
return nil
}
-func (s OrganizationConformancePackTemplateValidationException) Error() string {
+func (s *OrganizationConformancePackTemplateValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationConformancePackTemplateValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationConformancePackTemplateValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationConformancePackTemplateValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationConformancePackTemplateValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that specifies organization custom rule metadata such as resource
@@ -19420,8 +19420,8 @@ func (s *OrganizationResourceDetailedStatusFilters) SetStatus(v string) *Organiz
// The configuration item size is outside the allowable range.
type OversizedConfigurationItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19438,17 +19438,17 @@ func (s OversizedConfigurationItemException) GoString() string {
func newErrorOversizedConfigurationItemException(v protocol.ResponseMetadata) error {
return &OversizedConfigurationItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OversizedConfigurationItemException) Code() string {
+func (s *OversizedConfigurationItemException) Code() string {
return "OversizedConfigurationItemException"
}
// Message returns the exception's message.
-func (s OversizedConfigurationItemException) Message() string {
+func (s *OversizedConfigurationItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19456,22 +19456,22 @@ func (s OversizedConfigurationItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OversizedConfigurationItemException) OrigErr() error {
+func (s *OversizedConfigurationItemException) OrigErr() error {
return nil
}
-func (s OversizedConfigurationItemException) Error() string {
+func (s *OversizedConfigurationItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OversizedConfigurationItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OversizedConfigurationItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OversizedConfigurationItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OversizedConfigurationItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents the account ID and region of an aggregator account
@@ -21409,8 +21409,8 @@ func (s *RemediationExecutionStep) SetStopTime(v time.Time) *RemediationExecutio
// Remediation action is in progress. You can either cancel execution in AWS
// Systems Manager or wait and try again later.
type RemediationInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21427,17 +21427,17 @@ func (s RemediationInProgressException) GoString() string {
func newErrorRemediationInProgressException(v protocol.ResponseMetadata) error {
return &RemediationInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RemediationInProgressException) Code() string {
+func (s *RemediationInProgressException) Code() string {
return "RemediationInProgressException"
}
// Message returns the exception's message.
-func (s RemediationInProgressException) Message() string {
+func (s *RemediationInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21445,22 +21445,22 @@ func (s RemediationInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RemediationInProgressException) OrigErr() error {
+func (s *RemediationInProgressException) OrigErr() error {
return nil
}
-func (s RemediationInProgressException) Error() string {
+func (s *RemediationInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RemediationInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RemediationInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RemediationInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RemediationInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value is either a dynamic (resource) value or a static value. You must
@@ -21751,8 +21751,8 @@ func (s *ResourceIdentifier) SetResourceType(v string) *ResourceIdentifier {
// * For DeleteConformancePack, a conformance pack creation, update, and
// deletion is in progress. Try your request again later.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21769,17 +21769,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21787,22 +21787,22 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The details that identify a resource within AWS Config, including the resource
@@ -21864,8 +21864,8 @@ func (s *ResourceKey) SetResourceType(v string) *ResourceKey {
// You have specified a resource that is either unknown or has not been discovered.
type ResourceNotDiscoveredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21882,17 +21882,17 @@ func (s ResourceNotDiscoveredException) GoString() string {
func newErrorResourceNotDiscoveredException(v protocol.ResponseMetadata) error {
return &ResourceNotDiscoveredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotDiscoveredException) Code() string {
+func (s *ResourceNotDiscoveredException) Code() string {
return "ResourceNotDiscoveredException"
}
// Message returns the exception's message.
-func (s ResourceNotDiscoveredException) Message() string {
+func (s *ResourceNotDiscoveredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21900,28 +21900,28 @@ func (s ResourceNotDiscoveredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotDiscoveredException) OrigErr() error {
+func (s *ResourceNotDiscoveredException) OrigErr() error {
return nil
}
-func (s ResourceNotDiscoveredException) Error() string {
+func (s *ResourceNotDiscoveredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotDiscoveredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotDiscoveredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotDiscoveredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotDiscoveredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified a resource that does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -21938,17 +21938,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21956,22 +21956,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The dynamic value of the resource.
@@ -23074,8 +23074,8 @@ func (s TagResourceOutput) GoString() string {
// You have reached the limit of the number of tags you can use. You have more
// than 50 tags.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23092,17 +23092,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23110,22 +23110,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -23204,8 +23204,8 @@ func (s UntagResourceOutput) GoString() string {
// The requested action is not valid.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23222,17 +23222,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23240,22 +23240,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go
index b29c73560f7..0c07466c9c7 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go
@@ -540,8 +540,8 @@ func (s *DescribeReportDefinitionsOutput) SetReportDefinitions(v []*ReportDefini
// A report with the specified name already exists in the account. Specify a
// different report name.
type DuplicateReportNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message to show the detail of the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -559,17 +559,17 @@ func (s DuplicateReportNameException) GoString() string {
func newErrorDuplicateReportNameException(v protocol.ResponseMetadata) error {
return &DuplicateReportNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateReportNameException) Code() string {
+func (s *DuplicateReportNameException) Code() string {
return "DuplicateReportNameException"
}
// Message returns the exception's message.
-func (s DuplicateReportNameException) Message() string {
+func (s *DuplicateReportNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -577,29 +577,29 @@ func (s DuplicateReportNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateReportNameException) OrigErr() error {
+func (s *DuplicateReportNameException) OrigErr() error {
return nil
}
-func (s DuplicateReportNameException) Error() string {
+func (s *DuplicateReportNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateReportNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateReportNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateReportNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateReportNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error on the server occurred during the processing of your request. Try
// again later.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message to show the detail of the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -617,17 +617,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -635,22 +635,22 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ModifyReportDefinitionInput struct {
@@ -964,8 +964,8 @@ func (s *ReportDefinition) SetTimeUnit(v string) *ReportDefinition {
// This account already has five reports defined. To define a new report, you
// must delete an existing report.
type ReportLimitReachedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message to show the detail of the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -983,17 +983,17 @@ func (s ReportLimitReachedException) GoString() string {
func newErrorReportLimitReachedException(v protocol.ResponseMetadata) error {
return &ReportLimitReachedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReportLimitReachedException) Code() string {
+func (s *ReportLimitReachedException) Code() string {
return "ReportLimitReachedException"
}
// Message returns the exception's message.
-func (s ReportLimitReachedException) Message() string {
+func (s *ReportLimitReachedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1001,28 +1001,28 @@ func (s ReportLimitReachedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReportLimitReachedException) OrigErr() error {
+func (s *ReportLimitReachedException) OrigErr() error {
return nil
}
-func (s ReportLimitReachedException) Error() string {
+func (s *ReportLimitReachedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReportLimitReachedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReportLimitReachedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReportLimitReachedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReportLimitReachedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The input fails to satisfy the constraints specified by an AWS service.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message to show the detail of the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -1040,17 +1040,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1058,22 +1058,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The region of the S3 bucket that AWS delivers the report into.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go
index 88ebd6c8235..eb43d9e24ad 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go
@@ -4951,8 +4951,8 @@ func (c *DatabaseMigrationService) TestConnectionWithContext(ctx aws.Context, in
// AWS DMS was denied access to the endpoint. Check that the role is correctly
// configured.
type AccessDeniedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4969,17 +4969,17 @@ func (s AccessDeniedFault) GoString() string {
func newErrorAccessDeniedFault(v protocol.ResponseMetadata) error {
return &AccessDeniedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedFault) Code() string {
+func (s *AccessDeniedFault) Code() string {
return "AccessDeniedFault"
}
// Message returns the exception's message.
-func (s AccessDeniedFault) Message() string {
+func (s *AccessDeniedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4987,22 +4987,22 @@ func (s AccessDeniedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedFault) OrigErr() error {
+func (s *AccessDeniedFault) OrigErr() error {
return nil
}
-func (s AccessDeniedFault) Error() string {
+func (s *AccessDeniedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a quota for an AWS account, for example, the number of replication
@@ -5498,15 +5498,15 @@ type CreateEndpointInput struct {
// in the AWS Database Migration Service User Guide.
ExtraConnectionAttributes *string `type:"string"`
- // Settings in JSON format for the target Apache Kafka endpoint. For information
- // about other available settings, see Using Object Mapping to Migrate Data
- // to Apache Kafka (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping)
+ // Settings in JSON format for the target Apache Kafka endpoint. For more information
+ // about the available settings, see Using Apache Kafka as a Target for AWS
+ // Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html)
// in the AWS Database Migration User Guide.
KafkaSettings *KafkaSettings `type:"structure"`
// Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams.
- // For information about other available settings, see Using Object Mapping
- // to Migrate Data to a Kinesis Data Stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping)
+ // For more information about the available settings, see Using Amazon Kinesis
+ // Data Streams as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html)
// in the AWS Database Migration User Guide.
KinesisSettings *KinesisSettings `type:"structure"`
@@ -5521,11 +5521,17 @@ type CreateEndpointInput struct {
KmsKeyId *string `type:"string"`
// Settings in JSON format for the source MongoDB endpoint. For more information
- // about the available settings, see the configuration properties section in
- // Using MongoDB as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html)
+ // about the available settings, see Using MongoDB as a Target for AWS Database
+ // Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration)
// in the AWS Database Migration Service User Guide.
MongoDbSettings *MongoDbSettings `type:"structure"`
+ // Settings in JSON format for the target Amazon Neptune endpoint. For more
+ // information about the available settings, see https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings
+ // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings)
+ // in the AWS Database Migration Service User Guide.
+ NeptuneSettings *NeptuneSettings `type:"structure"`
+
// The password to be used to log in to the endpoint database.
Password *string `type:"string" sensitive:"true"`
@@ -5591,6 +5597,11 @@ func (s *CreateEndpointInput) Validate() error {
invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams))
}
}
+ if s.NeptuneSettings != nil {
+ if err := s.NeptuneSettings.Validate(); err != nil {
+ invalidParams.AddNested("NeptuneSettings", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -5682,6 +5693,12 @@ func (s *CreateEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *CreateEndp
return s
}
+// SetNeptuneSettings sets the NeptuneSettings field's value.
+func (s *CreateEndpointInput) SetNeptuneSettings(v *NeptuneSettings) *CreateEndpointInput {
+ s.NeptuneSettings = v
+ return s
+}
+
// SetPassword sets the Password field's value.
func (s *CreateEndpointInput) SetPassword(v string) *CreateEndpointInput {
s.Password = &v
@@ -6290,7 +6307,7 @@ type CreateReplicationTaskInput struct {
ReplicationTaskIdentifier *string `type:"string" required:"true"`
// Overall settings for the task, in JSON format. For more information, see
- // Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html)
+ // Specifying Task Settings for AWS Database Migration Service Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html)
// in the AWS Database Migration User Guide.
ReplicationTaskSettings *string `type:"string"`
@@ -6300,7 +6317,7 @@ type CreateReplicationTaskInput struct {
SourceEndpointArn *string `type:"string" required:"true"`
// The table mappings for the task, in JSON format. For more information, see
- // Table Mapping (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)
+ // Using Table Mapping to Specify Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)
// in the AWS Database Migration User Guide.
//
// TableMappings is a required field
@@ -6313,6 +6330,12 @@ type CreateReplicationTaskInput struct {
//
// TargetEndpointArn is a required field
TargetEndpointArn *string `type:"string" required:"true"`
+
+ // Supplemental information that the task requires to migrate the data for certain
+ // source and target endpoints. For more information, see Specifying Supplemental
+ // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)
+ // in the AWS Database Migration User Guide.
+ TaskData *string `type:"string"`
}
// String returns the string representation
@@ -6419,6 +6442,12 @@ func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateRepli
return s
}
+// SetTaskData sets the TaskData field's value.
+func (s *CreateReplicationTaskInput) SetTaskData(v string) *CreateReplicationTaskInput {
+ s.TaskData = &v
+ return s
+}
+
type CreateReplicationTaskOutput struct {
_ struct{} `type:"structure"`
@@ -8156,6 +8185,8 @@ type DescribeReplicationSubnetGroupsInput struct {
_ struct{} `type:"structure"`
// Filters applied to the describe action.
+ //
+ // Valid filter names: replication-subnet-group-id
Filters []*Filter `type:"list"`
// An optional pagination token provided by a previous request. If this parameter
@@ -8941,6 +8972,10 @@ type Endpoint struct {
// MongoDbSettings structure.
MongoDbSettings *MongoDbSettings `type:"structure"`
+ // The settings for the MongoDB source endpoint. For more information, see the
+ // NeptuneSettings structure.
+ NeptuneSettings *NeptuneSettings `type:"structure"`
+
// The port value used to access the endpoint.
Port *int64 `type:"integer"`
@@ -9079,6 +9114,12 @@ func (s *Endpoint) SetMongoDbSettings(v *MongoDbSettings) *Endpoint {
return s
}
+// SetNeptuneSettings sets the NeptuneSettings field's value.
+func (s *Endpoint) SetNeptuneSettings(v *NeptuneSettings) *Endpoint {
+ s.NeptuneSettings = v
+ return s
+}
+
// SetPort sets the Port field's value.
func (s *Endpoint) SetPort(v int64) *Endpoint {
s.Port = &v
@@ -9485,8 +9526,8 @@ func (s *ImportCertificateOutput) SetCertificate(v *Certificate) *ImportCertific
// There are not enough resources allocated to the database migration.
type InsufficientResourceCapacityFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9503,17 +9544,17 @@ func (s InsufficientResourceCapacityFault) GoString() string {
func newErrorInsufficientResourceCapacityFault(v protocol.ResponseMetadata) error {
return &InsufficientResourceCapacityFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientResourceCapacityFault) Code() string {
+func (s *InsufficientResourceCapacityFault) Code() string {
return "InsufficientResourceCapacityFault"
}
// Message returns the exception's message.
-func (s InsufficientResourceCapacityFault) Message() string {
+func (s *InsufficientResourceCapacityFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9521,28 +9562,28 @@ func (s InsufficientResourceCapacityFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientResourceCapacityFault) OrigErr() error {
+func (s *InsufficientResourceCapacityFault) OrigErr() error {
return nil
}
-func (s InsufficientResourceCapacityFault) Error() string {
+func (s *InsufficientResourceCapacityFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientResourceCapacityFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientResourceCapacityFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientResourceCapacityFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientResourceCapacityFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The certificate was not valid.
type InvalidCertificateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9559,17 +9600,17 @@ func (s InvalidCertificateFault) GoString() string {
func newErrorInvalidCertificateFault(v protocol.ResponseMetadata) error {
return &InvalidCertificateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCertificateFault) Code() string {
+func (s *InvalidCertificateFault) Code() string {
return "InvalidCertificateFault"
}
// Message returns the exception's message.
-func (s InvalidCertificateFault) Message() string {
+func (s *InvalidCertificateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9577,29 +9618,29 @@ func (s InvalidCertificateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCertificateFault) OrigErr() error {
+func (s *InvalidCertificateFault) OrigErr() error {
return nil
}
-func (s InvalidCertificateFault) Error() string {
+func (s *InvalidCertificateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCertificateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCertificateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCertificateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCertificateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource is in a state that prevents it from being used for database
// migration.
type InvalidResourceStateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9616,17 +9657,17 @@ func (s InvalidResourceStateFault) GoString() string {
func newErrorInvalidResourceStateFault(v protocol.ResponseMetadata) error {
return &InvalidResourceStateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceStateFault) Code() string {
+func (s *InvalidResourceStateFault) Code() string {
return "InvalidResourceStateFault"
}
// Message returns the exception's message.
-func (s InvalidResourceStateFault) Message() string {
+func (s *InvalidResourceStateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9634,28 +9675,28 @@ func (s InvalidResourceStateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceStateFault) OrigErr() error {
+func (s *InvalidResourceStateFault) OrigErr() error {
return nil
}
-func (s InvalidResourceStateFault) Error() string {
+func (s *InvalidResourceStateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceStateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceStateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceStateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceStateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The subnet provided is invalid.
type InvalidSubnet struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9672,17 +9713,17 @@ func (s InvalidSubnet) GoString() string {
func newErrorInvalidSubnet(v protocol.ResponseMetadata) error {
return &InvalidSubnet{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSubnet) Code() string {
+func (s *InvalidSubnet) Code() string {
return "InvalidSubnet"
}
// Message returns the exception's message.
-func (s InvalidSubnet) Message() string {
+func (s *InvalidSubnet) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9690,29 +9731,29 @@ func (s InvalidSubnet) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSubnet) OrigErr() error {
+func (s *InvalidSubnet) OrigErr() error {
return nil
}
-func (s InvalidSubnet) Error() string {
+func (s *InvalidSubnet) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSubnet) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSubnet) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSubnet) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSubnet) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The ciphertext references a key that doesn't exist or that the DMS account
// doesn't have access to.
type KMSAccessDeniedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9729,17 +9770,17 @@ func (s KMSAccessDeniedFault) GoString() string {
func newErrorKMSAccessDeniedFault(v protocol.ResponseMetadata) error {
return &KMSAccessDeniedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSAccessDeniedFault) Code() string {
+func (s *KMSAccessDeniedFault) Code() string {
return "KMSAccessDeniedFault"
}
// Message returns the exception's message.
-func (s KMSAccessDeniedFault) Message() string {
+func (s *KMSAccessDeniedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9747,28 +9788,28 @@ func (s KMSAccessDeniedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSAccessDeniedFault) OrigErr() error {
+func (s *KMSAccessDeniedFault) OrigErr() error {
return nil
}
-func (s KMSAccessDeniedFault) Error() string {
+func (s *KMSAccessDeniedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSAccessDeniedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSAccessDeniedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSAccessDeniedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSAccessDeniedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified master key (CMK) isn't enabled.
type KMSDisabledFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9785,17 +9826,17 @@ func (s KMSDisabledFault) GoString() string {
func newErrorKMSDisabledFault(v protocol.ResponseMetadata) error {
return &KMSDisabledFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSDisabledFault) Code() string {
+func (s *KMSDisabledFault) Code() string {
return "KMSDisabledFault"
}
// Message returns the exception's message.
-func (s KMSDisabledFault) Message() string {
+func (s *KMSDisabledFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9803,28 +9844,28 @@ func (s KMSDisabledFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSDisabledFault) OrigErr() error {
+func (s *KMSDisabledFault) OrigErr() error {
return nil
}
-func (s KMSDisabledFault) Error() string {
+func (s *KMSDisabledFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSDisabledFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSDisabledFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSDisabledFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSDisabledFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The state of the specified AWS KMS resource isn't valid for this request.
type KMSInvalidStateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9841,17 +9882,17 @@ func (s KMSInvalidStateFault) GoString() string {
func newErrorKMSInvalidStateFault(v protocol.ResponseMetadata) error {
return &KMSInvalidStateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSInvalidStateFault) Code() string {
+func (s *KMSInvalidStateFault) Code() string {
return "KMSInvalidStateFault"
}
// Message returns the exception's message.
-func (s KMSInvalidStateFault) Message() string {
+func (s *KMSInvalidStateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9859,28 +9900,28 @@ func (s KMSInvalidStateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSInvalidStateFault) OrigErr() error {
+func (s *KMSInvalidStateFault) OrigErr() error {
return nil
}
-func (s KMSInvalidStateFault) Error() string {
+func (s *KMSInvalidStateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSInvalidStateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSInvalidStateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSInvalidStateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSInvalidStateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS DMS cannot access the AWS KMS key.
type KMSKeyNotAccessibleFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9897,17 +9938,17 @@ func (s KMSKeyNotAccessibleFault) GoString() string {
func newErrorKMSKeyNotAccessibleFault(v protocol.ResponseMetadata) error {
return &KMSKeyNotAccessibleFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSKeyNotAccessibleFault) Code() string {
+func (s *KMSKeyNotAccessibleFault) Code() string {
return "KMSKeyNotAccessibleFault"
}
// Message returns the exception's message.
-func (s KMSKeyNotAccessibleFault) Message() string {
+func (s *KMSKeyNotAccessibleFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9915,28 +9956,28 @@ func (s KMSKeyNotAccessibleFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSKeyNotAccessibleFault) OrigErr() error {
+func (s *KMSKeyNotAccessibleFault) OrigErr() error {
return nil
}
-func (s KMSKeyNotAccessibleFault) Error() string {
+func (s *KMSKeyNotAccessibleFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSKeyNotAccessibleFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSKeyNotAccessibleFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSKeyNotAccessibleFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSKeyNotAccessibleFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified AWS KMS entity or resource can't be found.
type KMSNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9953,17 +9994,17 @@ func (s KMSNotFoundFault) GoString() string {
func newErrorKMSNotFoundFault(v protocol.ResponseMetadata) error {
return &KMSNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSNotFoundFault) Code() string {
+func (s *KMSNotFoundFault) Code() string {
return "KMSNotFoundFault"
}
// Message returns the exception's message.
-func (s KMSNotFoundFault) Message() string {
+func (s *KMSNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9971,28 +10012,28 @@ func (s KMSNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSNotFoundFault) OrigErr() error {
+func (s *KMSNotFoundFault) OrigErr() error {
return nil
}
-func (s KMSNotFoundFault) Error() string {
+func (s *KMSNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This request triggered AWS KMS request throttling.
type KMSThrottlingFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10009,17 +10050,17 @@ func (s KMSThrottlingFault) GoString() string {
func newErrorKMSThrottlingFault(v protocol.ResponseMetadata) error {
return &KMSThrottlingFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSThrottlingFault) Code() string {
+func (s *KMSThrottlingFault) Code() string {
return "KMSThrottlingFault"
}
// Message returns the exception's message.
-func (s KMSThrottlingFault) Message() string {
+func (s *KMSThrottlingFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10027,22 +10068,22 @@ func (s KMSThrottlingFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSThrottlingFault) OrigErr() error {
+func (s *KMSThrottlingFault) OrigErr() error {
return nil
}
-func (s KMSThrottlingFault) Error() string {
+func (s *KMSThrottlingFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSThrottlingFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSThrottlingFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSThrottlingFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSThrottlingFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information that describes an Apache Kafka endpoint. This information
@@ -10316,15 +10357,15 @@ type ModifyEndpointInput struct {
// pass the empty string ("") as an argument.
ExtraConnectionAttributes *string `type:"string"`
- // Settings in JSON format for the target Apache Kafka endpoint. For information
- // about other available settings, see Using Object Mapping to Migrate Data
- // to Apache Kafka (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping)
+ // Settings in JSON format for the target Apache Kafka endpoint. For more information
+ // about the available settings, see Using Apache Kafka as a Target for AWS
+ // Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html)
// in the AWS Database Migration User Guide.
KafkaSettings *KafkaSettings `type:"structure"`
// Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams.
- // For information about other available settings, see Using Object Mapping
- // to Migrate Data to a Kinesis Data Stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping)
+ // For more information about the available settings, see Using Amazon Kinesis
+ // Data Streams as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html)
// in the AWS Database Migration User Guide.
KinesisSettings *KinesisSettings `type:"structure"`
@@ -10334,6 +10375,12 @@ type ModifyEndpointInput struct {
// in the AWS Database Migration Service User Guide.
MongoDbSettings *MongoDbSettings `type:"structure"`
+ // Settings in JSON format for the target Amazon Neptune endpoint. For more
+ // information about the available settings, see https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings
+ // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings)
+ // in the AWS Database Migration Service User Guide.
+ NeptuneSettings *NeptuneSettings `type:"structure"`
+
// The password to be used to login to the endpoint database.
Password *string `type:"string" sensitive:"true"`
@@ -10389,6 +10436,11 @@ func (s *ModifyEndpointInput) Validate() error {
invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams))
}
}
+ if s.NeptuneSettings != nil {
+ if err := s.NeptuneSettings.Validate(); err != nil {
+ invalidParams.AddNested("NeptuneSettings", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -10480,6 +10532,12 @@ func (s *ModifyEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *ModifyEndp
return s
}
+// SetNeptuneSettings sets the NeptuneSettings field's value.
+func (s *ModifyEndpointInput) SetNeptuneSettings(v *NeptuneSettings) *ModifyEndpointInput {
+ s.NeptuneSettings = v
+ return s
+}
+
// SetPassword sets the Password field's value.
func (s *ModifyEndpointInput) SetPassword(v string) *ModifyEndpointInput {
s.Password = &v
@@ -10986,7 +11044,7 @@ type ModifyReplicationTaskInput struct {
// * Cannot end with a hyphen or contain two consecutive hyphens.
ReplicationTaskIdentifier *string `type:"string"`
- // JSON file that contains settings for the task, such as target metadata settings.
+ // JSON file that contains settings for the task, such as task metadata settings.
ReplicationTaskSettings *string `type:"string"`
// When using the AWS CLI or boto3, provide the path of the JSON file that contains
@@ -10994,6 +11052,12 @@ type ModifyReplicationTaskInput struct {
// DMS API, provide the JSON as the parameter value, for example: --table-mappings
// file://mappingfile.json
TableMappings *string `type:"string"`
+
+ // Supplemental information that the task requires to migrate the data for certain
+ // source and target endpoints. For more information, see Specifying Supplemental
+ // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)
+ // in the AWS Database Migration User Guide.
+ TaskData *string `type:"string"`
}
// String returns the string representation
@@ -11067,6 +11131,12 @@ func (s *ModifyReplicationTaskInput) SetTableMappings(v string) *ModifyReplicati
return s
}
+// SetTaskData sets the TaskData field's value.
+func (s *ModifyReplicationTaskInput) SetTaskData(v string) *ModifyReplicationTaskInput {
+ s.TaskData = &v
+ return s
+}
+
type ModifyReplicationTaskOutput struct {
_ struct{} `type:"structure"`
@@ -11239,6 +11309,119 @@ func (s *MongoDbSettings) SetUsername(v string) *MongoDbSettings {
return s
}
+// Provides information that defines an Amazon Neptune endpoint.
+type NeptuneSettings struct {
+ _ struct{} `type:"structure"`
+
+ // The number of milliseconds for AWS DMS to wait to retry a bulk-load of migrated
+ // graph data to the Neptune target database before raising an error. The default
+ // is 250.
+ ErrorRetryDuration *int64 `type:"integer"`
+
+ // If you want IAM authorization enabled for this endpoint, set this parameter
+ // to true and attach the appropriate role policy document to your service role
+ // specified by ServiceAccessRoleArn. The default is false.
+ IamAuthEnabled *bool `type:"boolean"`
+
+ // The maximum size in KB of migrated graph data stored in a CSV file before
+ // AWS DMS bulk-loads the data to the Neptune target database. The default is
+ // 1048576 KB. If successful, AWS DMS clears the bucket, ready to store the
+ // next batch of migrated graph data.
+ MaxFileSize *int64 `type:"integer"`
+
+ // The number of times for AWS DMS to retry a bulk-load of migrated graph data
+ // to the Neptune target database before raising an error. The default is 5.
+ MaxRetryCount *int64 `type:"integer"`
+
+ // A folder path where you where you want AWS DMS to store migrated graph data
+ // in the S3 bucket specified by S3BucketName
+ //
+ // S3BucketFolder is a required field
+ S3BucketFolder *string `type:"string" required:"true"`
+
+ // The name of the S3 bucket for AWS DMS to temporarily store migrated graph
+ // data in CSV files before bulk-loading it to the Neptune target database.
+ // AWS DMS maps the SQL source data to graph data before storing it in these
+ // CSV files.
+ //
+ // S3BucketName is a required field
+ S3BucketName *string `type:"string" required:"true"`
+
+ // The ARN of the service role you have created for the Neptune target endpoint.
+ // For more information, see https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.ServiceRole
+ // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.ServiceRole)
+ // in the AWS Database Migration Service User Guide.
+ ServiceAccessRoleArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s NeptuneSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s NeptuneSettings) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *NeptuneSettings) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "NeptuneSettings"}
+ if s.S3BucketFolder == nil {
+ invalidParams.Add(request.NewErrParamRequired("S3BucketFolder"))
+ }
+ if s.S3BucketName == nil {
+ invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetErrorRetryDuration sets the ErrorRetryDuration field's value.
+func (s *NeptuneSettings) SetErrorRetryDuration(v int64) *NeptuneSettings {
+ s.ErrorRetryDuration = &v
+ return s
+}
+
+// SetIamAuthEnabled sets the IamAuthEnabled field's value.
+func (s *NeptuneSettings) SetIamAuthEnabled(v bool) *NeptuneSettings {
+ s.IamAuthEnabled = &v
+ return s
+}
+
+// SetMaxFileSize sets the MaxFileSize field's value.
+func (s *NeptuneSettings) SetMaxFileSize(v int64) *NeptuneSettings {
+ s.MaxFileSize = &v
+ return s
+}
+
+// SetMaxRetryCount sets the MaxRetryCount field's value.
+func (s *NeptuneSettings) SetMaxRetryCount(v int64) *NeptuneSettings {
+ s.MaxRetryCount = &v
+ return s
+}
+
+// SetS3BucketFolder sets the S3BucketFolder field's value.
+func (s *NeptuneSettings) SetS3BucketFolder(v string) *NeptuneSettings {
+ s.S3BucketFolder = &v
+ return s
+}
+
+// SetS3BucketName sets the S3BucketName field's value.
+func (s *NeptuneSettings) SetS3BucketName(v string) *NeptuneSettings {
+ s.S3BucketName = &v
+ return s
+}
+
+// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value.
+func (s *NeptuneSettings) SetServiceAccessRoleArn(v string) *NeptuneSettings {
+ s.ServiceAccessRoleArn = &v
+ return s
+}
+
// In response to the DescribeOrderableReplicationInstances operation, this
// object describes an available replication instance. This description includes
// the replication instance's type, engine version, and allocated storage.
@@ -12501,8 +12684,8 @@ func (s *ReplicationSubnetGroup) SetVpcId(v string) *ReplicationSubnetGroup {
// The replication subnet group does not cover enough Availability Zones (AZs).
// Edit the replication subnet group and add more AZs.
type ReplicationSubnetGroupDoesNotCoverEnoughAZs struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12519,17 +12702,17 @@ func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) GoString() string {
func newErrorReplicationSubnetGroupDoesNotCoverEnoughAZs(v protocol.ResponseMetadata) error {
return &ReplicationSubnetGroupDoesNotCoverEnoughAZs{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Code() string {
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) Code() string {
return "ReplicationSubnetGroupDoesNotCoverEnoughAZs"
}
// Message returns the exception's message.
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Message() string {
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12537,22 +12720,22 @@ func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) OrigErr() error {
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) OrigErr() error {
return nil
}
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Error() string {
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReplicationSubnetGroupDoesNotCoverEnoughAZs) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information that describes a replication task created by the CreateReplicationTask
@@ -12637,6 +12820,12 @@ type ReplicationTask struct {
// The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn *string `type:"string"`
+
+ // Supplemental information that the task requires to migrate the data for certain
+ // source and target endpoints. For more information, see Specifying Supplemental
+ // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)
+ // in the AWS Database Migration User Guide.
+ TaskData *string `type:"string"`
}
// String returns the string representation
@@ -12751,6 +12940,12 @@ func (s *ReplicationTask) SetTargetEndpointArn(v string) *ReplicationTask {
return s
}
+// SetTaskData sets the TaskData field's value.
+func (s *ReplicationTask) SetTaskData(v string) *ReplicationTask {
+ s.TaskData = &v
+ return s
+}
+
// The task assessment report in JSON format.
type ReplicationTaskAssessmentResult struct {
_ struct{} `type:"structure"`
@@ -12949,8 +13144,8 @@ func (s *ReplicationTaskStats) SetTablesQueued(v int64) *ReplicationTaskStats {
// The resource you are attempting to create already exists.
type ResourceAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -12969,17 +13164,17 @@ func (s ResourceAlreadyExistsFault) GoString() string {
func newErrorResourceAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsFault) Code() string {
+func (s *ResourceAlreadyExistsFault) Code() string {
return "ResourceAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsFault) Message() string {
+func (s *ResourceAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12987,28 +13182,28 @@ func (s ResourceAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsFault) OrigErr() error {
+func (s *ResourceAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsFault) Error() string {
+func (s *ResourceAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource could not be found.
type ResourceNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13025,17 +13220,17 @@ func (s ResourceNotFoundFault) GoString() string {
func newErrorResourceNotFoundFault(v protocol.ResponseMetadata) error {
return &ResourceNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundFault) Code() string {
+func (s *ResourceNotFoundFault) Code() string {
return "ResourceNotFoundFault"
}
// Message returns the exception's message.
-func (s ResourceNotFoundFault) Message() string {
+func (s *ResourceNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13043,22 +13238,22 @@ func (s ResourceNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundFault) OrigErr() error {
+func (s *ResourceNotFoundFault) OrigErr() error {
return nil
}
-func (s ResourceNotFoundFault) Error() string {
+func (s *ResourceNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Identifies an AWS DMS resource and any pending actions for it.
@@ -13099,8 +13294,8 @@ func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *Res
// The quota for this resource quota has been exceeded.
type ResourceQuotaExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13117,17 +13312,17 @@ func (s ResourceQuotaExceededFault) GoString() string {
func newErrorResourceQuotaExceededFault(v protocol.ResponseMetadata) error {
return &ResourceQuotaExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceQuotaExceededFault) Code() string {
+func (s *ResourceQuotaExceededFault) Code() string {
return "ResourceQuotaExceededFault"
}
// Message returns the exception's message.
-func (s ResourceQuotaExceededFault) Message() string {
+func (s *ResourceQuotaExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13135,22 +13330,22 @@ func (s ResourceQuotaExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceQuotaExceededFault) OrigErr() error {
+func (s *ResourceQuotaExceededFault) OrigErr() error {
return nil
}
-func (s ResourceQuotaExceededFault) Error() string {
+func (s *ResourceQuotaExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceQuotaExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceQuotaExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceQuotaExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceQuotaExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Settings for exporting data to Amazon S3.
@@ -13529,8 +13724,8 @@ func (s *S3Settings) SetTimestampColumnName(v string) *S3Settings {
// The SNS topic is invalid.
type SNSInvalidTopicFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13547,17 +13742,17 @@ func (s SNSInvalidTopicFault) GoString() string {
func newErrorSNSInvalidTopicFault(v protocol.ResponseMetadata) error {
return &SNSInvalidTopicFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SNSInvalidTopicFault) Code() string {
+func (s *SNSInvalidTopicFault) Code() string {
return "SNSInvalidTopicFault"
}
// Message returns the exception's message.
-func (s SNSInvalidTopicFault) Message() string {
+func (s *SNSInvalidTopicFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13565,28 +13760,28 @@ func (s SNSInvalidTopicFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SNSInvalidTopicFault) OrigErr() error {
+func (s *SNSInvalidTopicFault) OrigErr() error {
return nil
}
-func (s SNSInvalidTopicFault) Error() string {
+func (s *SNSInvalidTopicFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SNSInvalidTopicFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SNSInvalidTopicFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SNSInvalidTopicFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SNSInvalidTopicFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You are not authorized for the SNS subscription.
type SNSNoAuthorizationFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13603,17 +13798,17 @@ func (s SNSNoAuthorizationFault) GoString() string {
func newErrorSNSNoAuthorizationFault(v protocol.ResponseMetadata) error {
return &SNSNoAuthorizationFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SNSNoAuthorizationFault) Code() string {
+func (s *SNSNoAuthorizationFault) Code() string {
return "SNSNoAuthorizationFault"
}
// Message returns the exception's message.
-func (s SNSNoAuthorizationFault) Message() string {
+func (s *SNSNoAuthorizationFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13621,22 +13816,22 @@ func (s SNSNoAuthorizationFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SNSNoAuthorizationFault) OrigErr() error {
+func (s *SNSNoAuthorizationFault) OrigErr() error {
return nil
}
-func (s SNSNoAuthorizationFault) Error() string {
+func (s *SNSNoAuthorizationFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SNSNoAuthorizationFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SNSNoAuthorizationFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SNSNoAuthorizationFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SNSNoAuthorizationFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartReplicationTaskAssessmentInput struct {
@@ -13891,8 +14086,8 @@ func (s *StopReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *Stop
// The storage quota has been exceeded.
type StorageQuotaExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13909,17 +14104,17 @@ func (s StorageQuotaExceededFault) GoString() string {
func newErrorStorageQuotaExceededFault(v protocol.ResponseMetadata) error {
return &StorageQuotaExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StorageQuotaExceededFault) Code() string {
+func (s *StorageQuotaExceededFault) Code() string {
return "StorageQuotaExceededFault"
}
// Message returns the exception's message.
-func (s StorageQuotaExceededFault) Message() string {
+func (s *StorageQuotaExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13927,22 +14122,22 @@ func (s StorageQuotaExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StorageQuotaExceededFault) OrigErr() error {
+func (s *StorageQuotaExceededFault) OrigErr() error {
return nil
}
-func (s StorageQuotaExceededFault) Error() string {
+func (s *StorageQuotaExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StorageQuotaExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StorageQuotaExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StorageQuotaExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StorageQuotaExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// In response to a request by the DescribeReplicationSubnetGroup operation,
@@ -13991,8 +14186,8 @@ func (s *Subnet) SetSubnetStatus(v string) *Subnet {
// The specified subnet is already in use.
type SubnetAlreadyInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14009,17 +14204,17 @@ func (s SubnetAlreadyInUse) GoString() string {
func newErrorSubnetAlreadyInUse(v protocol.ResponseMetadata) error {
return &SubnetAlreadyInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetAlreadyInUse) Code() string {
+func (s *SubnetAlreadyInUse) Code() string {
return "SubnetAlreadyInUse"
}
// Message returns the exception's message.
-func (s SubnetAlreadyInUse) Message() string {
+func (s *SubnetAlreadyInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14027,22 +14222,22 @@ func (s SubnetAlreadyInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetAlreadyInUse) OrigErr() error {
+func (s *SubnetAlreadyInUse) OrigErr() error {
return nil
}
-func (s SubnetAlreadyInUse) Error() string {
+func (s *SubnetAlreadyInUse) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetAlreadyInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetAlreadyInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetAlreadyInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetAlreadyInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information about types of supported endpoints in response to a
@@ -14065,6 +14260,11 @@ type SupportedEndpointType struct {
// "kafka", "elasticsearch", "documentdb", and "sqlserver".
EngineName *string `type:"string"`
+ // The earliest AWS DMS engine version that supports this endpoint engine. Note
+ // that endpoint engines released with AWS DMS versions earlier than 3.1.1 do
+ // not return a value for this parameter.
+ ReplicationInstanceEngineMinimumVersion *string `type:"string"`
+
// Indicates if Change Data Capture (CDC) is supported.
SupportsCDC *bool `type:"boolean"`
}
@@ -14097,6 +14297,12 @@ func (s *SupportedEndpointType) SetEngineName(v string) *SupportedEndpointType {
return s
}
+// SetReplicationInstanceEngineMinimumVersion sets the ReplicationInstanceEngineMinimumVersion field's value.
+func (s *SupportedEndpointType) SetReplicationInstanceEngineMinimumVersion(v string) *SupportedEndpointType {
+ s.ReplicationInstanceEngineMinimumVersion = &v
+ return s
+}
+
// SetSupportsCDC sets the SupportsCDC field's value.
func (s *SupportedEndpointType) SetSupportsCDC(v bool) *SupportedEndpointType {
s.SupportsCDC = &v
@@ -14477,8 +14683,8 @@ func (s *TestConnectionOutput) SetConnection(v *Connection) *TestConnectionOutpu
// An upgrade dependency is preventing the database migration.
type UpgradeDependencyFailureFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14495,17 +14701,17 @@ func (s UpgradeDependencyFailureFault) GoString() string {
func newErrorUpgradeDependencyFailureFault(v protocol.ResponseMetadata) error {
return &UpgradeDependencyFailureFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UpgradeDependencyFailureFault) Code() string {
+func (s *UpgradeDependencyFailureFault) Code() string {
return "UpgradeDependencyFailureFault"
}
// Message returns the exception's message.
-func (s UpgradeDependencyFailureFault) Message() string {
+func (s *UpgradeDependencyFailureFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14513,22 +14719,22 @@ func (s UpgradeDependencyFailureFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UpgradeDependencyFailureFault) OrigErr() error {
+func (s *UpgradeDependencyFailureFault) OrigErr() error {
return nil
}
-func (s UpgradeDependencyFailureFault) Error() string {
+func (s *UpgradeDependencyFailureFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UpgradeDependencyFailureFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UpgradeDependencyFailureFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UpgradeDependencyFailureFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UpgradeDependencyFailureFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes status of a security group associated with the virtual private
diff --git a/vendor/github.com/aws/aws-sdk-go/service/dataexchange/api.go b/vendor/github.com/aws/aws-sdk-go/service/dataexchange/api.go
index c95c96bec5d..eefda3be8c5 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/dataexchange/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/dataexchange/api.go
@@ -2211,8 +2211,8 @@ func (c *DataExchange) UpdateRevisionWithContext(ctx aws.Context, input *UpdateR
// Access to the resource is denied.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Access to the resource is denied.
Message_ *string `locationName:"Message" type:"string"`
@@ -2230,17 +2230,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2248,22 +2248,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The destination for the asset.
@@ -2591,8 +2591,8 @@ func (s CancelJobOutput) GoString() string {
// The request couldn't be completed because it conflicted with the current
// state of the resource.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The request couldn't be completed because it conflicted with the current
// state of the resource.
@@ -2617,17 +2617,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2635,22 +2635,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A request to create a data set that contains one or more revisions.
@@ -3658,6 +3658,9 @@ type ExportAssetsToS3RequestDetails struct {
// DataSetId is a required field
DataSetId *string `type:"string" required:"true"`
+ // Encryption configuration for the export job.
+ Encryption *ExportServerSideEncryption `type:"structure"`
+
// The unique identifier for the revision associated with this export request.
//
// RevisionId is a required field
@@ -3696,6 +3699,11 @@ func (s *ExportAssetsToS3RequestDetails) Validate() error {
}
}
}
+ if s.Encryption != nil {
+ if err := s.Encryption.Validate(); err != nil {
+ invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -3715,6 +3723,12 @@ func (s *ExportAssetsToS3RequestDetails) SetDataSetId(v string) *ExportAssetsToS
return s
}
+// SetEncryption sets the Encryption field's value.
+func (s *ExportAssetsToS3RequestDetails) SetEncryption(v *ExportServerSideEncryption) *ExportAssetsToS3RequestDetails {
+ s.Encryption = v
+ return s
+}
+
// SetRevisionId sets the RevisionId field's value.
func (s *ExportAssetsToS3RequestDetails) SetRevisionId(v string) *ExportAssetsToS3RequestDetails {
s.RevisionId = &v
@@ -3735,6 +3749,9 @@ type ExportAssetsToS3ResponseDetails struct {
// DataSetId is a required field
DataSetId *string `type:"string" required:"true"`
+ // Encryption configuration of the export job.
+ Encryption *ExportServerSideEncryption `type:"structure"`
+
// The unique identifier for the revision associated with this export response.
//
// RevisionId is a required field
@@ -3763,12 +3780,76 @@ func (s *ExportAssetsToS3ResponseDetails) SetDataSetId(v string) *ExportAssetsTo
return s
}
+// SetEncryption sets the Encryption field's value.
+func (s *ExportAssetsToS3ResponseDetails) SetEncryption(v *ExportServerSideEncryption) *ExportAssetsToS3ResponseDetails {
+ s.Encryption = v
+ return s
+}
+
// SetRevisionId sets the RevisionId field's value.
func (s *ExportAssetsToS3ResponseDetails) SetRevisionId(v string) *ExportAssetsToS3ResponseDetails {
s.RevisionId = &v
return s
}
+// Encryption configuration of the export job. Includes the encryption type
+// as well as the AWS KMS key. The KMS key is only necessary if you chose the
+// KMS encryption type.
+type ExportServerSideEncryption struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
+ // encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
+ // as an encryption type.
+ //
+ // KmsKeyArn is a required field
+ KmsKeyArn *string `type:"string" required:"true"`
+
+ // The type of server side encryption used for encrypting the objects in Amazon
+ // S3.
+ //
+ // Type is a required field
+ Type *string `type:"string" required:"true" enum:"ServerSideEncryptionTypes"`
+}
+
+// String returns the string representation
+func (s ExportServerSideEncryption) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportServerSideEncryption) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExportServerSideEncryption) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExportServerSideEncryption"}
+ if s.KmsKeyArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("KmsKeyArn"))
+ }
+ if s.Type == nil {
+ invalidParams.Add(request.NewErrParamRequired("Type"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKmsKeyArn sets the KmsKeyArn field's value.
+func (s *ExportServerSideEncryption) SetKmsKeyArn(v string) *ExportServerSideEncryption {
+ s.KmsKeyArn = &v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *ExportServerSideEncryption) SetType(v string) *ExportServerSideEncryption {
+ s.Type = &v
+ return s
+}
+
type GetAssetInput struct {
_ struct{} `type:"structure"`
@@ -4683,8 +4764,8 @@ func (s *ImportAssetsFromS3ResponseDetails) SetRevisionId(v string) *ImportAsset
// An exception occurred with the service.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message identifying the service exception that occurred.
Message_ *string `locationName:"Message" type:"string"`
@@ -4702,17 +4783,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4720,22 +4801,22 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Data Exchange Jobs are asynchronous import or export operations used
@@ -4865,7 +4946,7 @@ type JobError struct {
// Message is a required field
Message *string `type:"string" required:"true"`
- // The unqiue identifier for the resource related to the error.
+ // The unique identifier for the resource related to the error.
ResourceId *string `type:"string"`
// The type of resource related to the error.
@@ -5460,8 +5541,8 @@ func (s *RequestDetails) SetImportAssetsFromS3(v *ImportAssetsFromS3RequestDetai
// The resource couldn't be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The resource couldn't be found.
Message_ *string `locationName:"Message" type:"string"`
@@ -5485,17 +5566,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5503,22 +5584,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details for the response.
@@ -5707,8 +5788,8 @@ func (s *S3SnapshotAsset) SetSize(v float64) *S3SnapshotAsset {
// The request has exceeded the quotas imposed by the service.
type ServiceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
LimitName *string `type:"string" enum:"LimitName"`
@@ -5729,17 +5810,17 @@ func (s ServiceLimitExceededException) GoString() string {
func newErrorServiceLimitExceededException(v protocol.ResponseMetadata) error {
return &ServiceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceLimitExceededException) Code() string {
+func (s *ServiceLimitExceededException) Code() string {
return "ServiceLimitExceededException"
}
// Message returns the exception's message.
-func (s ServiceLimitExceededException) Message() string {
+func (s *ServiceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5747,22 +5828,22 @@ func (s ServiceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceLimitExceededException) OrigErr() error {
+func (s *ServiceLimitExceededException) OrigErr() error {
return nil
}
-func (s ServiceLimitExceededException) Error() string {
+func (s *ServiceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartJobInput struct {
@@ -5885,8 +5966,8 @@ func (s TagResourceOutput) GoString() string {
// The limit on the number of requests per second was exceeded.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The limit on the number of requests per second was exceeded.
Message_ *string `locationName:"Message" type:"string"`
@@ -5904,17 +5985,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5922,22 +6003,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -6523,8 +6604,8 @@ func (s *UpdateRevisionOutput) SetUpdatedAt(v time.Time) *UpdateRevisionOutput {
// The request was invalid.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message that informs you about what was invalid about the request.
Message_ *string `locationName:"Message" type:"string"`
@@ -6542,17 +6623,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6560,22 +6641,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The type of file your data is stored in. Currently, the supported asset type
@@ -6690,6 +6771,15 @@ const (
ResourceTypeJob = "JOB"
)
+// The types of encryption supported in export jobs to Amazon S3.
+const (
+ // ServerSideEncryptionTypesAwsKms is a ServerSideEncryptionTypes enum value
+ ServerSideEncryptionTypesAwsKms = "aws:kms"
+
+ // ServerSideEncryptionTypesAes256 is a ServerSideEncryptionTypes enum value
+ ServerSideEncryptionTypesAes256 = "AES256"
+)
+
const (
// StateWaiting is a State enum value
StateWaiting = "WAITING"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
index 196fab8abbf..d4067601430 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
@@ -2899,8 +2899,8 @@ func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity {
// An internal service error occurred.
type InternalServiceError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Description of the error message.
Message_ *string `locationName:"message" type:"string"`
@@ -2918,17 +2918,17 @@ func (s InternalServiceError) GoString() string {
func newErrorInternalServiceError(v protocol.ResponseMetadata) error {
return &InternalServiceError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceError) Code() string {
+func (s *InternalServiceError) Code() string {
return "InternalServiceError"
}
// Message returns the exception's message.
-func (s InternalServiceError) Message() string {
+func (s *InternalServiceError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2936,30 +2936,30 @@ func (s InternalServiceError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceError) OrigErr() error {
+func (s *InternalServiceError) OrigErr() error {
return nil
}
-func (s InternalServiceError) Error() string {
+func (s *InternalServiceError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was not valid. Verify that your request was properly formatted,
// that the signature was generated with the correct credentials, and that you
// haven't exceeded any of the service limits for your account.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Description of the error message.
Message_ *string `locationName:"message" type:"string"`
@@ -2977,17 +2977,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2995,22 +2995,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains the parameters for ListPipelines.
@@ -3344,8 +3344,8 @@ func (s *ParameterValue) SetStringValue(v string) *ParameterValue {
// The specified pipeline has been deleted.
type PipelineDeletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Description of the error message.
Message_ *string `locationName:"message" type:"string"`
@@ -3363,17 +3363,17 @@ func (s PipelineDeletedException) GoString() string {
func newErrorPipelineDeletedException(v protocol.ResponseMetadata) error {
return &PipelineDeletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineDeletedException) Code() string {
+func (s *PipelineDeletedException) Code() string {
return "PipelineDeletedException"
}
// Message returns the exception's message.
-func (s PipelineDeletedException) Message() string {
+func (s *PipelineDeletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3381,22 +3381,22 @@ func (s PipelineDeletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineDeletedException) OrigErr() error {
+func (s *PipelineDeletedException) OrigErr() error {
return nil
}
-func (s PipelineDeletedException) Error() string {
+func (s *PipelineDeletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineDeletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineDeletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineDeletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineDeletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains pipeline metadata.
@@ -3507,8 +3507,8 @@ func (s *PipelineIdName) SetName(v string) *PipelineIdName {
// The specified pipeline was not found. Verify that you used the correct user
// and account identifiers.
type PipelineNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Description of the error message.
Message_ *string `locationName:"message" type:"string"`
@@ -3526,17 +3526,17 @@ func (s PipelineNotFoundException) GoString() string {
func newErrorPipelineNotFoundException(v protocol.ResponseMetadata) error {
return &PipelineNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PipelineNotFoundException) Code() string {
+func (s *PipelineNotFoundException) Code() string {
return "PipelineNotFoundException"
}
// Message returns the exception's message.
-func (s PipelineNotFoundException) Message() string {
+func (s *PipelineNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3544,22 +3544,22 @@ func (s PipelineNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PipelineNotFoundException) OrigErr() error {
+func (s *PipelineNotFoundException) OrigErr() error {
return nil
}
-func (s PipelineNotFoundException) Error() string {
+func (s *PipelineNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PipelineNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PipelineNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PipelineNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PipelineNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a pipeline object. This can be a logical, physical,
@@ -4612,8 +4612,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The specified task was not found.
type TaskNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Description of the error message.
Message_ *string `locationName:"message" type:"string"`
@@ -4631,17 +4631,17 @@ func (s TaskNotFoundException) GoString() string {
func newErrorTaskNotFoundException(v protocol.ResponseMetadata) error {
return &TaskNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaskNotFoundException) Code() string {
+func (s *TaskNotFoundException) Code() string {
return "TaskNotFoundException"
}
// Message returns the exception's message.
-func (s TaskNotFoundException) Message() string {
+func (s *TaskNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4649,22 +4649,22 @@ func (s TaskNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaskNotFoundException) OrigErr() error {
+func (s *TaskNotFoundException) OrigErr() error {
return nil
}
-func (s TaskNotFoundException) Error() string {
+func (s *TaskNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaskNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaskNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaskNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaskNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a pipeline task that is assigned to a task runner.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go
index affac0d7d75..79b332bbf01 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go
@@ -5272,8 +5272,8 @@ func (s *FilterRule) SetValue(v string) *FilterRule {
// This exception is thrown when an error occurs in the AWS DataSync service.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -5292,17 +5292,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5310,28 +5310,28 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the client submits a malformed request.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -5350,17 +5350,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5368,22 +5368,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// ListAgentsRequest
diff --git a/vendor/github.com/aws/aws-sdk-go/service/dax/api.go b/vendor/github.com/aws/aws-sdk-go/service/dax/api.go
index b9c5343888f..8a2add4a30e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/dax/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/dax/api.go
@@ -2188,8 +2188,8 @@ func (s *Cluster) SetTotalNodes(v int64) *Cluster {
// You already have a DAX cluster with the given identifier.
type ClusterAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2206,17 +2206,17 @@ func (s ClusterAlreadyExistsFault) GoString() string {
func newErrorClusterAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &ClusterAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterAlreadyExistsFault) Code() string {
+func (s *ClusterAlreadyExistsFault) Code() string {
return "ClusterAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s ClusterAlreadyExistsFault) Message() string {
+func (s *ClusterAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2224,28 +2224,28 @@ func (s ClusterAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterAlreadyExistsFault) OrigErr() error {
+func (s *ClusterAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s ClusterAlreadyExistsFault) Error() string {
+func (s *ClusterAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested cluster ID does not refer to an existing DAX cluster.
type ClusterNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2262,17 +2262,17 @@ func (s ClusterNotFoundFault) GoString() string {
func newErrorClusterNotFoundFault(v protocol.ResponseMetadata) error {
return &ClusterNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterNotFoundFault) Code() string {
+func (s *ClusterNotFoundFault) Code() string {
return "ClusterNotFoundFault"
}
// Message returns the exception's message.
-func (s ClusterNotFoundFault) Message() string {
+func (s *ClusterNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2280,29 +2280,29 @@ func (s ClusterNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterNotFoundFault) OrigErr() error {
+func (s *ClusterNotFoundFault) OrigErr() error {
return nil
}
-func (s ClusterNotFoundFault) Error() string {
+func (s *ClusterNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have attempted to exceed the maximum number of DAX clusters for your
// AWS account.
type ClusterQuotaForCustomerExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2319,17 +2319,17 @@ func (s ClusterQuotaForCustomerExceededFault) GoString() string {
func newErrorClusterQuotaForCustomerExceededFault(v protocol.ResponseMetadata) error {
return &ClusterQuotaForCustomerExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterQuotaForCustomerExceededFault) Code() string {
+func (s *ClusterQuotaForCustomerExceededFault) Code() string {
return "ClusterQuotaForCustomerExceededFault"
}
// Message returns the exception's message.
-func (s ClusterQuotaForCustomerExceededFault) Message() string {
+func (s *ClusterQuotaForCustomerExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2337,22 +2337,22 @@ func (s ClusterQuotaForCustomerExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterQuotaForCustomerExceededFault) OrigErr() error {
+func (s *ClusterQuotaForCustomerExceededFault) OrigErr() error {
return nil
}
-func (s ClusterQuotaForCustomerExceededFault) Error() string {
+func (s *ClusterQuotaForCustomerExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterQuotaForCustomerExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterQuotaForCustomerExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterQuotaForCustomerExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterQuotaForCustomerExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateClusterInput struct {
@@ -3744,8 +3744,8 @@ func (s *IncreaseReplicationFactorOutput) SetCluster(v *Cluster) *IncreaseReplic
// There are not enough system resources to create the cluster you requested
// (or to resize an already-existing cluster).
type InsufficientClusterCapacityFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3762,17 +3762,17 @@ func (s InsufficientClusterCapacityFault) GoString() string {
func newErrorInsufficientClusterCapacityFault(v protocol.ResponseMetadata) error {
return &InsufficientClusterCapacityFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientClusterCapacityFault) Code() string {
+func (s *InsufficientClusterCapacityFault) Code() string {
return "InsufficientClusterCapacityFault"
}
// Message returns the exception's message.
-func (s InsufficientClusterCapacityFault) Message() string {
+func (s *InsufficientClusterCapacityFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3780,28 +3780,28 @@ func (s InsufficientClusterCapacityFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientClusterCapacityFault) OrigErr() error {
+func (s *InsufficientClusterCapacityFault) OrigErr() error {
return nil
}
-func (s InsufficientClusterCapacityFault) Error() string {
+func (s *InsufficientClusterCapacityFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientClusterCapacityFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientClusterCapacityFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientClusterCapacityFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientClusterCapacityFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Resource Name (ARN) supplied in the request is not valid.
type InvalidARNFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3818,17 +3818,17 @@ func (s InvalidARNFault) GoString() string {
func newErrorInvalidARNFault(v protocol.ResponseMetadata) error {
return &InvalidARNFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidARNFault) Code() string {
+func (s *InvalidARNFault) Code() string {
return "InvalidARNFault"
}
// Message returns the exception's message.
-func (s InvalidARNFault) Message() string {
+func (s *InvalidARNFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3836,28 +3836,28 @@ func (s InvalidARNFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidARNFault) OrigErr() error {
+func (s *InvalidARNFault) OrigErr() error {
return nil
}
-func (s InvalidARNFault) Error() string {
+func (s *InvalidARNFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidARNFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidARNFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidARNFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidARNFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested DAX cluster is not in the available state.
type InvalidClusterStateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3874,17 +3874,17 @@ func (s InvalidClusterStateFault) GoString() string {
func newErrorInvalidClusterStateFault(v protocol.ResponseMetadata) error {
return &InvalidClusterStateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidClusterStateFault) Code() string {
+func (s *InvalidClusterStateFault) Code() string {
return "InvalidClusterStateFault"
}
// Message returns the exception's message.
-func (s InvalidClusterStateFault) Message() string {
+func (s *InvalidClusterStateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3892,28 +3892,28 @@ func (s InvalidClusterStateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidClusterStateFault) OrigErr() error {
+func (s *InvalidClusterStateFault) OrigErr() error {
return nil
}
-func (s InvalidClusterStateFault) Error() string {
+func (s *InvalidClusterStateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidClusterStateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidClusterStateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidClusterStateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidClusterStateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Two or more incompatible parameters were specified.
type InvalidParameterCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3930,17 +3930,17 @@ func (s InvalidParameterCombinationException) GoString() string {
func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error {
return &InvalidParameterCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterCombinationException) Code() string {
+func (s *InvalidParameterCombinationException) Code() string {
return "InvalidParameterCombinationException"
}
// Message returns the exception's message.
-func (s InvalidParameterCombinationException) Message() string {
+func (s *InvalidParameterCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3948,28 +3948,28 @@ func (s InvalidParameterCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterCombinationException) OrigErr() error {
+func (s *InvalidParameterCombinationException) OrigErr() error {
return nil
}
-func (s InvalidParameterCombinationException) Error() string {
+func (s *InvalidParameterCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameters in a parameter group are in an invalid state.
type InvalidParameterGroupStateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3986,17 +3986,17 @@ func (s InvalidParameterGroupStateFault) GoString() string {
func newErrorInvalidParameterGroupStateFault(v protocol.ResponseMetadata) error {
return &InvalidParameterGroupStateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterGroupStateFault) Code() string {
+func (s *InvalidParameterGroupStateFault) Code() string {
return "InvalidParameterGroupStateFault"
}
// Message returns the exception's message.
-func (s InvalidParameterGroupStateFault) Message() string {
+func (s *InvalidParameterGroupStateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4004,28 +4004,28 @@ func (s InvalidParameterGroupStateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterGroupStateFault) OrigErr() error {
+func (s *InvalidParameterGroupStateFault) OrigErr() error {
return nil
}
-func (s InvalidParameterGroupStateFault) Error() string {
+func (s *InvalidParameterGroupStateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterGroupStateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterGroupStateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterGroupStateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterGroupStateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value for a parameter is invalid.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4042,17 +4042,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4060,28 +4060,28 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid subnet identifier was specified.
type InvalidSubnet struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4098,17 +4098,17 @@ func (s InvalidSubnet) GoString() string {
func newErrorInvalidSubnet(v protocol.ResponseMetadata) error {
return &InvalidSubnet{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSubnet) Code() string {
+func (s *InvalidSubnet) Code() string {
return "InvalidSubnet"
}
// Message returns the exception's message.
-func (s InvalidSubnet) Message() string {
+func (s *InvalidSubnet) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4116,28 +4116,28 @@ func (s InvalidSubnet) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSubnet) OrigErr() error {
+func (s *InvalidSubnet) OrigErr() error {
return nil
}
-func (s InvalidSubnet) Error() string {
+func (s *InvalidSubnet) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSubnet) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSubnet) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSubnet) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSubnet) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The VPC network is in an invalid state.
type InvalidVPCNetworkStateFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4154,17 +4154,17 @@ func (s InvalidVPCNetworkStateFault) GoString() string {
func newErrorInvalidVPCNetworkStateFault(v protocol.ResponseMetadata) error {
return &InvalidVPCNetworkStateFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidVPCNetworkStateFault) Code() string {
+func (s *InvalidVPCNetworkStateFault) Code() string {
return "InvalidVPCNetworkStateFault"
}
// Message returns the exception's message.
-func (s InvalidVPCNetworkStateFault) Message() string {
+func (s *InvalidVPCNetworkStateFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4172,22 +4172,22 @@ func (s InvalidVPCNetworkStateFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidVPCNetworkStateFault) OrigErr() error {
+func (s *InvalidVPCNetworkStateFault) OrigErr() error {
return nil
}
-func (s InvalidVPCNetworkStateFault) Error() string {
+func (s *InvalidVPCNetworkStateFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidVPCNetworkStateFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidVPCNetworkStateFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidVPCNetworkStateFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidVPCNetworkStateFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListTagsInput struct {
@@ -4347,8 +4347,8 @@ func (s *Node) SetParameterGroupStatus(v string) *Node {
// None of the nodes in the cluster have the given node ID.
type NodeNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4365,17 +4365,17 @@ func (s NodeNotFoundFault) GoString() string {
func newErrorNodeNotFoundFault(v protocol.ResponseMetadata) error {
return &NodeNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NodeNotFoundFault) Code() string {
+func (s *NodeNotFoundFault) Code() string {
return "NodeNotFoundFault"
}
// Message returns the exception's message.
-func (s NodeNotFoundFault) Message() string {
+func (s *NodeNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4383,28 +4383,28 @@ func (s NodeNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NodeNotFoundFault) OrigErr() error {
+func (s *NodeNotFoundFault) OrigErr() error {
return nil
}
-func (s NodeNotFoundFault) Error() string {
+func (s *NodeNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NodeNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NodeNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NodeNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NodeNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have attempted to exceed the maximum number of nodes for a DAX cluster.
type NodeQuotaForClusterExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4421,17 +4421,17 @@ func (s NodeQuotaForClusterExceededFault) GoString() string {
func newErrorNodeQuotaForClusterExceededFault(v protocol.ResponseMetadata) error {
return &NodeQuotaForClusterExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NodeQuotaForClusterExceededFault) Code() string {
+func (s *NodeQuotaForClusterExceededFault) Code() string {
return "NodeQuotaForClusterExceededFault"
}
// Message returns the exception's message.
-func (s NodeQuotaForClusterExceededFault) Message() string {
+func (s *NodeQuotaForClusterExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4439,28 +4439,28 @@ func (s NodeQuotaForClusterExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NodeQuotaForClusterExceededFault) OrigErr() error {
+func (s *NodeQuotaForClusterExceededFault) OrigErr() error {
return nil
}
-func (s NodeQuotaForClusterExceededFault) Error() string {
+func (s *NodeQuotaForClusterExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NodeQuotaForClusterExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NodeQuotaForClusterExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NodeQuotaForClusterExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NodeQuotaForClusterExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have attempted to exceed the maximum number of nodes for your AWS account.
type NodeQuotaForCustomerExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4477,17 +4477,17 @@ func (s NodeQuotaForCustomerExceededFault) GoString() string {
func newErrorNodeQuotaForCustomerExceededFault(v protocol.ResponseMetadata) error {
return &NodeQuotaForCustomerExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NodeQuotaForCustomerExceededFault) Code() string {
+func (s *NodeQuotaForCustomerExceededFault) Code() string {
return "NodeQuotaForCustomerExceededFault"
}
// Message returns the exception's message.
-func (s NodeQuotaForCustomerExceededFault) Message() string {
+func (s *NodeQuotaForCustomerExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4495,22 +4495,22 @@ func (s NodeQuotaForCustomerExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NodeQuotaForCustomerExceededFault) OrigErr() error {
+func (s *NodeQuotaForCustomerExceededFault) OrigErr() error {
return nil
}
-func (s NodeQuotaForCustomerExceededFault) Error() string {
+func (s *NodeQuotaForCustomerExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NodeQuotaForCustomerExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NodeQuotaForCustomerExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NodeQuotaForCustomerExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NodeQuotaForCustomerExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a parameter value that is applicable to a particular node type.
@@ -4725,8 +4725,8 @@ func (s *ParameterGroup) SetParameterGroupName(v string) *ParameterGroup {
// The specified parameter group already exists.
type ParameterGroupAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4743,17 +4743,17 @@ func (s ParameterGroupAlreadyExistsFault) GoString() string {
func newErrorParameterGroupAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &ParameterGroupAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterGroupAlreadyExistsFault) Code() string {
+func (s *ParameterGroupAlreadyExistsFault) Code() string {
return "ParameterGroupAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s ParameterGroupAlreadyExistsFault) Message() string {
+func (s *ParameterGroupAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4761,28 +4761,28 @@ func (s ParameterGroupAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterGroupAlreadyExistsFault) OrigErr() error {
+func (s *ParameterGroupAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s ParameterGroupAlreadyExistsFault) Error() string {
+func (s *ParameterGroupAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterGroupAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterGroupAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterGroupAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterGroupAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified parameter group does not exist.
type ParameterGroupNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4799,17 +4799,17 @@ func (s ParameterGroupNotFoundFault) GoString() string {
func newErrorParameterGroupNotFoundFault(v protocol.ResponseMetadata) error {
return &ParameterGroupNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterGroupNotFoundFault) Code() string {
+func (s *ParameterGroupNotFoundFault) Code() string {
return "ParameterGroupNotFoundFault"
}
// Message returns the exception's message.
-func (s ParameterGroupNotFoundFault) Message() string {
+func (s *ParameterGroupNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4817,28 +4817,28 @@ func (s ParameterGroupNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterGroupNotFoundFault) OrigErr() error {
+func (s *ParameterGroupNotFoundFault) OrigErr() error {
return nil
}
-func (s ParameterGroupNotFoundFault) Error() string {
+func (s *ParameterGroupNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterGroupNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterGroupNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterGroupNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterGroupNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have attempted to exceed the maximum number of parameter groups.
type ParameterGroupQuotaExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4855,17 +4855,17 @@ func (s ParameterGroupQuotaExceededFault) GoString() string {
func newErrorParameterGroupQuotaExceededFault(v protocol.ResponseMetadata) error {
return &ParameterGroupQuotaExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterGroupQuotaExceededFault) Code() string {
+func (s *ParameterGroupQuotaExceededFault) Code() string {
return "ParameterGroupQuotaExceededFault"
}
// Message returns the exception's message.
-func (s ParameterGroupQuotaExceededFault) Message() string {
+func (s *ParameterGroupQuotaExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4873,22 +4873,22 @@ func (s ParameterGroupQuotaExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterGroupQuotaExceededFault) OrigErr() error {
+func (s *ParameterGroupQuotaExceededFault) OrigErr() error {
return nil
}
-func (s ParameterGroupQuotaExceededFault) Error() string {
+func (s *ParameterGroupQuotaExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterGroupQuotaExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterGroupQuotaExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterGroupQuotaExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterGroupQuotaExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The status of a parameter group.
@@ -5149,8 +5149,8 @@ func (s *SecurityGroupMembership) SetStatus(v string) *SecurityGroupMembership {
// The specified service linked role (SLR) was not found.
type ServiceLinkedRoleNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5167,17 +5167,17 @@ func (s ServiceLinkedRoleNotFoundFault) GoString() string {
func newErrorServiceLinkedRoleNotFoundFault(v protocol.ResponseMetadata) error {
return &ServiceLinkedRoleNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceLinkedRoleNotFoundFault) Code() string {
+func (s *ServiceLinkedRoleNotFoundFault) Code() string {
return "ServiceLinkedRoleNotFoundFault"
}
// Message returns the exception's message.
-func (s ServiceLinkedRoleNotFoundFault) Message() string {
+func (s *ServiceLinkedRoleNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5185,22 +5185,22 @@ func (s ServiceLinkedRoleNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceLinkedRoleNotFoundFault) OrigErr() error {
+func (s *ServiceLinkedRoleNotFoundFault) OrigErr() error {
return nil
}
-func (s ServiceLinkedRoleNotFoundFault) Error() string {
+func (s *ServiceLinkedRoleNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceLinkedRoleNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceLinkedRoleNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceLinkedRoleNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceLinkedRoleNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the subnet associated with a DAX cluster. This parameter refers
@@ -5295,8 +5295,8 @@ func (s *SubnetGroup) SetVpcId(v string) *SubnetGroup {
// The specified subnet group already exists.
type SubnetGroupAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5313,17 +5313,17 @@ func (s SubnetGroupAlreadyExistsFault) GoString() string {
func newErrorSubnetGroupAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &SubnetGroupAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetGroupAlreadyExistsFault) Code() string {
+func (s *SubnetGroupAlreadyExistsFault) Code() string {
return "SubnetGroupAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s SubnetGroupAlreadyExistsFault) Message() string {
+func (s *SubnetGroupAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5331,28 +5331,28 @@ func (s SubnetGroupAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetGroupAlreadyExistsFault) OrigErr() error {
+func (s *SubnetGroupAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s SubnetGroupAlreadyExistsFault) Error() string {
+func (s *SubnetGroupAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetGroupAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetGroupAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetGroupAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetGroupAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified subnet group is currently in use.
type SubnetGroupInUseFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5369,17 +5369,17 @@ func (s SubnetGroupInUseFault) GoString() string {
func newErrorSubnetGroupInUseFault(v protocol.ResponseMetadata) error {
return &SubnetGroupInUseFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetGroupInUseFault) Code() string {
+func (s *SubnetGroupInUseFault) Code() string {
return "SubnetGroupInUseFault"
}
// Message returns the exception's message.
-func (s SubnetGroupInUseFault) Message() string {
+func (s *SubnetGroupInUseFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5387,28 +5387,28 @@ func (s SubnetGroupInUseFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetGroupInUseFault) OrigErr() error {
+func (s *SubnetGroupInUseFault) OrigErr() error {
return nil
}
-func (s SubnetGroupInUseFault) Error() string {
+func (s *SubnetGroupInUseFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetGroupInUseFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetGroupInUseFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetGroupInUseFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetGroupInUseFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested subnet group name does not refer to an existing subnet group.
type SubnetGroupNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5425,17 +5425,17 @@ func (s SubnetGroupNotFoundFault) GoString() string {
func newErrorSubnetGroupNotFoundFault(v protocol.ResponseMetadata) error {
return &SubnetGroupNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetGroupNotFoundFault) Code() string {
+func (s *SubnetGroupNotFoundFault) Code() string {
return "SubnetGroupNotFoundFault"
}
// Message returns the exception's message.
-func (s SubnetGroupNotFoundFault) Message() string {
+func (s *SubnetGroupNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5443,29 +5443,29 @@ func (s SubnetGroupNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetGroupNotFoundFault) OrigErr() error {
+func (s *SubnetGroupNotFoundFault) OrigErr() error {
return nil
}
-func (s SubnetGroupNotFoundFault) Error() string {
+func (s *SubnetGroupNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetGroupNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetGroupNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetGroupNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetGroupNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request cannot be processed because it would exceed the allowed number
// of subnets in a subnet group.
type SubnetGroupQuotaExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5482,17 +5482,17 @@ func (s SubnetGroupQuotaExceededFault) GoString() string {
func newErrorSubnetGroupQuotaExceededFault(v protocol.ResponseMetadata) error {
return &SubnetGroupQuotaExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetGroupQuotaExceededFault) Code() string {
+func (s *SubnetGroupQuotaExceededFault) Code() string {
return "SubnetGroupQuotaExceededFault"
}
// Message returns the exception's message.
-func (s SubnetGroupQuotaExceededFault) Message() string {
+func (s *SubnetGroupQuotaExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5500,28 +5500,28 @@ func (s SubnetGroupQuotaExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetGroupQuotaExceededFault) OrigErr() error {
+func (s *SubnetGroupQuotaExceededFault) OrigErr() error {
return nil
}
-func (s SubnetGroupQuotaExceededFault) Error() string {
+func (s *SubnetGroupQuotaExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetGroupQuotaExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetGroupQuotaExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetGroupQuotaExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetGroupQuotaExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested subnet is being used by another subnet group.
type SubnetInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5538,17 +5538,17 @@ func (s SubnetInUse) GoString() string {
func newErrorSubnetInUse(v protocol.ResponseMetadata) error {
return &SubnetInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetInUse) Code() string {
+func (s *SubnetInUse) Code() string {
return "SubnetInUse"
}
// Message returns the exception's message.
-func (s SubnetInUse) Message() string {
+func (s *SubnetInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5556,29 +5556,29 @@ func (s SubnetInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetInUse) OrigErr() error {
+func (s *SubnetInUse) OrigErr() error {
return nil
}
-func (s SubnetInUse) Error() string {
+func (s *SubnetInUse) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request cannot be processed because it would exceed the allowed number
// of subnets in a subnet group.
type SubnetQuotaExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5595,17 +5595,17 @@ func (s SubnetQuotaExceededFault) GoString() string {
func newErrorSubnetQuotaExceededFault(v protocol.ResponseMetadata) error {
return &SubnetQuotaExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetQuotaExceededFault) Code() string {
+func (s *SubnetQuotaExceededFault) Code() string {
return "SubnetQuotaExceededFault"
}
// Message returns the exception's message.
-func (s SubnetQuotaExceededFault) Message() string {
+func (s *SubnetQuotaExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5613,22 +5613,22 @@ func (s SubnetQuotaExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetQuotaExceededFault) OrigErr() error {
+func (s *SubnetQuotaExceededFault) OrigErr() error {
return nil
}
-func (s SubnetQuotaExceededFault) Error() string {
+func (s *SubnetQuotaExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetQuotaExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetQuotaExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetQuotaExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetQuotaExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A description of a tag. Every tag is a key-value pair. You can add up to
@@ -5675,8 +5675,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The tag does not exist.
type TagNotFoundFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5693,17 +5693,17 @@ func (s TagNotFoundFault) GoString() string {
func newErrorTagNotFoundFault(v protocol.ResponseMetadata) error {
return &TagNotFoundFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagNotFoundFault) Code() string {
+func (s *TagNotFoundFault) Code() string {
return "TagNotFoundFault"
}
// Message returns the exception's message.
-func (s TagNotFoundFault) Message() string {
+func (s *TagNotFoundFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5711,28 +5711,28 @@ func (s TagNotFoundFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagNotFoundFault) OrigErr() error {
+func (s *TagNotFoundFault) OrigErr() error {
return nil
}
-func (s TagNotFoundFault) Error() string {
+func (s *TagNotFoundFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagNotFoundFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagNotFoundFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagNotFoundFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagNotFoundFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have exceeded the maximum number of tags for this DAX cluster.
type TagQuotaPerResourceExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5749,17 +5749,17 @@ func (s TagQuotaPerResourceExceeded) GoString() string {
func newErrorTagQuotaPerResourceExceeded(v protocol.ResponseMetadata) error {
return &TagQuotaPerResourceExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagQuotaPerResourceExceeded) Code() string {
+func (s *TagQuotaPerResourceExceeded) Code() string {
return "TagQuotaPerResourceExceeded"
}
// Message returns the exception's message.
-func (s TagQuotaPerResourceExceeded) Message() string {
+func (s *TagQuotaPerResourceExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5767,22 +5767,22 @@ func (s TagQuotaPerResourceExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagQuotaPerResourceExceeded) OrigErr() error {
+func (s *TagQuotaPerResourceExceeded) OrigErr() error {
return nil
}
-func (s TagQuotaPerResourceExceeded) Error() string {
+func (s *TagQuotaPerResourceExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagQuotaPerResourceExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagQuotaPerResourceExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagQuotaPerResourceExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagQuotaPerResourceExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go
index a458895b251..794dbc5c295 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go
@@ -8007,8 +8007,8 @@ func (s *AccountSettings) SetUnmeteredRemoteAccessDevices(v map[string]*int64) *
// An invalid argument was specified.
type ArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Any additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -8026,17 +8026,17 @@ func (s ArgumentException) GoString() string {
func newErrorArgumentException(v protocol.ResponseMetadata) error {
return &ArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ArgumentException) Code() string {
+func (s *ArgumentException) Code() string {
return "ArgumentException"
}
// Message returns the exception's message.
-func (s ArgumentException) Message() string {
+func (s *ArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8044,22 +8044,22 @@ func (s ArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ArgumentException) OrigErr() error {
+func (s *ArgumentException) OrigErr() error {
return nil
}
-func (s ArgumentException) Error() string {
+func (s *ArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the output of a test. Examples of artifacts include logs and screenshots.
@@ -8228,8 +8228,8 @@ func (s *CPU) SetFrequency(v string) *CPU {
// The requested object could not be deleted.
type CannotDeleteException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8246,17 +8246,17 @@ func (s CannotDeleteException) GoString() string {
func newErrorCannotDeleteException(v protocol.ResponseMetadata) error {
return &CannotDeleteException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CannotDeleteException) Code() string {
+func (s *CannotDeleteException) Code() string {
return "CannotDeleteException"
}
// Message returns the exception's message.
-func (s CannotDeleteException) Message() string {
+func (s *CannotDeleteException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8264,22 +8264,22 @@ func (s CannotDeleteException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CannotDeleteException) OrigErr() error {
+func (s *CannotDeleteException) OrigErr() error {
return nil
}
-func (s CannotDeleteException) Error() string {
+func (s *CannotDeleteException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CannotDeleteException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CannotDeleteException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CannotDeleteException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CannotDeleteException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents entity counters.
@@ -12177,8 +12177,8 @@ func (s *GetVPCEConfigurationOutput) SetVpceConfiguration(v *VPCEConfiguration)
// An entity with the same name already exists.
type IdempotencyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Any additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -12196,17 +12196,17 @@ func (s IdempotencyException) GoString() string {
func newErrorIdempotencyException(v protocol.ResponseMetadata) error {
return &IdempotencyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotencyException) Code() string {
+func (s *IdempotencyException) Code() string {
return "IdempotencyException"
}
// Message returns the exception's message.
-func (s IdempotencyException) Message() string {
+func (s *IdempotencyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12214,22 +12214,22 @@ func (s IdempotencyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotencyException) OrigErr() error {
+func (s *IdempotencyException) OrigErr() error {
return nil
}
-func (s IdempotencyException) Error() string {
+func (s *IdempotencyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotencyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotencyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotencyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotencyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about incompatibility.
@@ -12442,8 +12442,8 @@ func (s *InstanceProfile) SetRebootAfterUse(v bool) *InstanceProfile {
// An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com
// (mailto:aws-devicefarm-support@amazon.com) if you see this error.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12460,17 +12460,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12478,29 +12478,29 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There was an error with the update request, or you do not have sufficient
// permissions to update this VPC endpoint configuration.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12517,17 +12517,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "InvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12535,22 +12535,22 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a device.
@@ -12781,8 +12781,8 @@ func (s *Job) SetVideoEndpoint(v string) *Job {
// A limit was exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Any additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -12800,17 +12800,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12818,22 +12818,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a request to the list artifacts operation.
@@ -15349,8 +15349,8 @@ func (s *NetworkProfile) SetUplinkLossPercent(v int64) *NetworkProfile {
// Exception gets thrown when a user is not eligible to perform the specified
// transaction.
type NotEligibleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The HTTP response code of a Not Eligible exception.
Message_ *string `locationName:"message" type:"string"`
@@ -15368,17 +15368,17 @@ func (s NotEligibleException) GoString() string {
func newErrorNotEligibleException(v protocol.ResponseMetadata) error {
return &NotEligibleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotEligibleException) Code() string {
+func (s *NotEligibleException) Code() string {
return "NotEligibleException"
}
// Message returns the exception's message.
-func (s NotEligibleException) Message() string {
+func (s *NotEligibleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15386,28 +15386,28 @@ func (s NotEligibleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotEligibleException) OrigErr() error {
+func (s *NotEligibleException) OrigErr() error {
return nil
}
-func (s NotEligibleException) Error() string {
+func (s *NotEligibleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotEligibleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotEligibleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotEligibleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotEligibleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified entity was not found.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Any additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -15425,17 +15425,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15443,22 +15443,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the metadata of a device offering.
@@ -17457,8 +17457,8 @@ func (s *ScheduleRunTest) SetType(v string) *ScheduleRunTest {
// There was a problem with the service account.
type ServiceAccountException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Any additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -17476,17 +17476,17 @@ func (s ServiceAccountException) GoString() string {
func newErrorServiceAccountException(v protocol.ResponseMetadata) error {
return &ServiceAccountException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceAccountException) Code() string {
+func (s *ServiceAccountException) Code() string {
return "ServiceAccountException"
}
// Message returns the exception's message.
-func (s ServiceAccountException) Message() string {
+func (s *ServiceAccountException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17494,22 +17494,22 @@ func (s ServiceAccountException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceAccountException) OrigErr() error {
+func (s *ServiceAccountException) OrigErr() error {
return nil
}
-func (s ServiceAccountException) Error() string {
+func (s *ServiceAccountException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceAccountException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceAccountException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceAccountException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceAccountException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StopJobInput struct {
@@ -17963,8 +17963,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The operation was not successful. Try again.
type TagOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -17983,17 +17983,17 @@ func (s TagOperationException) GoString() string {
func newErrorTagOperationException(v protocol.ResponseMetadata) error {
return &TagOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagOperationException) Code() string {
+func (s *TagOperationException) Code() string {
return "TagOperationException"
}
// Message returns the exception's message.
-func (s TagOperationException) Message() string {
+func (s *TagOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18001,29 +18001,29 @@ func (s TagOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagOperationException) OrigErr() error {
+func (s *TagOperationException) OrigErr() error {
return nil
}
-func (s TagOperationException) Error() string {
+func (s *TagOperationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request doesn't comply with the AWS Identity and Access Management (IAM)
// tag policy. Correct your request and then retry it.
type TagPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -18042,17 +18042,17 @@ func (s TagPolicyException) GoString() string {
func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
return &TagPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagPolicyException) Code() string {
+func (s *TagPolicyException) Code() string {
return "TagPolicyException"
}
// Message returns the exception's message.
-func (s TagPolicyException) Message() string {
+func (s *TagPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18060,22 +18060,22 @@ func (s TagPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagPolicyException) OrigErr() error {
+func (s *TagPolicyException) OrigErr() error {
return nil
}
-func (s TagPolicyException) Error() string {
+func (s *TagPolicyException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -18581,8 +18581,8 @@ func (s *TestGridSessionArtifact) SetUrl(v string) *TestGridSessionArtifact {
// The list of tags on the repository is over the limit. The maximum number
// of tags that can be applied to a repository is 50.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -18601,17 +18601,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18619,22 +18619,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents information about free trial device minutes for an AWS account.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go
index 4cd291e1480..fe73bb92626 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go
@@ -5660,8 +5660,8 @@ func (s *BGPPeer) SetCustomerAddress(v string) *BGPPeer {
// One or more parameters are not valid.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5678,17 +5678,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "DirectConnectClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5696,22 +5696,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ConfirmConnectionInput struct {
@@ -8714,8 +8714,8 @@ func (s *DisassociateConnectionFromLagInput) SetLagId(v string) *DisassociateCon
// A tag key was specified more than once.
type DuplicateTagKeysException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8732,17 +8732,17 @@ func (s DuplicateTagKeysException) GoString() string {
func newErrorDuplicateTagKeysException(v protocol.ResponseMetadata) error {
return &DuplicateTagKeysException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateTagKeysException) Code() string {
+func (s *DuplicateTagKeysException) Code() string {
return "DuplicateTagKeysException"
}
// Message returns the exception's message.
-func (s DuplicateTagKeysException) Message() string {
+func (s *DuplicateTagKeysException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8750,22 +8750,22 @@ func (s DuplicateTagKeysException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateTagKeysException) OrigErr() error {
+func (s *DuplicateTagKeysException) OrigErr() error {
return nil
}
-func (s DuplicateTagKeysException) Error() string {
+func (s *DuplicateTagKeysException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateTagKeysException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateTagKeysException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateTagKeysException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateTagKeysException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a Direct Connect gateway, which enables you to connect
@@ -10534,8 +10534,8 @@ func (s *RouteFilterPrefix) SetCidr(v string) *RouteFilterPrefix {
// A server-side error occurred.
type ServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10552,17 +10552,17 @@ func (s ServerException) GoString() string {
func newErrorServerException(v protocol.ResponseMetadata) error {
return &ServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerException) Code() string {
+func (s *ServerException) Code() string {
return "DirectConnectServerException"
}
// Message returns the exception's message.
-func (s ServerException) Message() string {
+func (s *ServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10570,22 +10570,22 @@ func (s ServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerException) OrigErr() error {
+func (s *ServerException) OrigErr() error {
return nil
}
-func (s ServerException) Error() string {
+func (s *ServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a tag.
@@ -10720,8 +10720,8 @@ func (s TagResourceOutput) GoString() string {
// You have reached the limit on the number of tags that can be assigned.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10738,17 +10738,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10756,22 +10756,22 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
index ce66195e46f..231dfd334d1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
@@ -5569,8 +5569,8 @@ func (s *AcceptSharedDirectoryOutput) SetSharedDirectory(v *SharedDirectory) *Ac
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -5591,17 +5591,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5609,22 +5609,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AddIpRoutesInput struct {
@@ -5872,8 +5872,8 @@ func (s *Attribute) SetValue(v string) *Attribute {
// An authentication error occurred.
type AuthenticationFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The textual message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -5894,17 +5894,17 @@ func (s AuthenticationFailedException) GoString() string {
func newErrorAuthenticationFailedException(v protocol.ResponseMetadata) error {
return &AuthenticationFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AuthenticationFailedException) Code() string {
+func (s *AuthenticationFailedException) Code() string {
return "AuthenticationFailedException"
}
// Message returns the exception's message.
-func (s AuthenticationFailedException) Message() string {
+func (s *AuthenticationFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5912,22 +5912,22 @@ func (s AuthenticationFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AuthenticationFailedException) OrigErr() error {
+func (s *AuthenticationFailedException) OrigErr() error {
return nil
}
-func (s AuthenticationFailedException) Error() string {
+func (s *AuthenticationFailedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AuthenticationFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AuthenticationFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AuthenticationFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AuthenticationFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CancelSchemaExtensionInput struct {
@@ -6067,8 +6067,8 @@ func (s *Certificate) SetStateReason(v string) *Certificate {
// The certificate has already been registered into the system.
type CertificateAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -6089,17 +6089,17 @@ func (s CertificateAlreadyExistsException) GoString() string {
func newErrorCertificateAlreadyExistsException(v protocol.ResponseMetadata) error {
return &CertificateAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateAlreadyExistsException) Code() string {
+func (s *CertificateAlreadyExistsException) Code() string {
return "CertificateAlreadyExistsException"
}
// Message returns the exception's message.
-func (s CertificateAlreadyExistsException) Message() string {
+func (s *CertificateAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6107,28 +6107,28 @@ func (s CertificateAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateAlreadyExistsException) OrigErr() error {
+func (s *CertificateAlreadyExistsException) OrigErr() error {
return nil
}
-func (s CertificateAlreadyExistsException) Error() string {
+func (s *CertificateAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The certificate is not present in the system for describe or deregister activities.
type CertificateDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -6149,17 +6149,17 @@ func (s CertificateDoesNotExistException) GoString() string {
func newErrorCertificateDoesNotExistException(v protocol.ResponseMetadata) error {
return &CertificateDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateDoesNotExistException) Code() string {
+func (s *CertificateDoesNotExistException) Code() string {
return "CertificateDoesNotExistException"
}
// Message returns the exception's message.
-func (s CertificateDoesNotExistException) Message() string {
+func (s *CertificateDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6167,29 +6167,29 @@ func (s CertificateDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateDoesNotExistException) OrigErr() error {
+func (s *CertificateDoesNotExistException) OrigErr() error {
return nil
}
-func (s CertificateDoesNotExistException) Error() string {
+func (s *CertificateDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The certificate is being used for the LDAP security connection and cannot
// be removed without disabling LDAP security.
type CertificateInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -6210,17 +6210,17 @@ func (s CertificateInUseException) GoString() string {
func newErrorCertificateInUseException(v protocol.ResponseMetadata) error {
return &CertificateInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateInUseException) Code() string {
+func (s *CertificateInUseException) Code() string {
return "CertificateInUseException"
}
// Message returns the exception's message.
-func (s CertificateInUseException) Message() string {
+func (s *CertificateInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6228,22 +6228,22 @@ func (s CertificateInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateInUseException) OrigErr() error {
+func (s *CertificateInUseException) OrigErr() error {
return nil
}
-func (s CertificateInUseException) Error() string {
+func (s *CertificateInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains general information about a certificate.
@@ -6300,8 +6300,8 @@ func (s *CertificateInfo) SetState(v string) *CertificateInfo {
// The certificate could not be added because the certificate limit has been
// reached.
type CertificateLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -6322,17 +6322,17 @@ func (s CertificateLimitExceededException) GoString() string {
func newErrorCertificateLimitExceededException(v protocol.ResponseMetadata) error {
return &CertificateLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateLimitExceededException) Code() string {
+func (s *CertificateLimitExceededException) Code() string {
return "CertificateLimitExceededException"
}
// Message returns the exception's message.
-func (s CertificateLimitExceededException) Message() string {
+func (s *CertificateLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6340,28 +6340,28 @@ func (s CertificateLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateLimitExceededException) OrigErr() error {
+func (s *CertificateLimitExceededException) OrigErr() error {
return nil
}
-func (s CertificateLimitExceededException) Error() string {
+func (s *CertificateLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A client exception has occurred.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -6382,17 +6382,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "ClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6400,22 +6400,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a computer account in a directory.
@@ -8813,8 +8813,8 @@ func (s *DescribeTrustsOutput) SetTrusts(v []*Trust) *DescribeTrustsOutput {
// The specified directory has already been shared with this AWS account.
type DirectoryAlreadySharedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -8835,17 +8835,17 @@ func (s DirectoryAlreadySharedException) GoString() string {
func newErrorDirectoryAlreadySharedException(v protocol.ResponseMetadata) error {
return &DirectoryAlreadySharedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryAlreadySharedException) Code() string {
+func (s *DirectoryAlreadySharedException) Code() string {
return "DirectoryAlreadySharedException"
}
// Message returns the exception's message.
-func (s DirectoryAlreadySharedException) Message() string {
+func (s *DirectoryAlreadySharedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8853,22 +8853,22 @@ func (s DirectoryAlreadySharedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryAlreadySharedException) OrigErr() error {
+func (s *DirectoryAlreadySharedException) OrigErr() error {
return nil
}
-func (s DirectoryAlreadySharedException) Error() string {
+func (s *DirectoryAlreadySharedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryAlreadySharedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryAlreadySharedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryAlreadySharedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryAlreadySharedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information for the ConnectDirectory operation when an AD Connector
@@ -9284,8 +9284,8 @@ func (s *DirectoryDescription) SetVpcSettings(v *DirectoryVpcSettingsDescription
// The specified directory does not exist in the system.
type DirectoryDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9306,17 +9306,17 @@ func (s DirectoryDoesNotExistException) GoString() string {
func newErrorDirectoryDoesNotExistException(v protocol.ResponseMetadata) error {
return &DirectoryDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryDoesNotExistException) Code() string {
+func (s *DirectoryDoesNotExistException) Code() string {
return "DirectoryDoesNotExistException"
}
// Message returns the exception's message.
-func (s DirectoryDoesNotExistException) Message() string {
+func (s *DirectoryDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9324,30 +9324,30 @@ func (s DirectoryDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryDoesNotExistException) OrigErr() error {
+func (s *DirectoryDoesNotExistException) OrigErr() error {
return nil
}
-func (s DirectoryDoesNotExistException) Error() string {
+func (s *DirectoryDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of directories in the region has been reached. You can
// use the GetDirectoryLimits operation to determine your directory limits in
// the region.
type DirectoryLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9368,17 +9368,17 @@ func (s DirectoryLimitExceededException) GoString() string {
func newErrorDirectoryLimitExceededException(v protocol.ResponseMetadata) error {
return &DirectoryLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryLimitExceededException) Code() string {
+func (s *DirectoryLimitExceededException) Code() string {
return "DirectoryLimitExceededException"
}
// Message returns the exception's message.
-func (s DirectoryLimitExceededException) Message() string {
+func (s *DirectoryLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9386,22 +9386,22 @@ func (s DirectoryLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryLimitExceededException) OrigErr() error {
+func (s *DirectoryLimitExceededException) OrigErr() error {
return nil
}
-func (s DirectoryLimitExceededException) Error() string {
+func (s *DirectoryLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains directory limit information for a Region.
@@ -9503,8 +9503,8 @@ func (s *DirectoryLimits) SetConnectedDirectoriesLimitReached(v bool) *Directory
// The specified directory has not been shared with this AWS account.
type DirectoryNotSharedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9525,17 +9525,17 @@ func (s DirectoryNotSharedException) GoString() string {
func newErrorDirectoryNotSharedException(v protocol.ResponseMetadata) error {
return &DirectoryNotSharedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryNotSharedException) Code() string {
+func (s *DirectoryNotSharedException) Code() string {
return "DirectoryNotSharedException"
}
// Message returns the exception's message.
-func (s DirectoryNotSharedException) Message() string {
+func (s *DirectoryNotSharedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9543,28 +9543,28 @@ func (s DirectoryNotSharedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryNotSharedException) OrigErr() error {
+func (s *DirectoryNotSharedException) OrigErr() error {
return nil
}
-func (s DirectoryNotSharedException) Error() string {
+func (s *DirectoryNotSharedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryNotSharedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryNotSharedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryNotSharedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryNotSharedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified directory is unavailable or could not be found.
type DirectoryUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -9585,17 +9585,17 @@ func (s DirectoryUnavailableException) GoString() string {
func newErrorDirectoryUnavailableException(v protocol.ResponseMetadata) error {
return &DirectoryUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryUnavailableException) Code() string {
+func (s *DirectoryUnavailableException) Code() string {
return "DirectoryUnavailableException"
}
// Message returns the exception's message.
-func (s DirectoryUnavailableException) Message() string {
+func (s *DirectoryUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9603,22 +9603,22 @@ func (s DirectoryUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryUnavailableException) OrigErr() error {
+func (s *DirectoryUnavailableException) OrigErr() error {
return nil
}
-func (s DirectoryUnavailableException) Error() string {
+func (s *DirectoryUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
@@ -10043,8 +10043,8 @@ func (s *DomainController) SetVpcId(v string) *DomainController {
// The maximum allowed number of domain controllers per directory was exceeded.
// The default limit per directory is 20 domain controllers.
type DomainControllerLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10065,17 +10065,17 @@ func (s DomainControllerLimitExceededException) GoString() string {
func newErrorDomainControllerLimitExceededException(v protocol.ResponseMetadata) error {
return &DomainControllerLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DomainControllerLimitExceededException) Code() string {
+func (s *DomainControllerLimitExceededException) Code() string {
return "DomainControllerLimitExceededException"
}
// Message returns the exception's message.
-func (s DomainControllerLimitExceededException) Message() string {
+func (s *DomainControllerLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10083,22 +10083,22 @@ func (s DomainControllerLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DomainControllerLimitExceededException) OrigErr() error {
+func (s *DomainControllerLimitExceededException) OrigErr() error {
return nil
}
-func (s DomainControllerLimitExceededException) Error() string {
+func (s *DomainControllerLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DomainControllerLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DomainControllerLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DomainControllerLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DomainControllerLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type EnableLDAPSInput struct {
@@ -10330,8 +10330,8 @@ func (s EnableSsoOutput) GoString() string {
// The specified entity already exists.
type EntityAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10352,17 +10352,17 @@ func (s EntityAlreadyExistsException) GoString() string {
func newErrorEntityAlreadyExistsException(v protocol.ResponseMetadata) error {
return &EntityAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityAlreadyExistsException) Code() string {
+func (s *EntityAlreadyExistsException) Code() string {
return "EntityAlreadyExistsException"
}
// Message returns the exception's message.
-func (s EntityAlreadyExistsException) Message() string {
+func (s *EntityAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10370,28 +10370,28 @@ func (s EntityAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityAlreadyExistsException) OrigErr() error {
+func (s *EntityAlreadyExistsException) OrigErr() error {
return nil
}
-func (s EntityAlreadyExistsException) Error() string {
+func (s *EntityAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified entity could not be found.
type EntityDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10412,17 +10412,17 @@ func (s EntityDoesNotExistException) GoString() string {
func newErrorEntityDoesNotExistException(v protocol.ResponseMetadata) error {
return &EntityDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityDoesNotExistException) Code() string {
+func (s *EntityDoesNotExistException) Code() string {
return "EntityDoesNotExistException"
}
// Message returns the exception's message.
-func (s EntityDoesNotExistException) Message() string {
+func (s *EntityDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10430,22 +10430,22 @@ func (s EntityDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityDoesNotExistException) OrigErr() error {
+func (s *EntityDoesNotExistException) OrigErr() error {
return nil
}
-func (s EntityDoesNotExistException) Error() string {
+func (s *EntityDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about SNS topic and AWS Directory Service directory associations.
@@ -10615,8 +10615,8 @@ func (s *GetSnapshotLimitsOutput) SetSnapshotLimits(v *SnapshotLimits) *GetSnaps
// The account does not have sufficient permission to perform the operation.
type InsufficientPermissionsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10637,17 +10637,17 @@ func (s InsufficientPermissionsException) GoString() string {
func newErrorInsufficientPermissionsException(v protocol.ResponseMetadata) error {
return &InsufficientPermissionsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientPermissionsException) Code() string {
+func (s *InsufficientPermissionsException) Code() string {
return "InsufficientPermissionsException"
}
// Message returns the exception's message.
-func (s InsufficientPermissionsException) Message() string {
+func (s *InsufficientPermissionsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10655,28 +10655,28 @@ func (s InsufficientPermissionsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientPermissionsException) OrigErr() error {
+func (s *InsufficientPermissionsException) OrigErr() error {
return nil
}
-func (s InsufficientPermissionsException) Error() string {
+func (s *InsufficientPermissionsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientPermissionsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientPermissionsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientPermissionsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientPermissionsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The certificate PEM that was provided has incorrect encoding.
type InvalidCertificateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10697,17 +10697,17 @@ func (s InvalidCertificateException) GoString() string {
func newErrorInvalidCertificateException(v protocol.ResponseMetadata) error {
return &InvalidCertificateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCertificateException) Code() string {
+func (s *InvalidCertificateException) Code() string {
return "InvalidCertificateException"
}
// Message returns the exception's message.
-func (s InvalidCertificateException) Message() string {
+func (s *InvalidCertificateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10715,29 +10715,29 @@ func (s InvalidCertificateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCertificateException) OrigErr() error {
+func (s *InvalidCertificateException) OrigErr() error {
return nil
}
-func (s InvalidCertificateException) Error() string {
+func (s *InvalidCertificateException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCertificateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCertificateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCertificateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCertificateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The LDAP activities could not be performed because they are limited by the
// LDAPS status.
type InvalidLDAPSStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10758,17 +10758,17 @@ func (s InvalidLDAPSStatusException) GoString() string {
func newErrorInvalidLDAPSStatusException(v protocol.ResponseMetadata) error {
return &InvalidLDAPSStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLDAPSStatusException) Code() string {
+func (s *InvalidLDAPSStatusException) Code() string {
return "InvalidLDAPSStatusException"
}
// Message returns the exception's message.
-func (s InvalidLDAPSStatusException) Message() string {
+func (s *InvalidLDAPSStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10776,28 +10776,28 @@ func (s InvalidLDAPSStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLDAPSStatusException) OrigErr() error {
+func (s *InvalidLDAPSStatusException) OrigErr() error {
return nil
}
-func (s InvalidLDAPSStatusException) Error() string {
+func (s *InvalidLDAPSStatusException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLDAPSStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLDAPSStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLDAPSStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLDAPSStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The NextToken value is not valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10818,17 +10818,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10836,28 +10836,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameters are not valid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10878,17 +10878,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10896,29 +10896,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The new password provided by the user does not meet the password complexity
// requirements defined in your directory.
type InvalidPasswordException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10939,17 +10939,17 @@ func (s InvalidPasswordException) GoString() string {
func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error {
return &InvalidPasswordException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPasswordException) Code() string {
+func (s *InvalidPasswordException) Code() string {
return "InvalidPasswordException"
}
// Message returns the exception's message.
-func (s InvalidPasswordException) Message() string {
+func (s *InvalidPasswordException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10957,28 +10957,28 @@ func (s InvalidPasswordException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPasswordException) OrigErr() error {
+func (s *InvalidPasswordException) OrigErr() error {
return nil
}
-func (s InvalidPasswordException) Error() string {
+func (s *InvalidPasswordException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPasswordException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPasswordException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPasswordException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPasswordException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified shared target is not valid.
type InvalidTargetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -10999,17 +10999,17 @@ func (s InvalidTargetException) GoString() string {
func newErrorInvalidTargetException(v protocol.ResponseMetadata) error {
return &InvalidTargetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTargetException) Code() string {
+func (s *InvalidTargetException) Code() string {
return "InvalidTargetException"
}
// Message returns the exception's message.
-func (s InvalidTargetException) Message() string {
+func (s *InvalidTargetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11017,22 +11017,22 @@ func (s InvalidTargetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTargetException) OrigErr() error {
+func (s *InvalidTargetException) OrigErr() error {
return nil
}
-func (s InvalidTargetException) Error() string {
+func (s *InvalidTargetException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTargetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTargetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTargetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTargetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// IP address block. This is often the address block of the DNS server used
@@ -11143,8 +11143,8 @@ func (s *IpRouteInfo) SetIpRouteStatusReason(v string) *IpRouteInfo {
// The maximum allowed number of IP addresses was exceeded. The default limit
// is 100 IP address blocks.
type IpRouteLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -11165,17 +11165,17 @@ func (s IpRouteLimitExceededException) GoString() string {
func newErrorIpRouteLimitExceededException(v protocol.ResponseMetadata) error {
return &IpRouteLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IpRouteLimitExceededException) Code() string {
+func (s *IpRouteLimitExceededException) Code() string {
return "IpRouteLimitExceededException"
}
// Message returns the exception's message.
-func (s IpRouteLimitExceededException) Message() string {
+func (s *IpRouteLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11183,22 +11183,22 @@ func (s IpRouteLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IpRouteLimitExceededException) OrigErr() error {
+func (s *IpRouteLimitExceededException) OrigErr() error {
return nil
}
-func (s IpRouteLimitExceededException) Error() string {
+func (s *IpRouteLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IpRouteLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IpRouteLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IpRouteLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IpRouteLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains general information about the LDAPS settings.
@@ -11734,8 +11734,8 @@ func (s *LogSubscription) SetSubscriptionCreatedDateTime(v time.Time) *LogSubscr
// The LDAP activities could not be performed because at least one valid certificate
// must be registered with the system.
type NoAvailableCertificateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -11756,17 +11756,17 @@ func (s NoAvailableCertificateException) GoString() string {
func newErrorNoAvailableCertificateException(v protocol.ResponseMetadata) error {
return &NoAvailableCertificateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAvailableCertificateException) Code() string {
+func (s *NoAvailableCertificateException) Code() string {
return "NoAvailableCertificateException"
}
// Message returns the exception's message.
-func (s NoAvailableCertificateException) Message() string {
+func (s *NoAvailableCertificateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11774,28 +11774,28 @@ func (s NoAvailableCertificateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAvailableCertificateException) OrigErr() error {
+func (s *NoAvailableCertificateException) OrigErr() error {
return nil
}
-func (s NoAvailableCertificateException) Error() string {
+func (s *NoAvailableCertificateException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAvailableCertificateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAvailableCertificateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAvailableCertificateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAvailableCertificateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception encountered while trying to access your AWS organization.
type OrganizationsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -11816,17 +11816,17 @@ func (s OrganizationsException) GoString() string {
func newErrorOrganizationsException(v protocol.ResponseMetadata) error {
return &OrganizationsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationsException) Code() string {
+func (s *OrganizationsException) Code() string {
return "OrganizationsException"
}
// Message returns the exception's message.
-func (s OrganizationsException) Message() string {
+func (s *OrganizationsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11834,22 +11834,22 @@ func (s OrganizationsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationsException) OrigErr() error {
+func (s *OrganizationsException) OrigErr() error {
return nil
}
-func (s OrganizationsException) Error() string {
+func (s *OrganizationsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the directory owner account details that have been shared to the
@@ -12603,8 +12603,8 @@ func (s *SchemaExtensionInfo) SetStartDateTime(v time.Time) *SchemaExtensionInfo
// An exception has occurred in AWS Directory Service.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -12625,17 +12625,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12643,22 +12643,22 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ShareDirectoryInput struct {
@@ -12774,8 +12774,8 @@ func (s *ShareDirectoryOutput) SetSharedDirectoryId(v string) *ShareDirectoryOut
// The maximum number of AWS accounts that you can share with this directory
// has been reached.
type ShareLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -12796,17 +12796,17 @@ func (s ShareLimitExceededException) GoString() string {
func newErrorShareLimitExceededException(v protocol.ResponseMetadata) error {
return &ShareLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ShareLimitExceededException) Code() string {
+func (s *ShareLimitExceededException) Code() string {
return "ShareLimitExceededException"
}
// Message returns the exception's message.
-func (s ShareLimitExceededException) Message() string {
+func (s *ShareLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12814,22 +12814,22 @@ func (s ShareLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ShareLimitExceededException) OrigErr() error {
+func (s *ShareLimitExceededException) OrigErr() error {
return nil
}
-func (s ShareLimitExceededException) Error() string {
+func (s *ShareLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ShareLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ShareLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ShareLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ShareLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Identifier that contains details about the directory consumer account.
@@ -13065,8 +13065,8 @@ func (s *Snapshot) SetType(v string) *Snapshot {
// You can use the GetSnapshotLimits operation to determine the snapshot limits
// for a directory.
type SnapshotLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -13087,17 +13087,17 @@ func (s SnapshotLimitExceededException) GoString() string {
func newErrorSnapshotLimitExceededException(v protocol.ResponseMetadata) error {
return &SnapshotLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SnapshotLimitExceededException) Code() string {
+func (s *SnapshotLimitExceededException) Code() string {
return "SnapshotLimitExceededException"
}
// Message returns the exception's message.
-func (s SnapshotLimitExceededException) Message() string {
+func (s *SnapshotLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13105,22 +13105,22 @@ func (s SnapshotLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SnapshotLimitExceededException) OrigErr() error {
+func (s *SnapshotLimitExceededException) OrigErr() error {
return nil
}
-func (s SnapshotLimitExceededException) Error() string {
+func (s *SnapshotLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SnapshotLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SnapshotLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SnapshotLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SnapshotLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains manual snapshot limit information for a directory.
@@ -13337,8 +13337,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The maximum allowed number of tags was exceeded.
type TagLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -13359,17 +13359,17 @@ func (s TagLimitExceededException) GoString() string {
func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error {
return &TagLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagLimitExceededException) Code() string {
+func (s *TagLimitExceededException) Code() string {
return "TagLimitExceededException"
}
// Message returns the exception's message.
-func (s TagLimitExceededException) Message() string {
+func (s *TagLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13377,22 +13377,22 @@ func (s TagLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagLimitExceededException) OrigErr() error {
+func (s *TagLimitExceededException) OrigErr() error {
return nil
}
-func (s TagLimitExceededException) Error() string {
+func (s *TagLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a trust relationship between an AWS Managed Microsoft AD directory
@@ -13653,8 +13653,8 @@ func (s *UnshareTarget) SetType(v string) *UnshareTarget {
// The operation is not supported.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -13675,17 +13675,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13693,22 +13693,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Updates a conditional forwarder.
@@ -14020,8 +14020,8 @@ func (s *UpdateTrustOutput) SetTrustId(v string) *UpdateTrustOutput {
// The user provided a username that does not exist in your directory.
type UserDoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The descriptive message for the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -14042,17 +14042,17 @@ func (s UserDoesNotExistException) GoString() string {
func newErrorUserDoesNotExistException(v protocol.ResponseMetadata) error {
return &UserDoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserDoesNotExistException) Code() string {
+func (s *UserDoesNotExistException) Code() string {
return "UserDoesNotExistException"
}
// Message returns the exception's message.
-func (s UserDoesNotExistException) Message() string {
+func (s *UserDoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14060,22 +14060,22 @@ func (s UserDoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserDoesNotExistException) OrigErr() error {
+func (s *UserDoesNotExistException) OrigErr() error {
return nil
}
-func (s UserDoesNotExistException) Error() string {
+func (s *UserDoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserDoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserDoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserDoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserDoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Initiates the verification of an existing trust relationship between an AWS
diff --git a/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go b/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go
index 6182bf173f9..4ad17a35eda 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go
@@ -833,8 +833,8 @@ func (s *CreateLifecyclePolicyOutput) SetPolicyId(v string) *CreateLifecyclePoli
type CreateRule struct {
_ struct{} `type:"structure"`
- // The interval between snapshots. The supported values are 2, 3, 4, 6, 8, 12,
- // and 24.
+ // The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8,
+ // 12, and 24.
//
// Interval is a required field
Interval *int64 `min:"1" type:"integer" required:"true"`
@@ -1337,8 +1337,8 @@ func (s *GetLifecyclePolicyOutput) SetPolicy(v *LifecyclePolicy) *GetLifecyclePo
// The service failed in an unexpected way.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -1357,17 +1357,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1375,28 +1375,28 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Bad request. The request is missing required parameters or has invalid parameters.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -1421,17 +1421,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1439,22 +1439,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Detailed information about a lifecycle policy.
@@ -1616,8 +1616,8 @@ func (s *LifecyclePolicySummary) SetTags(v map[string]*string) *LifecyclePolicyS
// The request failed because a limit was exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -1639,17 +1639,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1657,22 +1657,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListTagsForResourceInput struct {
@@ -1868,8 +1868,8 @@ func (s *PolicyDetails) SetTargetTags(v []*Tag) *PolicyDetails {
// A requested resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -1894,17 +1894,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1912,22 +1912,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the retention rule for a lifecycle policy. You can retain snapshots
diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
index 995fa6d5101..e7983fa8e3d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
@@ -6808,8 +6808,8 @@ func (s *BackupDetails) SetBackupType(v string) *BackupDetails {
// There is another ongoing conflicting backup control plane operation on the
// table. The backup is either being created, deleted or restored to a table.
type BackupInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6826,17 +6826,17 @@ func (s BackupInUseException) GoString() string {
func newErrorBackupInUseException(v protocol.ResponseMetadata) error {
return &BackupInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BackupInUseException) Code() string {
+func (s *BackupInUseException) Code() string {
return "BackupInUseException"
}
// Message returns the exception's message.
-func (s BackupInUseException) Message() string {
+func (s *BackupInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6844,28 +6844,28 @@ func (s BackupInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BackupInUseException) OrigErr() error {
+func (s *BackupInUseException) OrigErr() error {
return nil
}
-func (s BackupInUseException) Error() string {
+func (s *BackupInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BackupInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BackupInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BackupInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BackupInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Backup not found for the given BackupARN.
type BackupNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6882,17 +6882,17 @@ func (s BackupNotFoundException) GoString() string {
func newErrorBackupNotFoundException(v protocol.ResponseMetadata) error {
return &BackupNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BackupNotFoundException) Code() string {
+func (s *BackupNotFoundException) Code() string {
return "BackupNotFoundException"
}
// Message returns the exception's message.
-func (s BackupNotFoundException) Message() string {
+func (s *BackupNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6900,22 +6900,22 @@ func (s BackupNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BackupNotFoundException) OrigErr() error {
+func (s *BackupNotFoundException) OrigErr() error {
return nil
}
-func (s BackupNotFoundException) Error() string {
+func (s *BackupNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BackupNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BackupNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BackupNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BackupNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details for the backup.
@@ -7818,8 +7818,8 @@ func (s *ConditionCheck) SetTableName(v string) *ConditionCheck {
// A condition specified in the operation could not be evaluated.
type ConditionalCheckFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The conditional request failed.
Message_ *string `locationName:"message" type:"string"`
@@ -7837,17 +7837,17 @@ func (s ConditionalCheckFailedException) GoString() string {
func newErrorConditionalCheckFailedException(v protocol.ResponseMetadata) error {
return &ConditionalCheckFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConditionalCheckFailedException) Code() string {
+func (s *ConditionalCheckFailedException) Code() string {
return "ConditionalCheckFailedException"
}
// Message returns the exception's message.
-func (s ConditionalCheckFailedException) Message() string {
+func (s *ConditionalCheckFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7855,22 +7855,22 @@ func (s ConditionalCheckFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConditionalCheckFailedException) OrigErr() error {
+func (s *ConditionalCheckFailedException) OrigErr() error {
return nil
}
-func (s ConditionalCheckFailedException) Error() string {
+func (s *ConditionalCheckFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConditionalCheckFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConditionalCheckFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConditionalCheckFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConditionalCheckFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The capacity units consumed by an operation. The data returned includes the
@@ -7994,8 +7994,8 @@ func (s *ContinuousBackupsDescription) SetPointInTimeRecoveryDescription(v *Poin
// Backups have not yet been enabled for this table.
type ContinuousBackupsUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8012,17 +8012,17 @@ func (s ContinuousBackupsUnavailableException) GoString() string {
func newErrorContinuousBackupsUnavailableException(v protocol.ResponseMetadata) error {
return &ContinuousBackupsUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ContinuousBackupsUnavailableException) Code() string {
+func (s *ContinuousBackupsUnavailableException) Code() string {
return "ContinuousBackupsUnavailableException"
}
// Message returns the exception's message.
-func (s ContinuousBackupsUnavailableException) Message() string {
+func (s *ContinuousBackupsUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8030,22 +8030,22 @@ func (s ContinuousBackupsUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ContinuousBackupsUnavailableException) OrigErr() error {
+func (s *ContinuousBackupsUnavailableException) OrigErr() error {
return nil
}
-func (s ContinuousBackupsUnavailableException) Error() string {
+func (s *ContinuousBackupsUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ContinuousBackupsUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ContinuousBackupsUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ContinuousBackupsUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ContinuousBackupsUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents a Contributor Insights summary entry..
@@ -11273,8 +11273,8 @@ func (s *GlobalTable) SetReplicationGroup(v []*Replica) *GlobalTable {
// The specified global table already exists.
type GlobalTableAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11291,17 +11291,17 @@ func (s GlobalTableAlreadyExistsException) GoString() string {
func newErrorGlobalTableAlreadyExistsException(v protocol.ResponseMetadata) error {
return &GlobalTableAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GlobalTableAlreadyExistsException) Code() string {
+func (s *GlobalTableAlreadyExistsException) Code() string {
return "GlobalTableAlreadyExistsException"
}
// Message returns the exception's message.
-func (s GlobalTableAlreadyExistsException) Message() string {
+func (s *GlobalTableAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11309,22 +11309,22 @@ func (s GlobalTableAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GlobalTableAlreadyExistsException) OrigErr() error {
+func (s *GlobalTableAlreadyExistsException) OrigErr() error {
return nil
}
-func (s GlobalTableAlreadyExistsException) Error() string {
+func (s *GlobalTableAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GlobalTableAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GlobalTableAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GlobalTableAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GlobalTableAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about the global table.
@@ -11469,8 +11469,8 @@ func (s *GlobalTableGlobalSecondaryIndexSettingsUpdate) SetProvisionedWriteCapac
// The specified global table does not exist.
type GlobalTableNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11487,17 +11487,17 @@ func (s GlobalTableNotFoundException) GoString() string {
func newErrorGlobalTableNotFoundException(v protocol.ResponseMetadata) error {
return &GlobalTableNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GlobalTableNotFoundException) Code() string {
+func (s *GlobalTableNotFoundException) Code() string {
return "GlobalTableNotFoundException"
}
// Message returns the exception's message.
-func (s GlobalTableNotFoundException) Message() string {
+func (s *GlobalTableNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11505,29 +11505,29 @@ func (s GlobalTableNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GlobalTableNotFoundException) OrigErr() error {
+func (s *GlobalTableNotFoundException) OrigErr() error {
return nil
}
-func (s GlobalTableNotFoundException) Error() string {
+func (s *GlobalTableNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GlobalTableNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GlobalTableNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GlobalTableNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GlobalTableNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// DynamoDB rejected the request because you retried a request with a different
// payload but with an idempotent token that was already used.
type IdempotentParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11544,17 +11544,17 @@ func (s IdempotentParameterMismatchException) GoString() string {
func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatchException) Code() string {
+func (s *IdempotentParameterMismatchException) Code() string {
return "IdempotentParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatchException) Message() string {
+func (s *IdempotentParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11562,28 +11562,28 @@ func (s IdempotentParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatchException) OrigErr() error {
+func (s *IdempotentParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatchException) Error() string {
+func (s *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation tried to access a nonexistent index.
type IndexNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11600,17 +11600,17 @@ func (s IndexNotFoundException) GoString() string {
func newErrorIndexNotFoundException(v protocol.ResponseMetadata) error {
return &IndexNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IndexNotFoundException) Code() string {
+func (s *IndexNotFoundException) Code() string {
return "IndexNotFoundException"
}
// Message returns the exception's message.
-func (s IndexNotFoundException) Message() string {
+func (s *IndexNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11618,28 +11618,28 @@ func (s IndexNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IndexNotFoundException) OrigErr() error {
+func (s *IndexNotFoundException) OrigErr() error {
return nil
}
-func (s IndexNotFoundException) Error() string {
+func (s *IndexNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IndexNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IndexNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IndexNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IndexNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error occurred on the server side.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The server encountered an internal error trying to fulfill the request.
Message_ *string `locationName:"message" type:"string"`
@@ -11657,17 +11657,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11675,29 +11675,29 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime
// and LatestRestorableDateTime.
type InvalidRestoreTimeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11714,17 +11714,17 @@ func (s InvalidRestoreTimeException) GoString() string {
func newErrorInvalidRestoreTimeException(v protocol.ResponseMetadata) error {
return &InvalidRestoreTimeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRestoreTimeException) Code() string {
+func (s *InvalidRestoreTimeException) Code() string {
return "InvalidRestoreTimeException"
}
// Message returns the exception's message.
-func (s InvalidRestoreTimeException) Message() string {
+func (s *InvalidRestoreTimeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11732,22 +11732,22 @@ func (s InvalidRestoreTimeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRestoreTimeException) OrigErr() error {
+func (s *InvalidRestoreTimeException) OrigErr() error {
return nil
}
-func (s InvalidRestoreTimeException) Error() string {
+func (s *InvalidRestoreTimeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRestoreTimeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRestoreTimeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRestoreTimeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRestoreTimeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about item collections, if any, that were affected by the operation.
@@ -11798,8 +11798,8 @@ func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollec
// An item collection is too large. This exception is only returned for tables
// that have one or more local secondary indexes.
type ItemCollectionSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The total size of an item collection has exceeded the maximum limit of 10
// gigabytes.
@@ -11818,17 +11818,17 @@ func (s ItemCollectionSizeLimitExceededException) GoString() string {
func newErrorItemCollectionSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &ItemCollectionSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ItemCollectionSizeLimitExceededException) Code() string {
+func (s *ItemCollectionSizeLimitExceededException) Code() string {
return "ItemCollectionSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s ItemCollectionSizeLimitExceededException) Message() string {
+func (s *ItemCollectionSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11836,22 +11836,22 @@ func (s ItemCollectionSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ItemCollectionSizeLimitExceededException) OrigErr() error {
+func (s *ItemCollectionSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s ItemCollectionSizeLimitExceededException) Error() string {
+func (s *ItemCollectionSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ItemCollectionSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ItemCollectionSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ItemCollectionSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ItemCollectionSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details for the requested item.
@@ -12104,8 +12104,8 @@ func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes
//
// There is a soft account limit of 256 tables.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Too many operations for a given subscriber.
Message_ *string `locationName:"message" type:"string"`
@@ -12123,17 +12123,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12141,22 +12141,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListBackupsInput struct {
@@ -13006,8 +13006,8 @@ func (s *PointInTimeRecoverySpecification) SetPointInTimeRecoveryEnabled(v bool)
// Point in time recovery has not yet been enabled for this source table.
type PointInTimeRecoveryUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13024,17 +13024,17 @@ func (s PointInTimeRecoveryUnavailableException) GoString() string {
func newErrorPointInTimeRecoveryUnavailableException(v protocol.ResponseMetadata) error {
return &PointInTimeRecoveryUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PointInTimeRecoveryUnavailableException) Code() string {
+func (s *PointInTimeRecoveryUnavailableException) Code() string {
return "PointInTimeRecoveryUnavailableException"
}
// Message returns the exception's message.
-func (s PointInTimeRecoveryUnavailableException) Message() string {
+func (s *PointInTimeRecoveryUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13042,22 +13042,22 @@ func (s PointInTimeRecoveryUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PointInTimeRecoveryUnavailableException) OrigErr() error {
+func (s *PointInTimeRecoveryUnavailableException) OrigErr() error {
return nil
}
-func (s PointInTimeRecoveryUnavailableException) Error() string {
+func (s *PointInTimeRecoveryUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PointInTimeRecoveryUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PointInTimeRecoveryUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PointInTimeRecoveryUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PointInTimeRecoveryUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents attributes that are copied (projected) from the table into an
@@ -13269,8 +13269,8 @@ func (s *ProvisionedThroughputDescription) SetWriteCapacityUnits(v int64) *Provi
// Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff)
// in the Amazon DynamoDB Developer Guide.
type ProvisionedThroughputExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You exceeded your maximum allowed provisioned throughput.
Message_ *string `locationName:"message" type:"string"`
@@ -13288,17 +13288,17 @@ func (s ProvisionedThroughputExceededException) GoString() string {
func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error {
return &ProvisionedThroughputExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ProvisionedThroughputExceededException) Code() string {
+func (s *ProvisionedThroughputExceededException) Code() string {
return "ProvisionedThroughputExceededException"
}
// Message returns the exception's message.
-func (s ProvisionedThroughputExceededException) Message() string {
+func (s *ProvisionedThroughputExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13306,22 +13306,22 @@ func (s ProvisionedThroughputExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ProvisionedThroughputExceededException) OrigErr() error {
+func (s *ProvisionedThroughputExceededException) OrigErr() error {
return nil
}
-func (s ProvisionedThroughputExceededException) Error() string {
+func (s *ProvisionedThroughputExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ProvisionedThroughputExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ProvisionedThroughputExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ProvisionedThroughputExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ProvisionedThroughputExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Replica-specific provisioned throughput settings. If not specified, uses
@@ -14360,8 +14360,8 @@ func (s *Replica) SetRegionName(v string) *Replica {
// The specified replica is already part of the global table.
type ReplicaAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14378,17 +14378,17 @@ func (s ReplicaAlreadyExistsException) GoString() string {
func newErrorReplicaAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ReplicaAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReplicaAlreadyExistsException) Code() string {
+func (s *ReplicaAlreadyExistsException) Code() string {
return "ReplicaAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ReplicaAlreadyExistsException) Message() string {
+func (s *ReplicaAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14396,22 +14396,22 @@ func (s ReplicaAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReplicaAlreadyExistsException) OrigErr() error {
+func (s *ReplicaAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ReplicaAlreadyExistsException) Error() string {
+func (s *ReplicaAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReplicaAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReplicaAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReplicaAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReplicaAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the auto scaling settings of the replica.
@@ -15010,8 +15010,8 @@ func (s *ReplicaGlobalSecondaryIndexSettingsUpdate) SetProvisionedReadCapacityUn
// The specified replica is no longer part of the global table.
type ReplicaNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15028,17 +15028,17 @@ func (s ReplicaNotFoundException) GoString() string {
func newErrorReplicaNotFoundException(v protocol.ResponseMetadata) error {
return &ReplicaNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReplicaNotFoundException) Code() string {
+func (s *ReplicaNotFoundException) Code() string {
return "ReplicaNotFoundException"
}
// Message returns the exception's message.
-func (s ReplicaNotFoundException) Message() string {
+func (s *ReplicaNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15046,22 +15046,22 @@ func (s ReplicaNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReplicaNotFoundException) OrigErr() error {
+func (s *ReplicaNotFoundException) OrigErr() error {
return nil
}
-func (s ReplicaNotFoundException) Error() string {
+func (s *ReplicaNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReplicaNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReplicaNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReplicaNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReplicaNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the properties of a replica.
@@ -15400,8 +15400,8 @@ func (s *ReplicationGroupUpdate) SetUpdate(v *UpdateReplicationGroupMemberAction
// contact AWS Support at AWS Support (https://aws.amazon.com/support) to request
// a limit increase.
type RequestLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15418,17 +15418,17 @@ func (s RequestLimitExceeded) GoString() string {
func newErrorRequestLimitExceeded(v protocol.ResponseMetadata) error {
return &RequestLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestLimitExceeded) Code() string {
+func (s *RequestLimitExceeded) Code() string {
return "RequestLimitExceeded"
}
// Message returns the exception's message.
-func (s RequestLimitExceeded) Message() string {
+func (s *RequestLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15436,30 +15436,30 @@ func (s RequestLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestLimitExceeded) OrigErr() error {
+func (s *RequestLimitExceeded) OrigErr() error {
return nil
}
-func (s RequestLimitExceeded) Error() string {
+func (s *RequestLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation conflicts with the resource's availability. For example, you
// attempted to recreate an existing table, or tried to delete a table currently
// in the CREATING state.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The resource which is being attempted to be changed is in use.
Message_ *string `locationName:"message" type:"string"`
@@ -15477,17 +15477,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15495,29 +15495,29 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation tried to access a nonexistent table or index. The resource
// might not be specified correctly, or its status might not be ACTIVE.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The resource which is being requested does not exist.
Message_ *string `locationName:"message" type:"string"`
@@ -15535,17 +15535,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15553,22 +15553,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details for the restore.
@@ -16792,8 +16792,8 @@ func (s *StreamSpecification) SetStreamViewType(v string) *StreamSpecification {
// A target table with the specified name already exists.
type TableAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16810,17 +16810,17 @@ func (s TableAlreadyExistsException) GoString() string {
func newErrorTableAlreadyExistsException(v protocol.ResponseMetadata) error {
return &TableAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TableAlreadyExistsException) Code() string {
+func (s *TableAlreadyExistsException) Code() string {
return "TableAlreadyExistsException"
}
// Message returns the exception's message.
-func (s TableAlreadyExistsException) Message() string {
+func (s *TableAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16828,22 +16828,22 @@ func (s TableAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TableAlreadyExistsException) OrigErr() error {
+func (s *TableAlreadyExistsException) OrigErr() error {
return nil
}
-func (s TableAlreadyExistsException) Error() string {
+func (s *TableAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TableAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TableAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TableAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TableAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the auto scaling configuration for a global table.
@@ -17246,8 +17246,8 @@ func (s *TableDescription) SetTableStatus(v string) *TableDescription {
// A target table with the specified name is either being created or deleted.
type TableInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17264,17 +17264,17 @@ func (s TableInUseException) GoString() string {
func newErrorTableInUseException(v protocol.ResponseMetadata) error {
return &TableInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TableInUseException) Code() string {
+func (s *TableInUseException) Code() string {
return "TableInUseException"
}
// Message returns the exception's message.
-func (s TableInUseException) Message() string {
+func (s *TableInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17282,29 +17282,29 @@ func (s TableInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TableInUseException) OrigErr() error {
+func (s *TableInUseException) OrigErr() error {
return nil
}
-func (s TableInUseException) Error() string {
+func (s *TableInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TableInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TableInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TableInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TableInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A source table with the name TableName does not currently exist within the
// subscriber's account.
type TableNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17321,17 +17321,17 @@ func (s TableNotFoundException) GoString() string {
func newErrorTableNotFoundException(v protocol.ResponseMetadata) error {
return &TableNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TableNotFoundException) Code() string {
+func (s *TableNotFoundException) Code() string {
return "TableNotFoundException"
}
// Message returns the exception's message.
-func (s TableNotFoundException) Message() string {
+func (s *TableNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17339,22 +17339,22 @@ func (s TableNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TableNotFoundException) OrigErr() error {
+func (s *TableNotFoundException) OrigErr() error {
return nil
}
-func (s TableNotFoundException) Error() string {
+func (s *TableNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TableNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TableNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TableNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TableNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a tag. A tag is a key-value pair. You can add up to 50 tags to
@@ -18070,8 +18070,8 @@ func (s *TransactWriteItemsOutput) SetItemCollectionMetrics(v map[string][]*Item
// The provided expression refers to an attribute that does not exist in
// the item.
type TransactionCanceledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A list of cancellation reasons.
CancellationReasons []*CancellationReason `min:"1" type:"list"`
@@ -18091,17 +18091,17 @@ func (s TransactionCanceledException) GoString() string {
func newErrorTransactionCanceledException(v protocol.ResponseMetadata) error {
return &TransactionCanceledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TransactionCanceledException) Code() string {
+func (s *TransactionCanceledException) Code() string {
return "TransactionCanceledException"
}
// Message returns the exception's message.
-func (s TransactionCanceledException) Message() string {
+func (s *TransactionCanceledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18109,28 +18109,28 @@ func (s TransactionCanceledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TransactionCanceledException) OrigErr() error {
+func (s *TransactionCanceledException) OrigErr() error {
return nil
}
-func (s TransactionCanceledException) Error() string {
+func (s *TransactionCanceledException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TransactionCanceledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TransactionCanceledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TransactionCanceledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TransactionCanceledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Operation was rejected because there is an ongoing transaction for the item.
type TransactionConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18147,17 +18147,17 @@ func (s TransactionConflictException) GoString() string {
func newErrorTransactionConflictException(v protocol.ResponseMetadata) error {
return &TransactionConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TransactionConflictException) Code() string {
+func (s *TransactionConflictException) Code() string {
return "TransactionConflictException"
}
// Message returns the exception's message.
-func (s TransactionConflictException) Message() string {
+func (s *TransactionConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18165,28 +18165,28 @@ func (s TransactionConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TransactionConflictException) OrigErr() error {
+func (s *TransactionConflictException) OrigErr() error {
return nil
}
-func (s TransactionConflictException) Error() string {
+func (s *TransactionConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TransactionConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TransactionConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TransactionConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TransactionConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The transaction with the given request token is already in progress.
type TransactionInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18203,17 +18203,17 @@ func (s TransactionInProgressException) GoString() string {
func newErrorTransactionInProgressException(v protocol.ResponseMetadata) error {
return &TransactionInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TransactionInProgressException) Code() string {
+func (s *TransactionInProgressException) Code() string {
return "TransactionInProgressException"
}
// Message returns the exception's message.
-func (s TransactionInProgressException) Message() string {
+func (s *TransactionInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18221,22 +18221,22 @@ func (s TransactionInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TransactionInProgressException) OrigErr() error {
+func (s *TransactionInProgressException) OrigErr() error {
return nil
}
-func (s TransactionInProgressException) Error() string {
+func (s *TransactionInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TransactionInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TransactionInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TransactionInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TransactionInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
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 297308eddde..3d1d444aaea 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
@@ -5377,7 +5377,6 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req
output = &CreatePlacementGroupOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -11585,6 +11584,81 @@ func (c *EC2) DeregisterImageWithContext(ctx aws.Context, input *DeregisterImage
return out, req.Send()
}
+const opDeregisterInstanceEventNotificationAttributes = "DeregisterInstanceEventNotificationAttributes"
+
+// DeregisterInstanceEventNotificationAttributesRequest generates a "aws/request.Request" representing the
+// client's request for the DeregisterInstanceEventNotificationAttributes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeregisterInstanceEventNotificationAttributes for more information on using the DeregisterInstanceEventNotificationAttributes
+// 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 DeregisterInstanceEventNotificationAttributesRequest method.
+// req, resp := client.DeregisterInstanceEventNotificationAttributesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterInstanceEventNotificationAttributes
+func (c *EC2) DeregisterInstanceEventNotificationAttributesRequest(input *DeregisterInstanceEventNotificationAttributesInput) (req *request.Request, output *DeregisterInstanceEventNotificationAttributesOutput) {
+ op := &request.Operation{
+ Name: opDeregisterInstanceEventNotificationAttributes,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeregisterInstanceEventNotificationAttributesInput{}
+ }
+
+ output = &DeregisterInstanceEventNotificationAttributesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeregisterInstanceEventNotificationAttributes API operation for Amazon Elastic Compute Cloud.
+//
+// Deregisters tag keys to prevent tags that have the specified tag keys from
+// being included in scheduled event notifications for resources in the Region.
+//
+// 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 Elastic Compute Cloud's
+// API operation DeregisterInstanceEventNotificationAttributes for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterInstanceEventNotificationAttributes
+func (c *EC2) DeregisterInstanceEventNotificationAttributes(input *DeregisterInstanceEventNotificationAttributesInput) (*DeregisterInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.DeregisterInstanceEventNotificationAttributesRequest(input)
+ return out, req.Send()
+}
+
+// DeregisterInstanceEventNotificationAttributesWithContext is the same as DeregisterInstanceEventNotificationAttributes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeregisterInstanceEventNotificationAttributes 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 *EC2) DeregisterInstanceEventNotificationAttributesWithContext(ctx aws.Context, input *DeregisterInstanceEventNotificationAttributesInput, opts ...request.Option) (*DeregisterInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.DeregisterInstanceEventNotificationAttributesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeregisterTransitGatewayMulticastGroupMembers = "DeregisterTransitGatewayMulticastGroupMembers"
// DeregisterTransitGatewayMulticastGroupMembersRequest generates a "aws/request.Request" representing the
@@ -16194,6 +16268,81 @@ func (c *EC2) DescribeInstanceCreditSpecificationsPagesWithContext(ctx aws.Conte
return p.Err()
}
+const opDescribeInstanceEventNotificationAttributes = "DescribeInstanceEventNotificationAttributes"
+
+// DescribeInstanceEventNotificationAttributesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeInstanceEventNotificationAttributes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeInstanceEventNotificationAttributes for more information on using the DescribeInstanceEventNotificationAttributes
+// 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 DescribeInstanceEventNotificationAttributesRequest method.
+// req, resp := client.DescribeInstanceEventNotificationAttributesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceEventNotificationAttributes
+func (c *EC2) DescribeInstanceEventNotificationAttributesRequest(input *DescribeInstanceEventNotificationAttributesInput) (req *request.Request, output *DescribeInstanceEventNotificationAttributesOutput) {
+ op := &request.Operation{
+ Name: opDescribeInstanceEventNotificationAttributes,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeInstanceEventNotificationAttributesInput{}
+ }
+
+ output = &DescribeInstanceEventNotificationAttributesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeInstanceEventNotificationAttributes API operation for Amazon Elastic Compute Cloud.
+//
+// Describes the tag keys that are registered to appear in scheduled event notifications
+// for resources in the current Region.
+//
+// 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 Elastic Compute Cloud's
+// API operation DescribeInstanceEventNotificationAttributes for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceEventNotificationAttributes
+func (c *EC2) DescribeInstanceEventNotificationAttributes(input *DescribeInstanceEventNotificationAttributesInput) (*DescribeInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.DescribeInstanceEventNotificationAttributesRequest(input)
+ return out, req.Send()
+}
+
+// DescribeInstanceEventNotificationAttributesWithContext is the same as DescribeInstanceEventNotificationAttributes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeInstanceEventNotificationAttributes 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 *EC2) DescribeInstanceEventNotificationAttributesWithContext(ctx aws.Context, input *DescribeInstanceEventNotificationAttributesInput, opts ...request.Option) (*DescribeInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.DescribeInstanceEventNotificationAttributesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeInstanceStatus = "DescribeInstanceStatus"
// DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
@@ -21232,8 +21381,8 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq
// You can use DescribeSpotInstanceRequests to find a running Spot Instance
// by examining the response. If the status of the Spot Instance is fulfilled,
// the instance ID appears in the response and contains the identifier of the
-// instance. Alternatively, you can use DescribeInstances with a filter to look
-// for instances where the instance lifecycle is spot.
+// instance. Alternatively, you can use DescribeInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances)
+// with a filter to look for instances where the instance lifecycle is spot.
//
// We recommend that you set MaxResults to a value between 5 and 1000 to limit
// the number of results returned. This paginates the output, which makes the
@@ -33363,6 +33512,83 @@ func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInpu
return out, req.Send()
}
+const opRegisterInstanceEventNotificationAttributes = "RegisterInstanceEventNotificationAttributes"
+
+// RegisterInstanceEventNotificationAttributesRequest generates a "aws/request.Request" representing the
+// client's request for the RegisterInstanceEventNotificationAttributes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RegisterInstanceEventNotificationAttributes for more information on using the RegisterInstanceEventNotificationAttributes
+// 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 RegisterInstanceEventNotificationAttributesRequest method.
+// req, resp := client.RegisterInstanceEventNotificationAttributesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterInstanceEventNotificationAttributes
+func (c *EC2) RegisterInstanceEventNotificationAttributesRequest(input *RegisterInstanceEventNotificationAttributesInput) (req *request.Request, output *RegisterInstanceEventNotificationAttributesOutput) {
+ op := &request.Operation{
+ Name: opRegisterInstanceEventNotificationAttributes,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RegisterInstanceEventNotificationAttributesInput{}
+ }
+
+ output = &RegisterInstanceEventNotificationAttributesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RegisterInstanceEventNotificationAttributes API operation for Amazon Elastic Compute Cloud.
+//
+// Registers a set of tag keys to include in scheduled event notifications for
+// your resources.
+//
+// To remove tags, 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 Elastic Compute Cloud's
+// API operation RegisterInstanceEventNotificationAttributes for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterInstanceEventNotificationAttributes
+func (c *EC2) RegisterInstanceEventNotificationAttributes(input *RegisterInstanceEventNotificationAttributesInput) (*RegisterInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.RegisterInstanceEventNotificationAttributesRequest(input)
+ return out, req.Send()
+}
+
+// RegisterInstanceEventNotificationAttributesWithContext is the same as RegisterInstanceEventNotificationAttributes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RegisterInstanceEventNotificationAttributes 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 *EC2) RegisterInstanceEventNotificationAttributesWithContext(ctx aws.Context, input *RegisterInstanceEventNotificationAttributesInput, opts ...request.Option) (*RegisterInstanceEventNotificationAttributesOutput, error) {
+ req, out := c.RegisterInstanceEventNotificationAttributesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opRegisterTransitGatewayMulticastGroupMembers = "RegisterTransitGatewayMulticastGroupMembers"
// RegisterTransitGatewayMulticastGroupMembersRequest generates a "aws/request.Request" representing the
@@ -46151,6 +46377,9 @@ type CreateKeyPairInput struct {
//
// KeyName is a required field
KeyName *string `type:"string" required:"true"`
+
+ // The tags to apply to the new key pair.
+ TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -46188,6 +46417,12 @@ func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
return s
}
+// SetTagSpecifications sets the TagSpecifications field's value.
+func (s *CreateKeyPairInput) SetTagSpecifications(v []*TagSpecification) *CreateKeyPairInput {
+ s.TagSpecifications = v
+ return s
+}
+
// Describes a key pair.
type CreateKeyPairOutput struct {
_ struct{} `type:"structure"`
@@ -46203,6 +46438,9 @@ type CreateKeyPairOutput struct {
// The ID of the key pair.
KeyPairId *string `locationName:"keyPairId" type:"string"`
+
+ // Any tags applied to the key pair.
+ Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -46239,6 +46477,12 @@ func (s *CreateKeyPairOutput) SetKeyPairId(v string) *CreateKeyPairOutput {
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateKeyPairOutput) SetTags(v []*Tag) *CreateKeyPairOutput {
+ s.Tags = v
+ return s
+}
+
type CreateLaunchTemplateInput struct {
_ struct{} `type:"structure"`
@@ -47343,6 +47587,9 @@ type CreatePlacementGroupInput struct {
// The placement strategy.
Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
+
+ // The tags to apply to the new placement group.
+ TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -47379,8 +47626,17 @@ func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupI
return s
}
+// SetTagSpecifications sets the TagSpecifications field's value.
+func (s *CreatePlacementGroupInput) SetTagSpecifications(v []*TagSpecification) *CreatePlacementGroupInput {
+ s.TagSpecifications = v
+ return s
+}
+
type CreatePlacementGroupOutput struct {
_ struct{} `type:"structure"`
+
+ // Describes a placement group.
+ PlacementGroup *PlacementGroup `locationName:"placementGroup" type:"structure"`
}
// String returns the string representation
@@ -47393,6 +47649,12 @@ func (s CreatePlacementGroupOutput) GoString() string {
return s.String()
}
+// SetPlacementGroup sets the PlacementGroup field's value.
+func (s *CreatePlacementGroupOutput) SetPlacementGroup(v *PlacementGroup) *CreatePlacementGroupOutput {
+ s.PlacementGroup = v
+ return s
+}
+
// Contains the parameters for CreateReservedInstancesListing.
type CreateReservedInstancesListingInput struct {
_ struct{} `type:"structure"`
@@ -51672,9 +51934,10 @@ type DeleteKeyPairInput struct {
DryRun *bool `locationName:"dryRun" type:"boolean"`
// The name of the key pair.
- //
- // KeyName is a required field
- KeyName *string `type:"string" required:"true"`
+ KeyName *string `type:"string"`
+
+ // The ID of the key pair.
+ KeyPairId *string `type:"string"`
}
// String returns the string representation
@@ -51687,19 +51950,6 @@ func (s DeleteKeyPairInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteKeyPairInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
- if s.KeyName == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyName"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
// SetDryRun sets the DryRun field's value.
func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
s.DryRun = &v
@@ -51712,6 +51962,12 @@ func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
return s
}
+// SetKeyPairId sets the KeyPairId field's value.
+func (s *DeleteKeyPairInput) SetKeyPairId(v string) *DeleteKeyPairInput {
+ s.KeyPairId = &v
+ return s
+}
+
type DeleteKeyPairOutput struct {
_ struct{} `type:"structure"`
}
@@ -54689,6 +54945,101 @@ func (s DeregisterImageOutput) GoString() string {
return s.String()
}
+type DeregisterInstanceEventNotificationAttributesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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.
+ DryRun *bool `type:"boolean"`
+
+ // Information about the tag keys to deregister.
+ InstanceTagAttribute *DeregisterInstanceTagAttributeRequest `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeregisterInstanceEventNotificationAttributesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeregisterInstanceEventNotificationAttributesInput) GoString() string {
+ return s.String()
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *DeregisterInstanceEventNotificationAttributesInput) SetDryRun(v bool) *DeregisterInstanceEventNotificationAttributesInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetInstanceTagAttribute sets the InstanceTagAttribute field's value.
+func (s *DeregisterInstanceEventNotificationAttributesInput) SetInstanceTagAttribute(v *DeregisterInstanceTagAttributeRequest) *DeregisterInstanceEventNotificationAttributesInput {
+ s.InstanceTagAttribute = v
+ return s
+}
+
+type DeregisterInstanceEventNotificationAttributesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The resulting set of tag keys.
+ InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
+}
+
+// String returns the string representation
+func (s DeregisterInstanceEventNotificationAttributesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeregisterInstanceEventNotificationAttributesOutput) GoString() string {
+ return s.String()
+}
+
+// SetInstanceTagAttribute sets the InstanceTagAttribute field's value.
+func (s *DeregisterInstanceEventNotificationAttributesOutput) SetInstanceTagAttribute(v *InstanceTagNotificationAttribute) *DeregisterInstanceEventNotificationAttributesOutput {
+ s.InstanceTagAttribute = v
+ return s
+}
+
+// Information about the tag keys to deregister for the current Region. You
+// can either specify individual tag keys or deregister all tag keys in the
+// current Region. You must specify either IncludeAllTagsOfInstance or InstanceTagKeys
+// in the request
+type DeregisterInstanceTagAttributeRequest struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether to deregister all tag keys in the current Region. Specify
+ // false to deregister all tag keys.
+ IncludeAllTagsOfInstance *bool `type:"boolean"`
+
+ // Information about the tag keys to deregister.
+ InstanceTagKeys []*string `locationName:"InstanceTagKey" locationNameList:"item" type:"list"`
+}
+
+// String returns the string representation
+func (s DeregisterInstanceTagAttributeRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeregisterInstanceTagAttributeRequest) GoString() string {
+ return s.String()
+}
+
+// SetIncludeAllTagsOfInstance sets the IncludeAllTagsOfInstance field's value.
+func (s *DeregisterInstanceTagAttributeRequest) SetIncludeAllTagsOfInstance(v bool) *DeregisterInstanceTagAttributeRequest {
+ s.IncludeAllTagsOfInstance = &v
+ return s
+}
+
+// SetInstanceTagKeys sets the InstanceTagKeys field's value.
+func (s *DeregisterInstanceTagAttributeRequest) SetInstanceTagKeys(v []*string) *DeregisterInstanceTagAttributeRequest {
+ s.InstanceTagKeys = v
+ return s
+}
+
type DeregisterTransitGatewayMulticastGroupMembersInput struct {
_ struct{} `type:"structure"`
@@ -58509,8 +58860,7 @@ type DescribeIamInstanceProfileAssociationsInput struct {
//
// * instance-id - The ID of the instance.
//
- // * state - The state of the association (associating | associated | disassociating
- // | disassociated).
+ // * state - The state of the association (associating | associated | disassociating).
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
// The maximum number of results to return in a single call. To retrieve the
@@ -59589,6 +59939,55 @@ func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *Des
return s
}
+type DescribeInstanceEventNotificationAttributesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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.
+ DryRun *bool `type:"boolean"`
+}
+
+// String returns the string representation
+func (s DescribeInstanceEventNotificationAttributesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeInstanceEventNotificationAttributesInput) GoString() string {
+ return s.String()
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *DescribeInstanceEventNotificationAttributesInput) SetDryRun(v bool) *DescribeInstanceEventNotificationAttributesInput {
+ s.DryRun = &v
+ return s
+}
+
+type DescribeInstanceEventNotificationAttributesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the registered tag keys.
+ InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
+}
+
+// String returns the string representation
+func (s DescribeInstanceEventNotificationAttributesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeInstanceEventNotificationAttributesOutput) GoString() string {
+ return s.String()
+}
+
+// SetInstanceTagAttribute sets the InstanceTagAttribute field's value.
+func (s *DescribeInstanceEventNotificationAttributesOutput) SetInstanceTagAttribute(v *InstanceTagNotificationAttribute) *DescribeInstanceEventNotificationAttributesOutput {
+ s.InstanceTagAttribute = v
+ return s
+}
+
type DescribeInstanceStatusInput struct {
_ struct{} `type:"structure"`
@@ -60648,9 +61047,21 @@ type DescribeKeyPairsInput struct {
// The filters.
//
+ // * key-pair-id - The ID of the key pair.
+ //
// * fingerprint - The fingerprint of the key pair.
//
// * key-name - The name of the key pair.
+ //
+ // * tag-key - The key of a tag assigned to the resource. Use this filter
+ // to find all resources assigned a tag with a specific key, regardless of
+ // the tag value.
+ //
+ // * tag: - The key/value combination of a tag assigned to the resource.
+ // Use the tag key in the filter name and the tag value as the filter value.
+ // For example, to find all resources that have a tag with the key Owner
+ // and the value TeamA, specify tag:Owner for the filter name and TeamA for
+ // the filter value.
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
// The key pair names.
@@ -62542,6 +62953,16 @@ type DescribePlacementGroupsInput struct {
// | deleted).
//
// * strategy - The strategy of the placement group (cluster | spread | partition).
+ //
+ // * tag: - The key/value combination of a tag assigned to the resource.
+ // Use the tag key in the filter name and the tag value as the filter value.
+ // For example, to find all resources that have a tag with the key Owner
+ // and the value TeamA, specify tag:Owner for the filter name and TeamA for
+ // the filter value.
+ //
+ // * tag-key - The key of a tag assigned to the resource. Use this filter
+ // to find all resources that have a tag with a specific key, regardless
+ // of the tag value.
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
// The IDs of the placement groups.
@@ -65637,12 +66058,12 @@ type DescribeTagsInput struct {
// * 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 |
- // host-reservation | internet-gateway | launch-template | natgateway | network-acl
- // | network-interface | placement-group | reserved-instances | route-table
- // | security-group | snapshot | spot-instances-request | subnet | volume
- // | vpc | vpc-endpoint | vpc-endpoint-service | vpc-peering-connection |
- // vpn-connection | vpn-gateway).
+ // | dhcp-options | elastic-ip | fleet | fpga-image | host-reservation |
+ // image | instance | internet-gateway | key-pair | launch-template | natgateway
+ // | network-acl | network-interface | placement-group | reserved-instances
+ // | route-table | security-group | snapshot | spot-instances-request | subnet
+ // | volume | vpc | vpc-endpoint | vpc-endpoint-service | vpc-peering-connection
+ // | vpn-connection | vpn-gateway).
//
// * tag: - The key/value combination of the tag. For example, specify
// "tag:Owner" for the filter name and "TeamA" for the filter value to find
@@ -78482,6 +78903,9 @@ type ImportKeyPairInput struct {
//
// PublicKeyMaterial is a required field
PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
+
+ // The tags to apply to the imported key pair.
+ TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -78528,6 +78952,12 @@ func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput
return s
}
+// SetTagSpecifications sets the TagSpecifications field's value.
+func (s *ImportKeyPairInput) SetTagSpecifications(v []*TagSpecification) *ImportKeyPairInput {
+ s.TagSpecifications = v
+ return s
+}
+
type ImportKeyPairOutput struct {
_ struct{} `type:"structure"`
@@ -78536,6 +78966,12 @@ type ImportKeyPairOutput struct {
// The key pair name you provided.
KeyName *string `locationName:"keyName" type:"string"`
+
+ // The ID of the resulting key pair.
+ KeyPairId *string `locationName:"keyPairId" type:"string"`
+
+ // The tags applied to the imported key pair.
+ Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -78560,6 +78996,18 @@ func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
return s
}
+// SetKeyPairId sets the KeyPairId field's value.
+func (s *ImportKeyPairOutput) SetKeyPairId(v string) *ImportKeyPairOutput {
+ s.KeyPairId = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *ImportKeyPairOutput) SetTags(v []*Tag) *ImportKeyPairOutput {
+ s.Tags = v
+ return s
+}
+
type ImportSnapshotInput struct {
_ struct{} `type:"structure"`
@@ -80920,6 +81368,41 @@ func (s *InstanceStorageInfo) SetTotalSizeInGB(v int64) *InstanceStorageInfo {
return s
}
+// Describes the registered tag keys for the current Region.
+type InstanceTagNotificationAttribute struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates wheter all tag keys in the current Region are registered to appear
+ // in scheduled event notifications. true indicates that all tag keys in the
+ // current Region are registered.
+ IncludeAllTagsOfInstance *bool `locationName:"includeAllTagsOfInstance" type:"boolean"`
+
+ // The registered tag keys.
+ InstanceTagKeys []*string `locationName:"instanceTagKeySet" locationNameList:"item" type:"list"`
+}
+
+// String returns the string representation
+func (s InstanceTagNotificationAttribute) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s InstanceTagNotificationAttribute) GoString() string {
+ return s.String()
+}
+
+// SetIncludeAllTagsOfInstance sets the IncludeAllTagsOfInstance field's value.
+func (s *InstanceTagNotificationAttribute) SetIncludeAllTagsOfInstance(v bool) *InstanceTagNotificationAttribute {
+ s.IncludeAllTagsOfInstance = &v
+ return s
+}
+
+// SetInstanceTagKeys sets the InstanceTagKeys field's value.
+func (s *InstanceTagNotificationAttribute) SetInstanceTagKeys(v []*string) *InstanceTagNotificationAttribute {
+ s.InstanceTagKeys = v
+ return s
+}
+
// Describes the instance type.
type InstanceTypeInfo struct {
_ struct{} `type:"structure"`
@@ -91040,9 +91523,10 @@ type Placement struct {
_ struct{} `type:"structure"`
// The affinity setting for the instance on the Dedicated Host. This parameter
- // is not supported for the ImportInstance command.
+ // is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
+ // command.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
Affinity *string `locationName:"affinity" type:"string"`
// The Availability Zone of the instance.
@@ -91050,41 +91534,43 @@ type Placement struct {
// If not specified, an Availability Zone will be automatically chosen for you
// based on the load balancing criteria for the Region.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The name of the placement group the instance is in.
GroupName *string `locationName:"groupName" type:"string"`
// The ID of the Dedicated Host on which the instance resides. This parameter
- // is not supported for the ImportInstance command.
+ // is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
+ // command.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
HostId *string `locationName:"hostId" type:"string"`
// The ARN of the host resource group in which to launch the instances. If you
// specify a host resource group ARN, omit the Tenancy parameter or set it to
// host.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
HostResourceGroupArn *string `locationName:"hostResourceGroupArn" type:"string"`
// The number of the partition the instance is in. Valid only if the placement
// group strategy is set to partition.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
PartitionNumber *int64 `locationName:"partitionNumber" type:"integer"`
// Reserved for future use.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
SpreadDomain *string `locationName:"spreadDomain" type:"string"`
// The tenancy of the instance (if the instance is running in a VPC). An instance
// with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
- // is not supported for the ImportInstance command.
+ // is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
+ // command.
//
- // This parameter is not supported by .
+ // This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
}
@@ -92894,6 +93380,101 @@ func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
return s
}
+type RegisterInstanceEventNotificationAttributesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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.
+ DryRun *bool `type:"boolean"`
+
+ // Information about the tag keys to register.
+ InstanceTagAttribute *RegisterInstanceTagAttributeRequest `type:"structure"`
+}
+
+// String returns the string representation
+func (s RegisterInstanceEventNotificationAttributesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterInstanceEventNotificationAttributesInput) GoString() string {
+ return s.String()
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *RegisterInstanceEventNotificationAttributesInput) SetDryRun(v bool) *RegisterInstanceEventNotificationAttributesInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetInstanceTagAttribute sets the InstanceTagAttribute field's value.
+func (s *RegisterInstanceEventNotificationAttributesInput) SetInstanceTagAttribute(v *RegisterInstanceTagAttributeRequest) *RegisterInstanceEventNotificationAttributesInput {
+ s.InstanceTagAttribute = v
+ return s
+}
+
+type RegisterInstanceEventNotificationAttributesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The resulting set of tag keys.
+ InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
+}
+
+// String returns the string representation
+func (s RegisterInstanceEventNotificationAttributesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterInstanceEventNotificationAttributesOutput) GoString() string {
+ return s.String()
+}
+
+// SetInstanceTagAttribute sets the InstanceTagAttribute field's value.
+func (s *RegisterInstanceEventNotificationAttributesOutput) SetInstanceTagAttribute(v *InstanceTagNotificationAttribute) *RegisterInstanceEventNotificationAttributesOutput {
+ s.InstanceTagAttribute = v
+ return s
+}
+
+// Information about the tag keys to register for the current Region. You can
+// either specify individual tag keys or register all tag keys in the current
+// Region. You must specify either IncludeAllTagsOfInstance or InstanceTagKeys
+// in the request
+type RegisterInstanceTagAttributeRequest struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether to register all tag keys in the current Region. Specify
+ // true to register all tag keys.
+ IncludeAllTagsOfInstance *bool `type:"boolean"`
+
+ // The tag keys to register.
+ InstanceTagKeys []*string `locationName:"InstanceTagKey" locationNameList:"item" type:"list"`
+}
+
+// String returns the string representation
+func (s RegisterInstanceTagAttributeRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterInstanceTagAttributeRequest) GoString() string {
+ return s.String()
+}
+
+// SetIncludeAllTagsOfInstance sets the IncludeAllTagsOfInstance field's value.
+func (s *RegisterInstanceTagAttributeRequest) SetIncludeAllTagsOfInstance(v bool) *RegisterInstanceTagAttributeRequest {
+ s.IncludeAllTagsOfInstance = &v
+ return s
+}
+
+// SetInstanceTagKeys sets the InstanceTagKeys field's value.
+func (s *RegisterInstanceTagAttributeRequest) SetInstanceTagKeys(v []*string) *RegisterInstanceTagAttributeRequest {
+ s.InstanceTagKeys = v
+ return s
+}
+
type RegisterTransitGatewayMulticastGroupMembersInput struct {
_ struct{} `type:"structure"`
@@ -101172,8 +101753,8 @@ type SpotFleetRequestConfigData struct {
// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites)
// in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate
// Spot Instances on your behalf when you cancel its Spot Fleet request using
- // CancelSpotFleetRequests or when the Spot Fleet request expires, if you set
- // TerminateInstancesWithExpiration.
+ // CancelSpotFleetRequests (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests)
+ // or when the Spot Fleet request expires, if you set TerminateInstancesWithExpiration.
//
// IamFleetRole is a required field
IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
@@ -101802,9 +102383,9 @@ type SpotMarketOptions struct {
// default is the On-Demand price.
MaxPrice *string `type:"string"`
- // The Spot Instance request type. For RunInstances, persistent Spot Instance
- // requests are only supported when InstanceInterruptionBehavior is set to either
- // hibernate or stop.
+ // The Spot Instance request type. For RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances),
+ // persistent Spot Instance requests are only supported when InstanceInterruptionBehavior
+ // is set to either hibernate or stop.
SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
// The end date of the request. For a one-time request, the request remains
@@ -103136,7 +103717,8 @@ func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
// reaches the maximum amount that you're willing to pay. When the maximum amount
// you're willing to pay is reached, the fleet stops launching instances even
// if it hasn’t met the target capacity. The MaxTotalPrice parameters are
-// located in and
+// located in OnDemandOptions (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptions.html)
+// and SpotOptions (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptions)
type TargetCapacitySpecification struct {
_ struct{} `type:"structure"`
@@ -103202,7 +103784,8 @@ func (s *TargetCapacitySpecification) SetTotalTargetCapacity(v int64) *TargetCap
// instances until it reaches the maximum amount that you're willing to pay.
// When the maximum amount you're willing to pay is reached, the fleet stops
// launching instances even if it hasn’t met the target capacity. The MaxTotalPrice
-// parameters are located in and .
+// parameters are located in OnDemandOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptionsRequest)
+// and SpotOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptionsRequest).
type TargetCapacitySpecificationRequest struct {
_ struct{} `type:"structure"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go
index 2a5e6e3cd46..91e36f08d1c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go
@@ -60,14 +60,12 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil
// Checks the availability of one or more image layers in a repository.
//
// When an image is pushed to a repository, each image layer is checked to verify
-// if it has been uploaded before. If it is, then the image layer is skipped.
+// if it has been uploaded before. If it has been uploaded, then the image layer
+// is skipped.
//
-// When an image is pulled from a repository, each image layer is checked once
-// to verify it is available to be pulled.
-//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -347,9 +345,9 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req *
// When an image is pushed, the CompleteLayerUpload API is called once per each
// new image layer to verify that the upload has completed.
//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -1375,11 +1373,11 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput)
// layer. You can only get URLs for image layers that are referenced in an image.
//
// When an image is pulled, the GetDownloadUrlForLayer API is called once per
-// image layer.
+// image layer that is not already cached.
//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -1807,12 +1805,12 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req *
// Notifies Amazon ECR that you intend to upload an image layer.
//
// When an image is pushed, the InitiateLayerUpload API is called once per image
-// layer that has not already been uploaded. Whether an image layer has been
-// uploaded before is determined by the BatchCheckLayerAvailability API action.
+// layer that has not already been uploaded. Whether or not an image layer has
+// been uploaded is determined by the BatchCheckLayerAvailability API action.
//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -2141,12 +2139,12 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu
// Creates or updates the image manifest and tags associated with an image.
//
// When an image is pushed and all new image layers have been uploaded, the
-// PutImage API is called once to create or update the image manifest and tags
-// associated with the image.
+// PutImage API is called once to create or update the image manifest and the
+// tags associated with the image.
//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -2175,6 +2173,9 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu
// The specified layers could not be found, or the specified layer is not valid
// for this repository.
//
+// * ReferencedImagesNotFoundException
+// The manifest list is referencing an image that does not exist.
+//
// * LimitExceededException
// The operation did not succeed because it would have exceeded a service limit
// for your account. For more information, see Amazon ECR Default Service Limits
@@ -2624,6 +2625,15 @@ func (c *ECR) StartImageScanRequest(input *StartImageScanInput) (req *request.Re
// The specified parameter is invalid. Review the available parameters for the
// API request.
//
+// * UnsupportedImageTypeException
+// The image is of a type that cannot be scanned.
+//
+// * LimitExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account. For more information, see Amazon ECR Default Service Limits
+// (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html)
+// in the Amazon Elastic Container Registry User Guide.
+//
// * RepositoryNotFoundException
// The specified repository could not be found. Check the spelling of the specified
// repository and ensure that you are performing operations on the correct registry.
@@ -2994,9 +3004,9 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request.
// size of each image layer part can be 20971520 bytes (or about 20MB). The
// UploadLayerPart API is called once per each new image layer part.
//
-// This operation is used by the Amazon ECR proxy, and it is not intended for
-// general use by customers for pulling and pushing images. In most cases, you
-// should use the docker CLI to pull, tag, and push images.
+// This operation is used by the Amazon ECR proxy and is not generally used
+// by customers for pulling and pushing images. In most cases, you should use
+// the docker CLI to pull, tag, and push images.
//
// 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
@@ -4457,8 +4467,8 @@ func (s *DescribeRepositoriesOutput) SetRepositories(v []*Repository) *DescribeR
// The specified layer upload does not contain any layer parts.
type EmptyUploadException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4476,17 +4486,17 @@ func (s EmptyUploadException) GoString() string {
func newErrorEmptyUploadException(v protocol.ResponseMetadata) error {
return &EmptyUploadException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EmptyUploadException) Code() string {
+func (s *EmptyUploadException) Code() string {
return "EmptyUploadException"
}
// Message returns the exception's message.
-func (s EmptyUploadException) Message() string {
+func (s *EmptyUploadException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4494,22 +4504,22 @@ func (s EmptyUploadException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EmptyUploadException) OrigErr() error {
+func (s *EmptyUploadException) OrigErr() error {
return nil
}
-func (s EmptyUploadException) Error() string {
+func (s *EmptyUploadException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EmptyUploadException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EmptyUploadException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EmptyUploadException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EmptyUploadException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetAuthorizationTokenInput struct {
@@ -5114,8 +5124,8 @@ func (s *Image) SetRepositoryName(v string) *Image {
// The specified image has already been pushed, and there were no changes to
// the manifest or image tag after the last push.
type ImageAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -5133,17 +5143,17 @@ func (s ImageAlreadyExistsException) GoString() string {
func newErrorImageAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ImageAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ImageAlreadyExistsException) Code() string {
+func (s *ImageAlreadyExistsException) Code() string {
return "ImageAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ImageAlreadyExistsException) Message() string {
+func (s *ImageAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5151,22 +5161,22 @@ func (s ImageAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ImageAlreadyExistsException) OrigErr() error {
+func (s *ImageAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ImageAlreadyExistsException) Error() string {
+func (s *ImageAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ImageAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ImageAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ImageAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ImageAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that describes an image returned by a DescribeImages operation.
@@ -5188,6 +5198,9 @@ type ImageDetail struct {
// The size, in bytes, of the image in the repository.
//
+ // If the image is a manifest list, this will be the max size of all manifests
+ // in the list.
+ //
// Beginning with Docker version 1.9, the Docker client compresses image layers
// before pushing them to a V2 Docker registry. The output of the docker images
// command shows the uncompressed image size, so it may return a larger image
@@ -5352,8 +5365,8 @@ func (s *ImageIdentifier) SetImageTag(v string) *ImageIdentifier {
// The image requested does not exist in the specified repository.
type ImageNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5370,17 +5383,17 @@ func (s ImageNotFoundException) GoString() string {
func newErrorImageNotFoundException(v protocol.ResponseMetadata) error {
return &ImageNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ImageNotFoundException) Code() string {
+func (s *ImageNotFoundException) Code() string {
return "ImageNotFoundException"
}
// Message returns the exception's message.
-func (s ImageNotFoundException) Message() string {
+func (s *ImageNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5388,22 +5401,22 @@ func (s ImageNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ImageNotFoundException) OrigErr() error {
+func (s *ImageNotFoundException) OrigErr() error {
return nil
}
-func (s ImageNotFoundException) Error() string {
+func (s *ImageNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ImageNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ImageNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ImageNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ImageNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about an image scan finding.
@@ -5623,8 +5636,8 @@ func (s *ImageScanningConfiguration) SetScanOnPush(v bool) *ImageScanningConfigu
// The specified image is tagged with a tag that already exists. The repository
// is configured for tag immutability.
type ImageTagAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5641,17 +5654,17 @@ func (s ImageTagAlreadyExistsException) GoString() string {
func newErrorImageTagAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ImageTagAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ImageTagAlreadyExistsException) Code() string {
+func (s *ImageTagAlreadyExistsException) Code() string {
return "ImageTagAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ImageTagAlreadyExistsException) Message() string {
+func (s *ImageTagAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5659,22 +5672,22 @@ func (s ImageTagAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ImageTagAlreadyExistsException) OrigErr() error {
+func (s *ImageTagAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ImageTagAlreadyExistsException) Error() string {
+func (s *ImageTagAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ImageTagAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ImageTagAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ImageTagAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ImageTagAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type InitiateLayerUploadInput struct {
@@ -5765,8 +5778,8 @@ func (s *InitiateLayerUploadOutput) SetUploadId(v string) *InitiateLayerUploadOu
// The layer digest calculation performed by Amazon ECR upon receipt of the
// image layer does not match the digest specified.
type InvalidLayerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -5784,17 +5797,17 @@ func (s InvalidLayerException) GoString() string {
func newErrorInvalidLayerException(v protocol.ResponseMetadata) error {
return &InvalidLayerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLayerException) Code() string {
+func (s *InvalidLayerException) Code() string {
return "InvalidLayerException"
}
// Message returns the exception's message.
-func (s InvalidLayerException) Message() string {
+func (s *InvalidLayerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5802,29 +5815,29 @@ func (s InvalidLayerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLayerException) OrigErr() error {
+func (s *InvalidLayerException) OrigErr() error {
return nil
}
-func (s InvalidLayerException) Error() string {
+func (s *InvalidLayerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLayerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLayerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLayerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLayerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The layer part size is not valid, or the first byte specified is not consecutive
// to the last byte of a previous layer part upload.
type InvalidLayerPartException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The last valid byte received from the layer part upload that is associated
// with the exception.
@@ -5855,17 +5868,17 @@ func (s InvalidLayerPartException) GoString() string {
func newErrorInvalidLayerPartException(v protocol.ResponseMetadata) error {
return &InvalidLayerPartException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLayerPartException) Code() string {
+func (s *InvalidLayerPartException) Code() string {
return "InvalidLayerPartException"
}
// Message returns the exception's message.
-func (s InvalidLayerPartException) Message() string {
+func (s *InvalidLayerPartException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5873,29 +5886,29 @@ func (s InvalidLayerPartException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLayerPartException) OrigErr() error {
+func (s *InvalidLayerPartException) OrigErr() error {
return nil
}
-func (s InvalidLayerPartException) Error() string {
+func (s *InvalidLayerPartException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLayerPartException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLayerPartException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLayerPartException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLayerPartException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified parameter is invalid. Review the available parameters for the
// API request.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -5913,17 +5926,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5931,30 +5944,30 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid parameter has been specified. Tag keys can have a maximum character
// length of 128 characters, and tag values can have a maximum length of 256
// characters.
type InvalidTagParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5971,17 +5984,17 @@ func (s InvalidTagParameterException) GoString() string {
func newErrorInvalidTagParameterException(v protocol.ResponseMetadata) error {
return &InvalidTagParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagParameterException) Code() string {
+func (s *InvalidTagParameterException) Code() string {
return "InvalidTagParameterException"
}
// Message returns the exception's message.
-func (s InvalidTagParameterException) Message() string {
+func (s *InvalidTagParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5989,22 +6002,22 @@ func (s InvalidTagParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagParameterException) OrigErr() error {
+func (s *InvalidTagParameterException) OrigErr() error {
return nil
}
-func (s InvalidTagParameterException) Error() string {
+func (s *InvalidTagParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing an Amazon ECR image layer.
@@ -6061,8 +6074,8 @@ func (s *Layer) SetMediaType(v string) *Layer {
// The image layer already exists in the associated repository.
type LayerAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -6080,17 +6093,17 @@ func (s LayerAlreadyExistsException) GoString() string {
func newErrorLayerAlreadyExistsException(v protocol.ResponseMetadata) error {
return &LayerAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LayerAlreadyExistsException) Code() string {
+func (s *LayerAlreadyExistsException) Code() string {
return "LayerAlreadyExistsException"
}
// Message returns the exception's message.
-func (s LayerAlreadyExistsException) Message() string {
+func (s *LayerAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6098,22 +6111,22 @@ func (s LayerAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LayerAlreadyExistsException) OrigErr() error {
+func (s *LayerAlreadyExistsException) OrigErr() error {
return nil
}
-func (s LayerAlreadyExistsException) Error() string {
+func (s *LayerAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LayerAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LayerAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LayerAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LayerAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing an Amazon ECR image layer failure.
@@ -6161,8 +6174,8 @@ func (s *LayerFailure) SetLayerDigest(v string) *LayerFailure {
// The specified layer is not available because it is not associated with an
// image. Unassociated image layers may be cleaned up at any time.
type LayerInaccessibleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -6180,17 +6193,17 @@ func (s LayerInaccessibleException) GoString() string {
func newErrorLayerInaccessibleException(v protocol.ResponseMetadata) error {
return &LayerInaccessibleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LayerInaccessibleException) Code() string {
+func (s *LayerInaccessibleException) Code() string {
return "LayerInaccessibleException"
}
// Message returns the exception's message.
-func (s LayerInaccessibleException) Message() string {
+func (s *LayerInaccessibleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6198,28 +6211,28 @@ func (s LayerInaccessibleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LayerInaccessibleException) OrigErr() error {
+func (s *LayerInaccessibleException) OrigErr() error {
return nil
}
-func (s LayerInaccessibleException) Error() string {
+func (s *LayerInaccessibleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LayerInaccessibleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LayerInaccessibleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LayerInaccessibleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LayerInaccessibleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Layer parts must be at least 5 MiB in size.
type LayerPartTooSmallException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -6237,17 +6250,17 @@ func (s LayerPartTooSmallException) GoString() string {
func newErrorLayerPartTooSmallException(v protocol.ResponseMetadata) error {
return &LayerPartTooSmallException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LayerPartTooSmallException) Code() string {
+func (s *LayerPartTooSmallException) Code() string {
return "LayerPartTooSmallException"
}
// Message returns the exception's message.
-func (s LayerPartTooSmallException) Message() string {
+func (s *LayerPartTooSmallException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6255,29 +6268,29 @@ func (s LayerPartTooSmallException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LayerPartTooSmallException) OrigErr() error {
+func (s *LayerPartTooSmallException) OrigErr() error {
return nil
}
-func (s LayerPartTooSmallException) Error() string {
+func (s *LayerPartTooSmallException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LayerPartTooSmallException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LayerPartTooSmallException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LayerPartTooSmallException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LayerPartTooSmallException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified layers could not be found, or the specified layer is not valid
// for this repository.
type LayersNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -6295,17 +6308,17 @@ func (s LayersNotFoundException) GoString() string {
func newErrorLayersNotFoundException(v protocol.ResponseMetadata) error {
return &LayersNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LayersNotFoundException) Code() string {
+func (s *LayersNotFoundException) Code() string {
return "LayersNotFoundException"
}
// Message returns the exception's message.
-func (s LayersNotFoundException) Message() string {
+func (s *LayersNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6313,28 +6326,28 @@ func (s LayersNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LayersNotFoundException) OrigErr() error {
+func (s *LayersNotFoundException) OrigErr() error {
return nil
}
-func (s LayersNotFoundException) Error() string {
+func (s *LayersNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LayersNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LayersNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LayersNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LayersNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The lifecycle policy could not be found, and no policy is set to the repository.
type LifecyclePolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6351,17 +6364,17 @@ func (s LifecyclePolicyNotFoundException) GoString() string {
func newErrorLifecyclePolicyNotFoundException(v protocol.ResponseMetadata) error {
return &LifecyclePolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LifecyclePolicyNotFoundException) Code() string {
+func (s *LifecyclePolicyNotFoundException) Code() string {
return "LifecyclePolicyNotFoundException"
}
// Message returns the exception's message.
-func (s LifecyclePolicyNotFoundException) Message() string {
+func (s *LifecyclePolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6369,22 +6382,22 @@ func (s LifecyclePolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LifecyclePolicyNotFoundException) OrigErr() error {
+func (s *LifecyclePolicyNotFoundException) OrigErr() error {
return nil
}
-func (s LifecyclePolicyNotFoundException) Error() string {
+func (s *LifecyclePolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LifecyclePolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LifecyclePolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LifecyclePolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LifecyclePolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The filter for the lifecycle policy preview.
@@ -6414,8 +6427,8 @@ func (s *LifecyclePolicyPreviewFilter) SetTagStatus(v string) *LifecyclePolicyPr
// The previous lifecycle policy preview request has not completed. Please try
// again later.
type LifecyclePolicyPreviewInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6432,17 +6445,17 @@ func (s LifecyclePolicyPreviewInProgressException) GoString() string {
func newErrorLifecyclePolicyPreviewInProgressException(v protocol.ResponseMetadata) error {
return &LifecyclePolicyPreviewInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LifecyclePolicyPreviewInProgressException) Code() string {
+func (s *LifecyclePolicyPreviewInProgressException) Code() string {
return "LifecyclePolicyPreviewInProgressException"
}
// Message returns the exception's message.
-func (s LifecyclePolicyPreviewInProgressException) Message() string {
+func (s *LifecyclePolicyPreviewInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6450,28 +6463,28 @@ func (s LifecyclePolicyPreviewInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LifecyclePolicyPreviewInProgressException) OrigErr() error {
+func (s *LifecyclePolicyPreviewInProgressException) OrigErr() error {
return nil
}
-func (s LifecyclePolicyPreviewInProgressException) Error() string {
+func (s *LifecyclePolicyPreviewInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LifecyclePolicyPreviewInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LifecyclePolicyPreviewInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LifecyclePolicyPreviewInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LifecyclePolicyPreviewInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There is no dry run for this repository.
type LifecyclePolicyPreviewNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6488,17 +6501,17 @@ func (s LifecyclePolicyPreviewNotFoundException) GoString() string {
func newErrorLifecyclePolicyPreviewNotFoundException(v protocol.ResponseMetadata) error {
return &LifecyclePolicyPreviewNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LifecyclePolicyPreviewNotFoundException) Code() string {
+func (s *LifecyclePolicyPreviewNotFoundException) Code() string {
return "LifecyclePolicyPreviewNotFoundException"
}
// Message returns the exception's message.
-func (s LifecyclePolicyPreviewNotFoundException) Message() string {
+func (s *LifecyclePolicyPreviewNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6506,22 +6519,22 @@ func (s LifecyclePolicyPreviewNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LifecyclePolicyPreviewNotFoundException) OrigErr() error {
+func (s *LifecyclePolicyPreviewNotFoundException) OrigErr() error {
return nil
}
-func (s LifecyclePolicyPreviewNotFoundException) Error() string {
+func (s *LifecyclePolicyPreviewNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LifecyclePolicyPreviewNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LifecyclePolicyPreviewNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LifecyclePolicyPreviewNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LifecyclePolicyPreviewNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The result of the lifecycle policy preview.
@@ -6638,8 +6651,8 @@ func (s *LifecyclePolicyRuleAction) SetType(v string) *LifecyclePolicyRuleAction
// (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html)
// in the Amazon Elastic Container Registry User Guide.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -6657,17 +6670,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6675,22 +6688,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing a filter on a ListImages operation.
@@ -7342,6 +7355,62 @@ func (s *PutLifecyclePolicyOutput) SetRepositoryName(v string) *PutLifecyclePoli
return s
}
+// The manifest list is referencing an image that does not exist.
+type ReferencedImagesNotFoundException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s ReferencedImagesNotFoundException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ReferencedImagesNotFoundException) GoString() string {
+ return s.String()
+}
+
+func newErrorReferencedImagesNotFoundException(v protocol.ResponseMetadata) error {
+ return &ReferencedImagesNotFoundException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ReferencedImagesNotFoundException) Code() string {
+ return "ReferencedImagesNotFoundException"
+}
+
+// Message returns the exception's message.
+func (s *ReferencedImagesNotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ReferencedImagesNotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *ReferencedImagesNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ReferencedImagesNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ReferencedImagesNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// An object representing a repository.
type Repository struct {
_ struct{} `type:"structure"`
@@ -7426,8 +7495,8 @@ func (s *Repository) SetRepositoryUri(v string) *Repository {
// The specified repository already exists in the specified registry.
type RepositoryAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -7445,17 +7514,17 @@ func (s RepositoryAlreadyExistsException) GoString() string {
func newErrorRepositoryAlreadyExistsException(v protocol.ResponseMetadata) error {
return &RepositoryAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryAlreadyExistsException) Code() string {
+func (s *RepositoryAlreadyExistsException) Code() string {
return "RepositoryAlreadyExistsException"
}
// Message returns the exception's message.
-func (s RepositoryAlreadyExistsException) Message() string {
+func (s *RepositoryAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7463,29 +7532,29 @@ func (s RepositoryAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryAlreadyExistsException) OrigErr() error {
+func (s *RepositoryAlreadyExistsException) OrigErr() error {
return nil
}
-func (s RepositoryAlreadyExistsException) Error() string {
+func (s *RepositoryAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified repository contains images. To delete a repository that contains
// images, you must force the deletion with the force parameter.
type RepositoryNotEmptyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -7503,17 +7572,17 @@ func (s RepositoryNotEmptyException) GoString() string {
func newErrorRepositoryNotEmptyException(v protocol.ResponseMetadata) error {
return &RepositoryNotEmptyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNotEmptyException) Code() string {
+func (s *RepositoryNotEmptyException) Code() string {
return "RepositoryNotEmptyException"
}
// Message returns the exception's message.
-func (s RepositoryNotEmptyException) Message() string {
+func (s *RepositoryNotEmptyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7521,29 +7590,29 @@ func (s RepositoryNotEmptyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNotEmptyException) OrigErr() error {
+func (s *RepositoryNotEmptyException) OrigErr() error {
return nil
}
-func (s RepositoryNotEmptyException) Error() string {
+func (s *RepositoryNotEmptyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNotEmptyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNotEmptyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNotEmptyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNotEmptyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified repository could not be found. Check the spelling of the specified
// repository and ensure that you are performing operations on the correct registry.
type RepositoryNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -7561,17 +7630,17 @@ func (s RepositoryNotFoundException) GoString() string {
func newErrorRepositoryNotFoundException(v protocol.ResponseMetadata) error {
return &RepositoryNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryNotFoundException) Code() string {
+func (s *RepositoryNotFoundException) Code() string {
return "RepositoryNotFoundException"
}
// Message returns the exception's message.
-func (s RepositoryNotFoundException) Message() string {
+func (s *RepositoryNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7579,29 +7648,29 @@ func (s RepositoryNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryNotFoundException) OrigErr() error {
+func (s *RepositoryNotFoundException) OrigErr() error {
return nil
}
-func (s RepositoryNotFoundException) Error() string {
+func (s *RepositoryNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified repository and registry combination does not have an associated
// repository policy.
type RepositoryPolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -7619,17 +7688,17 @@ func (s RepositoryPolicyNotFoundException) GoString() string {
func newErrorRepositoryPolicyNotFoundException(v protocol.ResponseMetadata) error {
return &RepositoryPolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RepositoryPolicyNotFoundException) Code() string {
+func (s *RepositoryPolicyNotFoundException) Code() string {
return "RepositoryPolicyNotFoundException"
}
// Message returns the exception's message.
-func (s RepositoryPolicyNotFoundException) Message() string {
+func (s *RepositoryPolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7637,29 +7706,29 @@ func (s RepositoryPolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RepositoryPolicyNotFoundException) OrigErr() error {
+func (s *RepositoryPolicyNotFoundException) OrigErr() error {
return nil
}
-func (s RepositoryPolicyNotFoundException) Error() string {
+func (s *RepositoryPolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RepositoryPolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RepositoryPolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RepositoryPolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RepositoryPolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified image scan could not be found. Ensure that image scanning is
// enabled on the repository and try again.
type ScanNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7676,17 +7745,17 @@ func (s ScanNotFoundException) GoString() string {
func newErrorScanNotFoundException(v protocol.ResponseMetadata) error {
return &ScanNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ScanNotFoundException) Code() string {
+func (s *ScanNotFoundException) Code() string {
return "ScanNotFoundException"
}
// Message returns the exception's message.
-func (s ScanNotFoundException) Message() string {
+func (s *ScanNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7694,28 +7763,28 @@ func (s ScanNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ScanNotFoundException) OrigErr() error {
+func (s *ScanNotFoundException) OrigErr() error {
return nil
}
-func (s ScanNotFoundException) Error() string {
+func (s *ScanNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ScanNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ScanNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ScanNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ScanNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// These errors are usually caused by a server-side issue.
type ServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -7733,17 +7802,17 @@ func (s ServerException) GoString() string {
func newErrorServerException(v protocol.ResponseMetadata) error {
return &ServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerException) Code() string {
+func (s *ServerException) Code() string {
return "ServerException"
}
// Message returns the exception's message.
-func (s ServerException) Message() string {
+func (s *ServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7751,22 +7820,22 @@ func (s ServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerException) OrigErr() error {
+func (s *ServerException) OrigErr() error {
return nil
}
-func (s ServerException) Error() string {
+func (s *ServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SetRepositoryPolicyInput struct {
@@ -8233,8 +8302,8 @@ func (s TagResourceOutput) GoString() string {
// The list of tags on the repository is over the limit. The maximum number
// of tags that can be applied to a repository is 50.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8251,17 +8320,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8269,22 +8338,78 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The image is of a type that cannot be scanned.
+type UnsupportedImageTypeException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s UnsupportedImageTypeException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UnsupportedImageTypeException) GoString() string {
+ return s.String()
+}
+
+func newErrorUnsupportedImageTypeException(v protocol.ResponseMetadata) error {
+ return &UnsupportedImageTypeException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *UnsupportedImageTypeException) Code() string {
+ return "UnsupportedImageTypeException"
+}
+
+// Message returns the exception's message.
+func (s *UnsupportedImageTypeException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *UnsupportedImageTypeException) OrigErr() error {
+ return nil
+}
+
+func (s *UnsupportedImageTypeException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *UnsupportedImageTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *UnsupportedImageTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -8517,8 +8642,8 @@ func (s *UploadLayerPartOutput) SetUploadId(v string) *UploadLayerPartOutput {
// The upload could not be found, or the specified upload id is not valid for
// this repository.
type UploadNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message associated with the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -8536,17 +8661,17 @@ func (s UploadNotFoundException) GoString() string {
func newErrorUploadNotFoundException(v protocol.ResponseMetadata) error {
return &UploadNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UploadNotFoundException) Code() string {
+func (s *UploadNotFoundException) Code() string {
return "UploadNotFoundException"
}
// Message returns the exception's message.
-func (s UploadNotFoundException) Message() string {
+func (s *UploadNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8554,22 +8679,22 @@ func (s UploadNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UploadNotFoundException) OrigErr() error {
+func (s *UploadNotFoundException) OrigErr() error {
return nil
}
-func (s UploadNotFoundException) Error() string {
+func (s *UploadNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UploadNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UploadNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UploadNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UploadNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
@@ -8612,6 +8737,9 @@ const (
// ImageFailureCodeMissingDigestAndTag is a ImageFailureCode enum value
ImageFailureCodeMissingDigestAndTag = "MissingDigestAndTag"
+
+ // ImageFailureCodeImageReferencedByManifestList is a ImageFailureCode enum value
+ ImageFailureCodeImageReferencedByManifestList = "ImageReferencedByManifestList"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go
index 732d865bf40..c4e9b4013b4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ecr/errors.go
@@ -117,6 +117,12 @@ const (
// in the Amazon Elastic Container Registry User Guide.
ErrCodeLimitExceededException = "LimitExceededException"
+ // ErrCodeReferencedImagesNotFoundException for service response error code
+ // "ReferencedImagesNotFoundException".
+ //
+ // The manifest list is referencing an image that does not exist.
+ ErrCodeReferencedImagesNotFoundException = "ReferencedImagesNotFoundException"
+
// ErrCodeRepositoryAlreadyExistsException for service response error code
// "RepositoryAlreadyExistsException".
//
@@ -164,6 +170,12 @@ const (
// of tags that can be applied to a repository is 50.
ErrCodeTooManyTagsException = "TooManyTagsException"
+ // ErrCodeUnsupportedImageTypeException for service response error code
+ // "UnsupportedImageTypeException".
+ //
+ // The image is of a type that cannot be scanned.
+ ErrCodeUnsupportedImageTypeException = "UnsupportedImageTypeException"
+
// ErrCodeUploadNotFoundException for service response error code
// "UploadNotFoundException".
//
@@ -189,6 +201,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"LifecyclePolicyPreviewInProgressException": newErrorLifecyclePolicyPreviewInProgressException,
"LifecyclePolicyPreviewNotFoundException": newErrorLifecyclePolicyPreviewNotFoundException,
"LimitExceededException": newErrorLimitExceededException,
+ "ReferencedImagesNotFoundException": newErrorReferencedImagesNotFoundException,
"RepositoryAlreadyExistsException": newErrorRepositoryAlreadyExistsException,
"RepositoryNotEmptyException": newErrorRepositoryNotEmptyException,
"RepositoryNotFoundException": newErrorRepositoryNotFoundException,
@@ -196,5 +209,6 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ScanNotFoundException": newErrorScanNotFoundException,
"ServerException": newErrorServerException,
"TooManyTagsException": newErrorTooManyTagsException,
+ "UnsupportedImageTypeException": newErrorUnsupportedImageTypeException,
"UploadNotFoundException": newErrorUploadNotFoundException,
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go
index 912efcd8dc7..533e5460c24 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go
@@ -256,7 +256,7 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ
// Runs and maintains a desired number of tasks from a specified task definition.
// If the number of tasks running in a service drops below the desiredCount,
// Amazon ECS runs another copy of the task in the specified cluster. To update
-// an existing service, see UpdateService.
+// an existing service, see the UpdateService action.
//
// In addition to maintaining the desired count of tasks in your service, you
// can optionally run your service behind one or more load balancers. The load
@@ -280,7 +280,9 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ
//
// * DAEMON - The daemon scheduling strategy deploys exactly one task on
// each active container instance that meets all of the task placement constraints
-// that you specify in your cluster. When using this strategy, you don't
+// that you specify in your cluster. The service scheduler also evaluates
+// the task placement constraints for running tasks and will stop tasks that
+// do not meet the placement constraints. When using this strategy, you don't
// need to specify a desired number of tasks, a task placement strategy,
// or use Service Auto Scaling policies. For more information, see Service
// Scheduler Concepts (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html)
@@ -5132,24 +5134,32 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ
// UpdateService API operation for Amazon EC2 Container Service.
//
+//
+// Updating the task placement strategies and constraints on an Amazon ECS service
+// remains in preview and is a Beta Service as defined by and subject to the
+// Beta Service Participation Service Terms located at https://aws.amazon.com/service-terms
+// (https://aws.amazon.com/service-terms) ("Beta Terms"). These Beta Terms apply
+// to your participation in this preview.
+//
// Modifies the parameters of a service.
//
// For services using the rolling update (ECS) deployment controller, the desired
-// count, deployment configuration, network configuration, or task definition
-// used can be updated.
+// count, deployment configuration, network configuration, task placement constraints
+// and strategies, or task definition used can be updated.
//
// For services using the blue/green (CODE_DEPLOY) deployment controller, only
-// the desired count, deployment configuration, and health check grace period
-// can be updated using this API. If the network configuration, platform version,
-// or task definition need to be updated, a new AWS CodeDeploy deployment should
-// be created. For more information, see CreateDeployment (https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html)
+// the desired count, deployment configuration, task placement constraints and
+// strategies, and health check grace period can be updated using this API.
+// If the network configuration, platform version, or task definition need to
+// be updated, a new AWS CodeDeploy deployment should be created. For more information,
+// see CreateDeployment (https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html)
// in the AWS CodeDeploy API Reference.
//
// For services using an external deployment controller, you can update only
-// the desired count and health check grace period using this API. If the launch
-// type, load balancer, network configuration, platform version, or task definition
-// need to be updated, you should create a new task set. For more information,
-// see CreateTaskSet.
+// the desired count, task placement constraints and strategies, and health
+// check grace period using this API. If the launch type, load balancer, network
+// configuration, platform version, or task definition need to be updated, you
+// should create a new task set. For more information, see CreateTaskSet.
//
// You can add to or subtract from the number of instantiations of a task definition
// in a service by specifying the cluster that the service is running in and
@@ -5516,8 +5526,8 @@ func (c *ECS) UpdateTaskSetWithContext(ctx aws.Context, input *UpdateTaskSetInpu
// You do not have authorization to perform the requested action.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5534,17 +5544,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5552,22 +5562,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing a container instance or task attachment.
@@ -5756,8 +5766,8 @@ func (s *Attribute) SetValue(v string) *Attribute {
// of a resource with ListAttributes. You can remove existing attributes on
// a resource with DeleteAttributes.
type AttributeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5774,17 +5784,17 @@ func (s AttributeLimitExceededException) GoString() string {
func newErrorAttributeLimitExceededException(v protocol.ResponseMetadata) error {
return &AttributeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AttributeLimitExceededException) Code() string {
+func (s *AttributeLimitExceededException) Code() string {
return "AttributeLimitExceededException"
}
// Message returns the exception's message.
-func (s AttributeLimitExceededException) Message() string {
+func (s *AttributeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5792,22 +5802,22 @@ func (s AttributeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AttributeLimitExceededException) OrigErr() error {
+func (s *AttributeLimitExceededException) OrigErr() error {
return nil
}
-func (s AttributeLimitExceededException) Error() string {
+func (s *AttributeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AttributeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AttributeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AttributeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AttributeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The details of the Auto Scaling group for the capacity provider.
@@ -5955,8 +5965,8 @@ func (s *AwsVpcConfiguration) SetSubnets(v []*string) *AwsVpcConfiguration {
// Your AWS account has been blocked. For more information, contact AWS Support
// (http://aws.amazon.com/contact-us/).
type BlockedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5973,17 +5983,17 @@ func (s BlockedException) GoString() string {
func newErrorBlockedException(v protocol.ResponseMetadata) error {
return &BlockedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BlockedException) Code() string {
+func (s *BlockedException) Code() string {
return "BlockedException"
}
// Message returns the exception's message.
-func (s BlockedException) Message() string {
+func (s *BlockedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5991,22 +6001,22 @@ func (s BlockedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BlockedException) OrigErr() error {
+func (s *BlockedException) OrigErr() error {
return nil
}
-func (s BlockedException) Error() string {
+func (s *BlockedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BlockedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BlockedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BlockedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BlockedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The details of a capacity provider.
@@ -6104,7 +6114,7 @@ type CapacityProviderStrategyItem struct {
// can have a base defined.
Base *int64 `locationName:"base" type:"integer"`
- // The short name or full Amazon Resource Name (ARN) of the capacity provider.
+ // The short name of the capacity provider.
//
// CapacityProvider is a required field
CapacityProvider *string `locationName:"capacityProvider" type:"string" required:"true"`
@@ -6166,8 +6176,8 @@ func (s *CapacityProviderStrategyItem) SetWeight(v int64) *CapacityProviderStrat
// or resource on behalf of a user that doesn't have permissions to use the
// action or resource, or specifying an identifier that is not valid.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6184,17 +6194,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "ClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6202,22 +6212,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A regional grouping of one or more container instances on which you can run
@@ -6462,8 +6472,8 @@ func (s *Cluster) SetTags(v []*Tag) *Cluster {
// deregister the container instances before you can delete the cluster. For
// more information, see DeregisterContainerInstance.
type ClusterContainsContainerInstancesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6480,17 +6490,17 @@ func (s ClusterContainsContainerInstancesException) GoString() string {
func newErrorClusterContainsContainerInstancesException(v protocol.ResponseMetadata) error {
return &ClusterContainsContainerInstancesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterContainsContainerInstancesException) Code() string {
+func (s *ClusterContainsContainerInstancesException) Code() string {
return "ClusterContainsContainerInstancesException"
}
// Message returns the exception's message.
-func (s ClusterContainsContainerInstancesException) Message() string {
+func (s *ClusterContainsContainerInstancesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6498,30 +6508,30 @@ func (s ClusterContainsContainerInstancesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterContainsContainerInstancesException) OrigErr() error {
+func (s *ClusterContainsContainerInstancesException) OrigErr() error {
return nil
}
-func (s ClusterContainsContainerInstancesException) Error() string {
+func (s *ClusterContainsContainerInstancesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterContainsContainerInstancesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterContainsContainerInstancesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterContainsContainerInstancesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterContainsContainerInstancesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot delete a cluster that contains services. First, update the service
// to reduce its desired task count to 0 and then delete the service. For more
// information, see UpdateService and DeleteService.
type ClusterContainsServicesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6538,17 +6548,17 @@ func (s ClusterContainsServicesException) GoString() string {
func newErrorClusterContainsServicesException(v protocol.ResponseMetadata) error {
return &ClusterContainsServicesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterContainsServicesException) Code() string {
+func (s *ClusterContainsServicesException) Code() string {
return "ClusterContainsServicesException"
}
// Message returns the exception's message.
-func (s ClusterContainsServicesException) Message() string {
+func (s *ClusterContainsServicesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6556,28 +6566,28 @@ func (s ClusterContainsServicesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterContainsServicesException) OrigErr() error {
+func (s *ClusterContainsServicesException) OrigErr() error {
return nil
}
-func (s ClusterContainsServicesException) Error() string {
+func (s *ClusterContainsServicesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterContainsServicesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterContainsServicesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterContainsServicesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterContainsServicesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot delete a cluster that has active tasks.
type ClusterContainsTasksException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6594,17 +6604,17 @@ func (s ClusterContainsTasksException) GoString() string {
func newErrorClusterContainsTasksException(v protocol.ResponseMetadata) error {
return &ClusterContainsTasksException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterContainsTasksException) Code() string {
+func (s *ClusterContainsTasksException) Code() string {
return "ClusterContainsTasksException"
}
// Message returns the exception's message.
-func (s ClusterContainsTasksException) Message() string {
+func (s *ClusterContainsTasksException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6612,29 +6622,29 @@ func (s ClusterContainsTasksException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterContainsTasksException) OrigErr() error {
+func (s *ClusterContainsTasksException) OrigErr() error {
return nil
}
-func (s ClusterContainsTasksException) Error() string {
+func (s *ClusterContainsTasksException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterContainsTasksException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterContainsTasksException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterContainsTasksException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterContainsTasksException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified cluster could not be found. You can view your available clusters
// with ListClusters. Amazon ECS clusters are Region-specific.
type ClusterNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6651,17 +6661,17 @@ func (s ClusterNotFoundException) GoString() string {
func newErrorClusterNotFoundException(v protocol.ResponseMetadata) error {
return &ClusterNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClusterNotFoundException) Code() string {
+func (s *ClusterNotFoundException) Code() string {
return "ClusterNotFoundException"
}
// Message returns the exception's message.
-func (s ClusterNotFoundException) Message() string {
+func (s *ClusterNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6669,22 +6679,22 @@ func (s ClusterNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClusterNotFoundException) OrigErr() error {
+func (s *ClusterNotFoundException) OrigErr() error {
return nil
}
-func (s ClusterNotFoundException) Error() string {
+func (s *ClusterNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClusterNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClusterNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClusterNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClusterNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The settings to use when creating a cluster. This parameter is used to enable
@@ -7080,10 +7090,11 @@ type ContainerDefinition struct {
// in the Amazon Elastic Container Service Developer Guide.
FirelensConfiguration *FirelensConfiguration `locationName:"firelensConfiguration" type:"structure"`
- // The health check command and associated configuration parameters for the
- // container. This parameter maps to HealthCheck in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate)
- // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/)
- // and the HEALTHCHECK parameter of docker run (https://docs.docker.com/engine/reference/run/).
+ // The container health check command and associated configuration parameters
+ // for the container. This parameter maps to HealthCheck in the Create a container
+ // (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section
+ // of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and
+ // the HEALTHCHECK parameter of docker run (https://docs.docker.com/engine/reference/run/).
HealthCheck *HealthCheck `locationName:"healthCheck" type:"structure"`
// The hostname to use for your container. This parameter maps to Hostname in
@@ -7327,10 +7338,19 @@ type ContainerDefinition struct {
// give up and not start. This results in the task transitioning to a STOPPED
// state.
//
- // For tasks using the EC2 launch type, the container instances require at least
- // version 1.26.0 of the container agent to enable a container start timeout
- // value. However, we recommend using the latest container agent version. For
- // information about checking your agent version and updating to the latest
+ // For tasks using the Fargate launch type, this parameter requires that the
+ // task or service uses platform version 1.3.0 or later. If this parameter is
+ // not specified, the default value of 3 minutes is used.
+ //
+ // For tasks using the EC2 launch type, if the startTimeout parameter is not
+ // specified, the value set for the Amazon ECS container agent configuration
+ // variable ECS_CONTAINER_START_TIMEOUT is used by default. If neither the startTimeout
+ // parameter or the ECS_CONTAINER_START_TIMEOUT agent configuration variable
+ // are set, then the default values of 3 minutes for Linux containers and 8
+ // minutes on Windows containers are used. Your container instances require
+ // at least version 1.26.0 of the container agent to enable a container start
+ // timeout value. However, we recommend using the latest container agent version.
+ // For information about checking your agent version and updating to the latest
// version, see Updating the Amazon ECS Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html)
// in the Amazon Elastic Container Service Developer Guide. If you are using
// an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1
@@ -7339,24 +7359,25 @@ type ContainerDefinition struct {
// agent and ecs-init. For more information, see Amazon ECS-optimized Linux
// AMI (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html)
// in the Amazon Elastic Container Service Developer Guide.
- //
- // For tasks using the Fargate launch type, the task or service requires platform
- // version 1.3.0 or later.
StartTimeout *int64 `locationName:"startTimeout" type:"integer"`
// Time duration (in seconds) to wait before the container is forcefully killed
// if it doesn't exit normally on its own.
//
- // For tasks using the Fargate launch type, the max stopTimeout value is 2 minutes
- // and the task or service requires platform version 1.3.0 or later.
- //
- // For tasks using the EC2 launch type, the stop timeout value for the container
- // takes precedence over the ECS_CONTAINER_STOP_TIMEOUT container agent configuration
- // parameter, if used. Container instances require at least version 1.26.0 of
- // the container agent to enable a container stop timeout value. However, we
- // recommend using the latest container agent version. For information about
- // checking your agent version and updating to the latest version, see Updating
- // the Amazon ECS Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html)
+ // For tasks using the Fargate launch type, the task or service requires platform
+ // version 1.3.0 or later. The max stop timeout value is 120 seconds and if
+ // the parameter is not specified, the default value of 30 seconds is used.
+ //
+ // For tasks using the EC2 launch type, if the stopTimeout parameter is not
+ // specified, the value set for the Amazon ECS container agent configuration
+ // variable ECS_CONTAINER_STOP_TIMEOUT is used by default. If neither the stopTimeout
+ // parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable
+ // are set, then the default values of 30 seconds for Linux containers and 30
+ // seconds on Windows containers are used. Your container instances require
+ // at least version 1.26.0 of the container agent to enable a container stop
+ // timeout value. However, we recommend using the latest container agent version.
+ // For information about checking your agent version and updating to the latest
+ // version, see Updating the Amazon ECS Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html)
// in the Amazon Elastic Container Service Developer Guide. If you are using
// an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1
// of the ecs-init package. If your container instances are launched from version
@@ -8399,8 +8420,7 @@ func (s *CreateCapacityProviderOutput) SetCapacityProvider(v *CapacityProvider)
type CreateClusterInput struct {
_ struct{} `type:"structure"`
- // The short name or full Amazon Resource Name (ARN) of one or more capacity
- // providers to associate with the cluster.
+ // The short name of one or more capacity providers to associate with the cluster.
//
// If specifying a capacity provider that uses an Auto Scaling group, the capacity
// provider must already be created and not already associated with another
@@ -8631,13 +8651,16 @@ type CreateServiceInput struct {
// The period of time, in seconds, that the Amazon ECS service scheduler should
// ignore unhealthy Elastic Load Balancing target health checks after a task
- // has first started. This is only valid if your service is configured to use
- // a load balancer. If your service's tasks take a while to start and respond
- // to Elastic Load Balancing health checks, you can specify a health check grace
- // period of up to 2,147,483,647 seconds. During that time, the ECS service
- // scheduler ignores health check status. This grace period can prevent the
- // ECS service scheduler from marking tasks as unhealthy and stopping them before
- // they have time to come up.
+ // has first started. This is only used when your service is configured to use
+ // a load balancer. If your service has a load balancer defined and you don't
+ // specify a health check grace period value, the default value of 0 is used.
+ //
+ // If your service's tasks take a while to start and respond to Elastic Load
+ // Balancing health checks, you can specify a health check grace period of up
+ // to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler
+ // ignores health check status. This grace period can prevent the service scheduler
+ // from marking tasks as unhealthy and stopping them before they have time to
+ // come up.
HealthCheckGracePeriodSeconds *int64 `locationName:"healthCheckGracePeriodSeconds" type:"integer"`
// The launch type on which to run your service. For more information, see Amazon
@@ -8764,11 +8787,13 @@ type CreateServiceInput struct {
//
// * DAEMON-The daemon scheduling strategy deploys exactly one task on each
// active container instance that meets all of the task placement constraints
- // that you specify in your cluster. When you're using this strategy, you
- // don't need to specify a desired number of tasks, a task placement strategy,
- // or use Service Auto Scaling policies. Tasks using the Fargate launch type
- // or the CODE_DEPLOY or EXTERNAL deployment controller types don't support
- // the DAEMON scheduling strategy.
+ // that you specify in your cluster. The service scheduler also evaluates
+ // the task placement constraints for running tasks and will stop tasks that
+ // do not meet the placement constraints. When you're using this strategy,
+ // you don't need to specify a desired number of tasks, a task placement
+ // strategy, or use Service Auto Scaling policies. Tasks using the Fargate
+ // launch type or the CODE_DEPLOY or EXTERNAL deployment controller types
+ // don't support the DAEMON scheduling strategy.
SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"`
// The name of your service. Up to 255 letters (uppercase and lowercase), numbers,
@@ -11061,26 +11086,84 @@ func (s *DockerVolumeConfiguration) SetScope(v string) *DockerVolumeConfiguratio
return s
}
+// The authorization configuration details for the Amazon EFS file system.
+type EFSAuthorizationConfig struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon EFS access point ID to use. If an access point is specified, the
+ // root directory value specified in the EFSVolumeConfiguration will be relative
+ // to the directory set for the access point. If an access point is used, transit
+ // encryption must be enabled in the EFSVolumeConfiguration. For more information,
+ // see Working with Amazon EFS Access Points (https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html)
+ // in the Amazon Elastic File System User Guide.
+ AccessPointId *string `locationName:"accessPointId" type:"string"`
+
+ // Whether or not to use the Amazon ECS task IAM role defined in a task definition
+ // when mounting the Amazon EFS file system. If enabled, transit encryption
+ // must be enabled in the EFSVolumeConfiguration. If this parameter is omitted,
+ // the default value of DISABLED is used. For more information, see Using Amazon
+ // EFS Access Points (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html#efs-volume-accesspoints)
+ // in the Amazon Elastic Container Service Developer Guide.
+ Iam *string `locationName:"iam" type:"string" enum:"EFSAuthorizationConfigIAM"`
+}
+
+// String returns the string representation
+func (s EFSAuthorizationConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EFSAuthorizationConfig) GoString() string {
+ return s.String()
+}
+
+// SetAccessPointId sets the AccessPointId field's value.
+func (s *EFSAuthorizationConfig) SetAccessPointId(v string) *EFSAuthorizationConfig {
+ s.AccessPointId = &v
+ return s
+}
+
+// SetIam sets the Iam field's value.
+func (s *EFSAuthorizationConfig) SetIam(v string) *EFSAuthorizationConfig {
+ s.Iam = &v
+ return s
+}
+
// This parameter is specified when you are using an Amazon Elastic File System
-// (Amazon EFS) file storage. Amazon EFS file systems are only supported when
-// you are using the EC2 launch type.
-//
-// EFSVolumeConfiguration remains in preview and is a Beta Service as defined
-// by and subject to the Beta Service Participation Service Terms located at
-// https://aws.amazon.com/service-terms (https://aws.amazon.com/service-terms)
-// ("Beta Terms"). These Beta Terms apply to your participation in this preview
-// of EFSVolumeConfiguration.
+// file system for task storage. For more information, see Amazon EFS Volumes
+// (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html)
+// in the Amazon Elastic Container Service Developer Guide.
type EFSVolumeConfiguration struct {
_ struct{} `type:"structure"`
+ // The authorization configuration details for the Amazon EFS file system.
+ AuthorizationConfig *EFSAuthorizationConfig `locationName:"authorizationConfig" type:"structure"`
+
// The Amazon EFS file system ID to use.
//
// FileSystemId is a required field
FileSystemId *string `locationName:"fileSystemId" type:"string" required:"true"`
// The directory within the Amazon EFS file system to mount as the root directory
- // inside the host.
+ // inside the host. If this parameter is omitted, the root of the Amazon EFS
+ // volume will be used. Specifying / will have the same effect as omitting this
+ // parameter.
RootDirectory *string `locationName:"rootDirectory" type:"string"`
+
+ // Whether or not to enable encryption for Amazon EFS data in transit between
+ // the Amazon ECS host and the Amazon EFS server. Transit encryption must be
+ // enabled if Amazon EFS IAM authorization is used. If this parameter is omitted,
+ // the default value of DISABLED is used. For more information, see Encrypting
+ // Data in Transit (https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html)
+ // in the Amazon Elastic File System User Guide.
+ TransitEncryption *string `locationName:"transitEncryption" type:"string" enum:"EFSTransitEncryption"`
+
+ // The port to use when sending encrypted data between the Amazon ECS host and
+ // the Amazon EFS server. If you do not specify a transit encryption port, it
+ // will use the port selection strategy that the Amazon EFS mount helper uses.
+ // For more information, see EFS Mount Helper (https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html)
+ // in the Amazon Elastic File System User Guide.
+ TransitEncryptionPort *int64 `locationName:"transitEncryptionPort" type:"integer"`
}
// String returns the string representation
@@ -11106,6 +11189,12 @@ func (s *EFSVolumeConfiguration) Validate() error {
return nil
}
+// SetAuthorizationConfig sets the AuthorizationConfig field's value.
+func (s *EFSVolumeConfiguration) SetAuthorizationConfig(v *EFSAuthorizationConfig) *EFSVolumeConfiguration {
+ s.AuthorizationConfig = v
+ return s
+}
+
// SetFileSystemId sets the FileSystemId field's value.
func (s *EFSVolumeConfiguration) SetFileSystemId(v string) *EFSVolumeConfiguration {
s.FileSystemId = &v
@@ -11118,6 +11207,18 @@ func (s *EFSVolumeConfiguration) SetRootDirectory(v string) *EFSVolumeConfigurat
return s
}
+// SetTransitEncryption sets the TransitEncryption field's value.
+func (s *EFSVolumeConfiguration) SetTransitEncryption(v string) *EFSVolumeConfiguration {
+ s.TransitEncryption = &v
+ return s
+}
+
+// SetTransitEncryptionPort sets the TransitEncryptionPort field's value.
+func (s *EFSVolumeConfiguration) SetTransitEncryptionPort(v int64) *EFSVolumeConfiguration {
+ s.TransitEncryptionPort = &v
+ return s
+}
+
// A failed resource.
type Failure struct {
_ struct{} `type:"structure"`
@@ -11222,6 +11323,36 @@ func (s *FirelensConfiguration) SetType(v string) *FirelensConfiguration {
// that exist in the container image (such as those specified in a parent image
// or from the image's Dockerfile).
//
+// You can view the health status of both individual containers and a task with
+// the DescribeTasks API operation or when viewing the task details in the console.
+//
+// The following describes the possible healthStatus values for a container:
+//
+// * HEALTHY-The container health check has passed successfully.
+//
+// * UNHEALTHY-The container health check has failed.
+//
+// * UNKNOWN-The container health check is being evaluated or there is no
+// container health check defined.
+//
+// The following describes the possible healthStatus values for a task. The
+// container health check status of nonessential containers do not have an effect
+// on the health status of a task.
+//
+// * HEALTHY-All essential containers within the task have passed their health
+// checks.
+//
+// * UNHEALTHY-One or more essential containers have failed their health
+// check.
+//
+// * UNKNOWN-The essential containers within the task are still having their
+// health checks evaluated or there are no container health checks defined.
+//
+// If a task is run manually, and not as part of a service, the task will continue
+// its lifecycle regardless of its health status. For tasks that are part of
+// a service, if the task reports as unhealthy then the task will be stopped
+// and the service scheduler will replace it.
+//
// The following are notes about container health check support:
//
// * Container health checks require version 1.17.0 or greater of the Amazon
@@ -11514,8 +11645,8 @@ func (s *InferenceAcceleratorOverride) SetDeviceType(v string) *InferenceAcceler
// The specified parameter is invalid. Review the available parameters for the
// API request.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11532,17 +11663,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11550,22 +11681,22 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Linux capabilities for the container that are added to or dropped from
@@ -11673,8 +11804,8 @@ func (s *KeyValuePair) SetValue(v string) *KeyValuePair {
// The limit for the resource has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11691,17 +11822,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11709,22 +11840,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Linux-specific options that are applied to the container, such as Linux KernelCapabilities.
@@ -12884,8 +13015,10 @@ func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput {
return s
}
-// Details on the load balancer or load balancers to use with a service or task
-// set.
+// The load balancer configuration to use with a service or task set.
+//
+// For specific notes and restrictions regarding the use of load balancers with
+// services and task sets, see the CreateService and CreateTaskSet actions.
type LoadBalancer struct {
_ struct{} `type:"structure"`
@@ -12905,15 +13038,15 @@ type LoadBalancer struct {
//
// A load balancer name is only specified when using a Classic Load Balancer.
// If you are using an Application Load Balancer or a Network Load Balancer
- // this should be omitted.
+ // the load balancer name parameter should be omitted.
LoadBalancerName *string `locationName:"loadBalancerName" type:"string"`
// The full Amazon Resource Name (ARN) of the Elastic Load Balancing target
// group or groups associated with a service or task set.
//
// A target group ARN is only specified when using an Application Load Balancer
- // or Network Load Balancer. If you are using a Classic Load Balancer this should
- // be omitted.
+ // or Network Load Balancer. If you are using a Classic Load Balancer the target
+ // group ARN should be omitted.
//
// For services using the ECS deployment controller, you can specify one or
// multiple target groups. For more information, see Registering Multiple Target
@@ -13191,8 +13324,8 @@ func (s *ManagedScaling) SetTargetCapacity(v int64) *ManagedScaling {
// with an update. This could be because the agent running on the container
// instance is an older or custom version that does not use our version information.
type MissingVersionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13209,17 +13342,17 @@ func (s MissingVersionException) GoString() string {
func newErrorMissingVersionException(v protocol.ResponseMetadata) error {
return &MissingVersionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingVersionException) Code() string {
+func (s *MissingVersionException) Code() string {
return "MissingVersionException"
}
// Message returns the exception's message.
-func (s MissingVersionException) Message() string {
+func (s *MissingVersionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13227,22 +13360,22 @@ func (s MissingVersionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingVersionException) OrigErr() error {
+func (s *MissingVersionException) OrigErr() error {
return nil
}
-func (s MissingVersionException) Error() string {
+func (s *MissingVersionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingVersionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingVersionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingVersionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingVersionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details on a volume mount point that is used in a container definition.
@@ -13432,8 +13565,8 @@ func (s *NetworkInterface) SetPrivateIpv4Address(v string) *NetworkInterface {
// be because the agent is already running the latest version, or it is so old
// that there is no update path to the current version.
type NoUpdateAvailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13450,17 +13583,17 @@ func (s NoUpdateAvailableException) GoString() string {
func newErrorNoUpdateAvailableException(v protocol.ResponseMetadata) error {
return &NoUpdateAvailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoUpdateAvailableException) Code() string {
+func (s *NoUpdateAvailableException) Code() string {
return "NoUpdateAvailableException"
}
// Message returns the exception's message.
-func (s NoUpdateAvailableException) Message() string {
+func (s *NoUpdateAvailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13468,22 +13601,22 @@ func (s NoUpdateAvailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoUpdateAvailableException) OrigErr() error {
+func (s *NoUpdateAvailableException) OrigErr() error {
return nil
}
-func (s NoUpdateAvailableException) Error() string {
+func (s *NoUpdateAvailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoUpdateAvailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoUpdateAvailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoUpdateAvailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoUpdateAvailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing a constraint on task placement. For more information,
@@ -13635,8 +13768,8 @@ func (s *PlatformDevice) SetType(v string) *PlatformDevice {
// The specified platform version does not satisfy the task definition's required
// capabilities.
type PlatformTaskDefinitionIncompatibilityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13653,17 +13786,17 @@ func (s PlatformTaskDefinitionIncompatibilityException) GoString() string {
func newErrorPlatformTaskDefinitionIncompatibilityException(v protocol.ResponseMetadata) error {
return &PlatformTaskDefinitionIncompatibilityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PlatformTaskDefinitionIncompatibilityException) Code() string {
+func (s *PlatformTaskDefinitionIncompatibilityException) Code() string {
return "PlatformTaskDefinitionIncompatibilityException"
}
// Message returns the exception's message.
-func (s PlatformTaskDefinitionIncompatibilityException) Message() string {
+func (s *PlatformTaskDefinitionIncompatibilityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13671,28 +13804,28 @@ func (s PlatformTaskDefinitionIncompatibilityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PlatformTaskDefinitionIncompatibilityException) OrigErr() error {
+func (s *PlatformTaskDefinitionIncompatibilityException) OrigErr() error {
return nil
}
-func (s PlatformTaskDefinitionIncompatibilityException) Error() string {
+func (s *PlatformTaskDefinitionIncompatibilityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PlatformTaskDefinitionIncompatibilityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PlatformTaskDefinitionIncompatibilityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PlatformTaskDefinitionIncompatibilityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PlatformTaskDefinitionIncompatibilityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified platform version does not exist.
type PlatformUnknownException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13709,17 +13842,17 @@ func (s PlatformUnknownException) GoString() string {
func newErrorPlatformUnknownException(v protocol.ResponseMetadata) error {
return &PlatformUnknownException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PlatformUnknownException) Code() string {
+func (s *PlatformUnknownException) Code() string {
return "PlatformUnknownException"
}
// Message returns the exception's message.
-func (s PlatformUnknownException) Message() string {
+func (s *PlatformUnknownException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13727,22 +13860,22 @@ func (s PlatformUnknownException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PlatformUnknownException) OrigErr() error {
+func (s *PlatformUnknownException) OrigErr() error {
return nil
}
-func (s PlatformUnknownException) Error() string {
+func (s *PlatformUnknownException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PlatformUnknownException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PlatformUnknownException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PlatformUnknownException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PlatformUnknownException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Port mappings allow containers to access ports on the host container instance
@@ -15065,8 +15198,8 @@ func (s *Resource) SetType(v string) *Resource {
// The specified resource is in-use and cannot be removed.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15083,17 +15216,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15101,28 +15234,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource could not be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15139,17 +15272,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15157,22 +15290,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The type and amount of a resource to assign to a container. The supported
@@ -15676,8 +15809,8 @@ func (s *Secret) SetValueFrom(v string) *Secret {
// These errors are usually caused by a server issue.
type ServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15694,17 +15827,17 @@ func (s ServerException) GoString() string {
func newErrorServerException(v protocol.ResponseMetadata) error {
return &ServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerException) Code() string {
+func (s *ServerException) Code() string {
return "ServerException"
}
// Message returns the exception's message.
-func (s ServerException) Message() string {
+func (s *ServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15712,22 +15845,22 @@ func (s ServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerException) OrigErr() error {
+func (s *ServerException) OrigErr() error {
return nil
}
-func (s ServerException) Error() string {
+func (s *ServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details on a service within a cluster
@@ -15831,9 +15964,11 @@ type Service struct {
// and constraints to customize task placement decisions.
//
// * DAEMON-The daemon scheduling strategy deploys exactly one task on each
- // container instance in your cluster. When you are using this strategy,
- // do not specify a desired number of tasks or any task placement strategies.
- // Fargate tasks do not support the DAEMON scheduling strategy.
+ // active container instance that meets all of the task placement constraints
+ // that you specify in your cluster. The service scheduler also evaluates
+ // the task placement constraints for running tasks and will stop tasks that
+ // do not meet the placement constraints. Fargate tasks do not support the
+ // DAEMON scheduling strategy.
SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"`
// The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace,
@@ -16123,8 +16258,8 @@ func (s *ServiceEvent) SetMessage(v string) *ServiceEvent {
// The specified service is not active. You can't update a service that is inactive.
// If you have previously deleted a service, you can re-create it with CreateService.
type ServiceNotActiveException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16141,17 +16276,17 @@ func (s ServiceNotActiveException) GoString() string {
func newErrorServiceNotActiveException(v protocol.ResponseMetadata) error {
return &ServiceNotActiveException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceNotActiveException) Code() string {
+func (s *ServiceNotActiveException) Code() string {
return "ServiceNotActiveException"
}
// Message returns the exception's message.
-func (s ServiceNotActiveException) Message() string {
+func (s *ServiceNotActiveException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16159,29 +16294,29 @@ func (s ServiceNotActiveException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceNotActiveException) OrigErr() error {
+func (s *ServiceNotActiveException) OrigErr() error {
return nil
}
-func (s ServiceNotActiveException) Error() string {
+func (s *ServiceNotActiveException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceNotActiveException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceNotActiveException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceNotActiveException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceNotActiveException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified service could not be found. You can view your available services
// with ListServices. Amazon ECS services are cluster-specific and Region-specific.
type ServiceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16198,17 +16333,17 @@ func (s ServiceNotFoundException) GoString() string {
func newErrorServiceNotFoundException(v protocol.ResponseMetadata) error {
return &ServiceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceNotFoundException) Code() string {
+func (s *ServiceNotFoundException) Code() string {
return "ServiceNotFoundException"
}
// Message returns the exception's message.
-func (s ServiceNotFoundException) Message() string {
+func (s *ServiceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16216,22 +16351,22 @@ func (s ServiceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceNotFoundException) OrigErr() error {
+func (s *ServiceNotFoundException) OrigErr() error {
return nil
}
-func (s ServiceNotFoundException) Error() string {
+func (s *ServiceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details of the service registry.
@@ -17223,8 +17358,8 @@ func (s TagResourceOutput) GoString() string {
// instances with ListContainerInstances. Amazon ECS container instances are
// cluster-specific and Region-specific.
type TargetNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17241,17 +17376,17 @@ func (s TargetNotFoundException) GoString() string {
func newErrorTargetNotFoundException(v protocol.ResponseMetadata) error {
return &TargetNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetNotFoundException) Code() string {
+func (s *TargetNotFoundException) Code() string {
return "TargetNotFoundException"
}
// Message returns the exception's message.
-func (s TargetNotFoundException) Message() string {
+func (s *TargetNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17259,22 +17394,22 @@ func (s TargetNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetNotFoundException) OrigErr() error {
+func (s *TargetNotFoundException) OrigErr() error {
return nil
}
-func (s TargetNotFoundException) Error() string {
+func (s *TargetNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details on a task in a cluster.
@@ -17906,7 +18041,7 @@ type TaskDefinition struct {
// The short name or full Amazon Resource Name (ARN) of the AWS Identity and
// Access Management (IAM) role that grants containers in the task permission
// to call AWS APIs on your behalf. For more information, see Amazon ECS Task
- // Role (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_IAM_role.html)
+ // Role (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html)
// in the Amazon Elastic Container Service Developer Guide.
//
// IAM roles for tasks on Windows require that the -EnableTaskIAMRole option
@@ -18490,8 +18625,8 @@ func (s *TaskSet) SetUpdatedAt(v time.Time) *TaskSet {
// sets with DescribeTaskSets. Task sets are specific to each cluster, service
// and Region.
type TaskSetNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18508,17 +18643,17 @@ func (s TaskSetNotFoundException) GoString() string {
func newErrorTaskSetNotFoundException(v protocol.ResponseMetadata) error {
return &TaskSetNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaskSetNotFoundException) Code() string {
+func (s *TaskSetNotFoundException) Code() string {
return "TaskSetNotFoundException"
}
// Message returns the exception's message.
-func (s TaskSetNotFoundException) Message() string {
+func (s *TaskSetNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18526,22 +18661,22 @@ func (s TaskSetNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaskSetNotFoundException) OrigErr() error {
+func (s *TaskSetNotFoundException) OrigErr() error {
return nil
}
-func (s TaskSetNotFoundException) Error() string {
+func (s *TaskSetNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaskSetNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaskSetNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaskSetNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaskSetNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The container path, mount options, and size of the tmpfs mount.
@@ -18682,8 +18817,8 @@ func (s *Ulimit) SetSoftLimit(v int64) *Ulimit {
// The specified task is not supported in this Region.
type UnsupportedFeatureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18700,17 +18835,17 @@ func (s UnsupportedFeatureException) GoString() string {
func newErrorUnsupportedFeatureException(v protocol.ResponseMetadata) error {
return &UnsupportedFeatureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedFeatureException) Code() string {
+func (s *UnsupportedFeatureException) Code() string {
return "UnsupportedFeatureException"
}
// Message returns the exception's message.
-func (s UnsupportedFeatureException) Message() string {
+func (s *UnsupportedFeatureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18718,22 +18853,22 @@ func (s UnsupportedFeatureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedFeatureException) OrigErr() error {
+func (s *UnsupportedFeatureException) OrigErr() error {
return nil
}
-func (s UnsupportedFeatureException) Error() string {
+func (s *UnsupportedFeatureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedFeatureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedFeatureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedFeatureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedFeatureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -19064,8 +19199,8 @@ func (s *UpdateContainerInstancesStateOutput) SetFailures(v []*Failure) *UpdateC
// process can get stuck in that state. However, when the agent reconnects,
// it resumes where it stopped previously.
type UpdateInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19082,17 +19217,17 @@ func (s UpdateInProgressException) GoString() string {
func newErrorUpdateInProgressException(v protocol.ResponseMetadata) error {
return &UpdateInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UpdateInProgressException) Code() string {
+func (s *UpdateInProgressException) Code() string {
return "UpdateInProgressException"
}
// Message returns the exception's message.
-func (s UpdateInProgressException) Message() string {
+func (s *UpdateInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19100,22 +19235,22 @@ func (s UpdateInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UpdateInProgressException) OrigErr() error {
+func (s *UpdateInProgressException) OrigErr() error {
return nil
}
-func (s UpdateInProgressException) Error() string {
+func (s *UpdateInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UpdateInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UpdateInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UpdateInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UpdateInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateServiceInput struct {
@@ -19124,9 +19259,28 @@ type UpdateServiceInput struct {
// The capacity provider strategy to update the service to use.
//
// If the service is using the default capacity provider strategy for the cluster,
- // the service can be updated to use one or more capacity providers. However,
- // when a service is using a non-default capacity provider strategy, the service
- // cannot be updated to use the cluster's default capacity provider strategy.
+ // the service can be updated to use one or more capacity providers as opposed
+ // to the default capacity provider strategy. However, when a service is using
+ // a capacity provider strategy that is not the default capacity provider strategy,
+ // the service cannot be updated to use the cluster's default capacity provider
+ // strategy.
+ //
+ // A capacity provider strategy consists of one or more capacity providers along
+ // with the base and weight to assign to them. A capacity provider must be associated
+ // with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders
+ // API is used to associate a capacity provider with a cluster. Only capacity
+ // providers with an ACTIVE or UPDATING status can be used.
+ //
+ // If specifying a capacity provider that uses an Auto Scaling group, the capacity
+ // provider must already be created. New capacity providers can be created with
+ // the CreateCapacityProvider API operation.
+ //
+ // To use a AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT
+ // capacity providers. The AWS Fargate capacity providers are available to all
+ // accounts and only need to be associated with a cluster to be used.
+ //
+ // The PutClusterCapacityProviders API operation is used to update the list
+ // of available capacity providers for a cluster after the cluster is created.
CapacityProviderStrategy []*CapacityProviderStrategyItem `locationName:"capacityProviderStrategy" type:"list"`
// The short name or full Amazon Resource Name (ARN) of the cluster that your
@@ -19163,6 +19317,25 @@ type UpdateServiceInput struct {
// An object representing the network configuration for a task or service.
NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"`
+ // An array of task placement constraint objects to update the service to use.
+ // If no value is specified, the existing placement constraints for the service
+ // will remain unchanged. If this value is specified, it will override any existing
+ // placement constraints defined for the service. To remove all existing placement
+ // constraints, specify an empty array.
+ //
+ // You can specify a maximum of 10 constraints per task (this limit includes
+ // constraints in the task definition and those specified at runtime).
+ PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"`
+
+ // The task placement strategy objects to update the service to use. If no value
+ // is specified, the existing placement strategy for the service will remain
+ // unchanged. If this value is specified, it will override the existing placement
+ // strategy defined for the service. To remove an existing placement strategy,
+ // specify an empty object.
+ //
+ // You can specify a maximum of five strategy rules per service.
+ PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"`
+
// The platform version on which your tasks in the service are running. A platform
// version is only specified for tasks using the Fargate launch type. If a platform
// version is not specified, the LATEST platform version is used by default.
@@ -19263,6 +19436,18 @@ func (s *UpdateServiceInput) SetNetworkConfiguration(v *NetworkConfiguration) *U
return s
}
+// SetPlacementConstraints sets the PlacementConstraints field's value.
+func (s *UpdateServiceInput) SetPlacementConstraints(v []*PlacementConstraint) *UpdateServiceInput {
+ s.PlacementConstraints = v
+ return s
+}
+
+// SetPlacementStrategy sets the PlacementStrategy field's value.
+func (s *UpdateServiceInput) SetPlacementStrategy(v []*PlacementStrategy) *UpdateServiceInput {
+ s.PlacementStrategy = v
+ return s
+}
+
// SetPlatformVersion sets the PlatformVersion field's value.
func (s *UpdateServiceInput) SetPlatformVersion(v string) *UpdateServiceInput {
s.PlatformVersion = &v
@@ -19823,6 +20008,22 @@ const (
DeviceCgroupPermissionMknod = "mknod"
)
+const (
+ // EFSAuthorizationConfigIAMEnabled is a EFSAuthorizationConfigIAM enum value
+ EFSAuthorizationConfigIAMEnabled = "ENABLED"
+
+ // EFSAuthorizationConfigIAMDisabled is a EFSAuthorizationConfigIAM enum value
+ EFSAuthorizationConfigIAMDisabled = "DISABLED"
+)
+
+const (
+ // EFSTransitEncryptionEnabled is a EFSTransitEncryption enum value
+ EFSTransitEncryptionEnabled = "ENABLED"
+
+ // EFSTransitEncryptionDisabled is a EFSTransitEncryption enum value
+ EFSTransitEncryptionDisabled = "DISABLED"
+)
+
const (
// FirelensConfigurationTypeFluentd is a FirelensConfigurationType enum value
FirelensConfigurationTypeFluentd = "fluentd"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go
index e541b5f3a20..29319018d84 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go
@@ -2749,8 +2749,8 @@ func (c *EFS) UpdateFileSystemWithContext(ctx aws.Context, input *UpdateFileSyst
// Returned if the access point you are trying to create already exists, with
// the creation token you provided in the request.
type AccessPointAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// AccessPointId is a required field
AccessPointId *string `type:"string" required:"true"`
@@ -2773,17 +2773,17 @@ func (s AccessPointAlreadyExists) GoString() string {
func newErrorAccessPointAlreadyExists(v protocol.ResponseMetadata) error {
return &AccessPointAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessPointAlreadyExists) Code() string {
+func (s *AccessPointAlreadyExists) Code() string {
return "AccessPointAlreadyExists"
}
// Message returns the exception's message.
-func (s AccessPointAlreadyExists) Message() string {
+func (s *AccessPointAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2791,22 +2791,22 @@ func (s AccessPointAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessPointAlreadyExists) OrigErr() error {
+func (s *AccessPointAlreadyExists) OrigErr() error {
return nil
}
-func (s AccessPointAlreadyExists) Error() string {
+func (s *AccessPointAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessPointAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessPointAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessPointAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessPointAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides a description of an EFS file system access point.
@@ -2920,8 +2920,8 @@ func (s *AccessPointDescription) SetTags(v []*Tag) *AccessPointDescription {
// Returned if the AWS account has already created the maximum number of access
// points allowed per file system.
type AccessPointLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -2941,17 +2941,17 @@ func (s AccessPointLimitExceeded) GoString() string {
func newErrorAccessPointLimitExceeded(v protocol.ResponseMetadata) error {
return &AccessPointLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessPointLimitExceeded) Code() string {
+func (s *AccessPointLimitExceeded) Code() string {
return "AccessPointLimitExceeded"
}
// Message returns the exception's message.
-func (s AccessPointLimitExceeded) Message() string {
+func (s *AccessPointLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2959,29 +2959,29 @@ func (s AccessPointLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessPointLimitExceeded) OrigErr() error {
+func (s *AccessPointLimitExceeded) OrigErr() error {
return nil
}
-func (s AccessPointLimitExceeded) Error() string {
+func (s *AccessPointLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessPointLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessPointLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessPointLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessPointLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the specified AccessPointId value doesn't exist in the requester's
// AWS account.
type AccessPointNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -3001,17 +3001,17 @@ func (s AccessPointNotFound) GoString() string {
func newErrorAccessPointNotFound(v protocol.ResponseMetadata) error {
return &AccessPointNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessPointNotFound) Code() string {
+func (s *AccessPointNotFound) Code() string {
return "AccessPointNotFound"
}
// Message returns the exception's message.
-func (s AccessPointNotFound) Message() string {
+func (s *AccessPointNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3019,29 +3019,29 @@ func (s AccessPointNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessPointNotFound) OrigErr() error {
+func (s *AccessPointNotFound) OrigErr() error {
return nil
}
-func (s AccessPointNotFound) Error() string {
+func (s *AccessPointNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessPointNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessPointNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessPointNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessPointNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the request is malformed or contains an error such as an invalid
// parameter value or a missing required parameter.
type BadRequest struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -3061,17 +3061,17 @@ func (s BadRequest) GoString() string {
func newErrorBadRequest(v protocol.ResponseMetadata) error {
return &BadRequest{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequest) Code() string {
+func (s *BadRequest) Code() string {
return "BadRequest"
}
// Message returns the exception's message.
-func (s BadRequest) Message() string {
+func (s *BadRequest) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3079,22 +3079,22 @@ func (s BadRequest) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequest) OrigErr() error {
+func (s *BadRequest) OrigErr() error {
return nil
}
-func (s BadRequest) Error() string {
+func (s *BadRequest) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequest) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequest) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequest) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequest) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateAccessPointInput struct {
@@ -3980,8 +3980,8 @@ func (s DeleteTagsOutput) GoString() string {
// The service timed out trying to fulfill the request, and the client should
// try the call again.
type DependencyTimeout struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -4001,17 +4001,17 @@ func (s DependencyTimeout) GoString() string {
func newErrorDependencyTimeout(v protocol.ResponseMetadata) error {
return &DependencyTimeout{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DependencyTimeout) Code() string {
+func (s *DependencyTimeout) Code() string {
return "DependencyTimeout"
}
// Message returns the exception's message.
-func (s DependencyTimeout) Message() string {
+func (s *DependencyTimeout) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4019,22 +4019,22 @@ func (s DependencyTimeout) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DependencyTimeout) OrigErr() error {
+func (s *DependencyTimeout) OrigErr() error {
return nil
}
-func (s DependencyTimeout) Error() string {
+func (s *DependencyTimeout) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DependencyTimeout) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DependencyTimeout) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DependencyTimeout) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DependencyTimeout) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DescribeAccessPointsInput struct {
@@ -4702,8 +4702,8 @@ func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput {
// Returned if the file system you are trying to create already exists, with
// the creation token you provided.
type FileSystemAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -4726,17 +4726,17 @@ func (s FileSystemAlreadyExists) GoString() string {
func newErrorFileSystemAlreadyExists(v protocol.ResponseMetadata) error {
return &FileSystemAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileSystemAlreadyExists) Code() string {
+func (s *FileSystemAlreadyExists) Code() string {
return "FileSystemAlreadyExists"
}
// Message returns the exception's message.
-func (s FileSystemAlreadyExists) Message() string {
+func (s *FileSystemAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4744,22 +4744,22 @@ func (s FileSystemAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileSystemAlreadyExists) OrigErr() error {
+func (s *FileSystemAlreadyExists) OrigErr() error {
return nil
}
-func (s FileSystemAlreadyExists) Error() string {
+func (s *FileSystemAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileSystemAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileSystemAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileSystemAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileSystemAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A description of the file system.
@@ -4946,8 +4946,8 @@ func (s *FileSystemDescription) SetThroughputMode(v string) *FileSystemDescripti
// Returned if a file system has mount targets.
type FileSystemInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -4967,17 +4967,17 @@ func (s FileSystemInUse) GoString() string {
func newErrorFileSystemInUse(v protocol.ResponseMetadata) error {
return &FileSystemInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileSystemInUse) Code() string {
+func (s *FileSystemInUse) Code() string {
return "FileSystemInUse"
}
// Message returns the exception's message.
-func (s FileSystemInUse) Message() string {
+func (s *FileSystemInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4985,29 +4985,29 @@ func (s FileSystemInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileSystemInUse) OrigErr() error {
+func (s *FileSystemInUse) OrigErr() error {
return nil
}
-func (s FileSystemInUse) Error() string {
+func (s *FileSystemInUse) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileSystemInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileSystemInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileSystemInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileSystemInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the AWS account has already created the maximum number of file
// systems allowed per account.
type FileSystemLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5027,17 +5027,17 @@ func (s FileSystemLimitExceeded) GoString() string {
func newErrorFileSystemLimitExceeded(v protocol.ResponseMetadata) error {
return &FileSystemLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileSystemLimitExceeded) Code() string {
+func (s *FileSystemLimitExceeded) Code() string {
return "FileSystemLimitExceeded"
}
// Message returns the exception's message.
-func (s FileSystemLimitExceeded) Message() string {
+func (s *FileSystemLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5045,29 +5045,29 @@ func (s FileSystemLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileSystemLimitExceeded) OrigErr() error {
+func (s *FileSystemLimitExceeded) OrigErr() error {
return nil
}
-func (s FileSystemLimitExceeded) Error() string {
+func (s *FileSystemLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileSystemLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileSystemLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileSystemLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileSystemLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the specified FileSystemId value doesn't exist in the requester's
// AWS account.
type FileSystemNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5087,17 +5087,17 @@ func (s FileSystemNotFound) GoString() string {
func newErrorFileSystemNotFound(v protocol.ResponseMetadata) error {
return &FileSystemNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileSystemNotFound) Code() string {
+func (s *FileSystemNotFound) Code() string {
return "FileSystemNotFound"
}
// Message returns the exception's message.
-func (s FileSystemNotFound) Message() string {
+func (s *FileSystemNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5105,22 +5105,22 @@ func (s FileSystemNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileSystemNotFound) OrigErr() error {
+func (s *FileSystemNotFound) OrigErr() error {
return nil
}
-func (s FileSystemNotFound) Error() string {
+func (s *FileSystemNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileSystemNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileSystemNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileSystemNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileSystemNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The latest known metered size (in bytes) of data stored in the file system,
@@ -5188,8 +5188,8 @@ func (s *FileSystemSize) SetValueInStandard(v int64) *FileSystemSize {
// Returned if the file system's lifecycle state is not "available".
type IncorrectFileSystemLifeCycleState struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5209,17 +5209,17 @@ func (s IncorrectFileSystemLifeCycleState) GoString() string {
func newErrorIncorrectFileSystemLifeCycleState(v protocol.ResponseMetadata) error {
return &IncorrectFileSystemLifeCycleState{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectFileSystemLifeCycleState) Code() string {
+func (s *IncorrectFileSystemLifeCycleState) Code() string {
return "IncorrectFileSystemLifeCycleState"
}
// Message returns the exception's message.
-func (s IncorrectFileSystemLifeCycleState) Message() string {
+func (s *IncorrectFileSystemLifeCycleState) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5227,28 +5227,28 @@ func (s IncorrectFileSystemLifeCycleState) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectFileSystemLifeCycleState) OrigErr() error {
+func (s *IncorrectFileSystemLifeCycleState) OrigErr() error {
return nil
}
-func (s IncorrectFileSystemLifeCycleState) Error() string {
+func (s *IncorrectFileSystemLifeCycleState) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectFileSystemLifeCycleState) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectFileSystemLifeCycleState) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectFileSystemLifeCycleState) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectFileSystemLifeCycleState) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the mount target is not in the correct state for the operation.
type IncorrectMountTargetState struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5268,17 +5268,17 @@ func (s IncorrectMountTargetState) GoString() string {
func newErrorIncorrectMountTargetState(v protocol.ResponseMetadata) error {
return &IncorrectMountTargetState{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectMountTargetState) Code() string {
+func (s *IncorrectMountTargetState) Code() string {
return "IncorrectMountTargetState"
}
// Message returns the exception's message.
-func (s IncorrectMountTargetState) Message() string {
+func (s *IncorrectMountTargetState) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5286,22 +5286,22 @@ func (s IncorrectMountTargetState) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectMountTargetState) OrigErr() error {
+func (s *IncorrectMountTargetState) OrigErr() error {
return nil
}
-func (s IncorrectMountTargetState) Error() string {
+func (s *IncorrectMountTargetState) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectMountTargetState) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectMountTargetState) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectMountTargetState) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectMountTargetState) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if there's not enough capacity to provision additional throughput.
@@ -5310,8 +5310,8 @@ func (s IncorrectMountTargetState) RequestID() string {
// of an existing file system, or when you attempt to change an existing file
// system from bursting to provisioned throughput mode.
type InsufficientThroughputCapacity struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5331,17 +5331,17 @@ func (s InsufficientThroughputCapacity) GoString() string {
func newErrorInsufficientThroughputCapacity(v protocol.ResponseMetadata) error {
return &InsufficientThroughputCapacity{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientThroughputCapacity) Code() string {
+func (s *InsufficientThroughputCapacity) Code() string {
return "InsufficientThroughputCapacity"
}
// Message returns the exception's message.
-func (s InsufficientThroughputCapacity) Message() string {
+func (s *InsufficientThroughputCapacity) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5349,28 +5349,28 @@ func (s InsufficientThroughputCapacity) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientThroughputCapacity) OrigErr() error {
+func (s *InsufficientThroughputCapacity) OrigErr() error {
return nil
}
-func (s InsufficientThroughputCapacity) Error() string {
+func (s *InsufficientThroughputCapacity) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientThroughputCapacity) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientThroughputCapacity) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientThroughputCapacity) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientThroughputCapacity) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if an error occurred on the server side.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5390,17 +5390,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5408,30 +5408,30 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the FileSystemPolicy is is malformed or contains an error such
// as an invalid parameter value or a missing required parameter. Returned in
// the case of a policy lockout safety check error.
type InvalidPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorCode *string `min:"1" type:"string"`
@@ -5450,17 +5450,17 @@ func (s InvalidPolicyException) GoString() string {
func newErrorInvalidPolicyException(v protocol.ResponseMetadata) error {
return &InvalidPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPolicyException) Code() string {
+func (s *InvalidPolicyException) Code() string {
return "InvalidPolicyException"
}
// Message returns the exception's message.
-func (s InvalidPolicyException) Message() string {
+func (s *InvalidPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5468,29 +5468,29 @@ func (s InvalidPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPolicyException) OrigErr() error {
+func (s *InvalidPolicyException) OrigErr() error {
return nil
}
-func (s InvalidPolicyException) Error() string {
+func (s *InvalidPolicyException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the request specified an IpAddress that is already in use in
// the subnet.
type IpAddressInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5510,17 +5510,17 @@ func (s IpAddressInUse) GoString() string {
func newErrorIpAddressInUse(v protocol.ResponseMetadata) error {
return &IpAddressInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IpAddressInUse) Code() string {
+func (s *IpAddressInUse) Code() string {
return "IpAddressInUse"
}
// Message returns the exception's message.
-func (s IpAddressInUse) Message() string {
+func (s *IpAddressInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5528,22 +5528,22 @@ func (s IpAddressInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IpAddressInUse) OrigErr() error {
+func (s *IpAddressInUse) OrigErr() error {
return nil
}
-func (s IpAddressInUse) Error() string {
+func (s *IpAddressInUse) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IpAddressInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IpAddressInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IpAddressInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IpAddressInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a policy used by EFS lifecycle management to transition files to
@@ -5738,8 +5738,8 @@ func (s ModifyMountTargetSecurityGroupsOutput) GoString() string {
// Returned if the mount target would violate one of the specified restrictions
// based on the file system's existing mount targets.
type MountTargetConflict struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5759,17 +5759,17 @@ func (s MountTargetConflict) GoString() string {
func newErrorMountTargetConflict(v protocol.ResponseMetadata) error {
return &MountTargetConflict{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MountTargetConflict) Code() string {
+func (s *MountTargetConflict) Code() string {
return "MountTargetConflict"
}
// Message returns the exception's message.
-func (s MountTargetConflict) Message() string {
+func (s *MountTargetConflict) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5777,22 +5777,22 @@ func (s MountTargetConflict) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MountTargetConflict) OrigErr() error {
+func (s *MountTargetConflict) OrigErr() error {
return nil
}
-func (s MountTargetConflict) Error() string {
+func (s *MountTargetConflict) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MountTargetConflict) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MountTargetConflict) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MountTargetConflict) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MountTargetConflict) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides a description of a mount target.
@@ -5908,8 +5908,8 @@ func (s *MountTargetDescription) SetSubnetId(v string) *MountTargetDescription {
// Returned if there is no mount target with the specified ID found in the caller's
// account.
type MountTargetNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5929,17 +5929,17 @@ func (s MountTargetNotFound) GoString() string {
func newErrorMountTargetNotFound(v protocol.ResponseMetadata) error {
return &MountTargetNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MountTargetNotFound) Code() string {
+func (s *MountTargetNotFound) Code() string {
return "MountTargetNotFound"
}
// Message returns the exception's message.
-func (s MountTargetNotFound) Message() string {
+func (s *MountTargetNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5947,22 +5947,22 @@ func (s MountTargetNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MountTargetNotFound) OrigErr() error {
+func (s *MountTargetNotFound) OrigErr() error {
return nil
}
-func (s MountTargetNotFound) Error() string {
+func (s *MountTargetNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MountTargetNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MountTargetNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MountTargetNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MountTargetNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The calling account has reached the limit for elastic network interfaces
@@ -5972,8 +5972,8 @@ func (s MountTargetNotFound) RequestID() string {
// in the Amazon VPC User Guide (see the Network interfaces per VPC entry in
// the table).
type NetworkInterfaceLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -5993,17 +5993,17 @@ func (s NetworkInterfaceLimitExceeded) GoString() string {
func newErrorNetworkInterfaceLimitExceeded(v protocol.ResponseMetadata) error {
return &NetworkInterfaceLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NetworkInterfaceLimitExceeded) Code() string {
+func (s *NetworkInterfaceLimitExceeded) Code() string {
return "NetworkInterfaceLimitExceeded"
}
// Message returns the exception's message.
-func (s NetworkInterfaceLimitExceeded) Message() string {
+func (s *NetworkInterfaceLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6011,29 +6011,29 @@ func (s NetworkInterfaceLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NetworkInterfaceLimitExceeded) OrigErr() error {
+func (s *NetworkInterfaceLimitExceeded) OrigErr() error {
return nil
}
-func (s NetworkInterfaceLimitExceeded) Error() string {
+func (s *NetworkInterfaceLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NetworkInterfaceLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NetworkInterfaceLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NetworkInterfaceLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NetworkInterfaceLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if IpAddress was not specified in the request and there are no free
// IP addresses in the subnet.
type NoFreeAddressesInSubnet struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6053,17 +6053,17 @@ func (s NoFreeAddressesInSubnet) GoString() string {
func newErrorNoFreeAddressesInSubnet(v protocol.ResponseMetadata) error {
return &NoFreeAddressesInSubnet{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoFreeAddressesInSubnet) Code() string {
+func (s *NoFreeAddressesInSubnet) Code() string {
return "NoFreeAddressesInSubnet"
}
// Message returns the exception's message.
-func (s NoFreeAddressesInSubnet) Message() string {
+func (s *NoFreeAddressesInSubnet) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6071,29 +6071,29 @@ func (s NoFreeAddressesInSubnet) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoFreeAddressesInSubnet) OrigErr() error {
+func (s *NoFreeAddressesInSubnet) OrigErr() error {
return nil
}
-func (s NoFreeAddressesInSubnet) Error() string {
+func (s *NoFreeAddressesInSubnet) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoFreeAddressesInSubnet) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoFreeAddressesInSubnet) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoFreeAddressesInSubnet) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoFreeAddressesInSubnet) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the default file system policy is in effect for the EFS file
// system specified.
type PolicyNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorCode *string `min:"1" type:"string"`
@@ -6112,17 +6112,17 @@ func (s PolicyNotFound) GoString() string {
func newErrorPolicyNotFound(v protocol.ResponseMetadata) error {
return &PolicyNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyNotFound) Code() string {
+func (s *PolicyNotFound) Code() string {
return "PolicyNotFound"
}
// Message returns the exception's message.
-func (s PolicyNotFound) Message() string {
+func (s *PolicyNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6130,22 +6130,22 @@ func (s PolicyNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyNotFound) OrigErr() error {
+func (s *PolicyNotFound) OrigErr() error {
return nil
}
-func (s PolicyNotFound) Error() string {
+func (s *PolicyNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The full POSIX identity, including the user ID, group ID, and any secondary
@@ -6471,8 +6471,8 @@ func (s *RootDirectory) SetPath(v string) *RootDirectory {
// Returned if the size of SecurityGroups specified in the request is greater
// than five.
type SecurityGroupLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6492,17 +6492,17 @@ func (s SecurityGroupLimitExceeded) GoString() string {
func newErrorSecurityGroupLimitExceeded(v protocol.ResponseMetadata) error {
return &SecurityGroupLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SecurityGroupLimitExceeded) Code() string {
+func (s *SecurityGroupLimitExceeded) Code() string {
return "SecurityGroupLimitExceeded"
}
// Message returns the exception's message.
-func (s SecurityGroupLimitExceeded) Message() string {
+func (s *SecurityGroupLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6510,29 +6510,29 @@ func (s SecurityGroupLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SecurityGroupLimitExceeded) OrigErr() error {
+func (s *SecurityGroupLimitExceeded) OrigErr() error {
return nil
}
-func (s SecurityGroupLimitExceeded) Error() string {
+func (s *SecurityGroupLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SecurityGroupLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SecurityGroupLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SecurityGroupLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SecurityGroupLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if one of the specified security groups doesn't exist in the subnet's
// VPC.
type SecurityGroupNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6552,17 +6552,17 @@ func (s SecurityGroupNotFound) GoString() string {
func newErrorSecurityGroupNotFound(v protocol.ResponseMetadata) error {
return &SecurityGroupNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SecurityGroupNotFound) Code() string {
+func (s *SecurityGroupNotFound) Code() string {
return "SecurityGroupNotFound"
}
// Message returns the exception's message.
-func (s SecurityGroupNotFound) Message() string {
+func (s *SecurityGroupNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6570,28 +6570,28 @@ func (s SecurityGroupNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SecurityGroupNotFound) OrigErr() error {
+func (s *SecurityGroupNotFound) OrigErr() error {
return nil
}
-func (s SecurityGroupNotFound) Error() string {
+func (s *SecurityGroupNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SecurityGroupNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SecurityGroupNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SecurityGroupNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SecurityGroupNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if there is no subnet with ID SubnetId provided in the request.
type SubnetNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6611,17 +6611,17 @@ func (s SubnetNotFound) GoString() string {
func newErrorSubnetNotFound(v protocol.ResponseMetadata) error {
return &SubnetNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetNotFound) Code() string {
+func (s *SubnetNotFound) Code() string {
return "SubnetNotFound"
}
// Message returns the exception's message.
-func (s SubnetNotFound) Message() string {
+func (s *SubnetNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6629,22 +6629,22 @@ func (s SubnetNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetNotFound) OrigErr() error {
+func (s *SubnetNotFound) OrigErr() error {
return nil
}
-func (s SubnetNotFound) Error() string {
+func (s *SubnetNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A tag is a key-value pair. Allowed characters are letters, white space, and
@@ -6785,8 +6785,8 @@ func (s TagResourceOutput) GoString() string {
// Returned if the throughput mode or amount of provisioned throughput can't
// be changed because the throughput limit of 1024 MiB/s has been reached.
type ThroughputLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6806,17 +6806,17 @@ func (s ThroughputLimitExceeded) GoString() string {
func newErrorThroughputLimitExceeded(v protocol.ResponseMetadata) error {
return &ThroughputLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThroughputLimitExceeded) Code() string {
+func (s *ThroughputLimitExceeded) Code() string {
return "ThroughputLimitExceeded"
}
// Message returns the exception's message.
-func (s ThroughputLimitExceeded) Message() string {
+func (s *ThroughputLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6824,29 +6824,29 @@ func (s ThroughputLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThroughputLimitExceeded) OrigErr() error {
+func (s *ThroughputLimitExceeded) OrigErr() error {
return nil
}
-func (s ThroughputLimitExceeded) Error() string {
+func (s *ThroughputLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThroughputLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThroughputLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThroughputLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThroughputLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if you don’t wait at least 24 hours before changing the throughput
// mode, or decreasing the Provisioned Throughput value.
type TooManyRequests struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6866,17 +6866,17 @@ func (s TooManyRequests) GoString() string {
func newErrorTooManyRequests(v protocol.ResponseMetadata) error {
return &TooManyRequests{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequests) Code() string {
+func (s *TooManyRequests) Code() string {
return "TooManyRequests"
}
// Message returns the exception's message.
-func (s TooManyRequests) Message() string {
+func (s *TooManyRequests) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6884,27 +6884,27 @@ func (s TooManyRequests) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequests) OrigErr() error {
+func (s *TooManyRequests) OrigErr() error {
return nil
}
-func (s TooManyRequests) Error() string {
+func (s *TooManyRequests) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequests) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequests) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequests) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequests) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UnsupportedAvailabilityZone struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// ErrorCode is a required field
ErrorCode *string `min:"1" type:"string" required:"true"`
@@ -6924,17 +6924,17 @@ func (s UnsupportedAvailabilityZone) GoString() string {
func newErrorUnsupportedAvailabilityZone(v protocol.ResponseMetadata) error {
return &UnsupportedAvailabilityZone{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedAvailabilityZone) Code() string {
+func (s *UnsupportedAvailabilityZone) Code() string {
return "UnsupportedAvailabilityZone"
}
// Message returns the exception's message.
-func (s UnsupportedAvailabilityZone) Message() string {
+func (s *UnsupportedAvailabilityZone) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6942,22 +6942,22 @@ func (s UnsupportedAvailabilityZone) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedAvailabilityZone) OrigErr() error {
+func (s *UnsupportedAvailabilityZone) OrigErr() error {
return nil
}
-func (s UnsupportedAvailabilityZone) Error() string {
+func (s *UnsupportedAvailabilityZone) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedAvailabilityZone) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedAvailabilityZone) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedAvailabilityZone) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedAvailabilityZone) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/eks/api.go b/vendor/github.com/aws/aws-sdk-go/service/eks/api.go
index b37ef9e7de7..5c5f2e20ac1 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/eks/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/eks/api.go
@@ -452,7 +452,8 @@ func (c *EKS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ
// in the Amazon EKS User Guide.
//
// If you have managed node groups or Fargate profiles attached to the cluster,
-// you must delete them first. For more information, see DeleteNodegroup andDeleteFargateProfile.
+// you must delete them first. For more information, see DeleteNodegroup and
+// DeleteFargateProfile.
//
// 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
@@ -1443,8 +1444,9 @@ func (c *EKS) ListNodegroupsRequest(input *ListNodegroupsInput) (req *request.Re
// ListNodegroups API operation for Amazon Elastic Kubernetes Service.
//
-// Lists the Amazon EKS node groups associated with the specified cluster in
-// your AWS account in the specified Region.
+// Lists the Amazon EKS managed node groups associated with the specified cluster
+// in your AWS account in the specified Region. Self-managed node groups are
+// not listed.
//
// 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
@@ -2449,8 +2451,8 @@ func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup {
// This exception is thrown if the request contains a semantic error. The precise
// meaning will depend on the API, and will be documented in the error message.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2467,17 +2469,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2485,22 +2487,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing the certificate-authority-data for your cluster.
@@ -2533,8 +2535,8 @@ func (s *Certificate) SetData(v string) *Certificate {
// an action or resource on behalf of a user that doesn't have permissions to
// use the action or resource or specifying an identifier that is not valid.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -2557,17 +2559,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "ClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2575,22 +2577,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing an Amazon EKS cluster.
@@ -3092,12 +3094,13 @@ type CreateNodegroupInput struct {
// are created.
Labels map[string]*string `locationName:"labels" type:"map"`
- // The IAM role associated with your node group. The Amazon EKS worker node
- // kubelet daemon makes calls to AWS APIs on your behalf. Worker nodes receive
- // permissions for these API calls through an IAM instance profile and associated
- // policies. Before you can launch worker nodes and register them into a cluster,
- // you must create an IAM role for those worker nodes to use when they are launched.
- // For more information, see Amazon EKS Worker Node IAM Role (https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html)
+ // The Amazon Resource Name (ARN) of the IAM role to associate with your node
+ // group. The Amazon EKS worker node kubelet daemon makes calls to AWS APIs
+ // on your behalf. Worker nodes receive permissions for these API calls through
+ // an IAM instance profile and associated policies. Before you can launch worker
+ // nodes and register them into a cluster, you must create an IAM role for those
+ // worker nodes to use when they are launched. For more information, see Amazon
+ // EKS Worker Node IAM Role (https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html)
// in the Amazon EKS User Guide .
//
// NodeRole is a required field
@@ -4095,8 +4098,8 @@ func (s *Identity) SetOidc(v *OIDC) *Identity {
// The specified parameter is invalid. Review the available parameters for the
// API request.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -4122,17 +4125,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4140,29 +4143,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is invalid given the state of the cluster. Check the state of
// the cluster and the associated operations.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -4185,17 +4188,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4203,22 +4206,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing an issue with an Amazon EKS resource.
@@ -5197,8 +5200,8 @@ func (s *NodegroupScalingConfig) SetMinSize(v int64) *NodegroupScalingConfig {
// A service resource associated with the request could not be found. Clients
// should not retry such requests.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5215,17 +5218,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5233,22 +5236,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object representing the OpenID Connect (https://openid.net/connect/) identity
@@ -5350,8 +5353,8 @@ func (s *RemoteAccessConfig) SetSourceSecurityGroups(v []*string) *RemoteAccessC
// The specified resource is in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -5374,17 +5377,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5392,28 +5395,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have encountered a service limit on the specified resource.
type ResourceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -5436,17 +5439,17 @@ func (s ResourceLimitExceededException) GoString() string {
func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceededException) Code() string {
+func (s *ResourceLimitExceededException) Code() string {
return "ResourceLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceLimitExceededException) Message() string {
+func (s *ResourceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5454,30 +5457,30 @@ func (s ResourceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceededException) OrigErr() error {
+func (s *ResourceLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceLimitExceededException) Error() string {
+func (s *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource could not be found. You can view your available clusters
// with ListClusters. You can view your available managed node groups with ListNodegroups.
// Amazon EKS clusters and node groups are Region-specific.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -5503,17 +5506,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5521,28 +5524,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// These errors are usually caused by a server-side issue.
type ServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -5565,17 +5568,17 @@ func (s ServerException) GoString() string {
func newErrorServerException(v protocol.ResponseMetadata) error {
return &ServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerException) Code() string {
+func (s *ServerException) Code() string {
return "ServerException"
}
// Message returns the exception's message.
-func (s ServerException) Message() string {
+func (s *ServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5583,28 +5586,28 @@ func (s ServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerException) OrigErr() error {
+func (s *ServerException) OrigErr() error {
return nil
}
-func (s ServerException) Error() string {
+func (s *ServerException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The service is unavailable. Back off and retry the operation.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5621,17 +5624,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5639,22 +5642,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -5735,8 +5738,8 @@ func (s TagResourceOutput) GoString() string {
// Availability Zones for your account, from which you can choose subnets for
// your cluster.
type UnsupportedAvailabilityZoneException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The Amazon EKS cluster associated with the exception.
ClusterName *string `locationName:"clusterName" type:"string"`
@@ -5763,17 +5766,17 @@ func (s UnsupportedAvailabilityZoneException) GoString() string {
func newErrorUnsupportedAvailabilityZoneException(v protocol.ResponseMetadata) error {
return &UnsupportedAvailabilityZoneException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedAvailabilityZoneException) Code() string {
+func (s *UnsupportedAvailabilityZoneException) Code() string {
return "UnsupportedAvailabilityZoneException"
}
// Message returns the exception's message.
-func (s UnsupportedAvailabilityZoneException) Message() string {
+func (s *UnsupportedAvailabilityZoneException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5781,22 +5784,22 @@ func (s UnsupportedAvailabilityZoneException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedAvailabilityZoneException) OrigErr() error {
+func (s *UnsupportedAvailabilityZoneException) OrigErr() error {
return nil
}
-func (s UnsupportedAvailabilityZoneException) Error() string {
+func (s *UnsupportedAvailabilityZoneException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedAvailabilityZoneException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedAvailabilityZoneException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedAvailabilityZoneException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedAvailabilityZoneException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -6742,12 +6745,21 @@ const (
// NodegroupIssueCodeEc2subnetNotFound is a NodegroupIssueCode enum value
NodegroupIssueCodeEc2subnetNotFound = "Ec2SubnetNotFound"
+ // NodegroupIssueCodeEc2subnetInvalidConfiguration is a NodegroupIssueCode enum value
+ NodegroupIssueCodeEc2subnetInvalidConfiguration = "Ec2SubnetInvalidConfiguration"
+
// NodegroupIssueCodeIamInstanceProfileNotFound is a NodegroupIssueCode enum value
NodegroupIssueCodeIamInstanceProfileNotFound = "IamInstanceProfileNotFound"
+ // NodegroupIssueCodeIamLimitExceeded is a NodegroupIssueCode enum value
+ NodegroupIssueCodeIamLimitExceeded = "IamLimitExceeded"
+
// NodegroupIssueCodeIamNodeRoleNotFound is a NodegroupIssueCode enum value
NodegroupIssueCodeIamNodeRoleNotFound = "IamNodeRoleNotFound"
+ // NodegroupIssueCodeNodeCreationFailure is a NodegroupIssueCode enum value
+ NodegroupIssueCodeNodeCreationFailure = "NodeCreationFailure"
+
// NodegroupIssueCodeAsgInstanceLaunchFailures is a NodegroupIssueCode enum value
NodegroupIssueCodeAsgInstanceLaunchFailures = "AsgInstanceLaunchFailures"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go
index d72e03e5ed4..e1e52e34aed 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go
@@ -1039,6 +1039,106 @@ func (c *ElastiCache) CreateCacheSubnetGroupWithContext(ctx aws.Context, input *
return out, req.Send()
}
+const opCreateGlobalReplicationGroup = "CreateGlobalReplicationGroup"
+
+// CreateGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the CreateGlobalReplicationGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateGlobalReplicationGroup for more information on using the CreateGlobalReplicationGroup
+// 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 CreateGlobalReplicationGroupRequest method.
+// req, resp := client.CreateGlobalReplicationGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateGlobalReplicationGroup
+func (c *ElastiCache) CreateGlobalReplicationGroupRequest(input *CreateGlobalReplicationGroupInput) (req *request.Request, output *CreateGlobalReplicationGroupOutput) {
+ op := &request.Operation{
+ Name: opCreateGlobalReplicationGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateGlobalReplicationGroupInput{}
+ }
+
+ output = &CreateGlobalReplicationGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateGlobalReplicationGroup API operation for Amazon ElastiCache.
+//
+// Global Datastore for Redis offers fully managed, fast, reliable and secure
+// cross-region replication. Using Global Datastore for Redis, you can create
+// cross-region read replica clusters for ElastiCache for Redis to enable low-latency
+// reads and disaster recovery across regions. For more information, see Replication
+// Across Regions Using Global Datastore (/AmazonElastiCache/latest/red-ug/Redis-Global-Clusters.html).
+//
+// * The GlobalReplicationGroupId is the name of the Global Datastore.
+//
+// * The PrimaryReplicationGroupId represents the name of the primary cluster
+// that accepts writes and will replicate updates to the secondary cluster.
+//
+// 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 ElastiCache's
+// API operation CreateGlobalReplicationGroup for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
+// * ErrCodeGlobalReplicationGroupAlreadyExistsFault "GlobalReplicationGroupAlreadyExistsFault"
+// The Global Datastore name already exists.
+//
+// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault"
+// The specified service linked role (SLR) was not found.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateGlobalReplicationGroup
+func (c *ElastiCache) CreateGlobalReplicationGroup(input *CreateGlobalReplicationGroupInput) (*CreateGlobalReplicationGroupOutput, error) {
+ req, out := c.CreateGlobalReplicationGroupRequest(input)
+ return out, req.Send()
+}
+
+// CreateGlobalReplicationGroupWithContext is the same as CreateGlobalReplicationGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateGlobalReplicationGroup 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 *ElastiCache) CreateGlobalReplicationGroupWithContext(ctx aws.Context, input *CreateGlobalReplicationGroupInput, opts ...request.Option) (*CreateGlobalReplicationGroupOutput, error) {
+ req, out := c.CreateGlobalReplicationGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateReplicationGroup = "CreateReplicationGroup"
// CreateReplicationGroupRequest generates a "aws/request.Request" representing the
@@ -1086,6 +1186,9 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou
// Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled)
// replication group.
//
+// This API can be used to create a standalone regional replication group or
+// a secondary replication group associated with a Global Datastore.
+//
// A Redis (cluster mode disabled) replication group is a collection of clusters,
// where one of the clusters is a read/write primary and the others are read-only
// replicas. Writes to the primary are asynchronously propagated to the replicas.
@@ -1166,6 +1269,12 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou
// number of node groups (shards) in a single replication group. The default
// maximum is 90
//
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
+//
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
+//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
//
@@ -1309,6 +1418,94 @@ func (c *ElastiCache) CreateSnapshotWithContext(ctx aws.Context, input *CreateSn
return out, req.Send()
}
+const opDecreaseNodeGroupsInGlobalReplicationGroup = "DecreaseNodeGroupsInGlobalReplicationGroup"
+
+// DecreaseNodeGroupsInGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DecreaseNodeGroupsInGlobalReplicationGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DecreaseNodeGroupsInGlobalReplicationGroup for more information on using the DecreaseNodeGroupsInGlobalReplicationGroup
+// 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 DecreaseNodeGroupsInGlobalReplicationGroupRequest method.
+// req, resp := client.DecreaseNodeGroupsInGlobalReplicationGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseNodeGroupsInGlobalReplicationGroup
+func (c *ElastiCache) DecreaseNodeGroupsInGlobalReplicationGroupRequest(input *DecreaseNodeGroupsInGlobalReplicationGroupInput) (req *request.Request, output *DecreaseNodeGroupsInGlobalReplicationGroupOutput) {
+ op := &request.Operation{
+ Name: opDecreaseNodeGroupsInGlobalReplicationGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DecreaseNodeGroupsInGlobalReplicationGroupInput{}
+ }
+
+ output = &DecreaseNodeGroupsInGlobalReplicationGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DecreaseNodeGroupsInGlobalReplicationGroup API operation for Amazon ElastiCache.
+//
+// Decreases the number of node groups in a Global Datastore
+//
+// 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 ElastiCache's
+// API operation DecreaseNodeGroupsInGlobalReplicationGroup for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
+//
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseNodeGroupsInGlobalReplicationGroup
+func (c *ElastiCache) DecreaseNodeGroupsInGlobalReplicationGroup(input *DecreaseNodeGroupsInGlobalReplicationGroupInput) (*DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
+ req, out := c.DecreaseNodeGroupsInGlobalReplicationGroupRequest(input)
+ return out, req.Send()
+}
+
+// DecreaseNodeGroupsInGlobalReplicationGroupWithContext is the same as DecreaseNodeGroupsInGlobalReplicationGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DecreaseNodeGroupsInGlobalReplicationGroup 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 *ElastiCache) DecreaseNodeGroupsInGlobalReplicationGroupWithContext(ctx aws.Context, input *DecreaseNodeGroupsInGlobalReplicationGroupInput, opts ...request.Option) (*DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
+ req, out := c.DecreaseNodeGroupsInGlobalReplicationGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDecreaseReplicaCount = "DecreaseReplicaCount"
// DecreaseReplicaCountRequest generates a "aws/request.Request" representing the
@@ -1353,7 +1550,7 @@ func (c *ElastiCache) DecreaseReplicaCountRequest(input *DecreaseReplicaCountInp
// DecreaseReplicaCount API operation for Amazon ElastiCache.
//
-// Dynamically decreases the number of replics in a Redis (cluster mode disabled)
+// Dynamically decreases the number of replicas in a Redis (cluster mode disabled)
// replication group or the number of replica nodes in one or more node groups
// (shards) of a Redis (cluster mode enabled) replication group. This operation
// is performed with no cluster down time.
@@ -1821,6 +2018,107 @@ func (c *ElastiCache) DeleteCacheSubnetGroupWithContext(ctx aws.Context, input *
return out, req.Send()
}
+const opDeleteGlobalReplicationGroup = "DeleteGlobalReplicationGroup"
+
+// DeleteGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteGlobalReplicationGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteGlobalReplicationGroup for more information on using the DeleteGlobalReplicationGroup
+// 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 DeleteGlobalReplicationGroupRequest method.
+// req, resp := client.DeleteGlobalReplicationGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteGlobalReplicationGroup
+func (c *ElastiCache) DeleteGlobalReplicationGroupRequest(input *DeleteGlobalReplicationGroupInput) (req *request.Request, output *DeleteGlobalReplicationGroupOutput) {
+ op := &request.Operation{
+ Name: opDeleteGlobalReplicationGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteGlobalReplicationGroupInput{}
+ }
+
+ output = &DeleteGlobalReplicationGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteGlobalReplicationGroup API operation for Amazon ElastiCache.
+//
+// Deleting a Global Datastore is a two-step process:
+//
+// * First, you must DisassociateGlobalReplicationGroup to remove the secondary
+// clusters in the Global Datastore.
+//
+// * Once the Global Datastore contains only the primary cluster, you can
+// use DeleteGlobalReplicationGroup API to delete the Global Datastore while
+// retainining the primary cluster using Retain…= true.
+//
+// Since the Global Datastore has only a primary cluster, you can delete the
+// Global Datastore while retaining the primary by setting RetainPrimaryCluster=true.
+//
+// When you receive a successful response from this operation, Amazon ElastiCache
+// immediately begins deleting the selected resources; you cannot cancel or
+// revert this operation.
+//
+// This operation is valid for Redis only.
+//
+// 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 ElastiCache's
+// API operation DeleteGlobalReplicationGroup for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
+//
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteGlobalReplicationGroup
+func (c *ElastiCache) DeleteGlobalReplicationGroup(input *DeleteGlobalReplicationGroupInput) (*DeleteGlobalReplicationGroupOutput, error) {
+ req, out := c.DeleteGlobalReplicationGroupRequest(input)
+ return out, req.Send()
+}
+
+// DeleteGlobalReplicationGroupWithContext is the same as DeleteGlobalReplicationGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteGlobalReplicationGroup 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 *ElastiCache) DeleteGlobalReplicationGroupWithContext(ctx aws.Context, input *DeleteGlobalReplicationGroupInput, opts ...request.Option) (*DeleteGlobalReplicationGroupOutput, error) {
+ req, out := c.DeleteGlobalReplicationGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteReplicationGroup = "DeleteReplicationGroup"
// DeleteReplicationGroupRequest generates a "aws/request.Request" representing the
@@ -3189,35 +3487,35 @@ func (c *ElastiCache) DescribeEventsPagesWithContext(ctx aws.Context, input *Des
return p.Err()
}
-const opDescribeReplicationGroups = "DescribeReplicationGroups"
+const opDescribeGlobalReplicationGroups = "DescribeGlobalReplicationGroups"
-// DescribeReplicationGroupsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeReplicationGroups operation. The "output" return
+// DescribeGlobalReplicationGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeGlobalReplicationGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeReplicationGroups for more information on using the DescribeReplicationGroups
+// See DescribeGlobalReplicationGroups for more information on using the DescribeGlobalReplicationGroups
// 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 DescribeReplicationGroupsRequest method.
-// req, resp := client.DescribeReplicationGroupsRequest(params)
+// // Example sending a request using the DescribeGlobalReplicationGroupsRequest method.
+// req, resp := client.DescribeGlobalReplicationGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups
-func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicationGroupsInput) (req *request.Request, output *DescribeReplicationGroupsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeGlobalReplicationGroups
+func (c *ElastiCache) DescribeGlobalReplicationGroupsRequest(input *DescribeGlobalReplicationGroupsInput) (req *request.Request, output *DescribeGlobalReplicationGroupsOutput) {
op := &request.Operation{
- Name: opDescribeReplicationGroups,
+ Name: opDescribeGlobalReplicationGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
@@ -3229,32 +3527,29 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio
}
if input == nil {
- input = &DescribeReplicationGroupsInput{}
+ input = &DescribeGlobalReplicationGroupsInput{}
}
- output = &DescribeReplicationGroupsOutput{}
+ output = &DescribeGlobalReplicationGroupsOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeReplicationGroups API operation for Amazon ElastiCache.
-//
-// Returns information about a particular replication group. If no identifier
-// is specified, DescribeReplicationGroups returns information about all replication
-// groups.
+// DescribeGlobalReplicationGroups API operation for Amazon ElastiCache.
//
-// This operation is valid for Redis only.
+// Returns information about a particular global replication group. If no identifier
+// is specified, returns information about all Global Datastores.
//
// 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 ElastiCache's
-// API operation DescribeReplicationGroups for usage and error information.
+// API operation DescribeGlobalReplicationGroups for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -3262,65 +3557,65 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups
-func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroupsInput) (*DescribeReplicationGroupsOutput, error) {
- req, out := c.DescribeReplicationGroupsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeGlobalReplicationGroups
+func (c *ElastiCache) DescribeGlobalReplicationGroups(input *DescribeGlobalReplicationGroupsInput) (*DescribeGlobalReplicationGroupsOutput, error) {
+ req, out := c.DescribeGlobalReplicationGroupsRequest(input)
return out, req.Send()
}
-// DescribeReplicationGroupsWithContext is the same as DescribeReplicationGroups with the addition of
+// DescribeGlobalReplicationGroupsWithContext is the same as DescribeGlobalReplicationGroups with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeReplicationGroups for details on how to use this API operation.
+// See DescribeGlobalReplicationGroups 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 *ElastiCache) DescribeReplicationGroupsWithContext(ctx aws.Context, input *DescribeReplicationGroupsInput, opts ...request.Option) (*DescribeReplicationGroupsOutput, error) {
- req, out := c.DescribeReplicationGroupsRequest(input)
+func (c *ElastiCache) DescribeGlobalReplicationGroupsWithContext(ctx aws.Context, input *DescribeGlobalReplicationGroupsInput, opts ...request.Option) (*DescribeGlobalReplicationGroupsOutput, error) {
+ req, out := c.DescribeGlobalReplicationGroupsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeReplicationGroupsPages iterates over the pages of a DescribeReplicationGroups operation,
+// DescribeGlobalReplicationGroupsPages iterates over the pages of a DescribeGlobalReplicationGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See DescribeReplicationGroups method for more information on how to use this operation.
+// See DescribeGlobalReplicationGroups 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 DescribeReplicationGroups operation.
+// // Example iterating over at most 3 pages of a DescribeGlobalReplicationGroups operation.
// pageNum := 0
-// err := client.DescribeReplicationGroupsPages(params,
-// func(page *elasticache.DescribeReplicationGroupsOutput, lastPage bool) bool {
+// err := client.DescribeGlobalReplicationGroupsPages(params,
+// func(page *elasticache.DescribeGlobalReplicationGroupsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
-func (c *ElastiCache) DescribeReplicationGroupsPages(input *DescribeReplicationGroupsInput, fn func(*DescribeReplicationGroupsOutput, bool) bool) error {
- return c.DescribeReplicationGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *ElastiCache) DescribeGlobalReplicationGroupsPages(input *DescribeGlobalReplicationGroupsInput, fn func(*DescribeGlobalReplicationGroupsOutput, bool) bool) error {
+ return c.DescribeGlobalReplicationGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// DescribeReplicationGroupsPagesWithContext same as DescribeReplicationGroupsPages except
+// DescribeGlobalReplicationGroupsPagesWithContext same as DescribeGlobalReplicationGroupsPages 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 *ElastiCache) DescribeReplicationGroupsPagesWithContext(ctx aws.Context, input *DescribeReplicationGroupsInput, fn func(*DescribeReplicationGroupsOutput, bool) bool, opts ...request.Option) error {
+func (c *ElastiCache) DescribeGlobalReplicationGroupsPagesWithContext(ctx aws.Context, input *DescribeGlobalReplicationGroupsInput, fn func(*DescribeGlobalReplicationGroupsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeReplicationGroupsInput
+ var inCpy *DescribeGlobalReplicationGroupsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.DescribeReplicationGroupsRequest(inCpy)
+ req, _ := c.DescribeGlobalReplicationGroupsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -3328,7 +3623,7 @@ func (c *ElastiCache) DescribeReplicationGroupsPagesWithContext(ctx aws.Context,
}
for p.Next() {
- if !fn(p.Page().(*DescribeReplicationGroupsOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*DescribeGlobalReplicationGroupsOutput), !p.HasNextPage()) {
break
}
}
@@ -3336,25 +3631,172 @@ func (c *ElastiCache) DescribeReplicationGroupsPagesWithContext(ctx aws.Context,
return p.Err()
}
-const opDescribeReservedCacheNodes = "DescribeReservedCacheNodes"
+const opDescribeReplicationGroups = "DescribeReplicationGroups"
-// DescribeReservedCacheNodesRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeReservedCacheNodes operation. The "output" return
+// DescribeReplicationGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeReplicationGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeReservedCacheNodes for more information on using the DescribeReservedCacheNodes
+// See DescribeReplicationGroups for more information on using the DescribeReplicationGroups
// 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 DescribeReservedCacheNodesRequest method.
-// req, resp := client.DescribeReservedCacheNodesRequest(params)
+// // Example sending a request using the DescribeReplicationGroupsRequest method.
+// req, resp := client.DescribeReplicationGroupsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups
+func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicationGroupsInput) (req *request.Request, output *DescribeReplicationGroupsOutput) {
+ op := &request.Operation{
+ Name: opDescribeReplicationGroups,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"Marker"},
+ OutputTokens: []string{"Marker"},
+ LimitToken: "MaxRecords",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeReplicationGroupsInput{}
+ }
+
+ output = &DescribeReplicationGroupsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeReplicationGroups API operation for Amazon ElastiCache.
+//
+// Returns information about a particular replication group. If no identifier
+// is specified, DescribeReplicationGroups returns information about all replication
+// groups.
+//
+// This operation is valid for Redis only.
+//
+// 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 ElastiCache's
+// API operation DescribeReplicationGroups for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups
+func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroupsInput) (*DescribeReplicationGroupsOutput, error) {
+ req, out := c.DescribeReplicationGroupsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeReplicationGroupsWithContext is the same as DescribeReplicationGroups with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeReplicationGroups 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 *ElastiCache) DescribeReplicationGroupsWithContext(ctx aws.Context, input *DescribeReplicationGroupsInput, opts ...request.Option) (*DescribeReplicationGroupsOutput, error) {
+ req, out := c.DescribeReplicationGroupsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeReplicationGroupsPages iterates over the pages of a DescribeReplicationGroups operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeReplicationGroups 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 DescribeReplicationGroups operation.
+// pageNum := 0
+// err := client.DescribeReplicationGroupsPages(params,
+// func(page *elasticache.DescribeReplicationGroupsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *ElastiCache) DescribeReplicationGroupsPages(input *DescribeReplicationGroupsInput, fn func(*DescribeReplicationGroupsOutput, bool) bool) error {
+ return c.DescribeReplicationGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeReplicationGroupsPagesWithContext same as DescribeReplicationGroupsPages 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 *ElastiCache) DescribeReplicationGroupsPagesWithContext(ctx aws.Context, input *DescribeReplicationGroupsInput, fn func(*DescribeReplicationGroupsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeReplicationGroupsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeReplicationGroupsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeReplicationGroupsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeReservedCacheNodes = "DescribeReservedCacheNodes"
+
+// DescribeReservedCacheNodesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeReservedCacheNodes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeReservedCacheNodes for more information on using the DescribeReservedCacheNodes
+// 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 DescribeReservedCacheNodesRequest method.
+// req, resp := client.DescribeReservedCacheNodesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
@@ -4057,98 +4499,67 @@ func (c *ElastiCache) DescribeUpdateActionsPagesWithContext(ctx aws.Context, inp
return p.Err()
}
-const opIncreaseReplicaCount = "IncreaseReplicaCount"
+const opDisassociateGlobalReplicationGroup = "DisassociateGlobalReplicationGroup"
-// IncreaseReplicaCountRequest generates a "aws/request.Request" representing the
-// client's request for the IncreaseReplicaCount operation. The "output" return
+// DisassociateGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DisassociateGlobalReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See IncreaseReplicaCount for more information on using the IncreaseReplicaCount
+// See DisassociateGlobalReplicationGroup for more information on using the DisassociateGlobalReplicationGroup
// 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 IncreaseReplicaCountRequest method.
-// req, resp := client.IncreaseReplicaCountRequest(params)
+// // Example sending a request using the DisassociateGlobalReplicationGroupRequest method.
+// req, resp := client.DisassociateGlobalReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount
-func (c *ElastiCache) IncreaseReplicaCountRequest(input *IncreaseReplicaCountInput) (req *request.Request, output *IncreaseReplicaCountOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DisassociateGlobalReplicationGroup
+func (c *ElastiCache) DisassociateGlobalReplicationGroupRequest(input *DisassociateGlobalReplicationGroupInput) (req *request.Request, output *DisassociateGlobalReplicationGroupOutput) {
op := &request.Operation{
- Name: opIncreaseReplicaCount,
+ Name: opDisassociateGlobalReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &IncreaseReplicaCountInput{}
+ input = &DisassociateGlobalReplicationGroupInput{}
}
- output = &IncreaseReplicaCountOutput{}
+ output = &DisassociateGlobalReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// IncreaseReplicaCount API operation for Amazon ElastiCache.
+// DisassociateGlobalReplicationGroup API operation for Amazon ElastiCache.
//
-// Dynamically increases the number of replics in a Redis (cluster mode disabled)
-// replication group or the number of replica nodes in one or more node groups
-// (shards) of a Redis (cluster mode enabled) replication group. This operation
-// is performed with no cluster down time.
+// Remove a secondary cluster from the Global Datastore using the Global Datastore
+// name. The secondary cluster will no longer receive updates from the primary
+// cluster, but will remain as a standalone cluster in that AWS region.
//
// 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 ElastiCache's
-// API operation IncreaseReplicaCount for usage and error information.
+// API operation DisassociateGlobalReplicationGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
-//
-// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
-// The requested replication group is not in the available state.
-//
-// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
-// The requested cluster is not in the available state.
-//
-// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
-// The VPC network is in an invalid state.
-//
-// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity"
-// The requested cache node type is not available in the specified Availability
-// Zone. For more information, see InsufficientCacheClusterCapacity (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY)
-// in the ElastiCache User Guide.
-//
-// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded"
-// The request cannot be processed because it would exceed the allowed number
-// of clusters per customer.
-//
-// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded"
-// The request cannot be processed because it would exceed the maximum allowed
-// number of node groups (shards) in a single replication group. The default
-// maximum is 90
-//
-// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded"
-// The request cannot be processed because it would exceed the allowed number
-// of cache nodes per customer.
-//
-// * ErrCodeNoOperationFault "NoOperationFault"
-// The operation was not performed because no changes were required.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
-// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
-// The KMS key supplied is not valid.
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -4156,303 +4567,293 @@ func (c *ElastiCache) IncreaseReplicaCountRequest(input *IncreaseReplicaCountInp
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount
-func (c *ElastiCache) IncreaseReplicaCount(input *IncreaseReplicaCountInput) (*IncreaseReplicaCountOutput, error) {
- req, out := c.IncreaseReplicaCountRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DisassociateGlobalReplicationGroup
+func (c *ElastiCache) DisassociateGlobalReplicationGroup(input *DisassociateGlobalReplicationGroupInput) (*DisassociateGlobalReplicationGroupOutput, error) {
+ req, out := c.DisassociateGlobalReplicationGroupRequest(input)
return out, req.Send()
}
-// IncreaseReplicaCountWithContext is the same as IncreaseReplicaCount with the addition of
+// DisassociateGlobalReplicationGroupWithContext is the same as DisassociateGlobalReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See IncreaseReplicaCount for details on how to use this API operation.
+// See DisassociateGlobalReplicationGroup 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 *ElastiCache) IncreaseReplicaCountWithContext(ctx aws.Context, input *IncreaseReplicaCountInput, opts ...request.Option) (*IncreaseReplicaCountOutput, error) {
- req, out := c.IncreaseReplicaCountRequest(input)
+func (c *ElastiCache) DisassociateGlobalReplicationGroupWithContext(ctx aws.Context, input *DisassociateGlobalReplicationGroupInput, opts ...request.Option) (*DisassociateGlobalReplicationGroupOutput, error) {
+ req, out := c.DisassociateGlobalReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications"
+const opFailoverGlobalReplicationGroup = "FailoverGlobalReplicationGroup"
-// ListAllowedNodeTypeModificationsRequest generates a "aws/request.Request" representing the
-// client's request for the ListAllowedNodeTypeModifications operation. The "output" return
+// FailoverGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the FailoverGlobalReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListAllowedNodeTypeModifications for more information on using the ListAllowedNodeTypeModifications
+// See FailoverGlobalReplicationGroup for more information on using the FailoverGlobalReplicationGroup
// 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 ListAllowedNodeTypeModificationsRequest method.
-// req, resp := client.ListAllowedNodeTypeModificationsRequest(params)
+// // Example sending a request using the FailoverGlobalReplicationGroupRequest method.
+// req, resp := client.FailoverGlobalReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications
-func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowedNodeTypeModificationsInput) (req *request.Request, output *ListAllowedNodeTypeModificationsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/FailoverGlobalReplicationGroup
+func (c *ElastiCache) FailoverGlobalReplicationGroupRequest(input *FailoverGlobalReplicationGroupInput) (req *request.Request, output *FailoverGlobalReplicationGroupOutput) {
op := &request.Operation{
- Name: opListAllowedNodeTypeModifications,
+ Name: opFailoverGlobalReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ListAllowedNodeTypeModificationsInput{}
+ input = &FailoverGlobalReplicationGroupInput{}
}
- output = &ListAllowedNodeTypeModificationsOutput{}
+ output = &FailoverGlobalReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListAllowedNodeTypeModifications API operation for Amazon ElastiCache.
-//
-// Lists all available node types that you can scale your Redis cluster's or
-// replication group's current node type.
+// FailoverGlobalReplicationGroup API operation for Amazon ElastiCache.
//
-// When you use the ModifyCacheCluster or ModifyReplicationGroup operations
-// to scale your cluster or replication group, the value of the CacheNodeType
-// parameter must be one of the node types returned by this operation.
+// Used to failover the primary region to a selected secondary region.
//
// 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 ElastiCache's
-// API operation ListAllowedNodeTypeModifications for usage and error information.
+// API operation FailoverGlobalReplicationGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
-// The requested cluster ID does not refer to an existing cluster.
-//
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
-// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
-// Two or more incompatible parameters were specified.
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications
-func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) {
- req, out := c.ListAllowedNodeTypeModificationsRequest(input)
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/FailoverGlobalReplicationGroup
+func (c *ElastiCache) FailoverGlobalReplicationGroup(input *FailoverGlobalReplicationGroupInput) (*FailoverGlobalReplicationGroupOutput, error) {
+ req, out := c.FailoverGlobalReplicationGroupRequest(input)
return out, req.Send()
}
-// ListAllowedNodeTypeModificationsWithContext is the same as ListAllowedNodeTypeModifications with the addition of
+// FailoverGlobalReplicationGroupWithContext is the same as FailoverGlobalReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See ListAllowedNodeTypeModifications for details on how to use this API operation.
+// See FailoverGlobalReplicationGroup 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 *ElastiCache) ListAllowedNodeTypeModificationsWithContext(ctx aws.Context, input *ListAllowedNodeTypeModificationsInput, opts ...request.Option) (*ListAllowedNodeTypeModificationsOutput, error) {
- req, out := c.ListAllowedNodeTypeModificationsRequest(input)
+func (c *ElastiCache) FailoverGlobalReplicationGroupWithContext(ctx aws.Context, input *FailoverGlobalReplicationGroupInput, opts ...request.Option) (*FailoverGlobalReplicationGroupOutput, error) {
+ req, out := c.FailoverGlobalReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opListTagsForResource = "ListTagsForResource"
+const opIncreaseNodeGroupsInGlobalReplicationGroup = "IncreaseNodeGroupsInGlobalReplicationGroup"
-// ListTagsForResourceRequest generates a "aws/request.Request" representing the
-// client's request for the ListTagsForResource operation. The "output" return
+// IncreaseNodeGroupsInGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the IncreaseNodeGroupsInGlobalReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListTagsForResource for more information on using the ListTagsForResource
+// See IncreaseNodeGroupsInGlobalReplicationGroup for more information on using the IncreaseNodeGroupsInGlobalReplicationGroup
// 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 ListTagsForResourceRequest method.
-// req, resp := client.ListTagsForResourceRequest(params)
+// // Example sending a request using the IncreaseNodeGroupsInGlobalReplicationGroupRequest method.
+// req, resp := client.IncreaseNodeGroupsInGlobalReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource
-func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *TagListMessage) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseNodeGroupsInGlobalReplicationGroup
+func (c *ElastiCache) IncreaseNodeGroupsInGlobalReplicationGroupRequest(input *IncreaseNodeGroupsInGlobalReplicationGroupInput) (req *request.Request, output *IncreaseNodeGroupsInGlobalReplicationGroupOutput) {
op := &request.Operation{
- Name: opListTagsForResource,
+ Name: opIncreaseNodeGroupsInGlobalReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ListTagsForResourceInput{}
+ input = &IncreaseNodeGroupsInGlobalReplicationGroupInput{}
}
- output = &TagListMessage{}
+ output = &IncreaseNodeGroupsInGlobalReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListTagsForResource API operation for Amazon ElastiCache.
+// IncreaseNodeGroupsInGlobalReplicationGroup API operation for Amazon ElastiCache.
//
-// Lists all cost allocation tags currently on the named resource. A cost allocation
-// tag is a key-value pair where the key is case-sensitive and the value is
-// optional. You can use cost allocation tags to categorize and track your AWS
-// costs.
-//
-// If the cluster is not in the available state, ListTagsForResource returns
-// an error.
-//
-// You can have a maximum of 50 cost allocation tags on an ElastiCache resource.
-// For more information, see Monitoring Costs with Tags (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html).
+// Increase the number of node groups in the Global Datastore
//
// 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 ElastiCache's
-// API operation ListTagsForResource for usage and error information.
+// API operation IncreaseNodeGroupsInGlobalReplicationGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
-// The requested cluster ID does not refer to an existing cluster.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
-// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault"
-// The requested snapshot name does not refer to an existing snapshot.
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
//
-// * ErrCodeInvalidARNFault "InvalidARN"
-// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource
-func (c *ElastiCache) ListTagsForResource(input *ListTagsForResourceInput) (*TagListMessage, error) {
- req, out := c.ListTagsForResourceRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseNodeGroupsInGlobalReplicationGroup
+func (c *ElastiCache) IncreaseNodeGroupsInGlobalReplicationGroup(input *IncreaseNodeGroupsInGlobalReplicationGroupInput) (*IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
+ req, out := c.IncreaseNodeGroupsInGlobalReplicationGroupRequest(input)
return out, req.Send()
}
-// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// IncreaseNodeGroupsInGlobalReplicationGroupWithContext is the same as IncreaseNodeGroupsInGlobalReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See ListTagsForResource for details on how to use this API operation.
+// See IncreaseNodeGroupsInGlobalReplicationGroup 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 *ElastiCache) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*TagListMessage, error) {
- req, out := c.ListTagsForResourceRequest(input)
+func (c *ElastiCache) IncreaseNodeGroupsInGlobalReplicationGroupWithContext(ctx aws.Context, input *IncreaseNodeGroupsInGlobalReplicationGroupInput, opts ...request.Option) (*IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
+ req, out := c.IncreaseNodeGroupsInGlobalReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opModifyCacheCluster = "ModifyCacheCluster"
+const opIncreaseReplicaCount = "IncreaseReplicaCount"
-// ModifyCacheClusterRequest generates a "aws/request.Request" representing the
-// client's request for the ModifyCacheCluster operation. The "output" return
+// IncreaseReplicaCountRequest generates a "aws/request.Request" representing the
+// client's request for the IncreaseReplicaCount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ModifyCacheCluster for more information on using the ModifyCacheCluster
+// See IncreaseReplicaCount for more information on using the IncreaseReplicaCount
// 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 ModifyCacheClusterRequest method.
-// req, resp := client.ModifyCacheClusterRequest(params)
+// // Example sending a request using the IncreaseReplicaCountRequest method.
+// req, resp := client.IncreaseReplicaCountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster
-func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) (req *request.Request, output *ModifyCacheClusterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount
+func (c *ElastiCache) IncreaseReplicaCountRequest(input *IncreaseReplicaCountInput) (req *request.Request, output *IncreaseReplicaCountOutput) {
op := &request.Operation{
- Name: opModifyCacheCluster,
+ Name: opIncreaseReplicaCount,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ModifyCacheClusterInput{}
+ input = &IncreaseReplicaCountInput{}
}
- output = &ModifyCacheClusterOutput{}
+ output = &IncreaseReplicaCountOutput{}
req = c.newRequest(op, input, output)
return
}
-// ModifyCacheCluster API operation for Amazon ElastiCache.
+// IncreaseReplicaCount API operation for Amazon ElastiCache.
//
-// Modifies the settings for a cluster. You can use this operation to change
-// one or more cluster configuration parameters by specifying the parameters
-// and the new values.
+// Dynamically increases the number of replics in a Redis (cluster mode disabled)
+// replication group or the number of replica nodes in one or more node groups
+// (shards) of a Redis (cluster mode enabled) replication group. This operation
+// is performed with no cluster down time.
//
// 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 ElastiCache's
-// API operation ModifyCacheCluster for usage and error information.
+// API operation IncreaseReplicaCount for usage and error information.
//
// Returned Error Codes:
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
// The requested cluster is not in the available state.
//
-// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState"
-// The current state of the cache security group does not allow deletion.
+// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
+// The VPC network is in an invalid state.
//
// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity"
// The requested cache node type is not available in the specified Availability
// Zone. For more information, see InsufficientCacheClusterCapacity (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY)
// in the ElastiCache User Guide.
//
-// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
-// The requested cluster ID does not refer to an existing cluster.
-//
-// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded"
+// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded"
// The request cannot be processed because it would exceed the allowed number
-// of cache nodes in a single cluster.
+// of clusters per customer.
+//
+// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded"
+// The request cannot be processed because it would exceed the maximum allowed
+// number of node groups (shards) in a single replication group. The default
+// maximum is 90
//
// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded"
// The request cannot be processed because it would exceed the allowed number
// of cache nodes per customer.
//
-// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound"
-// The requested cache security group name does not refer to an existing cache
-// security group.
-//
-// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
-// The requested cache parameter group name does not refer to an existing cache
-// parameter group.
+// * ErrCodeNoOperationFault "NoOperationFault"
+// The operation was not performed because no changes were required.
//
-// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
-// The VPC network is in an invalid state.
+// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
+// The KMS key supplied is not valid.
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -4460,282 +4861,271 @@ func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput)
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster
-func (c *ElastiCache) ModifyCacheCluster(input *ModifyCacheClusterInput) (*ModifyCacheClusterOutput, error) {
- req, out := c.ModifyCacheClusterRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount
+func (c *ElastiCache) IncreaseReplicaCount(input *IncreaseReplicaCountInput) (*IncreaseReplicaCountOutput, error) {
+ req, out := c.IncreaseReplicaCountRequest(input)
return out, req.Send()
}
-// ModifyCacheClusterWithContext is the same as ModifyCacheCluster with the addition of
+// IncreaseReplicaCountWithContext is the same as IncreaseReplicaCount with the addition of
// the ability to pass a context and additional request options.
//
-// See ModifyCacheCluster for details on how to use this API operation.
+// See IncreaseReplicaCount 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 *ElastiCache) ModifyCacheClusterWithContext(ctx aws.Context, input *ModifyCacheClusterInput, opts ...request.Option) (*ModifyCacheClusterOutput, error) {
- req, out := c.ModifyCacheClusterRequest(input)
+func (c *ElastiCache) IncreaseReplicaCountWithContext(ctx aws.Context, input *IncreaseReplicaCountInput, opts ...request.Option) (*IncreaseReplicaCountOutput, error) {
+ req, out := c.IncreaseReplicaCountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opModifyCacheParameterGroup = "ModifyCacheParameterGroup"
+const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications"
-// ModifyCacheParameterGroupRequest generates a "aws/request.Request" representing the
-// client's request for the ModifyCacheParameterGroup operation. The "output" return
+// ListAllowedNodeTypeModificationsRequest generates a "aws/request.Request" representing the
+// client's request for the ListAllowedNodeTypeModifications operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ModifyCacheParameterGroup for more information on using the ModifyCacheParameterGroup
+// See ListAllowedNodeTypeModifications for more information on using the ListAllowedNodeTypeModifications
// 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 ModifyCacheParameterGroupRequest method.
-// req, resp := client.ModifyCacheParameterGroupRequest(params)
+// // Example sending a request using the ListAllowedNodeTypeModificationsRequest method.
+// req, resp := client.ListAllowedNodeTypeModificationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup
-func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications
+func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowedNodeTypeModificationsInput) (req *request.Request, output *ListAllowedNodeTypeModificationsOutput) {
op := &request.Operation{
- Name: opModifyCacheParameterGroup,
+ Name: opListAllowedNodeTypeModifications,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ModifyCacheParameterGroupInput{}
+ input = &ListAllowedNodeTypeModificationsInput{}
}
- output = &CacheParameterGroupNameMessage{}
+ output = &ListAllowedNodeTypeModificationsOutput{}
req = c.newRequest(op, input, output)
return
}
-// ModifyCacheParameterGroup API operation for Amazon ElastiCache.
+// ListAllowedNodeTypeModifications API operation for Amazon ElastiCache.
//
-// Modifies the parameters of a cache parameter group. You can modify up to
-// 20 parameters in a single request by submitting a list parameter name and
-// value pairs.
+// Lists all available node types that you can scale your Redis cluster's or
+// replication group's current node type.
+//
+// When you use the ModifyCacheCluster or ModifyReplicationGroup operations
+// to scale your cluster or replication group, the value of the CacheNodeType
+// parameter must be one of the node types returned by this operation.
//
// 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 ElastiCache's
-// API operation ModifyCacheParameterGroup for usage and error information.
+// API operation ListAllowedNodeTypeModifications for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
-// The requested cache parameter group name does not refer to an existing cache
-// parameter group.
-//
-// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState"
-// The current state of the cache parameter group does not allow the requested
-// operation to occur.
+// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
+// The requested cluster ID does not refer to an existing cluster.
//
-// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
-// The value for a parameter is invalid.
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
//
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup
-func (c *ElastiCache) ModifyCacheParameterGroup(input *ModifyCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) {
- req, out := c.ModifyCacheParameterGroupRequest(input)
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications
+func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) {
+ req, out := c.ListAllowedNodeTypeModificationsRequest(input)
return out, req.Send()
}
-// ModifyCacheParameterGroupWithContext is the same as ModifyCacheParameterGroup with the addition of
+// ListAllowedNodeTypeModificationsWithContext is the same as ListAllowedNodeTypeModifications with the addition of
// the ability to pass a context and additional request options.
//
-// See ModifyCacheParameterGroup for details on how to use this API operation.
+// See ListAllowedNodeTypeModifications 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 *ElastiCache) ModifyCacheParameterGroupWithContext(ctx aws.Context, input *ModifyCacheParameterGroupInput, opts ...request.Option) (*CacheParameterGroupNameMessage, error) {
- req, out := c.ModifyCacheParameterGroupRequest(input)
+func (c *ElastiCache) ListAllowedNodeTypeModificationsWithContext(ctx aws.Context, input *ListAllowedNodeTypeModificationsInput, opts ...request.Option) (*ListAllowedNodeTypeModificationsOutput, error) {
+ req, out := c.ListAllowedNodeTypeModificationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opModifyCacheSubnetGroup = "ModifyCacheSubnetGroup"
+const opListTagsForResource = "ListTagsForResource"
-// ModifyCacheSubnetGroupRequest generates a "aws/request.Request" representing the
-// client's request for the ModifyCacheSubnetGroup operation. The "output" return
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ModifyCacheSubnetGroup for more information on using the ModifyCacheSubnetGroup
+// See ListTagsForResource for more information on using the ListTagsForResource
// 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 ModifyCacheSubnetGroupRequest method.
-// req, resp := client.ModifyCacheSubnetGroupRequest(params)
+// // Example sending a request using the ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup
-func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGroupInput) (req *request.Request, output *ModifyCacheSubnetGroupOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource
+func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *TagListMessage) {
op := &request.Operation{
- Name: opModifyCacheSubnetGroup,
+ Name: opListTagsForResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ModifyCacheSubnetGroupInput{}
+ input = &ListTagsForResourceInput{}
}
- output = &ModifyCacheSubnetGroupOutput{}
+ output = &TagListMessage{}
req = c.newRequest(op, input, output)
return
}
-// ModifyCacheSubnetGroup API operation for Amazon ElastiCache.
+// ListTagsForResource API operation for Amazon ElastiCache.
//
-// Modifies an existing cache subnet group.
+// Lists all cost allocation tags currently on the named resource. A cost allocation
+// tag is a key-value pair where the key is case-sensitive and the value is
+// optional. You can use cost allocation tags to categorize and track your AWS
+// costs.
+//
+// If the cluster is not in the available state, ListTagsForResource returns
+// an error.
+//
+// You can have a maximum of 50 cost allocation tags on an ElastiCache resource.
+// For more information, see Monitoring Costs with Tags (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html).
//
// 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 ElastiCache's
-// API operation ModifyCacheSubnetGroup for usage and error information.
+// API operation ListTagsForResource for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault"
-// The requested cache subnet group name does not refer to an existing cache
-// subnet group.
-//
-// * ErrCodeCacheSubnetQuotaExceededFault "CacheSubnetQuotaExceededFault"
-// The request cannot be processed because it would exceed the allowed number
-// of subnets in a cache subnet group.
+// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
+// The requested cluster ID does not refer to an existing cluster.
//
-// * ErrCodeSubnetInUse "SubnetInUse"
-// The requested subnet is being used by another cache subnet group.
+// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault"
+// The requested snapshot name does not refer to an existing snapshot.
//
-// * ErrCodeInvalidSubnet "InvalidSubnet"
-// An invalid subnet identifier was specified.
+// * ErrCodeInvalidARNFault "InvalidARN"
+// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup
-func (c *ElastiCache) ModifyCacheSubnetGroup(input *ModifyCacheSubnetGroupInput) (*ModifyCacheSubnetGroupOutput, error) {
- req, out := c.ModifyCacheSubnetGroupRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource
+func (c *ElastiCache) ListTagsForResource(input *ListTagsForResourceInput) (*TagListMessage, error) {
+ req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
-// ModifyCacheSubnetGroupWithContext is the same as ModifyCacheSubnetGroup with the addition of
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
-// See ModifyCacheSubnetGroup for details on how to use this API operation.
+// See ListTagsForResource 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 *ElastiCache) ModifyCacheSubnetGroupWithContext(ctx aws.Context, input *ModifyCacheSubnetGroupInput, opts ...request.Option) (*ModifyCacheSubnetGroupOutput, error) {
- req, out := c.ModifyCacheSubnetGroupRequest(input)
+func (c *ElastiCache) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*TagListMessage, error) {
+ req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opModifyReplicationGroup = "ModifyReplicationGroup"
+const opModifyCacheCluster = "ModifyCacheCluster"
-// ModifyReplicationGroupRequest generates a "aws/request.Request" representing the
-// client's request for the ModifyReplicationGroup operation. The "output" return
+// ModifyCacheClusterRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyCacheCluster operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ModifyReplicationGroup for more information on using the ModifyReplicationGroup
+// See ModifyCacheCluster for more information on using the ModifyCacheCluster
// 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 ModifyReplicationGroupRequest method.
-// req, resp := client.ModifyReplicationGroupRequest(params)
+// // Example sending a request using the ModifyCacheClusterRequest method.
+// req, resp := client.ModifyCacheClusterRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup
-func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGroupInput) (req *request.Request, output *ModifyReplicationGroupOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster
+func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) (req *request.Request, output *ModifyCacheClusterOutput) {
op := &request.Operation{
- Name: opModifyReplicationGroup,
+ Name: opModifyCacheCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ModifyReplicationGroupInput{}
+ input = &ModifyCacheClusterInput{}
}
- output = &ModifyReplicationGroupOutput{}
+ output = &ModifyCacheClusterOutput{}
req = c.newRequest(op, input, output)
return
}
-// ModifyReplicationGroup API operation for Amazon ElastiCache.
-//
-// Modifies the settings for a replication group.
-//
-// For Redis (cluster mode enabled) clusters, this operation cannot be used
-// to change a cluster's node type or engine version. For more information,
-// see:
-//
-// * Scaling for Amazon ElastiCache for Redis (cluster mode enabled) (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/scaling-redis-cluster-mode-enabled.html)
-// in the ElastiCache User Guide
-//
-// * ModifyReplicationGroupShardConfiguration (https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html)
-// in the ElastiCache API Reference
+// ModifyCacheCluster API operation for Amazon ElastiCache.
//
-// This operation is valid for Redis only.
+// Modifies the settings for a cluster. You can use this operation to change
+// one or more cluster configuration parameters by specifying the parameters
+// and the new values.
//
// 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 ElastiCache's
-// API operation ModifyReplicationGroup for usage and error information.
+// API operation ModifyCacheCluster for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
-//
-// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
-// The requested replication group is not in the available state.
-//
// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
// The requested cluster is not in the available state.
//
@@ -4769,120 +5159,97 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou
// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
// The VPC network is in an invalid state.
//
-// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
-// The KMS key supplied is not valid.
-//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
//
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup
-func (c *ElastiCache) ModifyReplicationGroup(input *ModifyReplicationGroupInput) (*ModifyReplicationGroupOutput, error) {
- req, out := c.ModifyReplicationGroupRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster
+func (c *ElastiCache) ModifyCacheCluster(input *ModifyCacheClusterInput) (*ModifyCacheClusterOutput, error) {
+ req, out := c.ModifyCacheClusterRequest(input)
return out, req.Send()
}
-// ModifyReplicationGroupWithContext is the same as ModifyReplicationGroup with the addition of
+// ModifyCacheClusterWithContext is the same as ModifyCacheCluster with the addition of
// the ability to pass a context and additional request options.
//
-// See ModifyReplicationGroup for details on how to use this API operation.
+// See ModifyCacheCluster 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 *ElastiCache) ModifyReplicationGroupWithContext(ctx aws.Context, input *ModifyReplicationGroupInput, opts ...request.Option) (*ModifyReplicationGroupOutput, error) {
- req, out := c.ModifyReplicationGroupRequest(input)
+func (c *ElastiCache) ModifyCacheClusterWithContext(ctx aws.Context, input *ModifyCacheClusterInput, opts ...request.Option) (*ModifyCacheClusterOutput, error) {
+ req, out := c.ModifyCacheClusterRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opModifyReplicationGroupShardConfiguration = "ModifyReplicationGroupShardConfiguration"
+const opModifyCacheParameterGroup = "ModifyCacheParameterGroup"
-// ModifyReplicationGroupShardConfigurationRequest generates a "aws/request.Request" representing the
-// client's request for the ModifyReplicationGroupShardConfiguration operation. The "output" return
+// ModifyCacheParameterGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyCacheParameterGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ModifyReplicationGroupShardConfiguration for more information on using the ModifyReplicationGroupShardConfiguration
+// See ModifyCacheParameterGroup for more information on using the ModifyCacheParameterGroup
// 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 ModifyReplicationGroupShardConfigurationRequest method.
-// req, resp := client.ModifyReplicationGroupShardConfigurationRequest(params)
+// // Example sending a request using the ModifyCacheParameterGroupRequest method.
+// req, resp := client.ModifyCacheParameterGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration
-func (c *ElastiCache) ModifyReplicationGroupShardConfigurationRequest(input *ModifyReplicationGroupShardConfigurationInput) (req *request.Request, output *ModifyReplicationGroupShardConfigurationOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup
+func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) {
op := &request.Operation{
- Name: opModifyReplicationGroupShardConfiguration,
+ Name: opModifyCacheParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ModifyReplicationGroupShardConfigurationInput{}
+ input = &ModifyCacheParameterGroupInput{}
}
- output = &ModifyReplicationGroupShardConfigurationOutput{}
+ output = &CacheParameterGroupNameMessage{}
req = c.newRequest(op, input, output)
return
}
-// ModifyReplicationGroupShardConfiguration API operation for Amazon ElastiCache.
+// ModifyCacheParameterGroup API operation for Amazon ElastiCache.
//
-// Modifies a replication group's shards (node groups) by allowing you to add
-// shards, remove shards, or rebalance the keyspaces among exisiting shards.
+// Modifies the parameters of a cache parameter group. You can modify up to
+// 20 parameters in a single request by submitting a list parameter name and
+// value pairs.
//
// 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 ElastiCache's
-// API operation ModifyReplicationGroupShardConfiguration for usage and error information.
+// API operation ModifyCacheParameterGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
-//
-// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
-// The requested replication group is not in the available state.
-//
-// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
-// The requested cluster is not in the available state.
-//
-// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
-// The VPC network is in an invalid state.
-//
-// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity"
-// The requested cache node type is not available in the specified Availability
-// Zone. For more information, see InsufficientCacheClusterCapacity (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY)
-// in the ElastiCache User Guide.
-//
-// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded"
-// The request cannot be processed because it would exceed the maximum allowed
-// number of node groups (shards) in a single replication group. The default
-// maximum is 90
-//
-// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded"
-// The request cannot be processed because it would exceed the allowed number
-// of cache nodes per customer.
+// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
+// The requested cache parameter group name does not refer to an existing cache
+// parameter group.
//
-// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
-// The KMS key supplied is not valid.
+// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState"
+// The current state of the cache parameter group does not allow the requested
+// operation to occur.
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -4890,370 +5257,425 @@ func (c *ElastiCache) ModifyReplicationGroupShardConfigurationRequest(input *Mod
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration
-func (c *ElastiCache) ModifyReplicationGroupShardConfiguration(input *ModifyReplicationGroupShardConfigurationInput) (*ModifyReplicationGroupShardConfigurationOutput, error) {
- req, out := c.ModifyReplicationGroupShardConfigurationRequest(input)
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup
+func (c *ElastiCache) ModifyCacheParameterGroup(input *ModifyCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) {
+ req, out := c.ModifyCacheParameterGroupRequest(input)
return out, req.Send()
}
-// ModifyReplicationGroupShardConfigurationWithContext is the same as ModifyReplicationGroupShardConfiguration with the addition of
+// ModifyCacheParameterGroupWithContext is the same as ModifyCacheParameterGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See ModifyReplicationGroupShardConfiguration for details on how to use this API operation.
+// See ModifyCacheParameterGroup 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 *ElastiCache) ModifyReplicationGroupShardConfigurationWithContext(ctx aws.Context, input *ModifyReplicationGroupShardConfigurationInput, opts ...request.Option) (*ModifyReplicationGroupShardConfigurationOutput, error) {
- req, out := c.ModifyReplicationGroupShardConfigurationRequest(input)
+func (c *ElastiCache) ModifyCacheParameterGroupWithContext(ctx aws.Context, input *ModifyCacheParameterGroupInput, opts ...request.Option) (*CacheParameterGroupNameMessage, error) {
+ req, out := c.ModifyCacheParameterGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPurchaseReservedCacheNodesOffering = "PurchaseReservedCacheNodesOffering"
+const opModifyCacheSubnetGroup = "ModifyCacheSubnetGroup"
-// PurchaseReservedCacheNodesOfferingRequest generates a "aws/request.Request" representing the
-// client's request for the PurchaseReservedCacheNodesOffering operation. The "output" return
+// ModifyCacheSubnetGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyCacheSubnetGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PurchaseReservedCacheNodesOffering for more information on using the PurchaseReservedCacheNodesOffering
+// See ModifyCacheSubnetGroup for more information on using the ModifyCacheSubnetGroup
// 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 PurchaseReservedCacheNodesOfferingRequest method.
-// req, resp := client.PurchaseReservedCacheNodesOfferingRequest(params)
+// // Example sending a request using the ModifyCacheSubnetGroupRequest method.
+// req, resp := client.ModifyCacheSubnetGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering
-func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseReservedCacheNodesOfferingInput) (req *request.Request, output *PurchaseReservedCacheNodesOfferingOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup
+func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGroupInput) (req *request.Request, output *ModifyCacheSubnetGroupOutput) {
op := &request.Operation{
- Name: opPurchaseReservedCacheNodesOffering,
+ Name: opModifyCacheSubnetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PurchaseReservedCacheNodesOfferingInput{}
+ input = &ModifyCacheSubnetGroupInput{}
}
- output = &PurchaseReservedCacheNodesOfferingOutput{}
+ output = &ModifyCacheSubnetGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// PurchaseReservedCacheNodesOffering API operation for Amazon ElastiCache.
+// ModifyCacheSubnetGroup API operation for Amazon ElastiCache.
//
-// Allows you to purchase a reserved cache node offering.
+// Modifies an existing cache subnet group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon ElastiCache's
-// API operation PurchaseReservedCacheNodesOffering for usage and error information.
+// API operation ModifyCacheSubnetGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReservedCacheNodesOfferingNotFoundFault "ReservedCacheNodesOfferingNotFound"
-// The requested cache node offering does not exist.
-//
-// * ErrCodeReservedCacheNodeAlreadyExistsFault "ReservedCacheNodeAlreadyExists"
-// You already have a reservation with the given identifier.
+// * ErrCodeCacheSubnetGroupNotFoundFault "CacheSubnetGroupNotFoundFault"
+// The requested cache subnet group name does not refer to an existing cache
+// subnet group.
//
-// * ErrCodeReservedCacheNodeQuotaExceededFault "ReservedCacheNodeQuotaExceeded"
-// The request cannot be processed because it would exceed the user's cache
-// node quota.
+// * ErrCodeCacheSubnetQuotaExceededFault "CacheSubnetQuotaExceededFault"
+// The request cannot be processed because it would exceed the allowed number
+// of subnets in a cache subnet group.
//
-// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
-// The value for a parameter is invalid.
+// * ErrCodeSubnetInUse "SubnetInUse"
+// The requested subnet is being used by another cache subnet group.
//
-// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
-// Two or more incompatible parameters were specified.
+// * ErrCodeInvalidSubnet "InvalidSubnet"
+// An invalid subnet identifier was specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering
-func (c *ElastiCache) PurchaseReservedCacheNodesOffering(input *PurchaseReservedCacheNodesOfferingInput) (*PurchaseReservedCacheNodesOfferingOutput, error) {
- req, out := c.PurchaseReservedCacheNodesOfferingRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup
+func (c *ElastiCache) ModifyCacheSubnetGroup(input *ModifyCacheSubnetGroupInput) (*ModifyCacheSubnetGroupOutput, error) {
+ req, out := c.ModifyCacheSubnetGroupRequest(input)
return out, req.Send()
}
-// PurchaseReservedCacheNodesOfferingWithContext is the same as PurchaseReservedCacheNodesOffering with the addition of
+// ModifyCacheSubnetGroupWithContext is the same as ModifyCacheSubnetGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See PurchaseReservedCacheNodesOffering for details on how to use this API operation.
+// See ModifyCacheSubnetGroup 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 *ElastiCache) PurchaseReservedCacheNodesOfferingWithContext(ctx aws.Context, input *PurchaseReservedCacheNodesOfferingInput, opts ...request.Option) (*PurchaseReservedCacheNodesOfferingOutput, error) {
- req, out := c.PurchaseReservedCacheNodesOfferingRequest(input)
+func (c *ElastiCache) ModifyCacheSubnetGroupWithContext(ctx aws.Context, input *ModifyCacheSubnetGroupInput, opts ...request.Option) (*ModifyCacheSubnetGroupOutput, error) {
+ req, out := c.ModifyCacheSubnetGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opRebootCacheCluster = "RebootCacheCluster"
+const opModifyGlobalReplicationGroup = "ModifyGlobalReplicationGroup"
-// RebootCacheClusterRequest generates a "aws/request.Request" representing the
-// client's request for the RebootCacheCluster operation. The "output" return
+// ModifyGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyGlobalReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See RebootCacheCluster for more information on using the RebootCacheCluster
+// See ModifyGlobalReplicationGroup for more information on using the ModifyGlobalReplicationGroup
// 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 RebootCacheClusterRequest method.
-// req, resp := client.RebootCacheClusterRequest(params)
+// // Example sending a request using the ModifyGlobalReplicationGroupRequest method.
+// req, resp := client.ModifyGlobalReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster
-func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) (req *request.Request, output *RebootCacheClusterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyGlobalReplicationGroup
+func (c *ElastiCache) ModifyGlobalReplicationGroupRequest(input *ModifyGlobalReplicationGroupInput) (req *request.Request, output *ModifyGlobalReplicationGroupOutput) {
op := &request.Operation{
- Name: opRebootCacheCluster,
+ Name: opModifyGlobalReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &RebootCacheClusterInput{}
+ input = &ModifyGlobalReplicationGroupInput{}
}
- output = &RebootCacheClusterOutput{}
+ output = &ModifyGlobalReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// RebootCacheCluster API operation for Amazon ElastiCache.
-//
-// Reboots some, or all, of the cache nodes within a provisioned cluster. This
-// operation applies any modified cache parameter groups to the cluster. The
-// reboot operation takes place as soon as possible, and results in a momentary
-// outage to the cluster. During the reboot, the cluster status is set to REBOOTING.
-//
-// The reboot causes the contents of the cache (for each cache node being rebooted)
-// to be lost.
-//
-// When the reboot is complete, a cluster event is created.
-//
-// Rebooting a cluster is currently supported on Memcached and Redis (cluster
-// mode disabled) clusters. Rebooting is not supported on Redis (cluster mode
-// enabled) clusters.
+// ModifyGlobalReplicationGroup API operation for Amazon ElastiCache.
//
-// If you make changes to parameters that require a Redis (cluster mode enabled)
-// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html)
-// for an alternate process.
+// Modifies the settings for a Global Datastore.
//
// 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 ElastiCache's
-// API operation RebootCacheCluster for usage and error information.
+// API operation ModifyGlobalReplicationGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
-// The requested cluster is not in the available state.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
-// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
-// The requested cluster ID does not refer to an existing cluster.
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster
-func (c *ElastiCache) RebootCacheCluster(input *RebootCacheClusterInput) (*RebootCacheClusterOutput, error) {
- req, out := c.RebootCacheClusterRequest(input)
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyGlobalReplicationGroup
+func (c *ElastiCache) ModifyGlobalReplicationGroup(input *ModifyGlobalReplicationGroupInput) (*ModifyGlobalReplicationGroupOutput, error) {
+ req, out := c.ModifyGlobalReplicationGroupRequest(input)
return out, req.Send()
}
-// RebootCacheClusterWithContext is the same as RebootCacheCluster with the addition of
+// ModifyGlobalReplicationGroupWithContext is the same as ModifyGlobalReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See RebootCacheCluster for details on how to use this API operation.
+// See ModifyGlobalReplicationGroup 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 *ElastiCache) RebootCacheClusterWithContext(ctx aws.Context, input *RebootCacheClusterInput, opts ...request.Option) (*RebootCacheClusterOutput, error) {
- req, out := c.RebootCacheClusterRequest(input)
+func (c *ElastiCache) ModifyGlobalReplicationGroupWithContext(ctx aws.Context, input *ModifyGlobalReplicationGroupInput, opts ...request.Option) (*ModifyGlobalReplicationGroupOutput, error) {
+ req, out := c.ModifyGlobalReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opRemoveTagsFromResource = "RemoveTagsFromResource"
+const opModifyReplicationGroup = "ModifyReplicationGroup"
-// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
-// client's request for the RemoveTagsFromResource operation. The "output" return
+// ModifyReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
+// See ModifyReplicationGroup for more information on using the ModifyReplicationGroup
// 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 RemoveTagsFromResourceRequest method.
-// req, resp := client.RemoveTagsFromResourceRequest(params)
+// // Example sending a request using the ModifyReplicationGroupRequest method.
+// req, resp := client.ModifyReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource
-func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *TagListMessage) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup
+func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGroupInput) (req *request.Request, output *ModifyReplicationGroupOutput) {
op := &request.Operation{
- Name: opRemoveTagsFromResource,
+ Name: opModifyReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &RemoveTagsFromResourceInput{}
+ input = &ModifyReplicationGroupInput{}
}
- output = &TagListMessage{}
+ output = &ModifyReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// RemoveTagsFromResource API operation for Amazon ElastiCache.
+// ModifyReplicationGroup API operation for Amazon ElastiCache.
//
-// Removes the tags identified by the TagKeys list from the named resource.
+// Modifies the settings for a replication group.
+//
+// For Redis (cluster mode enabled) clusters, this operation cannot be used
+// to change a cluster's node type or engine version. For more information,
+// see:
+//
+// * Scaling for Amazon ElastiCache for Redis (cluster mode enabled) (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/scaling-redis-cluster-mode-enabled.html)
+// in the ElastiCache User Guide
+//
+// * ModifyReplicationGroupShardConfiguration (https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html)
+// in the ElastiCache API Reference
+//
+// This operation is valid for Redis only.
//
// 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 ElastiCache's
-// API operation RemoveTagsFromResource for usage and error information.
+// API operation ModifyReplicationGroup for usage and error information.
//
// Returned Error Codes:
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
+// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
+// The requested cluster is not in the available state.
+//
+// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState"
+// The current state of the cache security group does not allow deletion.
+//
+// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity"
+// The requested cache node type is not available in the specified Availability
+// Zone. For more information, see InsufficientCacheClusterCapacity (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY)
+// in the ElastiCache User Guide.
+//
// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
// The requested cluster ID does not refer to an existing cluster.
//
-// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault"
-// The requested snapshot name does not refer to an existing snapshot.
+// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceeded"
+// The request cannot be processed because it would exceed the allowed number
+// of cache nodes in a single cluster.
//
-// * ErrCodeInvalidARNFault "InvalidARN"
-// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
+// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded"
+// The request cannot be processed because it would exceed the allowed number
+// of cache nodes per customer.
//
-// * ErrCodeTagNotFoundFault "TagNotFound"
-// The requested tag was not found on this resource.
+// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound"
+// The requested cache security group name does not refer to an existing cache
+// security group.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource
-func (c *ElastiCache) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*TagListMessage, error) {
- req, out := c.RemoveTagsFromResourceRequest(input)
+// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
+// The requested cache parameter group name does not refer to an existing cache
+// parameter group.
+//
+// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
+// The VPC network is in an invalid state.
+//
+// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
+// The KMS key supplied is not valid.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup
+func (c *ElastiCache) ModifyReplicationGroup(input *ModifyReplicationGroupInput) (*ModifyReplicationGroupOutput, error) {
+ req, out := c.ModifyReplicationGroupRequest(input)
return out, req.Send()
}
-// RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
+// ModifyReplicationGroupWithContext is the same as ModifyReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See RemoveTagsFromResource for details on how to use this API operation.
+// See ModifyReplicationGroup 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 *ElastiCache) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*TagListMessage, error) {
- req, out := c.RemoveTagsFromResourceRequest(input)
+func (c *ElastiCache) ModifyReplicationGroupWithContext(ctx aws.Context, input *ModifyReplicationGroupInput, opts ...request.Option) (*ModifyReplicationGroupOutput, error) {
+ req, out := c.ModifyReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opResetCacheParameterGroup = "ResetCacheParameterGroup"
+const opModifyReplicationGroupShardConfiguration = "ModifyReplicationGroupShardConfiguration"
-// ResetCacheParameterGroupRequest generates a "aws/request.Request" representing the
-// client's request for the ResetCacheParameterGroup operation. The "output" return
+// ModifyReplicationGroupShardConfigurationRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyReplicationGroupShardConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ResetCacheParameterGroup for more information on using the ResetCacheParameterGroup
+// See ModifyReplicationGroupShardConfiguration for more information on using the ModifyReplicationGroupShardConfiguration
// 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 ResetCacheParameterGroupRequest method.
-// req, resp := client.ResetCacheParameterGroupRequest(params)
+// // Example sending a request using the ModifyReplicationGroupShardConfigurationRequest method.
+// req, resp := client.ModifyReplicationGroupShardConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup
-func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration
+func (c *ElastiCache) ModifyReplicationGroupShardConfigurationRequest(input *ModifyReplicationGroupShardConfigurationInput) (req *request.Request, output *ModifyReplicationGroupShardConfigurationOutput) {
op := &request.Operation{
- Name: opResetCacheParameterGroup,
+ Name: opModifyReplicationGroupShardConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ResetCacheParameterGroupInput{}
+ input = &ModifyReplicationGroupShardConfigurationInput{}
}
- output = &CacheParameterGroupNameMessage{}
+ output = &ModifyReplicationGroupShardConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
-// ResetCacheParameterGroup API operation for Amazon ElastiCache.
+// ModifyReplicationGroupShardConfiguration API operation for Amazon ElastiCache.
//
-// Modifies the parameters of a cache parameter group to the engine or system
-// default value. You can reset specific parameters by submitting a list of
-// parameter names. To reset the entire cache parameter group, specify the ResetAllParameters
-// and CacheParameterGroupName parameters.
+// Modifies a replication group's shards (node groups) by allowing you to add
+// shards, remove shards, or rebalance the keyspaces among exisiting shards.
//
// 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 ElastiCache's
-// API operation ResetCacheParameterGroup for usage and error information.
+// API operation ModifyReplicationGroupShardConfiguration for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState"
-// The current state of the cache parameter group does not allow the requested
-// operation to occur.
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
//
-// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
-// The requested cache parameter group name does not refer to an existing cache
-// parameter group.
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
+// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
+// The requested cluster is not in the available state.
+//
+// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
+// The VPC network is in an invalid state.
+//
+// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity"
+// The requested cache node type is not available in the specified Availability
+// Zone. For more information, see InsufficientCacheClusterCapacity (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY)
+// in the ElastiCache User Guide.
+//
+// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded"
+// The request cannot be processed because it would exceed the maximum allowed
+// number of node groups (shards) in a single replication group. The default
+// maximum is 90
+//
+// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded"
+// The request cannot be processed because it would exceed the allowed number
+// of cache nodes per customer.
+//
+// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
+// The KMS key supplied is not valid.
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -5261,93 +5683,91 @@ func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameter
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup
-func (c *ElastiCache) ResetCacheParameterGroup(input *ResetCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) {
- req, out := c.ResetCacheParameterGroupRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration
+func (c *ElastiCache) ModifyReplicationGroupShardConfiguration(input *ModifyReplicationGroupShardConfigurationInput) (*ModifyReplicationGroupShardConfigurationOutput, error) {
+ req, out := c.ModifyReplicationGroupShardConfigurationRequest(input)
return out, req.Send()
}
-// ResetCacheParameterGroupWithContext is the same as ResetCacheParameterGroup with the addition of
+// ModifyReplicationGroupShardConfigurationWithContext is the same as ModifyReplicationGroupShardConfiguration with the addition of
// the ability to pass a context and additional request options.
//
-// See ResetCacheParameterGroup for details on how to use this API operation.
+// See ModifyReplicationGroupShardConfiguration 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 *ElastiCache) ResetCacheParameterGroupWithContext(ctx aws.Context, input *ResetCacheParameterGroupInput, opts ...request.Option) (*CacheParameterGroupNameMessage, error) {
- req, out := c.ResetCacheParameterGroupRequest(input)
+func (c *ElastiCache) ModifyReplicationGroupShardConfigurationWithContext(ctx aws.Context, input *ModifyReplicationGroupShardConfigurationInput, opts ...request.Option) (*ModifyReplicationGroupShardConfigurationOutput, error) {
+ req, out := c.ModifyReplicationGroupShardConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opRevokeCacheSecurityGroupIngress = "RevokeCacheSecurityGroupIngress"
+const opPurchaseReservedCacheNodesOffering = "PurchaseReservedCacheNodesOffering"
-// RevokeCacheSecurityGroupIngressRequest generates a "aws/request.Request" representing the
-// client's request for the RevokeCacheSecurityGroupIngress operation. The "output" return
+// PurchaseReservedCacheNodesOfferingRequest generates a "aws/request.Request" representing the
+// client's request for the PurchaseReservedCacheNodesOffering operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See RevokeCacheSecurityGroupIngress for more information on using the RevokeCacheSecurityGroupIngress
+// See PurchaseReservedCacheNodesOffering for more information on using the PurchaseReservedCacheNodesOffering
// 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 RevokeCacheSecurityGroupIngressRequest method.
-// req, resp := client.RevokeCacheSecurityGroupIngressRequest(params)
+// // Example sending a request using the PurchaseReservedCacheNodesOfferingRequest method.
+// req, resp := client.PurchaseReservedCacheNodesOfferingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress
-func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheSecurityGroupIngressInput) (req *request.Request, output *RevokeCacheSecurityGroupIngressOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering
+func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseReservedCacheNodesOfferingInput) (req *request.Request, output *PurchaseReservedCacheNodesOfferingOutput) {
op := &request.Operation{
- Name: opRevokeCacheSecurityGroupIngress,
+ Name: opPurchaseReservedCacheNodesOffering,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &RevokeCacheSecurityGroupIngressInput{}
+ input = &PurchaseReservedCacheNodesOfferingInput{}
}
- output = &RevokeCacheSecurityGroupIngressOutput{}
+ output = &PurchaseReservedCacheNodesOfferingOutput{}
req = c.newRequest(op, input, output)
return
}
-// RevokeCacheSecurityGroupIngress API operation for Amazon ElastiCache.
+// PurchaseReservedCacheNodesOffering API operation for Amazon ElastiCache.
//
-// Revokes ingress from a cache security group. Use this operation to disallow
-// access from an Amazon EC2 security group that had been previously authorized.
+// Allows you to purchase a reserved cache node offering.
//
// 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 ElastiCache's
-// API operation RevokeCacheSecurityGroupIngress for usage and error information.
+// API operation PurchaseReservedCacheNodesOffering for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound"
-// The requested cache security group name does not refer to an existing cache
-// security group.
+// * ErrCodeReservedCacheNodesOfferingNotFoundFault "ReservedCacheNodesOfferingNotFound"
+// The requested cache node offering does not exist.
//
-// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
-// The specified Amazon EC2 security group is not authorized for the specified
-// cache security group.
+// * ErrCodeReservedCacheNodeAlreadyExistsFault "ReservedCacheNodeAlreadyExists"
+// You already have a reservation with the given identifier.
//
-// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState"
-// The current state of the cache security group does not allow deletion.
+// * ErrCodeReservedCacheNodeQuotaExceededFault "ReservedCacheNodeQuotaExceeded"
+// The request cannot be processed because it would exceed the user's cache
+// node quota.
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
@@ -5355,1659 +5775,2936 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheS
// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
// Two or more incompatible parameters were specified.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress
-func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurityGroupIngressInput) (*RevokeCacheSecurityGroupIngressOutput, error) {
- req, out := c.RevokeCacheSecurityGroupIngressRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering
+func (c *ElastiCache) PurchaseReservedCacheNodesOffering(input *PurchaseReservedCacheNodesOfferingInput) (*PurchaseReservedCacheNodesOfferingOutput, error) {
+ req, out := c.PurchaseReservedCacheNodesOfferingRequest(input)
return out, req.Send()
}
-// RevokeCacheSecurityGroupIngressWithContext is the same as RevokeCacheSecurityGroupIngress with the addition of
+// PurchaseReservedCacheNodesOfferingWithContext is the same as PurchaseReservedCacheNodesOffering with the addition of
// the ability to pass a context and additional request options.
//
-// See RevokeCacheSecurityGroupIngress for details on how to use this API operation.
+// See PurchaseReservedCacheNodesOffering 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 *ElastiCache) RevokeCacheSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeCacheSecurityGroupIngressInput, opts ...request.Option) (*RevokeCacheSecurityGroupIngressOutput, error) {
- req, out := c.RevokeCacheSecurityGroupIngressRequest(input)
+func (c *ElastiCache) PurchaseReservedCacheNodesOfferingWithContext(ctx aws.Context, input *PurchaseReservedCacheNodesOfferingInput, opts ...request.Option) (*PurchaseReservedCacheNodesOfferingOutput, error) {
+ req, out := c.PurchaseReservedCacheNodesOfferingRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opStartMigration = "StartMigration"
+const opRebalanceSlotsInGlobalReplicationGroup = "RebalanceSlotsInGlobalReplicationGroup"
-// StartMigrationRequest generates a "aws/request.Request" representing the
-// client's request for the StartMigration operation. The "output" return
+// RebalanceSlotsInGlobalReplicationGroupRequest generates a "aws/request.Request" representing the
+// client's request for the RebalanceSlotsInGlobalReplicationGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See StartMigration for more information on using the StartMigration
+// See RebalanceSlotsInGlobalReplicationGroup for more information on using the RebalanceSlotsInGlobalReplicationGroup
// 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 StartMigrationRequest method.
-// req, resp := client.StartMigrationRequest(params)
+// // Example sending a request using the RebalanceSlotsInGlobalReplicationGroupRequest method.
+// req, resp := client.RebalanceSlotsInGlobalReplicationGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration
-func (c *ElastiCache) StartMigrationRequest(input *StartMigrationInput) (req *request.Request, output *StartMigrationOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebalanceSlotsInGlobalReplicationGroup
+func (c *ElastiCache) RebalanceSlotsInGlobalReplicationGroupRequest(input *RebalanceSlotsInGlobalReplicationGroupInput) (req *request.Request, output *RebalanceSlotsInGlobalReplicationGroupOutput) {
op := &request.Operation{
- Name: opStartMigration,
+ Name: opRebalanceSlotsInGlobalReplicationGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &StartMigrationInput{}
+ input = &RebalanceSlotsInGlobalReplicationGroupInput{}
}
- output = &StartMigrationOutput{}
+ output = &RebalanceSlotsInGlobalReplicationGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// StartMigration API operation for Amazon ElastiCache.
+// RebalanceSlotsInGlobalReplicationGroup API operation for Amazon ElastiCache.
//
-// Start the migration of data.
+// Redistribute slots to ensure unifirom distribution across existing shards
+// in the cluster.
//
// 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 ElastiCache's
-// API operation StartMigration for usage and error information.
+// API operation RebalanceSlotsInGlobalReplicationGroup for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
-//
-// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
-// The requested replication group is not in the available state.
+// * ErrCodeGlobalReplicationGroupNotFoundFault "GlobalReplicationGroupNotFoundFault"
+// The Global Datastore does not exist
//
-// * ErrCodeReplicationGroupAlreadyUnderMigrationFault "ReplicationGroupAlreadyUnderMigrationFault"
-// The targeted replication group is not available.
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
//
// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
// The value for a parameter is invalid.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration
-func (c *ElastiCache) StartMigration(input *StartMigrationInput) (*StartMigrationOutput, error) {
- req, out := c.StartMigrationRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebalanceSlotsInGlobalReplicationGroup
+func (c *ElastiCache) RebalanceSlotsInGlobalReplicationGroup(input *RebalanceSlotsInGlobalReplicationGroupInput) (*RebalanceSlotsInGlobalReplicationGroupOutput, error) {
+ req, out := c.RebalanceSlotsInGlobalReplicationGroupRequest(input)
return out, req.Send()
}
-// StartMigrationWithContext is the same as StartMigration with the addition of
+// RebalanceSlotsInGlobalReplicationGroupWithContext is the same as RebalanceSlotsInGlobalReplicationGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See StartMigration for details on how to use this API operation.
+// See RebalanceSlotsInGlobalReplicationGroup 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 *ElastiCache) StartMigrationWithContext(ctx aws.Context, input *StartMigrationInput, opts ...request.Option) (*StartMigrationOutput, error) {
- req, out := c.StartMigrationRequest(input)
+func (c *ElastiCache) RebalanceSlotsInGlobalReplicationGroupWithContext(ctx aws.Context, input *RebalanceSlotsInGlobalReplicationGroupInput, opts ...request.Option) (*RebalanceSlotsInGlobalReplicationGroupOutput, error) {
+ req, out := c.RebalanceSlotsInGlobalReplicationGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opTestFailover = "TestFailover"
+const opRebootCacheCluster = "RebootCacheCluster"
-// TestFailoverRequest generates a "aws/request.Request" representing the
-// client's request for the TestFailover operation. The "output" return
+// RebootCacheClusterRequest generates a "aws/request.Request" representing the
+// client's request for the RebootCacheCluster operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See TestFailover for more information on using the TestFailover
+// See RebootCacheCluster for more information on using the RebootCacheCluster
// 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 TestFailoverRequest method.
-// req, resp := client.TestFailoverRequest(params)
-//
+// // Example sending a request using the RebootCacheClusterRequest method.
+// req, resp := client.RebootCacheClusterRequest(params)
+//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover
-func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *request.Request, output *TestFailoverOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster
+func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) (req *request.Request, output *RebootCacheClusterOutput) {
op := &request.Operation{
- Name: opTestFailover,
+ Name: opRebootCacheCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &TestFailoverInput{}
+ input = &RebootCacheClusterInput{}
}
- output = &TestFailoverOutput{}
+ output = &RebootCacheClusterOutput{}
req = c.newRequest(op, input, output)
return
}
-// TestFailover API operation for Amazon ElastiCache.
-//
-// Represents the input of a TestFailover operation which test automatic failover
-// on a specified node group (called shard in the console) in a replication
-// group (called cluster in the console).
-//
-// Note the following
+// RebootCacheCluster API operation for Amazon ElastiCache.
//
-// * A customer can use this operation to test automatic failover on up to
-// 5 shards (called node groups in the ElastiCache API and AWS CLI) in any
-// rolling 24-hour period.
+// Reboots some, or all, of the cache nodes within a provisioned cluster. This
+// operation applies any modified cache parameter groups to the cluster. The
+// reboot operation takes place as soon as possible, and results in a momentary
+// outage to the cluster. During the reboot, the cluster status is set to REBOOTING.
//
-// * If calling this operation on shards in different clusters (called replication
-// groups in the API and CLI), the calls can be made concurrently.
+// The reboot causes the contents of the cache (for each cache node being rebooted)
+// to be lost.
//
-// * If calling this operation multiple times on different shards in the
-// same Redis (cluster mode enabled) replication group, the first node replacement
-// must complete before a subsequent call can be made.
+// When the reboot is complete, a cluster event is created.
//
-// * To determine whether the node replacement is complete you can check
-// Events using the Amazon ElastiCache console, the AWS CLI, or the ElastiCache
-// API. Look for the following automatic failover related events, listed
-// here in order of occurrance: Replication group message: Test Failover
-// API called for node group Cache cluster message: Failover
-// from master node to replica node completed
-// Replication group message: Failover from master node
-// to replica node completed Cache cluster message: Recovering
-// cache nodes Cache cluster message: Finished recovery for cache
-// nodes For more information see: Viewing ElastiCache Events (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ECEvents.Viewing.html)
-// in the ElastiCache User Guide DescribeEvents (https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_DescribeEvents.html)
-// in the ElastiCache API Reference
+// Rebooting a cluster is currently supported on Memcached and Redis (cluster
+// mode disabled) clusters. Rebooting is not supported on Redis (cluster mode
+// enabled) clusters.
//
-// Also see, Testing Multi-AZ with Automatic Failover (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html#auto-failover-test)
-// in the ElastiCache User Guide.
+// If you make changes to parameters that require a Redis (cluster mode enabled)
+// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html)
+// for an alternate process.
//
// 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 ElastiCache's
-// API operation TestFailover for usage and error information.
+// API operation RebootCacheCluster for usage and error information.
//
// Returned Error Codes:
-// * ErrCodeAPICallRateForCustomerExceededFault "APICallRateForCustomerExceeded"
-// The customer has exceeded the allowed rate of API calls.
-//
// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
// The requested cluster is not in the available state.
//
-// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
-// The requested replication group is not in the available state.
-//
-// * ErrCodeNodeGroupNotFoundFault "NodeGroupNotFoundFault"
-// The node group specified by the NodeGroupId parameter could not be found.
-// Please verify that the node group exists and that you spelled the NodeGroupId
-// value correctly.
-//
-// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
-// The specified replication group does not exist.
-//
-// * ErrCodeTestFailoverNotAvailableFault "TestFailoverNotAvailableFault"
-// The TestFailover action is not available.
-//
-// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
-// The KMS key supplied is not valid.
-//
-// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
-// The value for a parameter is invalid.
-//
-// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
-// Two or more incompatible parameters were specified.
+// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
+// The requested cluster ID does not refer to an existing cluster.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover
-func (c *ElastiCache) TestFailover(input *TestFailoverInput) (*TestFailoverOutput, error) {
- req, out := c.TestFailoverRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster
+func (c *ElastiCache) RebootCacheCluster(input *RebootCacheClusterInput) (*RebootCacheClusterOutput, error) {
+ req, out := c.RebootCacheClusterRequest(input)
return out, req.Send()
}
-// TestFailoverWithContext is the same as TestFailover with the addition of
+// RebootCacheClusterWithContext is the same as RebootCacheCluster with the addition of
// the ability to pass a context and additional request options.
//
-// See TestFailover for details on how to use this API operation.
+// See RebootCacheCluster 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 *ElastiCache) TestFailoverWithContext(ctx aws.Context, input *TestFailoverInput, opts ...request.Option) (*TestFailoverOutput, error) {
- req, out := c.TestFailoverRequest(input)
+func (c *ElastiCache) RebootCacheClusterWithContext(ctx aws.Context, input *RebootCacheClusterInput, opts ...request.Option) (*RebootCacheClusterOutput, error) {
+ req, out := c.RebootCacheClusterRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// Represents the input of an AddTagsToResource operation.
-type AddTagsToResourceInput struct {
- _ struct{} `type:"structure"`
+const opRemoveTagsFromResource = "RemoveTagsFromResource"
- // The Amazon Resource Name (ARN) of the resource to which the tags are to be
- // added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster
- // or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. ElastiCache
- // resources are cluster and snapshot.
- //
- // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
- // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
- //
- // ResourceName is a required field
- ResourceName *string `type:"string" required:"true"`
+// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
+// client's request for the RemoveTagsFromResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
+// 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 RemoveTagsFromResourceRequest method.
+// req, resp := client.RemoveTagsFromResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource
+func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *TagListMessage) {
+ op := &request.Operation{
+ Name: opRemoveTagsFromResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
- // A list of cost allocation tags to be added to this resource. A tag is a key-value
- // pair. A tag key must be accompanied by a tag value.
- //
- // Tags is a required field
- Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
+ if input == nil {
+ input = &RemoveTagsFromResourceInput{}
+ }
+
+ output = &TagListMessage{}
+ req = c.newRequest(op, input, output)
+ return
}
-// String returns the string representation
-func (s AddTagsToResourceInput) String() string {
- return awsutil.Prettify(s)
+// RemoveTagsFromResource API operation for Amazon ElastiCache.
+//
+// Removes the tags identified by the TagKeys list from the named resource.
+//
+// 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 ElastiCache's
+// API operation RemoveTagsFromResource for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeCacheClusterNotFoundFault "CacheClusterNotFound"
+// The requested cluster ID does not refer to an existing cluster.
+//
+// * ErrCodeSnapshotNotFoundFault "SnapshotNotFoundFault"
+// The requested snapshot name does not refer to an existing snapshot.
+//
+// * ErrCodeInvalidARNFault "InvalidARN"
+// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
+//
+// * ErrCodeTagNotFoundFault "TagNotFound"
+// The requested tag was not found on this resource.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource
+func (c *ElastiCache) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*TagListMessage, error) {
+ req, out := c.RemoveTagsFromResourceRequest(input)
+ return out, req.Send()
}
-// GoString returns the string representation
-func (s AddTagsToResourceInput) GoString() string {
- return s.String()
+// RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RemoveTagsFromResource 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 *ElastiCache) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*TagListMessage, error) {
+ req, out := c.RemoveTagsFromResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AddTagsToResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
- if s.ResourceName == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceName"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
+const opResetCacheParameterGroup = "ResetCacheParameterGroup"
+
+// ResetCacheParameterGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ResetCacheParameterGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ResetCacheParameterGroup for more information on using the ResetCacheParameterGroup
+// 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 ResetCacheParameterGroupRequest method.
+// req, resp := client.ResetCacheParameterGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup
+func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameterGroupInput) (req *request.Request, output *CacheParameterGroupNameMessage) {
+ op := &request.Operation{
+ Name: opResetCacheParameterGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
}
- if invalidParams.Len() > 0 {
- return invalidParams
+ if input == nil {
+ input = &ResetCacheParameterGroupInput{}
}
- return nil
-}
-// SetResourceName sets the ResourceName field's value.
-func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput {
- s.ResourceName = &v
- return s
+ output = &CacheParameterGroupNameMessage{}
+ req = c.newRequest(op, input, output)
+ return
}
-// SetTags sets the Tags field's value.
+// ResetCacheParameterGroup API operation for Amazon ElastiCache.
+//
+// Modifies the parameters of a cache parameter group to the engine or system
+// default value. You can reset specific parameters by submitting a list of
+// parameter names. To reset the entire cache parameter group, specify the ResetAllParameters
+// and CacheParameterGroupName parameters.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon ElastiCache's
+// API operation ResetCacheParameterGroup for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInvalidCacheParameterGroupStateFault "InvalidCacheParameterGroupState"
+// The current state of the cache parameter group does not allow the requested
+// operation to occur.
+//
+// * ErrCodeCacheParameterGroupNotFoundFault "CacheParameterGroupNotFound"
+// The requested cache parameter group name does not refer to an existing cache
+// parameter group.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// * ErrCodeInvalidGlobalReplicationGroupStateFault "InvalidGlobalReplicationGroupState"
+// The Global Datastore is not available
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup
+func (c *ElastiCache) ResetCacheParameterGroup(input *ResetCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) {
+ req, out := c.ResetCacheParameterGroupRequest(input)
+ return out, req.Send()
+}
+
+// ResetCacheParameterGroupWithContext is the same as ResetCacheParameterGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ResetCacheParameterGroup 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 *ElastiCache) ResetCacheParameterGroupWithContext(ctx aws.Context, input *ResetCacheParameterGroupInput, opts ...request.Option) (*CacheParameterGroupNameMessage, error) {
+ req, out := c.ResetCacheParameterGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRevokeCacheSecurityGroupIngress = "RevokeCacheSecurityGroupIngress"
+
+// RevokeCacheSecurityGroupIngressRequest generates a "aws/request.Request" representing the
+// client's request for the RevokeCacheSecurityGroupIngress operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RevokeCacheSecurityGroupIngress for more information on using the RevokeCacheSecurityGroupIngress
+// 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 RevokeCacheSecurityGroupIngressRequest method.
+// req, resp := client.RevokeCacheSecurityGroupIngressRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress
+func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheSecurityGroupIngressInput) (req *request.Request, output *RevokeCacheSecurityGroupIngressOutput) {
+ op := &request.Operation{
+ Name: opRevokeCacheSecurityGroupIngress,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RevokeCacheSecurityGroupIngressInput{}
+ }
+
+ output = &RevokeCacheSecurityGroupIngressOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RevokeCacheSecurityGroupIngress API operation for Amazon ElastiCache.
+//
+// Revokes ingress from a cache security group. Use this operation to disallow
+// access from an Amazon EC2 security group that had been previously authorized.
+//
+// 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 ElastiCache's
+// API operation RevokeCacheSecurityGroupIngress for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeCacheSecurityGroupNotFoundFault "CacheSecurityGroupNotFound"
+// The requested cache security group name does not refer to an existing cache
+// security group.
+//
+// * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
+// The specified Amazon EC2 security group is not authorized for the specified
+// cache security group.
+//
+// * ErrCodeInvalidCacheSecurityGroupStateFault "InvalidCacheSecurityGroupState"
+// The current state of the cache security group does not allow deletion.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress
+func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurityGroupIngressInput) (*RevokeCacheSecurityGroupIngressOutput, error) {
+ req, out := c.RevokeCacheSecurityGroupIngressRequest(input)
+ return out, req.Send()
+}
+
+// RevokeCacheSecurityGroupIngressWithContext is the same as RevokeCacheSecurityGroupIngress with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RevokeCacheSecurityGroupIngress 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 *ElastiCache) RevokeCacheSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeCacheSecurityGroupIngressInput, opts ...request.Option) (*RevokeCacheSecurityGroupIngressOutput, error) {
+ req, out := c.RevokeCacheSecurityGroupIngressRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opStartMigration = "StartMigration"
+
+// StartMigrationRequest generates a "aws/request.Request" representing the
+// client's request for the StartMigration operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StartMigration for more information on using the StartMigration
+// 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 StartMigrationRequest method.
+// req, resp := client.StartMigrationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration
+func (c *ElastiCache) StartMigrationRequest(input *StartMigrationInput) (req *request.Request, output *StartMigrationOutput) {
+ op := &request.Operation{
+ Name: opStartMigration,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &StartMigrationInput{}
+ }
+
+ output = &StartMigrationOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StartMigration API operation for Amazon ElastiCache.
+//
+// Start the migration of data.
+//
+// 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 ElastiCache's
+// API operation StartMigration for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
+// * ErrCodeReplicationGroupAlreadyUnderMigrationFault "ReplicationGroupAlreadyUnderMigrationFault"
+// The targeted replication group is not available.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration
+func (c *ElastiCache) StartMigration(input *StartMigrationInput) (*StartMigrationOutput, error) {
+ req, out := c.StartMigrationRequest(input)
+ return out, req.Send()
+}
+
+// StartMigrationWithContext is the same as StartMigration with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StartMigration 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 *ElastiCache) StartMigrationWithContext(ctx aws.Context, input *StartMigrationInput, opts ...request.Option) (*StartMigrationOutput, error) {
+ req, out := c.StartMigrationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTestFailover = "TestFailover"
+
+// TestFailoverRequest generates a "aws/request.Request" representing the
+// client's request for the TestFailover operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TestFailover for more information on using the TestFailover
+// 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 TestFailoverRequest method.
+// req, resp := client.TestFailoverRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover
+func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *request.Request, output *TestFailoverOutput) {
+ op := &request.Operation{
+ Name: opTestFailover,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TestFailoverInput{}
+ }
+
+ output = &TestFailoverOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// TestFailover API operation for Amazon ElastiCache.
+//
+// Represents the input of a TestFailover operation which test automatic failover
+// on a specified node group (called shard in the console) in a replication
+// group (called cluster in the console).
+//
+// Note the following
+//
+// * A customer can use this operation to test automatic failover on up to
+// 5 shards (called node groups in the ElastiCache API and AWS CLI) in any
+// rolling 24-hour period.
+//
+// * If calling this operation on shards in different clusters (called replication
+// groups in the API and CLI), the calls can be made concurrently.
+//
+// * If calling this operation multiple times on different shards in the
+// same Redis (cluster mode enabled) replication group, the first node replacement
+// must complete before a subsequent call can be made.
+//
+// * To determine whether the node replacement is complete you can check
+// Events using the Amazon ElastiCache console, the AWS CLI, or the ElastiCache
+// API. Look for the following automatic failover related events, listed
+// here in order of occurrance: Replication group message: Test Failover
+// API called for node group Cache cluster message: Failover
+// from master node to replica node completed
+// Replication group message: Failover from master node
+// to replica node completed Cache cluster message: Recovering
+// cache nodes Cache cluster message: Finished recovery for cache
+// nodes For more information see: Viewing ElastiCache Events (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ECEvents.Viewing.html)
+// in the ElastiCache User Guide DescribeEvents (https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_DescribeEvents.html)
+// in the ElastiCache API Reference
+//
+// Also see, Testing Multi-AZ with Automatic Failover (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html#auto-failover-test)
+// in the ElastiCache 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 ElastiCache's
+// API operation TestFailover for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeAPICallRateForCustomerExceededFault "APICallRateForCustomerExceeded"
+// The customer has exceeded the allowed rate of API calls.
+//
+// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState"
+// The requested cluster is not in the available state.
+//
+// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState"
+// The requested replication group is not in the available state.
+//
+// * ErrCodeNodeGroupNotFoundFault "NodeGroupNotFoundFault"
+// The node group specified by the NodeGroupId parameter could not be found.
+// Please verify that the node group exists and that you spelled the NodeGroupId
+// value correctly.
+//
+// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault"
+// The specified replication group does not exist.
+//
+// * ErrCodeTestFailoverNotAvailableFault "TestFailoverNotAvailableFault"
+// The TestFailover action is not available.
+//
+// * ErrCodeInvalidKMSKeyFault "InvalidKMSKeyFault"
+// The KMS key supplied is not valid.
+//
+// * ErrCodeInvalidParameterValueException "InvalidParameterValue"
+// The value for a parameter is invalid.
+//
+// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination"
+// Two or more incompatible parameters were specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover
+func (c *ElastiCache) TestFailover(input *TestFailoverInput) (*TestFailoverOutput, error) {
+ req, out := c.TestFailoverRequest(input)
+ return out, req.Send()
+}
+
+// TestFailoverWithContext is the same as TestFailover with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TestFailover 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 *ElastiCache) TestFailoverWithContext(ctx aws.Context, input *TestFailoverInput, opts ...request.Option) (*TestFailoverOutput, error) {
+ req, out := c.TestFailoverRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// Represents the input of an AddTagsToResource operation.
+type AddTagsToResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the resource to which the tags are to be
+ // added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster
+ // or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. ElastiCache
+ // resources are cluster and snapshot.
+ //
+ // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
+ // Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
+ //
+ // ResourceName is a required field
+ ResourceName *string `type:"string" required:"true"`
+
+ // A list of cost allocation tags to be added to this resource. A tag is a key-value
+ // pair. A tag key must be accompanied by a tag value.
+ //
+ // Tags is a required field
+ Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s AddTagsToResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AddTagsToResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AddTagsToResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
+ if s.ResourceName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceName"))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceName sets the ResourceName field's value.
+func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput {
+ s.ResourceName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput {
s.Tags = v
return s
}
-// Represents the input of an AuthorizeCacheSecurityGroupIngress operation.
-type AuthorizeCacheSecurityGroupIngressInput struct {
- _ struct{} `type:"structure"`
+// Represents the input of an AuthorizeCacheSecurityGroupIngress operation.
+type AuthorizeCacheSecurityGroupIngressInput struct {
+ _ struct{} `type:"structure"`
+
+ // The cache security group that allows network ingress.
+ //
+ // CacheSecurityGroupName is a required field
+ CacheSecurityGroupName *string `type:"string" required:"true"`
+
+ // The Amazon EC2 security group to be authorized for ingress to the cache security
+ // group.
+ //
+ // EC2SecurityGroupName is a required field
+ EC2SecurityGroupName *string `type:"string" required:"true"`
+
+ // The AWS account number of the Amazon EC2 security group owner. Note that
+ // this is not the same thing as an AWS access key ID - you must provide a valid
+ // AWS account number for this parameter.
+ //
+ // EC2SecurityGroupOwnerId is a required field
+ EC2SecurityGroupOwnerId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AuthorizeCacheSecurityGroupIngressInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AuthorizeCacheSecurityGroupIngressInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AuthorizeCacheSecurityGroupIngressInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AuthorizeCacheSecurityGroupIngressInput"}
+ if s.CacheSecurityGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
+ }
+ if s.EC2SecurityGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupName"))
+ }
+ if s.EC2SecurityGroupOwnerId == nil {
+ invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupOwnerId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *AuthorizeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput {
+ s.CacheSecurityGroupName = &v
+ return s
+}
+
+// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
+func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput {
+ s.EC2SecurityGroupName = &v
+ return s
+}
+
+// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
+func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeCacheSecurityGroupIngressInput {
+ s.EC2SecurityGroupOwnerId = &v
+ return s
+}
+
+type AuthorizeCacheSecurityGroupIngressOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Represents the output of one of the following operations:
+ //
+ // * AuthorizeCacheSecurityGroupIngress
+ //
+ // * CreateCacheSecurityGroup
+ //
+ // * RevokeCacheSecurityGroupIngress
+ CacheSecurityGroup *CacheSecurityGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s AuthorizeCacheSecurityGroupIngressOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AuthorizeCacheSecurityGroupIngressOutput) GoString() string {
+ return s.String()
+}
+
+// SetCacheSecurityGroup sets the CacheSecurityGroup field's value.
+func (s *AuthorizeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *AuthorizeCacheSecurityGroupIngressOutput {
+ s.CacheSecurityGroup = v
+ return s
+}
+
+// Describes an Availability Zone in which the cluster is launched.
+type AvailabilityZone struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the Availability Zone.
+ Name *string `type:"string"`
+}
+
+// String returns the string representation
+func (s AvailabilityZone) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AvailabilityZone) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
+ s.Name = &v
+ return s
+}
+
+type BatchApplyUpdateActionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The cache cluster IDs
+ CacheClusterIds []*string `type:"list"`
+
+ // The replication group IDs
+ ReplicationGroupIds []*string `type:"list"`
+
+ // The unique ID of the service update
+ //
+ // ServiceUpdateName is a required field
+ ServiceUpdateName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s BatchApplyUpdateActionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchApplyUpdateActionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *BatchApplyUpdateActionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "BatchApplyUpdateActionInput"}
+ if s.ServiceUpdateName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ServiceUpdateName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCacheClusterIds sets the CacheClusterIds field's value.
+func (s *BatchApplyUpdateActionInput) SetCacheClusterIds(v []*string) *BatchApplyUpdateActionInput {
+ s.CacheClusterIds = v
+ return s
+}
+
+// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
+func (s *BatchApplyUpdateActionInput) SetReplicationGroupIds(v []*string) *BatchApplyUpdateActionInput {
+ s.ReplicationGroupIds = v
+ return s
+}
+
+// SetServiceUpdateName sets the ServiceUpdateName field's value.
+func (s *BatchApplyUpdateActionInput) SetServiceUpdateName(v string) *BatchApplyUpdateActionInput {
+ s.ServiceUpdateName = &v
+ return s
+}
+
+type BatchApplyUpdateActionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Update actions that have been processed successfully
+ ProcessedUpdateActions []*ProcessedUpdateAction `locationNameList:"ProcessedUpdateAction" type:"list"`
+
+ // Update actions that haven't been processed successfully
+ UnprocessedUpdateActions []*UnprocessedUpdateAction `locationNameList:"UnprocessedUpdateAction" type:"list"`
+}
+
+// String returns the string representation
+func (s BatchApplyUpdateActionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchApplyUpdateActionOutput) GoString() string {
+ return s.String()
+}
+
+// SetProcessedUpdateActions sets the ProcessedUpdateActions field's value.
+func (s *BatchApplyUpdateActionOutput) SetProcessedUpdateActions(v []*ProcessedUpdateAction) *BatchApplyUpdateActionOutput {
+ s.ProcessedUpdateActions = v
+ return s
+}
+
+// SetUnprocessedUpdateActions sets the UnprocessedUpdateActions field's value.
+func (s *BatchApplyUpdateActionOutput) SetUnprocessedUpdateActions(v []*UnprocessedUpdateAction) *BatchApplyUpdateActionOutput {
+ s.UnprocessedUpdateActions = v
+ return s
+}
+
+type BatchStopUpdateActionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The cache cluster IDs
+ CacheClusterIds []*string `type:"list"`
+
+ // The replication group IDs
+ ReplicationGroupIds []*string `type:"list"`
+
+ // The unique ID of the service update
+ //
+ // ServiceUpdateName is a required field
+ ServiceUpdateName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s BatchStopUpdateActionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchStopUpdateActionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *BatchStopUpdateActionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "BatchStopUpdateActionInput"}
+ if s.ServiceUpdateName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ServiceUpdateName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCacheClusterIds sets the CacheClusterIds field's value.
+func (s *BatchStopUpdateActionInput) SetCacheClusterIds(v []*string) *BatchStopUpdateActionInput {
+ s.CacheClusterIds = v
+ return s
+}
+
+// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
+func (s *BatchStopUpdateActionInput) SetReplicationGroupIds(v []*string) *BatchStopUpdateActionInput {
+ s.ReplicationGroupIds = v
+ return s
+}
+
+// SetServiceUpdateName sets the ServiceUpdateName field's value.
+func (s *BatchStopUpdateActionInput) SetServiceUpdateName(v string) *BatchStopUpdateActionInput {
+ s.ServiceUpdateName = &v
+ return s
+}
+
+type BatchStopUpdateActionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Update actions that have been processed successfully
+ ProcessedUpdateActions []*ProcessedUpdateAction `locationNameList:"ProcessedUpdateAction" type:"list"`
+
+ // Update actions that haven't been processed successfully
+ UnprocessedUpdateActions []*UnprocessedUpdateAction `locationNameList:"UnprocessedUpdateAction" type:"list"`
+}
+
+// String returns the string representation
+func (s BatchStopUpdateActionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchStopUpdateActionOutput) GoString() string {
+ return s.String()
+}
+
+// SetProcessedUpdateActions sets the ProcessedUpdateActions field's value.
+func (s *BatchStopUpdateActionOutput) SetProcessedUpdateActions(v []*ProcessedUpdateAction) *BatchStopUpdateActionOutput {
+ s.ProcessedUpdateActions = v
+ return s
+}
+
+// SetUnprocessedUpdateActions sets the UnprocessedUpdateActions field's value.
+func (s *BatchStopUpdateActionOutput) SetUnprocessedUpdateActions(v []*UnprocessedUpdateAction) *BatchStopUpdateActionOutput {
+ s.UnprocessedUpdateActions = v
+ return s
+}
+
+// Contains all of the attributes of a specific cluster.
+type CacheCluster struct {
+ _ struct{} `type:"structure"`
+
+ // A flag that enables encryption at-rest when set to true.
+ //
+ // You cannot modify the value of AtRestEncryptionEnabled after the cluster
+ // is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled
+ // to true when you create a cluster.
+ //
+ // Required: Only available when creating a replication group in an Amazon VPC
+ // using redis version 3.2.6, 4.x or later.
+ //
+ // Default: false
+ AtRestEncryptionEnabled *bool `type:"boolean"`
+
+ // A flag that enables using an AuthToken (password) when issuing Redis commands.
+ //
+ // Default: false
+ AuthTokenEnabled *bool `type:"boolean"`
+
+ // The date the auth token was last modified
+ AuthTokenLastModifiedDate *time.Time `type:"timestamp"`
+
+ // This parameter is currently disabled.
+ AutoMinorVersionUpgrade *bool `type:"boolean"`
+
+ // The date and time when the cluster was created.
+ CacheClusterCreateTime *time.Time `type:"timestamp"`
+
+ // The user-supplied identifier of the cluster. This identifier is a unique
+ // key that identifies a cluster.
+ CacheClusterId *string `type:"string"`
+
+ // The current state of this cluster, one of the following values: available,
+ // creating, deleted, deleting, incompatible-network, modifying, rebooting cluster
+ // nodes, restore-failed, or snapshotting.
+ CacheClusterStatus *string `type:"string"`
+
+ // The name of the compute and memory capacity node type for the cluster.
+ //
+ // The following node types are supported by ElastiCache. Generally speaking,
+ // the current generation types provide more memory and computational power
+ // at lower cost when compared to their equivalent previous generation counterparts.
+ //
+ // * General purpose: Current generation: M5 node types: cache.m5.large,
+ // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
+ // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
+ //
+ // * Compute optimized: Previous generation: (not recommended) C1 node types:
+ // cache.c1.xlarge
+ //
+ // * Memory optimized: Current generation: R5 node types: cache.r5.large,
+ // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
+ // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
+ // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
+ // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
+ // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
+ // cache.r3.8xlarge
+ //
+ // Additional node type info
+ //
+ // * All current generation instance types are created in Amazon VPC by default.
+ //
+ // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
+ //
+ // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
+ //
+ // * Redis configuration variables appendonly and appendfsync are not supported
+ // on Redis version 2.8.22 and later.
+ CacheNodeType *string `type:"string"`
+
+ // A list of cache nodes that are members of the cluster.
+ CacheNodes []*CacheNode `locationNameList:"CacheNode" type:"list"`
- // The cache security group that allows network ingress.
+ // Status of the cache parameter group.
+ CacheParameterGroup *CacheParameterGroupStatus `type:"structure"`
+
+ // A list of cache security group elements, composed of name and status sub-elements.
+ CacheSecurityGroups []*CacheSecurityGroupMembership `locationNameList:"CacheSecurityGroup" type:"list"`
+
+ // The name of the cache subnet group associated with the cluster.
+ CacheSubnetGroupName *string `type:"string"`
+
+ // The URL of the web page where you can download the latest ElastiCache client
+ // library.
+ ClientDownloadLandingPage *string `type:"string"`
+
+ // Represents a Memcached cluster endpoint which, if Automatic Discovery is
+ // enabled on the cluster, can be used by an application to connect to any node
+ // in the cluster. The configuration endpoint will always have .cfg in it.
//
- // CacheSecurityGroupName is a required field
- CacheSecurityGroupName *string `type:"string" required:"true"`
+ // Example: mem-3.9dvc4r.cfg.usw2.cache.amazonaws.com:11211
+ ConfigurationEndpoint *Endpoint `type:"structure"`
- // The Amazon EC2 security group to be authorized for ingress to the cache security
- // group.
+ // The name of the cache engine (memcached or redis) to be used for this cluster.
+ Engine *string `type:"string"`
+
+ // The version of the cache engine that is used in this cluster.
+ EngineVersion *string `type:"string"`
+
+ // Describes a notification topic and its status. Notification topics are used
+ // for publishing ElastiCache events to subscribers using Amazon Simple Notification
+ // Service (SNS).
+ NotificationConfiguration *NotificationConfiguration `type:"structure"`
+
+ // The number of cache nodes in the cluster.
//
- // EC2SecurityGroupName is a required field
- EC2SecurityGroupName *string `type:"string" required:"true"`
+ // For clusters running Redis, this value must be 1. For clusters running Memcached,
+ // this value must be between 1 and 20.
+ NumCacheNodes *int64 `type:"integer"`
- // The AWS account number of the Amazon EC2 security group owner. Note that
- // this is not the same thing as an AWS access key ID - you must provide a valid
- // AWS account number for this parameter.
+ // A group of settings that are applied to the cluster in the future, or that
+ // are currently being applied.
+ PendingModifiedValues *PendingModifiedValues `type:"structure"`
+
+ // The name of the Availability Zone in which the cluster is located or "Multiple"
+ // if the cache nodes are located in different Availability Zones.
+ PreferredAvailabilityZone *string `type:"string"`
+
+ // Specifies the weekly time range during which maintenance on the cluster is
+ // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
+ // (24H Clock UTC). The minimum maintenance window is a 60 minute period.
//
- // EC2SecurityGroupOwnerId is a required field
- EC2SecurityGroupOwnerId *string `type:"string" required:"true"`
+ // Valid values for ddd are:
+ //
+ // * sun
+ //
+ // * mon
+ //
+ // * tue
+ //
+ // * wed
+ //
+ // * thu
+ //
+ // * fri
+ //
+ // * sat
+ //
+ // Example: sun:23:00-mon:01:30
+ PreferredMaintenanceWindow *string `type:"string"`
+
+ // The replication group to which this cluster belongs. If this field is empty,
+ // the cluster is not associated with any replication group.
+ ReplicationGroupId *string `type:"string"`
+
+ // A list of VPC Security Groups associated with the cluster.
+ SecurityGroups []*SecurityGroupMembership `type:"list"`
+
+ // The number of days for which ElastiCache retains automatic cluster snapshots
+ // before deleting them. For example, if you set SnapshotRetentionLimit to 5,
+ // a snapshot that was taken today is retained for 5 days before being deleted.
+ //
+ // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned
+ // off.
+ SnapshotRetentionLimit *int64 `type:"integer"`
+
+ // The daily time range (in UTC) during which ElastiCache begins taking a daily
+ // snapshot of your cluster.
+ //
+ // Example: 05:00-09:00
+ SnapshotWindow *string `type:"string"`
+
+ // A flag that enables in-transit encryption when set to true.
+ //
+ // You cannot modify the value of TransitEncryptionEnabled after the cluster
+ // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
+ // to true when you create a cluster.
+ //
+ // Required: Only available when creating a replication group in an Amazon VPC
+ // using redis version 3.2.6, 4.x or later.
+ //
+ // Default: false
+ TransitEncryptionEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation
+func (s CacheCluster) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CacheCluster) GoString() string {
+ return s.String()
+}
+
+// SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value.
+func (s *CacheCluster) SetAtRestEncryptionEnabled(v bool) *CacheCluster {
+ s.AtRestEncryptionEnabled = &v
+ return s
+}
+
+// SetAuthTokenEnabled sets the AuthTokenEnabled field's value.
+func (s *CacheCluster) SetAuthTokenEnabled(v bool) *CacheCluster {
+ s.AuthTokenEnabled = &v
+ return s
+}
+
+// SetAuthTokenLastModifiedDate sets the AuthTokenLastModifiedDate field's value.
+func (s *CacheCluster) SetAuthTokenLastModifiedDate(v time.Time) *CacheCluster {
+ s.AuthTokenLastModifiedDate = &v
+ return s
+}
+
+// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
+func (s *CacheCluster) SetAutoMinorVersionUpgrade(v bool) *CacheCluster {
+ s.AutoMinorVersionUpgrade = &v
+ return s
+}
+
+// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value.
+func (s *CacheCluster) SetCacheClusterCreateTime(v time.Time) *CacheCluster {
+ s.CacheClusterCreateTime = &v
+ return s
+}
+
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *CacheCluster) SetCacheClusterId(v string) *CacheCluster {
+ s.CacheClusterId = &v
+ return s
+}
+
+// SetCacheClusterStatus sets the CacheClusterStatus field's value.
+func (s *CacheCluster) SetCacheClusterStatus(v string) *CacheCluster {
+ s.CacheClusterStatus = &v
+ return s
+}
+
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *CacheCluster) SetCacheNodeType(v string) *CacheCluster {
+ s.CacheNodeType = &v
+ return s
+}
+
+// SetCacheNodes sets the CacheNodes field's value.
+func (s *CacheCluster) SetCacheNodes(v []*CacheNode) *CacheCluster {
+ s.CacheNodes = v
+ return s
+}
+
+// SetCacheParameterGroup sets the CacheParameterGroup field's value.
+func (s *CacheCluster) SetCacheParameterGroup(v *CacheParameterGroupStatus) *CacheCluster {
+ s.CacheParameterGroup = v
+ return s
+}
+
+// SetCacheSecurityGroups sets the CacheSecurityGroups field's value.
+func (s *CacheCluster) SetCacheSecurityGroups(v []*CacheSecurityGroupMembership) *CacheCluster {
+ s.CacheSecurityGroups = v
+ return s
+}
+
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *CacheCluster) SetCacheSubnetGroupName(v string) *CacheCluster {
+ s.CacheSubnetGroupName = &v
+ return s
+}
+
+// SetClientDownloadLandingPage sets the ClientDownloadLandingPage field's value.
+func (s *CacheCluster) SetClientDownloadLandingPage(v string) *CacheCluster {
+ s.ClientDownloadLandingPage = &v
+ return s
+}
+
+// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value.
+func (s *CacheCluster) SetConfigurationEndpoint(v *Endpoint) *CacheCluster {
+ s.ConfigurationEndpoint = v
+ return s
+}
+
+// SetEngine sets the Engine field's value.
+func (s *CacheCluster) SetEngine(v string) *CacheCluster {
+ s.Engine = &v
+ return s
+}
+
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *CacheCluster) SetEngineVersion(v string) *CacheCluster {
+ s.EngineVersion = &v
+ return s
+}
+
+// SetNotificationConfiguration sets the NotificationConfiguration field's value.
+func (s *CacheCluster) SetNotificationConfiguration(v *NotificationConfiguration) *CacheCluster {
+ s.NotificationConfiguration = v
+ return s
+}
+
+// SetNumCacheNodes sets the NumCacheNodes field's value.
+func (s *CacheCluster) SetNumCacheNodes(v int64) *CacheCluster {
+ s.NumCacheNodes = &v
+ return s
+}
+
+// SetPendingModifiedValues sets the PendingModifiedValues field's value.
+func (s *CacheCluster) SetPendingModifiedValues(v *PendingModifiedValues) *CacheCluster {
+ s.PendingModifiedValues = v
+ return s
+}
+
+// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value.
+func (s *CacheCluster) SetPreferredAvailabilityZone(v string) *CacheCluster {
+ s.PreferredAvailabilityZone = &v
+ return s
}
-// String returns the string representation
-func (s AuthorizeCacheSecurityGroupIngressInput) String() string {
- return awsutil.Prettify(s)
+// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
+func (s *CacheCluster) SetPreferredMaintenanceWindow(v string) *CacheCluster {
+ s.PreferredMaintenanceWindow = &v
+ return s
}
-// GoString returns the string representation
-func (s AuthorizeCacheSecurityGroupIngressInput) GoString() string {
- return s.String()
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *CacheCluster) SetReplicationGroupId(v string) *CacheCluster {
+ s.ReplicationGroupId = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AuthorizeCacheSecurityGroupIngressInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthorizeCacheSecurityGroupIngressInput"}
- if s.CacheSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
- }
- if s.EC2SecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupName"))
- }
- if s.EC2SecurityGroupOwnerId == nil {
- invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupOwnerId"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetSecurityGroups sets the SecurityGroups field's value.
+func (s *CacheCluster) SetSecurityGroups(v []*SecurityGroupMembership) *CacheCluster {
+ s.SecurityGroups = v
+ return s
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *AuthorizeCacheSecurityGroupIngressInput) SetCacheSecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput {
- s.CacheSecurityGroupName = &v
+// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value.
+func (s *CacheCluster) SetSnapshotRetentionLimit(v int64) *CacheCluster {
+ s.SnapshotRetentionLimit = &v
return s
}
-// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
-func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeCacheSecurityGroupIngressInput {
- s.EC2SecurityGroupName = &v
+// SetSnapshotWindow sets the SnapshotWindow field's value.
+func (s *CacheCluster) SetSnapshotWindow(v string) *CacheCluster {
+ s.SnapshotWindow = &v
return s
}
-// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
-func (s *AuthorizeCacheSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeCacheSecurityGroupIngressInput {
- s.EC2SecurityGroupOwnerId = &v
+// SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value.
+func (s *CacheCluster) SetTransitEncryptionEnabled(v bool) *CacheCluster {
+ s.TransitEncryptionEnabled = &v
return s
}
-type AuthorizeCacheSecurityGroupIngressOutput struct {
+// Provides all of the details about a particular cache engine version.
+type CacheEngineVersion struct {
_ struct{} `type:"structure"`
- // Represents the output of one of the following operations:
- //
- // * AuthorizeCacheSecurityGroupIngress
- //
- // * CreateCacheSecurityGroup
+ // The description of the cache engine.
+ CacheEngineDescription *string `type:"string"`
+
+ // The description of the cache engine version.
+ CacheEngineVersionDescription *string `type:"string"`
+
+ // The name of the cache parameter group family associated with this cache engine.
//
- // * RevokeCacheSecurityGroupIngress
- CacheSecurityGroup *CacheSecurityGroup `type:"structure"`
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ CacheParameterGroupFamily *string `type:"string"`
+
+ // The name of the cache engine.
+ Engine *string `type:"string"`
+
+ // The version number of the cache engine.
+ EngineVersion *string `type:"string"`
}
// String returns the string representation
-func (s AuthorizeCacheSecurityGroupIngressOutput) String() string {
+func (s CacheEngineVersion) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s AuthorizeCacheSecurityGroupIngressOutput) GoString() string {
+func (s CacheEngineVersion) GoString() string {
return s.String()
}
-// SetCacheSecurityGroup sets the CacheSecurityGroup field's value.
-func (s *AuthorizeCacheSecurityGroupIngressOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *AuthorizeCacheSecurityGroupIngressOutput {
- s.CacheSecurityGroup = v
+// SetCacheEngineDescription sets the CacheEngineDescription field's value.
+func (s *CacheEngineVersion) SetCacheEngineDescription(v string) *CacheEngineVersion {
+ s.CacheEngineDescription = &v
return s
}
-// Describes an Availability Zone in which the cluster is launched.
-type AvailabilityZone struct {
- _ struct{} `type:"structure"`
-
- // The name of the Availability Zone.
- Name *string `type:"string"`
+// SetCacheEngineVersionDescription sets the CacheEngineVersionDescription field's value.
+func (s *CacheEngineVersion) SetCacheEngineVersionDescription(v string) *CacheEngineVersion {
+ s.CacheEngineVersionDescription = &v
+ return s
}
-// String returns the string representation
-func (s AvailabilityZone) String() string {
- return awsutil.Prettify(s)
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *CacheEngineVersion) SetCacheParameterGroupFamily(v string) *CacheEngineVersion {
+ s.CacheParameterGroupFamily = &v
+ return s
}
-// GoString returns the string representation
-func (s AvailabilityZone) GoString() string {
- return s.String()
+// SetEngine sets the Engine field's value.
+func (s *CacheEngineVersion) SetEngine(v string) *CacheEngineVersion {
+ s.Engine = &v
+ return s
}
-// SetName sets the Name field's value.
-func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
- s.Name = &v
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion {
+ s.EngineVersion = &v
return s
}
-type BatchApplyUpdateActionInput struct {
+// Represents an individual cache node within a cluster. Each cache node runs
+// its own instance of the cluster's protocol-compliant caching software - either
+// Memcached or Redis.
+//
+// The following node types are supported by ElastiCache. Generally speaking,
+// the current generation types provide more memory and computational power
+// at lower cost when compared to their equivalent previous generation counterparts.
+//
+// * General purpose: Current generation: M5 node types: cache.m5.large,
+// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
+// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
+// cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+// cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+// Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+// node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+// M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
+//
+// * Compute optimized: Previous generation: (not recommended) C1 node types:
+// cache.c1.xlarge
+//
+// * Memory optimized: Current generation: R5 node types: cache.r5.large,
+// cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
+// cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
+// cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
+// (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
+// R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
+// cache.r3.8xlarge
+//
+// Additional node type info
+//
+// * All current generation instance types are created in Amazon VPC by default.
+//
+// * Redis append-only files (AOF) are not supported for T1 or T2 instances.
+//
+// * Redis Multi-AZ with automatic failover is not supported on T1 instances.
+//
+// * Redis configuration variables appendonly and appendfsync are not supported
+// on Redis version 2.8.22 and later.
+type CacheNode struct {
_ struct{} `type:"structure"`
- // The cache cluster IDs
- CacheClusterIds []*string `type:"list"`
+ // The date and time when the cache node was created.
+ CacheNodeCreateTime *time.Time `type:"timestamp"`
- // The replication group IDs
- ReplicationGroupIds []*string `type:"list"`
+ // The cache node identifier. A node ID is a numeric identifier (0001, 0002,
+ // etc.). The combination of cluster ID and node ID uniquely identifies every
+ // cache node used in a customer's AWS account.
+ CacheNodeId *string `type:"string"`
- // The unique ID of the service update
- //
- // ServiceUpdateName is a required field
- ServiceUpdateName *string `type:"string" required:"true"`
+ // The current state of this cache node, one of the following values: available,
+ // creating, rebooting, or deleting.
+ CacheNodeStatus *string `type:"string"`
+
+ // The Availability Zone where this node was created and now resides.
+ CustomerAvailabilityZone *string `type:"string"`
+
+ // The hostname for connecting to this cache node.
+ Endpoint *Endpoint `type:"structure"`
+
+ // The status of the parameter group applied to this cache node.
+ ParameterGroupStatus *string `type:"string"`
+
+ // The ID of the primary node to which this read replica node is synchronized.
+ // If this field is empty, this node is not associated with a primary cluster.
+ SourceCacheNodeId *string `type:"string"`
}
// String returns the string representation
-func (s BatchApplyUpdateActionInput) String() string {
+func (s CacheNode) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s BatchApplyUpdateActionInput) GoString() string {
+func (s CacheNode) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *BatchApplyUpdateActionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchApplyUpdateActionInput"}
- if s.ServiceUpdateName == nil {
- invalidParams.Add(request.NewErrParamRequired("ServiceUpdateName"))
- }
+// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value.
+func (s *CacheNode) SetCacheNodeCreateTime(v time.Time) *CacheNode {
+ s.CacheNodeCreateTime = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCacheNodeId sets the CacheNodeId field's value.
+func (s *CacheNode) SetCacheNodeId(v string) *CacheNode {
+ s.CacheNodeId = &v
+ return s
}
-// SetCacheClusterIds sets the CacheClusterIds field's value.
-func (s *BatchApplyUpdateActionInput) SetCacheClusterIds(v []*string) *BatchApplyUpdateActionInput {
- s.CacheClusterIds = v
+// SetCacheNodeStatus sets the CacheNodeStatus field's value.
+func (s *CacheNode) SetCacheNodeStatus(v string) *CacheNode {
+ s.CacheNodeStatus = &v
return s
}
-// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
-func (s *BatchApplyUpdateActionInput) SetReplicationGroupIds(v []*string) *BatchApplyUpdateActionInput {
- s.ReplicationGroupIds = v
+// SetCustomerAvailabilityZone sets the CustomerAvailabilityZone field's value.
+func (s *CacheNode) SetCustomerAvailabilityZone(v string) *CacheNode {
+ s.CustomerAvailabilityZone = &v
return s
}
-// SetServiceUpdateName sets the ServiceUpdateName field's value.
-func (s *BatchApplyUpdateActionInput) SetServiceUpdateName(v string) *BatchApplyUpdateActionInput {
- s.ServiceUpdateName = &v
+// SetEndpoint sets the Endpoint field's value.
+func (s *CacheNode) SetEndpoint(v *Endpoint) *CacheNode {
+ s.Endpoint = v
+ return s
+}
+
+// SetParameterGroupStatus sets the ParameterGroupStatus field's value.
+func (s *CacheNode) SetParameterGroupStatus(v string) *CacheNode {
+ s.ParameterGroupStatus = &v
+ return s
+}
+
+// SetSourceCacheNodeId sets the SourceCacheNodeId field's value.
+func (s *CacheNode) SetSourceCacheNodeId(v string) *CacheNode {
+ s.SourceCacheNodeId = &v
return s
}
-type BatchApplyUpdateActionOutput struct {
- _ struct{} `type:"structure"`
+// A parameter that has a different value for each cache node type it is applied
+// to. For example, in a Redis cluster, a cache.m1.large cache node type would
+// have a larger maxmemory value than a cache.m1.small type.
+type CacheNodeTypeSpecificParameter struct {
+ _ struct{} `type:"structure"`
+
+ // The valid range of values for the parameter.
+ AllowedValues *string `type:"string"`
+
+ // A list of cache node types and their corresponding values for this parameter.
+ CacheNodeTypeSpecificValues []*CacheNodeTypeSpecificValue `locationNameList:"CacheNodeTypeSpecificValue" type:"list"`
+
+ // Indicates whether a change to the parameter is applied immediately or requires
+ // a reboot for the change to be applied. You can force a reboot or wait until
+ // the next maintenance window's reboot. For more information, see Rebooting
+ // a Cluster (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html).
+ ChangeType *string `type:"string" enum:"ChangeType"`
+
+ // The valid data type for the parameter.
+ DataType *string `type:"string"`
+
+ // A description of the parameter.
+ Description *string `type:"string"`
- // Update actions that have been processed successfully
- ProcessedUpdateActions []*ProcessedUpdateAction `locationNameList:"ProcessedUpdateAction" type:"list"`
+ // Indicates whether (true) or not (false) the parameter can be modified. Some
+ // parameters have security or operational implications that prevent them from
+ // being changed.
+ IsModifiable *bool `type:"boolean"`
- // Update actions that haven't been processed successfully
- UnprocessedUpdateActions []*UnprocessedUpdateAction `locationNameList:"UnprocessedUpdateAction" type:"list"`
+ // The earliest cache engine version to which the parameter can apply.
+ MinimumEngineVersion *string `type:"string"`
+
+ // The name of the parameter.
+ ParameterName *string `type:"string"`
+
+ // The source of the parameter value.
+ Source *string `type:"string"`
}
// String returns the string representation
-func (s BatchApplyUpdateActionOutput) String() string {
+func (s CacheNodeTypeSpecificParameter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s BatchApplyUpdateActionOutput) GoString() string {
+func (s CacheNodeTypeSpecificParameter) GoString() string {
return s.String()
}
-// SetProcessedUpdateActions sets the ProcessedUpdateActions field's value.
-func (s *BatchApplyUpdateActionOutput) SetProcessedUpdateActions(v []*ProcessedUpdateAction) *BatchApplyUpdateActionOutput {
- s.ProcessedUpdateActions = v
+// SetAllowedValues sets the AllowedValues field's value.
+func (s *CacheNodeTypeSpecificParameter) SetAllowedValues(v string) *CacheNodeTypeSpecificParameter {
+ s.AllowedValues = &v
return s
}
-// SetUnprocessedUpdateActions sets the UnprocessedUpdateActions field's value.
-func (s *BatchApplyUpdateActionOutput) SetUnprocessedUpdateActions(v []*UnprocessedUpdateAction) *BatchApplyUpdateActionOutput {
- s.UnprocessedUpdateActions = v
+// SetCacheNodeTypeSpecificValues sets the CacheNodeTypeSpecificValues field's value.
+func (s *CacheNodeTypeSpecificParameter) SetCacheNodeTypeSpecificValues(v []*CacheNodeTypeSpecificValue) *CacheNodeTypeSpecificParameter {
+ s.CacheNodeTypeSpecificValues = v
return s
}
-type BatchStopUpdateActionInput struct {
- _ struct{} `type:"structure"`
-
- // The cache cluster IDs
- CacheClusterIds []*string `type:"list"`
-
- // The replication group IDs
- ReplicationGroupIds []*string `type:"list"`
-
- // The unique ID of the service update
- //
- // ServiceUpdateName is a required field
- ServiceUpdateName *string `type:"string" required:"true"`
+// SetChangeType sets the ChangeType field's value.
+func (s *CacheNodeTypeSpecificParameter) SetChangeType(v string) *CacheNodeTypeSpecificParameter {
+ s.ChangeType = &v
+ return s
}
-// String returns the string representation
-func (s BatchStopUpdateActionInput) String() string {
- return awsutil.Prettify(s)
+// SetDataType sets the DataType field's value.
+func (s *CacheNodeTypeSpecificParameter) SetDataType(v string) *CacheNodeTypeSpecificParameter {
+ s.DataType = &v
+ return s
}
-// GoString returns the string representation
-func (s BatchStopUpdateActionInput) GoString() string {
- return s.String()
+// SetDescription sets the Description field's value.
+func (s *CacheNodeTypeSpecificParameter) SetDescription(v string) *CacheNodeTypeSpecificParameter {
+ s.Description = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *BatchStopUpdateActionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchStopUpdateActionInput"}
- if s.ServiceUpdateName == nil {
- invalidParams.Add(request.NewErrParamRequired("ServiceUpdateName"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetIsModifiable sets the IsModifiable field's value.
+func (s *CacheNodeTypeSpecificParameter) SetIsModifiable(v bool) *CacheNodeTypeSpecificParameter {
+ s.IsModifiable = &v
+ return s
}
-// SetCacheClusterIds sets the CacheClusterIds field's value.
-func (s *BatchStopUpdateActionInput) SetCacheClusterIds(v []*string) *BatchStopUpdateActionInput {
- s.CacheClusterIds = v
+// SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
+func (s *CacheNodeTypeSpecificParameter) SetMinimumEngineVersion(v string) *CacheNodeTypeSpecificParameter {
+ s.MinimumEngineVersion = &v
return s
}
-// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
-func (s *BatchStopUpdateActionInput) SetReplicationGroupIds(v []*string) *BatchStopUpdateActionInput {
- s.ReplicationGroupIds = v
+// SetParameterName sets the ParameterName field's value.
+func (s *CacheNodeTypeSpecificParameter) SetParameterName(v string) *CacheNodeTypeSpecificParameter {
+ s.ParameterName = &v
return s
}
-// SetServiceUpdateName sets the ServiceUpdateName field's value.
-func (s *BatchStopUpdateActionInput) SetServiceUpdateName(v string) *BatchStopUpdateActionInput {
- s.ServiceUpdateName = &v
+// SetSource sets the Source field's value.
+func (s *CacheNodeTypeSpecificParameter) SetSource(v string) *CacheNodeTypeSpecificParameter {
+ s.Source = &v
return s
}
-type BatchStopUpdateActionOutput struct {
+// A value that applies only to a certain cache node type.
+type CacheNodeTypeSpecificValue struct {
_ struct{} `type:"structure"`
- // Update actions that have been processed successfully
- ProcessedUpdateActions []*ProcessedUpdateAction `locationNameList:"ProcessedUpdateAction" type:"list"`
+ // The cache node type for which this value applies.
+ CacheNodeType *string `type:"string"`
- // Update actions that haven't been processed successfully
- UnprocessedUpdateActions []*UnprocessedUpdateAction `locationNameList:"UnprocessedUpdateAction" type:"list"`
+ // The value for the cache node type.
+ Value *string `type:"string"`
}
// String returns the string representation
-func (s BatchStopUpdateActionOutput) String() string {
+func (s CacheNodeTypeSpecificValue) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s BatchStopUpdateActionOutput) GoString() string {
+func (s CacheNodeTypeSpecificValue) GoString() string {
return s.String()
}
-// SetProcessedUpdateActions sets the ProcessedUpdateActions field's value.
-func (s *BatchStopUpdateActionOutput) SetProcessedUpdateActions(v []*ProcessedUpdateAction) *BatchStopUpdateActionOutput {
- s.ProcessedUpdateActions = v
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *CacheNodeTypeSpecificValue) SetCacheNodeType(v string) *CacheNodeTypeSpecificValue {
+ s.CacheNodeType = &v
return s
}
-// SetUnprocessedUpdateActions sets the UnprocessedUpdateActions field's value.
-func (s *BatchStopUpdateActionOutput) SetUnprocessedUpdateActions(v []*UnprocessedUpdateAction) *BatchStopUpdateActionOutput {
- s.UnprocessedUpdateActions = v
+// SetValue sets the Value field's value.
+func (s *CacheNodeTypeSpecificValue) SetValue(v string) *CacheNodeTypeSpecificValue {
+ s.Value = &v
return s
}
-// Contains all of the attributes of a specific cluster.
-type CacheCluster struct {
+// The status of the service update on the cache node
+type CacheNodeUpdateStatus struct {
_ struct{} `type:"structure"`
- // A flag that enables encryption at-rest when set to true.
- //
- // You cannot modify the value of AtRestEncryptionEnabled after the cluster
- // is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled
- // to true when you create a cluster.
- //
- // Required: Only available when creating a replication group in an Amazon VPC
- // using redis version 3.2.6, 4.x or later.
- //
- // Default: false
- AtRestEncryptionEnabled *bool `type:"boolean"`
-
- // A flag that enables using an AuthToken (password) when issuing Redis commands.
- //
- // Default: false
- AuthTokenEnabled *bool `type:"boolean"`
-
- // The date the auth token was last modified
- AuthTokenLastModifiedDate *time.Time `type:"timestamp"`
-
- // This parameter is currently disabled.
- AutoMinorVersionUpgrade *bool `type:"boolean"`
-
- // The date and time when the cluster was created.
- CacheClusterCreateTime *time.Time `type:"timestamp"`
+ // The node ID of the cache cluster
+ CacheNodeId *string `type:"string"`
- // The user-supplied identifier of the cluster. This identifier is a unique
- // key that identifies a cluster.
- CacheClusterId *string `type:"string"`
+ // The deletion date of the node
+ NodeDeletionDate *time.Time `type:"timestamp"`
- // The current state of this cluster, one of the following values: available,
- // creating, deleted, deleting, incompatible-network, modifying, rebooting cluster
- // nodes, restore-failed, or snapshotting.
- CacheClusterStatus *string `type:"string"`
+ // The end date of the update for a node
+ NodeUpdateEndDate *time.Time `type:"timestamp"`
- // The name of the compute and memory capacity node type for the cluster.
- //
- // The following node types are supported by ElastiCache. Generally speaking,
- // the current generation types provide more memory and computational power
- // at lower cost when compared to their equivalent previous generation counterparts.
- //
- // * General purpose: Current generation: M5 node types: cache.m5.large,
- // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
- // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
- //
- // * Compute optimized: Previous generation: (not recommended) C1 node types:
- // cache.c1.xlarge
- //
- // * Memory optimized: Current generation: R5 node types: cache.r5.large,
- // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
- // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
- // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
- // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
- // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
- // cache.r3.8xlarge
- //
- // Additional node type info
- //
- // * All current generation instance types are created in Amazon VPC by default.
- //
- // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
- //
- // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
- //
- // * Redis configuration variables appendonly and appendfsync are not supported
- // on Redis version 2.8.22 and later.
- CacheNodeType *string `type:"string"`
+ // Reflects whether the update was initiated by the customer or automatically
+ // applied
+ NodeUpdateInitiatedBy *string `type:"string" enum:"NodeUpdateInitiatedBy"`
- // A list of cache nodes that are members of the cluster.
- CacheNodes []*CacheNode `locationNameList:"CacheNode" type:"list"`
+ // The date when the update is triggered
+ NodeUpdateInitiatedDate *time.Time `type:"timestamp"`
- // Status of the cache parameter group.
- CacheParameterGroup *CacheParameterGroupStatus `type:"structure"`
+ // The start date of the update for a node
+ NodeUpdateStartDate *time.Time `type:"timestamp"`
- // A list of cache security group elements, composed of name and status sub-elements.
- CacheSecurityGroups []*CacheSecurityGroupMembership `locationNameList:"CacheSecurityGroup" type:"list"`
+ // The update status of the node
+ NodeUpdateStatus *string `type:"string" enum:"NodeUpdateStatus"`
- // The name of the cache subnet group associated with the cluster.
- CacheSubnetGroupName *string `type:"string"`
+ // The date when the NodeUpdateStatus was last modified>
+ NodeUpdateStatusModifiedDate *time.Time `type:"timestamp"`
+}
- // The URL of the web page where you can download the latest ElastiCache client
- // library.
- ClientDownloadLandingPage *string `type:"string"`
+// String returns the string representation
+func (s CacheNodeUpdateStatus) String() string {
+ return awsutil.Prettify(s)
+}
- // Represents a Memcached cluster endpoint which, if Automatic Discovery is
- // enabled on the cluster, can be used by an application to connect to any node
- // in the cluster. The configuration endpoint will always have .cfg in it.
- //
- // Example: mem-3.9dvc4r.cfg.usw2.cache.amazonaws.com:11211
- ConfigurationEndpoint *Endpoint `type:"structure"`
+// GoString returns the string representation
+func (s CacheNodeUpdateStatus) GoString() string {
+ return s.String()
+}
- // The name of the cache engine (memcached or redis) to be used for this cluster.
- Engine *string `type:"string"`
+// SetCacheNodeId sets the CacheNodeId field's value.
+func (s *CacheNodeUpdateStatus) SetCacheNodeId(v string) *CacheNodeUpdateStatus {
+ s.CacheNodeId = &v
+ return s
+}
- // The version of the cache engine that is used in this cluster.
- EngineVersion *string `type:"string"`
+// SetNodeDeletionDate sets the NodeDeletionDate field's value.
+func (s *CacheNodeUpdateStatus) SetNodeDeletionDate(v time.Time) *CacheNodeUpdateStatus {
+ s.NodeDeletionDate = &v
+ return s
+}
- // Describes a notification topic and its status. Notification topics are used
- // for publishing ElastiCache events to subscribers using Amazon Simple Notification
- // Service (SNS).
- NotificationConfiguration *NotificationConfiguration `type:"structure"`
+// SetNodeUpdateEndDate sets the NodeUpdateEndDate field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateEndDate(v time.Time) *CacheNodeUpdateStatus {
+ s.NodeUpdateEndDate = &v
+ return s
+}
- // The number of cache nodes in the cluster.
- //
- // For clusters running Redis, this value must be 1. For clusters running Memcached,
- // this value must be between 1 and 20.
- NumCacheNodes *int64 `type:"integer"`
+// SetNodeUpdateInitiatedBy sets the NodeUpdateInitiatedBy field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateInitiatedBy(v string) *CacheNodeUpdateStatus {
+ s.NodeUpdateInitiatedBy = &v
+ return s
+}
- // A group of settings that are applied to the cluster in the future, or that
- // are currently being applied.
- PendingModifiedValues *PendingModifiedValues `type:"structure"`
+// SetNodeUpdateInitiatedDate sets the NodeUpdateInitiatedDate field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateInitiatedDate(v time.Time) *CacheNodeUpdateStatus {
+ s.NodeUpdateInitiatedDate = &v
+ return s
+}
- // The name of the Availability Zone in which the cluster is located or "Multiple"
- // if the cache nodes are located in different Availability Zones.
- PreferredAvailabilityZone *string `type:"string"`
+// SetNodeUpdateStartDate sets the NodeUpdateStartDate field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateStartDate(v time.Time) *CacheNodeUpdateStatus {
+ s.NodeUpdateStartDate = &v
+ return s
+}
- // Specifies the weekly time range during which maintenance on the cluster is
- // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
- // (24H Clock UTC). The minimum maintenance window is a 60 minute period.
- //
- // Valid values for ddd are:
- //
- // * sun
- //
- // * mon
- //
- // * tue
- //
- // * wed
- //
- // * thu
- //
- // * fri
- //
- // * sat
- //
- // Example: sun:23:00-mon:01:30
- PreferredMaintenanceWindow *string `type:"string"`
+// SetNodeUpdateStatus sets the NodeUpdateStatus field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateStatus(v string) *CacheNodeUpdateStatus {
+ s.NodeUpdateStatus = &v
+ return s
+}
- // The replication group to which this cluster belongs. If this field is empty,
- // the cluster is not associated with any replication group.
- ReplicationGroupId *string `type:"string"`
+// SetNodeUpdateStatusModifiedDate sets the NodeUpdateStatusModifiedDate field's value.
+func (s *CacheNodeUpdateStatus) SetNodeUpdateStatusModifiedDate(v time.Time) *CacheNodeUpdateStatus {
+ s.NodeUpdateStatusModifiedDate = &v
+ return s
+}
- // A list of VPC Security Groups associated with the cluster.
- SecurityGroups []*SecurityGroupMembership `type:"list"`
+// Represents the output of a CreateCacheParameterGroup operation.
+type CacheParameterGroup struct {
+ _ struct{} `type:"structure"`
- // The number of days for which ElastiCache retains automatic cluster snapshots
- // before deleting them. For example, if you set SnapshotRetentionLimit to 5,
- // a snapshot that was taken today is retained for 5 days before being deleted.
+ // The name of the cache parameter group family that this cache parameter group
+ // is compatible with.
//
- // If the value of SnapshotRetentionLimit is set to zero (0), backups are turned
- // off.
- SnapshotRetentionLimit *int64 `type:"integer"`
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ CacheParameterGroupFamily *string `type:"string"`
- // The daily time range (in UTC) during which ElastiCache begins taking a daily
- // snapshot of your cluster.
- //
- // Example: 05:00-09:00
- SnapshotWindow *string `type:"string"`
+ // The name of the cache parameter group.
+ CacheParameterGroupName *string `type:"string"`
- // A flag that enables in-transit encryption when set to true.
- //
- // You cannot modify the value of TransitEncryptionEnabled after the cluster
- // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
- // to true when you create a cluster.
- //
- // Required: Only available when creating a replication group in an Amazon VPC
- // using redis version 3.2.6, 4.x or later.
- //
- // Default: false
- TransitEncryptionEnabled *bool `type:"boolean"`
+ // The description for this cache parameter group.
+ Description *string `type:"string"`
+
+ // Indicates whether the parameter group is associated with a Global Datastore
+ IsGlobal *bool `type:"boolean"`
}
// String returns the string representation
-func (s CacheCluster) String() string {
+func (s CacheParameterGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheCluster) GoString() string {
+func (s CacheParameterGroup) GoString() string {
return s.String()
}
-// SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value.
-func (s *CacheCluster) SetAtRestEncryptionEnabled(v bool) *CacheCluster {
- s.AtRestEncryptionEnabled = &v
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *CacheParameterGroup) SetCacheParameterGroupFamily(v string) *CacheParameterGroup {
+ s.CacheParameterGroupFamily = &v
return s
}
-// SetAuthTokenEnabled sets the AuthTokenEnabled field's value.
-func (s *CacheCluster) SetAuthTokenEnabled(v bool) *CacheCluster {
- s.AuthTokenEnabled = &v
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *CacheParameterGroup) SetCacheParameterGroupName(v string) *CacheParameterGroup {
+ s.CacheParameterGroupName = &v
return s
}
-// SetAuthTokenLastModifiedDate sets the AuthTokenLastModifiedDate field's value.
-func (s *CacheCluster) SetAuthTokenLastModifiedDate(v time.Time) *CacheCluster {
- s.AuthTokenLastModifiedDate = &v
+// SetDescription sets the Description field's value.
+func (s *CacheParameterGroup) SetDescription(v string) *CacheParameterGroup {
+ s.Description = &v
return s
}
-// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
-func (s *CacheCluster) SetAutoMinorVersionUpgrade(v bool) *CacheCluster {
- s.AutoMinorVersionUpgrade = &v
+// SetIsGlobal sets the IsGlobal field's value.
+func (s *CacheParameterGroup) SetIsGlobal(v bool) *CacheParameterGroup {
+ s.IsGlobal = &v
return s
}
-// SetCacheClusterCreateTime sets the CacheClusterCreateTime field's value.
-func (s *CacheCluster) SetCacheClusterCreateTime(v time.Time) *CacheCluster {
- s.CacheClusterCreateTime = &v
- return s
+// Represents the output of one of the following operations:
+//
+// * ModifyCacheParameterGroup
+//
+// * ResetCacheParameterGroup
+type CacheParameterGroupNameMessage struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the cache parameter group.
+ CacheParameterGroupName *string `type:"string"`
}
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *CacheCluster) SetCacheClusterId(v string) *CacheCluster {
- s.CacheClusterId = &v
- return s
+// String returns the string representation
+func (s CacheParameterGroupNameMessage) String() string {
+ return awsutil.Prettify(s)
}
-// SetCacheClusterStatus sets the CacheClusterStatus field's value.
-func (s *CacheCluster) SetCacheClusterStatus(v string) *CacheCluster {
- s.CacheClusterStatus = &v
- return s
+// GoString returns the string representation
+func (s CacheParameterGroupNameMessage) GoString() string {
+ return s.String()
}
-// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *CacheCluster) SetCacheNodeType(v string) *CacheCluster {
- s.CacheNodeType = &v
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *CacheParameterGroupNameMessage) SetCacheParameterGroupName(v string) *CacheParameterGroupNameMessage {
+ s.CacheParameterGroupName = &v
return s
}
-// SetCacheNodes sets the CacheNodes field's value.
-func (s *CacheCluster) SetCacheNodes(v []*CacheNode) *CacheCluster {
- s.CacheNodes = v
+// Status of the cache parameter group.
+type CacheParameterGroupStatus struct {
+ _ struct{} `type:"structure"`
+
+ // A list of the cache node IDs which need to be rebooted for parameter changes
+ // to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
+ CacheNodeIdsToReboot []*string `locationNameList:"CacheNodeId" type:"list"`
+
+ // The name of the cache parameter group.
+ CacheParameterGroupName *string `type:"string"`
+
+ // The status of parameter updates.
+ ParameterApplyStatus *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CacheParameterGroupStatus) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CacheParameterGroupStatus) GoString() string {
+ return s.String()
+}
+
+// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value.
+func (s *CacheParameterGroupStatus) SetCacheNodeIdsToReboot(v []*string) *CacheParameterGroupStatus {
+ s.CacheNodeIdsToReboot = v
return s
}
-// SetCacheParameterGroup sets the CacheParameterGroup field's value.
-func (s *CacheCluster) SetCacheParameterGroup(v *CacheParameterGroupStatus) *CacheCluster {
- s.CacheParameterGroup = v
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *CacheParameterGroupStatus) SetCacheParameterGroupName(v string) *CacheParameterGroupStatus {
+ s.CacheParameterGroupName = &v
return s
}
-// SetCacheSecurityGroups sets the CacheSecurityGroups field's value.
-func (s *CacheCluster) SetCacheSecurityGroups(v []*CacheSecurityGroupMembership) *CacheCluster {
- s.CacheSecurityGroups = v
+// SetParameterApplyStatus sets the ParameterApplyStatus field's value.
+func (s *CacheParameterGroupStatus) SetParameterApplyStatus(v string) *CacheParameterGroupStatus {
+ s.ParameterApplyStatus = &v
return s
}
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *CacheCluster) SetCacheSubnetGroupName(v string) *CacheCluster {
- s.CacheSubnetGroupName = &v
+// Represents the output of one of the following operations:
+//
+// * AuthorizeCacheSecurityGroupIngress
+//
+// * CreateCacheSecurityGroup
+//
+// * RevokeCacheSecurityGroupIngress
+type CacheSecurityGroup struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the cache security group.
+ CacheSecurityGroupName *string `type:"string"`
+
+ // The description of the cache security group.
+ Description *string `type:"string"`
+
+ // A list of Amazon EC2 security groups that are associated with this cache
+ // security group.
+ EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
+
+ // The AWS account ID of the cache security group owner.
+ OwnerId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CacheSecurityGroup) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CacheSecurityGroup) GoString() string {
+ return s.String()
+}
+
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *CacheSecurityGroup) SetCacheSecurityGroupName(v string) *CacheSecurityGroup {
+ s.CacheSecurityGroupName = &v
return s
}
-// SetClientDownloadLandingPage sets the ClientDownloadLandingPage field's value.
-func (s *CacheCluster) SetClientDownloadLandingPage(v string) *CacheCluster {
- s.ClientDownloadLandingPage = &v
+// SetDescription sets the Description field's value.
+func (s *CacheSecurityGroup) SetDescription(v string) *CacheSecurityGroup {
+ s.Description = &v
return s
}
-// SetConfigurationEndpoint sets the ConfigurationEndpoint field's value.
-func (s *CacheCluster) SetConfigurationEndpoint(v *Endpoint) *CacheCluster {
- s.ConfigurationEndpoint = v
+// SetEC2SecurityGroups sets the EC2SecurityGroups field's value.
+func (s *CacheSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *CacheSecurityGroup {
+ s.EC2SecurityGroups = v
return s
}
-// SetEngine sets the Engine field's value.
-func (s *CacheCluster) SetEngine(v string) *CacheCluster {
- s.Engine = &v
+// SetOwnerId sets the OwnerId field's value.
+func (s *CacheSecurityGroup) SetOwnerId(v string) *CacheSecurityGroup {
+ s.OwnerId = &v
return s
}
-// SetEngineVersion sets the EngineVersion field's value.
-func (s *CacheCluster) SetEngineVersion(v string) *CacheCluster {
- s.EngineVersion = &v
- return s
+// Represents a cluster's status within a particular cache security group.
+type CacheSecurityGroupMembership struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the cache security group.
+ CacheSecurityGroupName *string `type:"string"`
+
+ // The membership status in the cache security group. The status changes when
+ // a cache security group is modified, or when the cache security groups assigned
+ // to a cluster are modified.
+ Status *string `type:"string"`
}
-// SetNotificationConfiguration sets the NotificationConfiguration field's value.
-func (s *CacheCluster) SetNotificationConfiguration(v *NotificationConfiguration) *CacheCluster {
- s.NotificationConfiguration = v
- return s
+// String returns the string representation
+func (s CacheSecurityGroupMembership) String() string {
+ return awsutil.Prettify(s)
}
-// SetNumCacheNodes sets the NumCacheNodes field's value.
-func (s *CacheCluster) SetNumCacheNodes(v int64) *CacheCluster {
- s.NumCacheNodes = &v
- return s
+// GoString returns the string representation
+func (s CacheSecurityGroupMembership) GoString() string {
+ return s.String()
}
-// SetPendingModifiedValues sets the PendingModifiedValues field's value.
-func (s *CacheCluster) SetPendingModifiedValues(v *PendingModifiedValues) *CacheCluster {
- s.PendingModifiedValues = v
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *CacheSecurityGroupMembership) SetCacheSecurityGroupName(v string) *CacheSecurityGroupMembership {
+ s.CacheSecurityGroupName = &v
return s
}
-// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value.
-func (s *CacheCluster) SetPreferredAvailabilityZone(v string) *CacheCluster {
- s.PreferredAvailabilityZone = &v
+// SetStatus sets the Status field's value.
+func (s *CacheSecurityGroupMembership) SetStatus(v string) *CacheSecurityGroupMembership {
+ s.Status = &v
return s
}
-// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
-func (s *CacheCluster) SetPreferredMaintenanceWindow(v string) *CacheCluster {
- s.PreferredMaintenanceWindow = &v
- return s
+// Represents the output of one of the following operations:
+//
+// * CreateCacheSubnetGroup
+//
+// * ModifyCacheSubnetGroup
+type CacheSubnetGroup struct {
+ _ struct{} `type:"structure"`
+
+ // The description of the cache subnet group.
+ CacheSubnetGroupDescription *string `type:"string"`
+
+ // The name of the cache subnet group.
+ CacheSubnetGroupName *string `type:"string"`
+
+ // A list of subnets associated with the cache subnet group.
+ Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
+
+ // The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
+ // group.
+ VpcId *string `type:"string"`
}
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *CacheCluster) SetReplicationGroupId(v string) *CacheCluster {
- s.ReplicationGroupId = &v
- return s
+// String returns the string representation
+func (s CacheSubnetGroup) String() string {
+ return awsutil.Prettify(s)
}
-// SetSecurityGroups sets the SecurityGroups field's value.
-func (s *CacheCluster) SetSecurityGroups(v []*SecurityGroupMembership) *CacheCluster {
- s.SecurityGroups = v
+// GoString returns the string representation
+func (s CacheSubnetGroup) GoString() string {
+ return s.String()
+}
+
+// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value.
+func (s *CacheSubnetGroup) SetCacheSubnetGroupDescription(v string) *CacheSubnetGroup {
+ s.CacheSubnetGroupDescription = &v
return s
}
-// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value.
-func (s *CacheCluster) SetSnapshotRetentionLimit(v int64) *CacheCluster {
- s.SnapshotRetentionLimit = &v
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *CacheSubnetGroup) SetCacheSubnetGroupName(v string) *CacheSubnetGroup {
+ s.CacheSubnetGroupName = &v
return s
}
-// SetSnapshotWindow sets the SnapshotWindow field's value.
-func (s *CacheCluster) SetSnapshotWindow(v string) *CacheCluster {
- s.SnapshotWindow = &v
+// SetSubnets sets the Subnets field's value.
+func (s *CacheSubnetGroup) SetSubnets(v []*Subnet) *CacheSubnetGroup {
+ s.Subnets = v
return s
}
-// SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value.
-func (s *CacheCluster) SetTransitEncryptionEnabled(v bool) *CacheCluster {
- s.TransitEncryptionEnabled = &v
+// SetVpcId sets the VpcId field's value.
+func (s *CacheSubnetGroup) SetVpcId(v string) *CacheSubnetGroup {
+ s.VpcId = &v
return s
}
-// Provides all of the details about a particular cache engine version.
-type CacheEngineVersion struct {
+type CompleteMigrationInput struct {
_ struct{} `type:"structure"`
- // The description of the cache engine.
- CacheEngineDescription *string `type:"string"`
-
- // The description of the cache engine version.
- CacheEngineVersionDescription *string `type:"string"`
+ // Forces the migration to stop without ensuring that data is in sync. It is
+ // recommended to use this option only to abort the migration and not recommended
+ // when application wants to continue migration to ElastiCache.
+ Force *bool `type:"boolean"`
- // The name of the cache parameter group family associated with this cache engine.
+ // The ID of the replication group to which data is being migrated.
//
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- CacheParameterGroupFamily *string `type:"string"`
-
- // The name of the cache engine.
- Engine *string `type:"string"`
-
- // The version number of the cache engine.
- EngineVersion *string `type:"string"`
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CacheEngineVersion) String() string {
+func (s CompleteMigrationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheEngineVersion) GoString() string {
+func (s CompleteMigrationInput) GoString() string {
return s.String()
}
-// SetCacheEngineDescription sets the CacheEngineDescription field's value.
-func (s *CacheEngineVersion) SetCacheEngineDescription(v string) *CacheEngineVersion {
- s.CacheEngineDescription = &v
- return s
-}
-
-// SetCacheEngineVersionDescription sets the CacheEngineVersionDescription field's value.
-func (s *CacheEngineVersion) SetCacheEngineVersionDescription(v string) *CacheEngineVersion {
- s.CacheEngineVersionDescription = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CompleteMigrationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CompleteMigrationInput"}
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+ }
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *CacheEngineVersion) SetCacheParameterGroupFamily(v string) *CacheEngineVersion {
- s.CacheParameterGroupFamily = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetEngine sets the Engine field's value.
-func (s *CacheEngineVersion) SetEngine(v string) *CacheEngineVersion {
- s.Engine = &v
+// SetForce sets the Force field's value.
+func (s *CompleteMigrationInput) SetForce(v bool) *CompleteMigrationInput {
+ s.Force = &v
return s
}
-// SetEngineVersion sets the EngineVersion field's value.
-func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion {
- s.EngineVersion = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *CompleteMigrationInput) SetReplicationGroupId(v string) *CompleteMigrationInput {
+ s.ReplicationGroupId = &v
return s
}
-// Represents an individual cache node within a cluster. Each cache node runs
-// its own instance of the cluster's protocol-compliant caching software - either
-// Memcached or Redis.
-//
-// The following node types are supported by ElastiCache. Generally speaking,
-// the current generation types provide more memory and computational power
-// at lower cost when compared to their equivalent previous generation counterparts.
-//
-// * General purpose: Current generation: M5 node types: cache.m5.large,
-// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
-// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
-// cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
-// cache.t2.medium Previous generation: (not recommended) T1 node types:
-// cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
-// cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
-// cache.m3.2xlarge
-//
-// * Compute optimized: Previous generation: (not recommended) C1 node types:
-// cache.c1.xlarge
-//
-// * Memory optimized: Current generation: R5 node types: cache.r5.large,
-// cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
-// cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
-// cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
-// (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
-// R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
-// cache.r3.8xlarge
-//
-// Additional node type info
-//
-// * All current generation instance types are created in Amazon VPC by default.
-//
-// * Redis append-only files (AOF) are not supported for T1 or T2 instances.
-//
-// * Redis Multi-AZ with automatic failover is not supported on T1 instances.
-//
-// * Redis configuration variables appendonly and appendfsync are not supported
-// on Redis version 2.8.22 and later.
-type CacheNode struct {
+type CompleteMigrationOutput struct {
_ struct{} `type:"structure"`
- // The date and time when the cache node was created.
- CacheNodeCreateTime *time.Time `type:"timestamp"`
+ // Contains all of the attributes of a specific Redis replication group.
+ ReplicationGroup *ReplicationGroup `type:"structure"`
+}
- // The cache node identifier. A node ID is a numeric identifier (0001, 0002,
- // etc.). The combination of cluster ID and node ID uniquely identifies every
- // cache node used in a customer's AWS account.
- CacheNodeId *string `type:"string"`
+// String returns the string representation
+func (s CompleteMigrationOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // The current state of this cache node.
- CacheNodeStatus *string `type:"string"`
+// GoString returns the string representation
+func (s CompleteMigrationOutput) GoString() string {
+ return s.String()
+}
- // The Availability Zone where this node was created and now resides.
- CustomerAvailabilityZone *string `type:"string"`
+// SetReplicationGroup sets the ReplicationGroup field's value.
+func (s *CompleteMigrationOutput) SetReplicationGroup(v *ReplicationGroup) *CompleteMigrationOutput {
+ s.ReplicationGroup = v
+ return s
+}
- // The hostname for connecting to this cache node.
- Endpoint *Endpoint `type:"structure"`
+// Node group (shard) configuration options when adding or removing replicas.
+// Each node group (shard) configuration has the following members: NodeGroupId,
+// NewReplicaCount, and PreferredAvailabilityZones.
+type ConfigureShard struct {
+ _ struct{} `type:"structure"`
+
+ // The number of replicas you want in this node group at the end of this operation.
+ // The maximum value for NewReplicaCount is 5. The minimum value depends upon
+ // the type of Redis replication group you are working with.
+ //
+ // The minimum number of replicas in a shard or replication group is:
+ //
+ // * Redis (cluster mode disabled) If Multi-AZ with Automatic Failover is
+ // enabled: 1 If Multi-AZ with Automatic Failover is not enable: 0
+ //
+ // * Redis (cluster mode enabled): 0 (though you will not be able to failover
+ // to a replica if your primary node fails)
+ //
+ // NewReplicaCount is a required field
+ NewReplicaCount *int64 `type:"integer" required:"true"`
- // The status of the parameter group applied to this cache node.
- ParameterGroupStatus *string `type:"string"`
+ // The 4-digit id for the node group you are configuring. For Redis (cluster
+ // mode disabled) replication groups, the node group id is always 0001. To find
+ // a Redis (cluster mode enabled)'s node group's (shard's) id, see Finding a
+ // Shard's Id (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/shard-find-id.html).
+ //
+ // NodeGroupId is a required field
+ NodeGroupId *string `min:"1" type:"string" required:"true"`
- // The ID of the primary node to which this read replica node is synchronized.
- // If this field is empty, this node is not associated with a primary cluster.
- SourceCacheNodeId *string `type:"string"`
+ // A list of PreferredAvailabilityZone strings that specify which availability
+ // zones the replication group's nodes are to be in. The nummber of PreferredAvailabilityZone
+ // values must equal the value of NewReplicaCount plus 1 to account for the
+ // primary node. If this member of ReplicaConfiguration is omitted, ElastiCache
+ // for Redis selects the availability zone for each of the replicas.
+ PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"`
}
// String returns the string representation
-func (s CacheNode) String() string {
+func (s ConfigureShard) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheNode) GoString() string {
+func (s ConfigureShard) GoString() string {
return s.String()
}
-// SetCacheNodeCreateTime sets the CacheNodeCreateTime field's value.
-func (s *CacheNode) SetCacheNodeCreateTime(v time.Time) *CacheNode {
- s.CacheNodeCreateTime = &v
- return s
-}
-
-// SetCacheNodeId sets the CacheNodeId field's value.
-func (s *CacheNode) SetCacheNodeId(v string) *CacheNode {
- s.CacheNodeId = &v
- return s
-}
-
-// SetCacheNodeStatus sets the CacheNodeStatus field's value.
-func (s *CacheNode) SetCacheNodeStatus(v string) *CacheNode {
- s.CacheNodeStatus = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ConfigureShard) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ConfigureShard"}
+ if s.NewReplicaCount == nil {
+ invalidParams.Add(request.NewErrParamRequired("NewReplicaCount"))
+ }
+ if s.NodeGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("NodeGroupId"))
+ }
+ if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1))
+ }
-// SetCustomerAvailabilityZone sets the CustomerAvailabilityZone field's value.
-func (s *CacheNode) SetCustomerAvailabilityZone(v string) *CacheNode {
- s.CustomerAvailabilityZone = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetEndpoint sets the Endpoint field's value.
-func (s *CacheNode) SetEndpoint(v *Endpoint) *CacheNode {
- s.Endpoint = v
+// SetNewReplicaCount sets the NewReplicaCount field's value.
+func (s *ConfigureShard) SetNewReplicaCount(v int64) *ConfigureShard {
+ s.NewReplicaCount = &v
return s
}
-// SetParameterGroupStatus sets the ParameterGroupStatus field's value.
-func (s *CacheNode) SetParameterGroupStatus(v string) *CacheNode {
- s.ParameterGroupStatus = &v
+// SetNodeGroupId sets the NodeGroupId field's value.
+func (s *ConfigureShard) SetNodeGroupId(v string) *ConfigureShard {
+ s.NodeGroupId = &v
return s
}
-// SetSourceCacheNodeId sets the SourceCacheNodeId field's value.
-func (s *CacheNode) SetSourceCacheNodeId(v string) *CacheNode {
- s.SourceCacheNodeId = &v
+// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value.
+func (s *ConfigureShard) SetPreferredAvailabilityZones(v []*string) *ConfigureShard {
+ s.PreferredAvailabilityZones = v
return s
}
-// A parameter that has a different value for each cache node type it is applied
-// to. For example, in a Redis cluster, a cache.m1.large cache node type would
-// have a larger maxmemory value than a cache.m1.small type.
-type CacheNodeTypeSpecificParameter struct {
+// Represents the input of a CopySnapshotMessage operation.
+type CopySnapshotInput struct {
_ struct{} `type:"structure"`
- // The valid range of values for the parameter.
- AllowedValues *string `type:"string"`
-
- // A list of cache node types and their corresponding values for this parameter.
- CacheNodeTypeSpecificValues []*CacheNodeTypeSpecificValue `locationNameList:"CacheNodeTypeSpecificValue" type:"list"`
-
- // Indicates whether a change to the parameter is applied immediately or requires
- // a reboot for the change to be applied. You can force a reboot or wait until
- // the next maintenance window's reboot. For more information, see Rebooting
- // a Cluster (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html).
- ChangeType *string `type:"string" enum:"ChangeType"`
-
- // The valid data type for the parameter.
- DataType *string `type:"string"`
-
- // A description of the parameter.
- Description *string `type:"string"`
-
- // Indicates whether (true) or not (false) the parameter can be modified. Some
- // parameters have security or operational implications that prevent them from
- // being changed.
- IsModifiable *bool `type:"boolean"`
+ // The ID of the KMS key used to encrypt the target snapshot.
+ KmsKeyId *string `type:"string"`
- // The earliest cache engine version to which the parameter can apply.
- MinimumEngineVersion *string `type:"string"`
+ // The name of an existing snapshot from which to make a copy.
+ //
+ // SourceSnapshotName is a required field
+ SourceSnapshotName *string `type:"string" required:"true"`
- // The name of the parameter.
- ParameterName *string `type:"string"`
+ // The Amazon S3 bucket to which the snapshot is exported. This parameter is
+ // used only when exporting a snapshot for external access.
+ //
+ // When using this parameter to export a snapshot, be sure Amazon ElastiCache
+ // has the needed permissions to this S3 bucket. For more information, see Step
+ // 2: Grant ElastiCache Access to Your Amazon S3 Bucket (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-grant-access)
+ // in the Amazon ElastiCache User Guide.
+ //
+ // For more information, see Exporting a Snapshot (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html)
+ // in the Amazon ElastiCache User Guide.
+ TargetBucket *string `type:"string"`
- // The source of the parameter value.
- Source *string `type:"string"`
+ // A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot,
+ // therefore this name must be unique within its context - ElastiCache or an
+ // Amazon S3 bucket if exporting.
+ //
+ // TargetSnapshotName is a required field
+ TargetSnapshotName *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CacheNodeTypeSpecificParameter) String() string {
+func (s CopySnapshotInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheNodeTypeSpecificParameter) GoString() string {
+func (s CopySnapshotInput) GoString() string {
return s.String()
}
-// SetAllowedValues sets the AllowedValues field's value.
-func (s *CacheNodeTypeSpecificParameter) SetAllowedValues(v string) *CacheNodeTypeSpecificParameter {
- s.AllowedValues = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CopySnapshotInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
+ if s.SourceSnapshotName == nil {
+ invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName"))
+ }
+ if s.TargetSnapshotName == nil {
+ invalidParams.Add(request.NewErrParamRequired("TargetSnapshotName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetCacheNodeTypeSpecificValues sets the CacheNodeTypeSpecificValues field's value.
-func (s *CacheNodeTypeSpecificParameter) SetCacheNodeTypeSpecificValues(v []*CacheNodeTypeSpecificValue) *CacheNodeTypeSpecificParameter {
- s.CacheNodeTypeSpecificValues = v
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
+ s.KmsKeyId = &v
return s
}
-// SetChangeType sets the ChangeType field's value.
-func (s *CacheNodeTypeSpecificParameter) SetChangeType(v string) *CacheNodeTypeSpecificParameter {
- s.ChangeType = &v
+// SetSourceSnapshotName sets the SourceSnapshotName field's value.
+func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput {
+ s.SourceSnapshotName = &v
return s
}
-// SetDataType sets the DataType field's value.
-func (s *CacheNodeTypeSpecificParameter) SetDataType(v string) *CacheNodeTypeSpecificParameter {
- s.DataType = &v
+// SetTargetBucket sets the TargetBucket field's value.
+func (s *CopySnapshotInput) SetTargetBucket(v string) *CopySnapshotInput {
+ s.TargetBucket = &v
return s
}
-// SetDescription sets the Description field's value.
-func (s *CacheNodeTypeSpecificParameter) SetDescription(v string) *CacheNodeTypeSpecificParameter {
- s.Description = &v
+// SetTargetSnapshotName sets the TargetSnapshotName field's value.
+func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput {
+ s.TargetSnapshotName = &v
return s
}
-// SetIsModifiable sets the IsModifiable field's value.
-func (s *CacheNodeTypeSpecificParameter) SetIsModifiable(v bool) *CacheNodeTypeSpecificParameter {
- s.IsModifiable = &v
- return s
+type CopySnapshotOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Represents a copy of an entire Redis cluster as of the time when the snapshot
+ // was taken.
+ Snapshot *Snapshot `type:"structure"`
}
-// SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
-func (s *CacheNodeTypeSpecificParameter) SetMinimumEngineVersion(v string) *CacheNodeTypeSpecificParameter {
- s.MinimumEngineVersion = &v
+// String returns the string representation
+func (s CopySnapshotOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CopySnapshotOutput) GoString() string {
+ return s.String()
+}
+
+// SetSnapshot sets the Snapshot field's value.
+func (s *CopySnapshotOutput) SetSnapshot(v *Snapshot) *CopySnapshotOutput {
+ s.Snapshot = v
return s
}
-// SetParameterName sets the ParameterName field's value.
-func (s *CacheNodeTypeSpecificParameter) SetParameterName(v string) *CacheNodeTypeSpecificParameter {
- s.ParameterName = &v
- return s
-}
+// Represents the input of a CreateCacheCluster operation.
+type CreateCacheClusterInput struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies whether the nodes in this Memcached cluster are created in a single
+ // Availability Zone or created across multiple Availability Zones in the cluster's
+ // region.
+ //
+ // This parameter is only supported for Memcached clusters.
+ //
+ // If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache
+ // assumes single-az mode.
+ AZMode *string `type:"string" enum:"AZMode"`
+
+ // Reserved parameter. The password used to access a password protected server.
+ //
+ // Password constraints:
+ //
+ // * Must be only printable ASCII characters.
+ //
+ // * Must be at least 16 characters and no more than 128 characters in length.
+ //
+ // * The only permitted printable special characters are !, &, #, $, ^, <,
+ // >, and -. Other printable special characters cannot be used in the AUTH
+ // token.
+ //
+ // For more information, see AUTH password (http://redis.io/commands/AUTH) at
+ // http://redis.io/commands/AUTH.
+ AuthToken *string `type:"string"`
+
+ // This parameter is currently disabled.
+ AutoMinorVersionUpgrade *bool `type:"boolean"`
+
+ // The node group (shard) identifier. This parameter is stored as a lowercase
+ // string.
+ //
+ // Constraints:
+ //
+ // * A name must contain from 1 to 50 alphanumeric characters or hyphens.
+ //
+ // * The first character must be a letter.
+ //
+ // * A name cannot end with a hyphen or contain two consecutive hyphens.
+ //
+ // CacheClusterId is a required field
+ CacheClusterId *string `type:"string" required:"true"`
+
+ // The compute and memory capacity of the nodes in the node group (shard).
+ //
+ // The following node types are supported by ElastiCache. Generally speaking,
+ // the current generation types provide more memory and computational power
+ // at lower cost when compared to their equivalent previous generation counterparts.
+ //
+ // * General purpose: Current generation: M5 node types: cache.m5.large,
+ // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
+ // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
+ //
+ // * Compute optimized: Previous generation: (not recommended) C1 node types:
+ // cache.c1.xlarge
+ //
+ // * Memory optimized: Current generation: R5 node types: cache.r5.large,
+ // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
+ // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
+ // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
+ // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
+ // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
+ // cache.r3.8xlarge
+ //
+ // Additional node type info
+ //
+ // * All current generation instance types are created in Amazon VPC by default.
+ //
+ // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
+ //
+ // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
+ //
+ // * Redis configuration variables appendonly and appendfsync are not supported
+ // on Redis version 2.8.22 and later.
+ CacheNodeType *string `type:"string"`
+
+ // The name of the parameter group to associate with this cluster. If this argument
+ // is omitted, the default parameter group for the specified engine is used.
+ // You cannot use any parameter group which has cluster-enabled='yes' when creating
+ // a cluster.
+ CacheParameterGroupName *string `type:"string"`
-// SetSource sets the Source field's value.
-func (s *CacheNodeTypeSpecificParameter) SetSource(v string) *CacheNodeTypeSpecificParameter {
- s.Source = &v
- return s
-}
+ // A list of security group names to associate with this cluster.
+ //
+ // Use this parameter only when you are creating a cluster outside of an Amazon
+ // Virtual Private Cloud (Amazon VPC).
+ CacheSecurityGroupNames []*string `locationNameList:"CacheSecurityGroupName" type:"list"`
-// A value that applies only to a certain cache node type.
-type CacheNodeTypeSpecificValue struct {
- _ struct{} `type:"structure"`
+ // The name of the subnet group to be used for the cluster.
+ //
+ // Use this parameter only when you are creating a cluster in an Amazon Virtual
+ // Private Cloud (Amazon VPC).
+ //
+ // If you're going to launch your cluster in an Amazon VPC, you need to create
+ // a subnet group before you start creating a cluster. For more information,
+ // see Subnets and Subnet Groups (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html).
+ CacheSubnetGroupName *string `type:"string"`
- // The cache node type for which this value applies.
- CacheNodeType *string `type:"string"`
+ // The name of the cache engine to be used for this cluster.
+ //
+ // Valid values for this parameter are: memcached | redis
+ Engine *string `type:"string"`
- // The value for the cache node type.
- Value *string `type:"string"`
-}
+ // The version number of the cache engine to be used for this cluster. To view
+ // the supported cache engine versions, use the DescribeCacheEngineVersions
+ // operation.
+ //
+ // Important: You can upgrade to a newer engine version (see Selecting a Cache
+ // Engine and Version (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SelectEngine.html#VersionManagement)),
+ // but you cannot downgrade to an earlier engine version. If you want to use
+ // an earlier engine version, you must delete the existing cluster or replication
+ // group and create it anew with the earlier engine version.
+ EngineVersion *string `type:"string"`
-// String returns the string representation
-func (s CacheNodeTypeSpecificValue) String() string {
- return awsutil.Prettify(s)
-}
+ // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
+ // (SNS) topic to which notifications are sent.
+ //
+ // The Amazon SNS topic owner must be the same as the cluster owner.
+ NotificationTopicArn *string `type:"string"`
-// GoString returns the string representation
-func (s CacheNodeTypeSpecificValue) GoString() string {
- return s.String()
-}
+ // The initial number of cache nodes that the cluster has.
+ //
+ // For clusters running Redis, this value must be 1. For clusters running Memcached,
+ // this value must be between 1 and 20.
+ //
+ // If you need more than 20 nodes for your Memcached cluster, please fill out
+ // the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/
+ // (http://aws.amazon.com/contact-us/elasticache-node-limit-request/).
+ NumCacheNodes *int64 `type:"integer"`
-// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *CacheNodeTypeSpecificValue) SetCacheNodeType(v string) *CacheNodeTypeSpecificValue {
- s.CacheNodeType = &v
- return s
-}
+ // The port number on which each of the cache nodes accepts connections.
+ Port *int64 `type:"integer"`
-// SetValue sets the Value field's value.
-func (s *CacheNodeTypeSpecificValue) SetValue(v string) *CacheNodeTypeSpecificValue {
- s.Value = &v
- return s
-}
+ // The EC2 Availability Zone in which the cluster is created.
+ //
+ // All nodes belonging to this Memcached cluster are placed in the preferred
+ // Availability Zone. If you want to create your nodes across multiple Availability
+ // Zones, use PreferredAvailabilityZones.
+ //
+ // Default: System chosen Availability Zone.
+ PreferredAvailabilityZone *string `type:"string"`
-// The status of the service update on the cache node
-type CacheNodeUpdateStatus struct {
- _ struct{} `type:"structure"`
+ // A list of the Availability Zones in which cache nodes are created. The order
+ // of the zones in the list is not important.
+ //
+ // This option is only supported on Memcached.
+ //
+ // If you are creating your cluster in an Amazon VPC (recommended) you can only
+ // locate nodes in Availability Zones that are associated with the subnets in
+ // the selected subnet group.
+ //
+ // The number of Availability Zones listed must equal the value of NumCacheNodes.
+ //
+ // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone
+ // instead, or repeat the Availability Zone multiple times in the list.
+ //
+ // Default: System chosen Availability Zones.
+ PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"`
- // The node ID of the cache cluster
- CacheNodeId *string `type:"string"`
+ // Specifies the weekly time range during which maintenance on the cluster is
+ // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
+ // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid
+ // values for ddd are:
+ //
+ // Specifies the weekly time range during which maintenance on the cluster is
+ // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
+ // (24H Clock UTC). The minimum maintenance window is a 60 minute period.
+ //
+ // Valid values for ddd are:
+ //
+ // * sun
+ //
+ // * mon
+ //
+ // * tue
+ //
+ // * wed
+ //
+ // * thu
+ //
+ // * fri
+ //
+ // * sat
+ //
+ // Example: sun:23:00-mon:01:30
+ PreferredMaintenanceWindow *string `type:"string"`
- // The deletion date of the node
- NodeDeletionDate *time.Time `type:"timestamp"`
+ // The ID of the replication group to which this cluster should belong. If this
+ // parameter is specified, the cluster is added to the specified replication
+ // group as a read replica; otherwise, the cluster is a standalone primary that
+ // is not part of any replication group.
+ //
+ // If the specified replication group is Multi-AZ enabled and the Availability
+ // Zone is not specified, the cluster is created in Availability Zones that
+ // provide the best spread of read replicas across Availability Zones.
+ //
+ // This parameter is only valid if the Engine parameter is redis.
+ ReplicationGroupId *string `type:"string"`
- // The end date of the update for a node
- NodeUpdateEndDate *time.Time `type:"timestamp"`
+ // One or more VPC security groups associated with the cluster.
+ //
+ // Use this parameter only when you are creating a cluster in an Amazon Virtual
+ // Private Cloud (Amazon VPC).
+ SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"`
- // Reflects whether the update was initiated by the customer or automatically
- // applied
- NodeUpdateInitiatedBy *string `type:"string" enum:"NodeUpdateInitiatedBy"`
+ // A single-element string list containing an Amazon Resource Name (ARN) that
+ // uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot
+ // file is used to populate the node group (shard). The Amazon S3 object name
+ // in the ARN cannot contain any commas.
+ //
+ // This parameter is only valid if the Engine parameter is redis.
+ //
+ // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
+ SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"`
- // The date when the update is triggered
- NodeUpdateInitiatedDate *time.Time `type:"timestamp"`
+ // The name of a Redis snapshot from which to restore data into the new node
+ // group (shard). The snapshot status changes to restoring while the new node
+ // group (shard) is being created.
+ //
+ // This parameter is only valid if the Engine parameter is redis.
+ SnapshotName *string `type:"string"`
- // The start date of the update for a node
- NodeUpdateStartDate *time.Time `type:"timestamp"`
+ // The number of days for which ElastiCache retains automatic snapshots before
+ // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot
+ // taken today is retained for 5 days before being deleted.
+ //
+ // This parameter is only valid if the Engine parameter is redis.
+ //
+ // Default: 0 (i.e., automatic backups are disabled for this cache cluster).
+ SnapshotRetentionLimit *int64 `type:"integer"`
- // The update status of the node
- NodeUpdateStatus *string `type:"string" enum:"NodeUpdateStatus"`
+ // The daily time range (in UTC) during which ElastiCache begins taking a daily
+ // snapshot of your node group (shard).
+ //
+ // Example: 05:00-09:00
+ //
+ // If you do not specify this parameter, ElastiCache automatically chooses an
+ // appropriate time range.
+ //
+ // This parameter is only valid if the Engine parameter is redis.
+ SnapshotWindow *string `type:"string"`
- // The date when the NodeUpdateStatus was last modified>
- NodeUpdateStatusModifiedDate *time.Time `type:"timestamp"`
+ // A list of cost allocation tags to be added to this resource.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
}
// String returns the string representation
-func (s CacheNodeUpdateStatus) String() string {
+func (s CreateCacheClusterInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheNodeUpdateStatus) GoString() string {
+func (s CreateCacheClusterInput) GoString() string {
return s.String()
}
-// SetCacheNodeId sets the CacheNodeId field's value.
-func (s *CacheNodeUpdateStatus) SetCacheNodeId(v string) *CacheNodeUpdateStatus {
- s.CacheNodeId = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateCacheClusterInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateCacheClusterInput"}
+ if s.CacheClusterId == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheClusterId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetNodeDeletionDate sets the NodeDeletionDate field's value.
-func (s *CacheNodeUpdateStatus) SetNodeDeletionDate(v time.Time) *CacheNodeUpdateStatus {
- s.NodeDeletionDate = &v
+// SetAZMode sets the AZMode field's value.
+func (s *CreateCacheClusterInput) SetAZMode(v string) *CreateCacheClusterInput {
+ s.AZMode = &v
return s
}
-// SetNodeUpdateEndDate sets the NodeUpdateEndDate field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateEndDate(v time.Time) *CacheNodeUpdateStatus {
- s.NodeUpdateEndDate = &v
+// SetAuthToken sets the AuthToken field's value.
+func (s *CreateCacheClusterInput) SetAuthToken(v string) *CreateCacheClusterInput {
+ s.AuthToken = &v
return s
}
-// SetNodeUpdateInitiatedBy sets the NodeUpdateInitiatedBy field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateInitiatedBy(v string) *CacheNodeUpdateStatus {
- s.NodeUpdateInitiatedBy = &v
+// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
+func (s *CreateCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *CreateCacheClusterInput {
+ s.AutoMinorVersionUpgrade = &v
return s
}
-// SetNodeUpdateInitiatedDate sets the NodeUpdateInitiatedDate field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateInitiatedDate(v time.Time) *CacheNodeUpdateStatus {
- s.NodeUpdateInitiatedDate = &v
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *CreateCacheClusterInput) SetCacheClusterId(v string) *CreateCacheClusterInput {
+ s.CacheClusterId = &v
return s
}
-// SetNodeUpdateStartDate sets the NodeUpdateStartDate field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateStartDate(v time.Time) *CacheNodeUpdateStatus {
- s.NodeUpdateStartDate = &v
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *CreateCacheClusterInput) SetCacheNodeType(v string) *CreateCacheClusterInput {
+ s.CacheNodeType = &v
return s
}
-// SetNodeUpdateStatus sets the NodeUpdateStatus field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateStatus(v string) *CacheNodeUpdateStatus {
- s.NodeUpdateStatus = &v
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *CreateCacheClusterInput) SetCacheParameterGroupName(v string) *CreateCacheClusterInput {
+ s.CacheParameterGroupName = &v
return s
}
-// SetNodeUpdateStatusModifiedDate sets the NodeUpdateStatusModifiedDate field's value.
-func (s *CacheNodeUpdateStatus) SetNodeUpdateStatusModifiedDate(v time.Time) *CacheNodeUpdateStatus {
- s.NodeUpdateStatusModifiedDate = &v
+// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value.
+func (s *CreateCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *CreateCacheClusterInput {
+ s.CacheSecurityGroupNames = v
return s
}
-// Represents the output of a CreateCacheParameterGroup operation.
-type CacheParameterGroup struct {
- _ struct{} `type:"structure"`
-
- // The name of the cache parameter group family that this cache parameter group
- // is compatible with.
- //
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- CacheParameterGroupFamily *string `type:"string"`
-
- // The name of the cache parameter group.
- CacheParameterGroupName *string `type:"string"`
-
- // The description for this cache parameter group.
- Description *string `type:"string"`
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *CreateCacheClusterInput) SetCacheSubnetGroupName(v string) *CreateCacheClusterInput {
+ s.CacheSubnetGroupName = &v
+ return s
}
-// String returns the string representation
-func (s CacheParameterGroup) String() string {
- return awsutil.Prettify(s)
+// SetEngine sets the Engine field's value.
+func (s *CreateCacheClusterInput) SetEngine(v string) *CreateCacheClusterInput {
+ s.Engine = &v
+ return s
}
-// GoString returns the string representation
-func (s CacheParameterGroup) GoString() string {
- return s.String()
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *CreateCacheClusterInput) SetEngineVersion(v string) *CreateCacheClusterInput {
+ s.EngineVersion = &v
+ return s
}
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *CacheParameterGroup) SetCacheParameterGroupFamily(v string) *CacheParameterGroup {
- s.CacheParameterGroupFamily = &v
+// SetNotificationTopicArn sets the NotificationTopicArn field's value.
+func (s *CreateCacheClusterInput) SetNotificationTopicArn(v string) *CreateCacheClusterInput {
+ s.NotificationTopicArn = &v
return s
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CacheParameterGroup) SetCacheParameterGroupName(v string) *CacheParameterGroup {
- s.CacheParameterGroupName = &v
+// SetNumCacheNodes sets the NumCacheNodes field's value.
+func (s *CreateCacheClusterInput) SetNumCacheNodes(v int64) *CreateCacheClusterInput {
+ s.NumCacheNodes = &v
return s
}
-// SetDescription sets the Description field's value.
-func (s *CacheParameterGroup) SetDescription(v string) *CacheParameterGroup {
- s.Description = &v
+// SetPort sets the Port field's value.
+func (s *CreateCacheClusterInput) SetPort(v int64) *CreateCacheClusterInput {
+ s.Port = &v
return s
}
-// Represents the output of one of the following operations:
-//
-// * ModifyCacheParameterGroup
-//
-// * ResetCacheParameterGroup
-type CacheParameterGroupNameMessage struct {
- _ struct{} `type:"structure"`
-
- // The name of the cache parameter group.
- CacheParameterGroupName *string `type:"string"`
+// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value.
+func (s *CreateCacheClusterInput) SetPreferredAvailabilityZone(v string) *CreateCacheClusterInput {
+ s.PreferredAvailabilityZone = &v
+ return s
}
-// String returns the string representation
-func (s CacheParameterGroupNameMessage) String() string {
- return awsutil.Prettify(s)
+// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value.
+func (s *CreateCacheClusterInput) SetPreferredAvailabilityZones(v []*string) *CreateCacheClusterInput {
+ s.PreferredAvailabilityZones = v
+ return s
}
-// GoString returns the string representation
-func (s CacheParameterGroupNameMessage) GoString() string {
- return s.String()
+// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
+func (s *CreateCacheClusterInput) SetPreferredMaintenanceWindow(v string) *CreateCacheClusterInput {
+ s.PreferredMaintenanceWindow = &v
+ return s
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CacheParameterGroupNameMessage) SetCacheParameterGroupName(v string) *CacheParameterGroupNameMessage {
- s.CacheParameterGroupName = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *CreateCacheClusterInput) SetReplicationGroupId(v string) *CreateCacheClusterInput {
+ s.ReplicationGroupId = &v
return s
}
-// Status of the cache parameter group.
-type CacheParameterGroupStatus struct {
- _ struct{} `type:"structure"`
-
- // A list of the cache node IDs which need to be rebooted for parameter changes
- // to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
- CacheNodeIdsToReboot []*string `locationNameList:"CacheNodeId" type:"list"`
-
- // The name of the cache parameter group.
- CacheParameterGroupName *string `type:"string"`
-
- // The status of parameter updates.
- ParameterApplyStatus *string `type:"string"`
+// SetSecurityGroupIds sets the SecurityGroupIds field's value.
+func (s *CreateCacheClusterInput) SetSecurityGroupIds(v []*string) *CreateCacheClusterInput {
+ s.SecurityGroupIds = v
+ return s
}
-// String returns the string representation
-func (s CacheParameterGroupStatus) String() string {
- return awsutil.Prettify(s)
+// SetSnapshotArns sets the SnapshotArns field's value.
+func (s *CreateCacheClusterInput) SetSnapshotArns(v []*string) *CreateCacheClusterInput {
+ s.SnapshotArns = v
+ return s
}
-// GoString returns the string representation
-func (s CacheParameterGroupStatus) GoString() string {
- return s.String()
+// SetSnapshotName sets the SnapshotName field's value.
+func (s *CreateCacheClusterInput) SetSnapshotName(v string) *CreateCacheClusterInput {
+ s.SnapshotName = &v
+ return s
}
-// SetCacheNodeIdsToReboot sets the CacheNodeIdsToReboot field's value.
-func (s *CacheParameterGroupStatus) SetCacheNodeIdsToReboot(v []*string) *CacheParameterGroupStatus {
- s.CacheNodeIdsToReboot = v
+// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value.
+func (s *CreateCacheClusterInput) SetSnapshotRetentionLimit(v int64) *CreateCacheClusterInput {
+ s.SnapshotRetentionLimit = &v
return s
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CacheParameterGroupStatus) SetCacheParameterGroupName(v string) *CacheParameterGroupStatus {
- s.CacheParameterGroupName = &v
+// SetSnapshotWindow sets the SnapshotWindow field's value.
+func (s *CreateCacheClusterInput) SetSnapshotWindow(v string) *CreateCacheClusterInput {
+ s.SnapshotWindow = &v
return s
}
-// SetParameterApplyStatus sets the ParameterApplyStatus field's value.
-func (s *CacheParameterGroupStatus) SetParameterApplyStatus(v string) *CacheParameterGroupStatus {
- s.ParameterApplyStatus = &v
+// SetTags sets the Tags field's value.
+func (s *CreateCacheClusterInput) SetTags(v []*Tag) *CreateCacheClusterInput {
+ s.Tags = v
return s
}
-// Represents the output of one of the following operations:
-//
-// * AuthorizeCacheSecurityGroupIngress
-//
-// * CreateCacheSecurityGroup
-//
-// * RevokeCacheSecurityGroupIngress
-type CacheSecurityGroup struct {
+type CreateCacheClusterOutput struct {
_ struct{} `type:"structure"`
- // The name of the cache security group.
- CacheSecurityGroupName *string `type:"string"`
-
- // The description of the cache security group.
- Description *string `type:"string"`
-
- // A list of Amazon EC2 security groups that are associated with this cache
- // security group.
- EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
-
- // The AWS account ID of the cache security group owner.
- OwnerId *string `type:"string"`
+ // Contains all of the attributes of a specific cluster.
+ CacheCluster *CacheCluster `type:"structure"`
}
// String returns the string representation
-func (s CacheSecurityGroup) String() string {
+func (s CreateCacheClusterOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheSecurityGroup) GoString() string {
+func (s CreateCacheClusterOutput) GoString() string {
return s.String()
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *CacheSecurityGroup) SetCacheSecurityGroupName(v string) *CacheSecurityGroup {
- s.CacheSecurityGroupName = &v
- return s
-}
-
-// SetDescription sets the Description field's value.
-func (s *CacheSecurityGroup) SetDescription(v string) *CacheSecurityGroup {
- s.Description = &v
- return s
-}
-
-// SetEC2SecurityGroups sets the EC2SecurityGroups field's value.
-func (s *CacheSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *CacheSecurityGroup {
- s.EC2SecurityGroups = v
- return s
-}
-
-// SetOwnerId sets the OwnerId field's value.
-func (s *CacheSecurityGroup) SetOwnerId(v string) *CacheSecurityGroup {
- s.OwnerId = &v
+// SetCacheCluster sets the CacheCluster field's value.
+func (s *CreateCacheClusterOutput) SetCacheCluster(v *CacheCluster) *CreateCacheClusterOutput {
+ s.CacheCluster = v
return s
}
-// Represents a cluster's status within a particular cache security group.
-type CacheSecurityGroupMembership struct {
+// Represents the input of a CreateCacheParameterGroup operation.
+type CreateCacheParameterGroupInput struct {
_ struct{} `type:"structure"`
- // The name of the cache security group.
- CacheSecurityGroupName *string `type:"string"`
+ // The name of the cache parameter group family that the cache parameter group
+ // can be used with.
+ //
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ //
+ // CacheParameterGroupFamily is a required field
+ CacheParameterGroupFamily *string `type:"string" required:"true"`
- // The membership status in the cache security group. The status changes when
- // a cache security group is modified, or when the cache security groups assigned
- // to a cluster are modified.
- Status *string `type:"string"`
+ // A user-specified name for the cache parameter group.
+ //
+ // CacheParameterGroupName is a required field
+ CacheParameterGroupName *string `type:"string" required:"true"`
+
+ // A user-specified description for the cache parameter group.
+ //
+ // Description is a required field
+ Description *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CacheSecurityGroupMembership) String() string {
+func (s CreateCacheParameterGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheSecurityGroupMembership) GoString() string {
+func (s CreateCacheParameterGroupInput) GoString() string {
return s.String()
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *CacheSecurityGroupMembership) SetCacheSecurityGroupName(v string) *CacheSecurityGroupMembership {
- s.CacheSecurityGroupName = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateCacheParameterGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateCacheParameterGroupInput"}
+ if s.CacheParameterGroupFamily == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily"))
+ }
+ if s.CacheParameterGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
+ }
+ if s.Description == nil {
+ invalidParams.Add(request.NewErrParamRequired("Description"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetStatus sets the Status field's value.
-func (s *CacheSecurityGroupMembership) SetStatus(v string) *CacheSecurityGroupMembership {
- s.Status = &v
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupFamily(v string) *CreateCacheParameterGroupInput {
+ s.CacheParameterGroupFamily = &v
return s
}
-// Represents the output of one of the following operations:
-//
-// * CreateCacheSubnetGroup
-//
-// * ModifyCacheSubnetGroup
-type CacheSubnetGroup struct {
- _ struct{} `type:"structure"`
-
- // The description of the cache subnet group.
- CacheSubnetGroupDescription *string `type:"string"`
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupName(v string) *CreateCacheParameterGroupInput {
+ s.CacheParameterGroupName = &v
+ return s
+}
- // The name of the cache subnet group.
- CacheSubnetGroupName *string `type:"string"`
+// SetDescription sets the Description field's value.
+func (s *CreateCacheParameterGroupInput) SetDescription(v string) *CreateCacheParameterGroupInput {
+ s.Description = &v
+ return s
+}
- // A list of subnets associated with the cache subnet group.
- Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
+type CreateCacheParameterGroupOutput struct {
+ _ struct{} `type:"structure"`
- // The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
- // group.
- VpcId *string `type:"string"`
+ // Represents the output of a CreateCacheParameterGroup operation.
+ CacheParameterGroup *CacheParameterGroup `type:"structure"`
}
// String returns the string representation
-func (s CacheSubnetGroup) String() string {
+func (s CreateCacheParameterGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CacheSubnetGroup) GoString() string {
+func (s CreateCacheParameterGroupOutput) GoString() string {
return s.String()
}
-// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value.
-func (s *CacheSubnetGroup) SetCacheSubnetGroupDescription(v string) *CacheSubnetGroup {
- s.CacheSubnetGroupDescription = &v
- return s
-}
-
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *CacheSubnetGroup) SetCacheSubnetGroupName(v string) *CacheSubnetGroup {
- s.CacheSubnetGroupName = &v
- return s
-}
-
-// SetSubnets sets the Subnets field's value.
-func (s *CacheSubnetGroup) SetSubnets(v []*Subnet) *CacheSubnetGroup {
- s.Subnets = v
- return s
-}
-
-// SetVpcId sets the VpcId field's value.
-func (s *CacheSubnetGroup) SetVpcId(v string) *CacheSubnetGroup {
- s.VpcId = &v
+// SetCacheParameterGroup sets the CacheParameterGroup field's value.
+func (s *CreateCacheParameterGroupOutput) SetCacheParameterGroup(v *CacheParameterGroup) *CreateCacheParameterGroupOutput {
+ s.CacheParameterGroup = v
return s
}
-type CompleteMigrationInput struct {
+// Represents the input of a CreateCacheSecurityGroup operation.
+type CreateCacheSecurityGroupInput struct {
_ struct{} `type:"structure"`
- // Forces the migration to stop without ensuring that data is in sync. It is
- // recommended to use this option only to abort the migration and not recommended
- // when application wants to continue migration to ElastiCache.
- Force *bool `type:"boolean"`
+ // A name for the cache security group. This value is stored as a lowercase
+ // string.
+ //
+ // Constraints: Must contain no more than 255 alphanumeric characters. Cannot
+ // be the word "Default".
+ //
+ // Example: mysecuritygroup
+ //
+ // CacheSecurityGroupName is a required field
+ CacheSecurityGroupName *string `type:"string" required:"true"`
- // The ID of the replication group to which data is being migrated.
+ // A description for the cache security group.
//
- // ReplicationGroupId is a required field
- ReplicationGroupId *string `type:"string" required:"true"`
+ // Description is a required field
+ Description *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CompleteMigrationInput) String() string {
+func (s CreateCacheSecurityGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CompleteMigrationInput) GoString() string {
+func (s CreateCacheSecurityGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CompleteMigrationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CompleteMigrationInput"}
- if s.ReplicationGroupId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+func (s *CreateCacheSecurityGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateCacheSecurityGroupInput"}
+ if s.CacheSecurityGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
+ }
+ if s.Description == nil {
+ invalidParams.Add(request.NewErrParamRequired("Description"))
}
if invalidParams.Len() > 0 {
@@ -7016,99 +8713,92 @@ func (s *CompleteMigrationInput) Validate() error {
return nil
}
-// SetForce sets the Force field's value.
-func (s *CompleteMigrationInput) SetForce(v bool) *CompleteMigrationInput {
- s.Force = &v
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *CreateCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *CreateCacheSecurityGroupInput {
+ s.CacheSecurityGroupName = &v
return s
}
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *CompleteMigrationInput) SetReplicationGroupId(v string) *CompleteMigrationInput {
- s.ReplicationGroupId = &v
+// SetDescription sets the Description field's value.
+func (s *CreateCacheSecurityGroupInput) SetDescription(v string) *CreateCacheSecurityGroupInput {
+ s.Description = &v
return s
}
-type CompleteMigrationOutput struct {
+type CreateCacheSecurityGroupOutput struct {
_ struct{} `type:"structure"`
- // Contains all of the attributes of a specific Redis replication group.
- ReplicationGroup *ReplicationGroup `type:"structure"`
+ // Represents the output of one of the following operations:
+ //
+ // * AuthorizeCacheSecurityGroupIngress
+ //
+ // * CreateCacheSecurityGroup
+ //
+ // * RevokeCacheSecurityGroupIngress
+ CacheSecurityGroup *CacheSecurityGroup `type:"structure"`
}
// String returns the string representation
-func (s CompleteMigrationOutput) String() string {
+func (s CreateCacheSecurityGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CompleteMigrationOutput) GoString() string {
+func (s CreateCacheSecurityGroupOutput) GoString() string {
return s.String()
}
-// SetReplicationGroup sets the ReplicationGroup field's value.
-func (s *CompleteMigrationOutput) SetReplicationGroup(v *ReplicationGroup) *CompleteMigrationOutput {
- s.ReplicationGroup = v
+// SetCacheSecurityGroup sets the CacheSecurityGroup field's value.
+func (s *CreateCacheSecurityGroupOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *CreateCacheSecurityGroupOutput {
+ s.CacheSecurityGroup = v
return s
}
-// Node group (shard) configuration options when adding or removing replicas.
-// Each node group (shard) configuration has the following members: NodeGroupId,
-// NewReplicaCount, and PreferredAvailabilityZones.
-type ConfigureShard struct {
+// Represents the input of a CreateCacheSubnetGroup operation.
+type CreateCacheSubnetGroupInput struct {
_ struct{} `type:"structure"`
- // The number of replicas you want in this node group at the end of this operation.
- // The maximum value for NewReplicaCount is 5. The minimum value depends upon
- // the type of Redis replication group you are working with.
+ // A description for the cache subnet group.
//
- // The minimum number of replicas in a shard or replication group is:
+ // CacheSubnetGroupDescription is a required field
+ CacheSubnetGroupDescription *string `type:"string" required:"true"`
+
+ // A name for the cache subnet group. This value is stored as a lowercase string.
//
- // * Redis (cluster mode disabled) If Multi-AZ with Automatic Failover is
- // enabled: 1 If Multi-AZ with Automatic Failover is not enable: 0
+ // Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
//
- // * Redis (cluster mode enabled): 0 (though you will not be able to failover
- // to a replica if your primary node fails)
+ // Example: mysubnetgroup
//
- // NewReplicaCount is a required field
- NewReplicaCount *int64 `type:"integer" required:"true"`
+ // CacheSubnetGroupName is a required field
+ CacheSubnetGroupName *string `type:"string" required:"true"`
- // The 4-digit id for the node group you are configuring. For Redis (cluster
- // mode disabled) replication groups, the node group id is always 0001. To find
- // a Redis (cluster mode enabled)'s node group's (shard's) id, see Finding a
- // Shard's Id (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/shard-find-id.html).
+ // A list of VPC subnet IDs for the cache subnet group.
//
- // NodeGroupId is a required field
- NodeGroupId *string `min:"1" type:"string" required:"true"`
-
- // A list of PreferredAvailabilityZone strings that specify which availability
- // zones the replication group's nodes are to be in. The nummber of PreferredAvailabilityZone
- // values must equal the value of NewReplicaCount plus 1 to account for the
- // primary node. If this member of ReplicaConfiguration is omitted, ElastiCache
- // for Redis selects the availability zone for each of the replicas.
- PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"`
+ // SubnetIds is a required field
+ SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
}
// String returns the string representation
-func (s ConfigureShard) String() string {
+func (s CreateCacheSubnetGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s ConfigureShard) GoString() string {
+func (s CreateCacheSubnetGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ConfigureShard) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConfigureShard"}
- if s.NewReplicaCount == nil {
- invalidParams.Add(request.NewErrParamRequired("NewReplicaCount"))
+func (s *CreateCacheSubnetGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateCacheSubnetGroupInput"}
+ if s.CacheSubnetGroupDescription == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupDescription"))
}
- if s.NodeGroupId == nil {
- invalidParams.Add(request.NewErrParamRequired("NodeGroupId"))
+ if s.CacheSubnetGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName"))
}
- if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1))
+ if s.SubnetIds == nil {
+ invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
}
if invalidParams.Len() > 0 {
@@ -7117,74 +8807,88 @@ func (s *ConfigureShard) Validate() error {
return nil
}
-// SetNewReplicaCount sets the NewReplicaCount field's value.
-func (s *ConfigureShard) SetNewReplicaCount(v int64) *ConfigureShard {
- s.NewReplicaCount = &v
+// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value.
+func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *CreateCacheSubnetGroupInput {
+ s.CacheSubnetGroupDescription = &v
return s
}
-// SetNodeGroupId sets the NodeGroupId field's value.
-func (s *ConfigureShard) SetNodeGroupId(v string) *ConfigureShard {
- s.NodeGroupId = &v
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *CreateCacheSubnetGroupInput {
+ s.CacheSubnetGroupName = &v
+ return s
+}
+
+// SetSubnetIds sets the SubnetIds field's value.
+func (s *CreateCacheSubnetGroupInput) SetSubnetIds(v []*string) *CreateCacheSubnetGroupInput {
+ s.SubnetIds = v
return s
}
-// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value.
-func (s *ConfigureShard) SetPreferredAvailabilityZones(v []*string) *ConfigureShard {
- s.PreferredAvailabilityZones = v
+type CreateCacheSubnetGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Represents the output of one of the following operations:
+ //
+ // * CreateCacheSubnetGroup
+ //
+ // * ModifyCacheSubnetGroup
+ CacheSubnetGroup *CacheSubnetGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s CreateCacheSubnetGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateCacheSubnetGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetCacheSubnetGroup sets the CacheSubnetGroup field's value.
+func (s *CreateCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *CreateCacheSubnetGroupOutput {
+ s.CacheSubnetGroup = v
return s
}
-// Represents the input of a CopySnapshotMessage operation.
-type CopySnapshotInput struct {
+type CreateGlobalReplicationGroupInput struct {
_ struct{} `type:"structure"`
- // The ID of the KMS key used to encrypt the target snapshot.
- KmsKeyId *string `type:"string"`
-
- // The name of an existing snapshot from which to make a copy.
- //
- // SourceSnapshotName is a required field
- SourceSnapshotName *string `type:"string" required:"true"`
+ // Provides details of the Global Datastore
+ GlobalReplicationGroupDescription *string `type:"string"`
- // The Amazon S3 bucket to which the snapshot is exported. This parameter is
- // used only when exporting a snapshot for external access.
- //
- // When using this parameter to export a snapshot, be sure Amazon ElastiCache
- // has the needed permissions to this S3 bucket. For more information, see Step
- // 2: Grant ElastiCache Access to Your Amazon S3 Bucket (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-grant-access)
- // in the Amazon ElastiCache User Guide.
+ // The suffix for name of a Global Datastore. The suffix guarantees uniqueness
+ // of the Global Datastore name across multiple regions.
//
- // For more information, see Exporting a Snapshot (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html)
- // in the Amazon ElastiCache User Guide.
- TargetBucket *string `type:"string"`
+ // GlobalReplicationGroupIdSuffix is a required field
+ GlobalReplicationGroupIdSuffix *string `type:"string" required:"true"`
- // A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot,
- // therefore this name must be unique within its context - ElastiCache or an
- // Amazon S3 bucket if exporting.
+ // The name of the primary cluster that accepts writes and will replicate updates
+ // to the secondary cluster.
//
- // TargetSnapshotName is a required field
- TargetSnapshotName *string `type:"string" required:"true"`
+ // PrimaryReplicationGroupId is a required field
+ PrimaryReplicationGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CopySnapshotInput) String() string {
+func (s CreateGlobalReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CopySnapshotInput) GoString() string {
+func (s CreateGlobalReplicationGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CopySnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
- if s.SourceSnapshotName == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName"))
+func (s *CreateGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateGlobalReplicationGroupInput"}
+ if s.GlobalReplicationGroupIdSuffix == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupIdSuffix"))
}
- if s.TargetSnapshotName == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetSnapshotName"))
+ if s.PrimaryReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PrimaryReplicationGroupId"))
}
if invalidParams.Len() > 0 {
@@ -7193,70 +8897,78 @@ func (s *CopySnapshotInput) Validate() error {
return nil
}
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
- s.KmsKeyId = &v
- return s
-}
-
-// SetSourceSnapshotName sets the SourceSnapshotName field's value.
-func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput {
- s.SourceSnapshotName = &v
+// SetGlobalReplicationGroupDescription sets the GlobalReplicationGroupDescription field's value.
+func (s *CreateGlobalReplicationGroupInput) SetGlobalReplicationGroupDescription(v string) *CreateGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupDescription = &v
return s
}
-// SetTargetBucket sets the TargetBucket field's value.
-func (s *CopySnapshotInput) SetTargetBucket(v string) *CopySnapshotInput {
- s.TargetBucket = &v
+// SetGlobalReplicationGroupIdSuffix sets the GlobalReplicationGroupIdSuffix field's value.
+func (s *CreateGlobalReplicationGroupInput) SetGlobalReplicationGroupIdSuffix(v string) *CreateGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupIdSuffix = &v
return s
}
-// SetTargetSnapshotName sets the TargetSnapshotName field's value.
-func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput {
- s.TargetSnapshotName = &v
+// SetPrimaryReplicationGroupId sets the PrimaryReplicationGroupId field's value.
+func (s *CreateGlobalReplicationGroupInput) SetPrimaryReplicationGroupId(v string) *CreateGlobalReplicationGroupInput {
+ s.PrimaryReplicationGroupId = &v
return s
}
-type CopySnapshotOutput struct {
+type CreateGlobalReplicationGroupOutput struct {
_ struct{} `type:"structure"`
- // Represents a copy of an entire Redis cluster as of the time when the snapshot
- // was taken.
- Snapshot *Snapshot `type:"structure"`
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
}
// String returns the string representation
-func (s CopySnapshotOutput) String() string {
+func (s CreateGlobalReplicationGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CopySnapshotOutput) GoString() string {
+func (s CreateGlobalReplicationGroupOutput) GoString() string {
return s.String()
}
-// SetSnapshot sets the Snapshot field's value.
-func (s *CopySnapshotOutput) SetSnapshot(v *Snapshot) *CopySnapshotOutput {
- s.Snapshot = v
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *CreateGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *CreateGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
-// Represents the input of a CreateCacheCluster operation.
-type CreateCacheClusterInput struct {
+// Represents the input of a CreateReplicationGroup operation.
+type CreateReplicationGroupInput struct {
_ struct{} `type:"structure"`
- // Specifies whether the nodes in this Memcached cluster are created in a single
- // Availability Zone or created across multiple Availability Zones in the cluster's
- // region.
+ // A flag that enables encryption at rest when set to true.
//
- // This parameter is only supported for Memcached clusters.
+ // You cannot modify the value of AtRestEncryptionEnabled after the replication
+ // group is created. To enable encryption at rest on a replication group you
+ // must set AtRestEncryptionEnabled to true when you create the replication
+ // group.
//
- // If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache
- // assumes single-az mode.
- AZMode *string `type:"string" enum:"AZMode"`
+ // Required: Only available when creating a replication group in an Amazon VPC
+ // using redis version 3.2.6, 4.x or later.
+ //
+ // Default: false
+ AtRestEncryptionEnabled *bool `type:"boolean"`
// Reserved parameter. The password used to access a password protected server.
//
+ // AuthToken can be specified only on replication groups where TransitEncryptionEnabled
+ // is true.
+ //
+ // For HIPAA compliance, you must specify TransitEncryptionEnabled as true,
+ // an AuthToken, and a CacheSubnetGroup.
+ //
// Password constraints:
//
// * Must be only printable ASCII characters.
@@ -7274,19 +8986,26 @@ type CreateCacheClusterInput struct {
// This parameter is currently disabled.
AutoMinorVersionUpgrade *bool `type:"boolean"`
- // The node group (shard) identifier. This parameter is stored as a lowercase
- // string.
+ // Specifies whether a read-only replica is automatically promoted to read/write
+ // primary if the existing primary fails.
//
- // Constraints:
+ // If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ
+ // is disabled for this replication group.
//
- // * A name must contain from 1 to 50 alphanumeric characters or hyphens.
+ // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled)
+ // replication groups.
//
- // * The first character must be a letter.
+ // Default: false
//
- // * A name cannot end with a hyphen or contain two consecutive hyphens.
+ // Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover
+ // on:
//
- // CacheClusterId is a required field
- CacheClusterId *string `type:"string" required:"true"`
+ // * Redis versions earlier than 2.8.6.
+ //
+ // * Redis (cluster mode disabled): T1 node types.
+ //
+ // * Redis (cluster mode enabled): T1 node types.
+ AutomaticFailoverEnabled *bool `type:"boolean"`
// The compute and memory capacity of the nodes in the node group (shard).
//
@@ -7297,11 +9016,11 @@ type CreateCacheClusterInput struct {
// * General purpose: Current generation: M5 node types: cache.m5.large,
// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
//
// * Compute optimized: Previous generation: (not recommended) C1 node types:
// cache.c1.xlarge
@@ -7326,88 +9045,111 @@ type CreateCacheClusterInput struct {
// on Redis version 2.8.22 and later.
CacheNodeType *string `type:"string"`
- // The name of the parameter group to associate with this cluster. If this argument
- // is omitted, the default parameter group for the specified engine is used.
- // You cannot use any parameter group which has cluster-enabled='yes' when creating
- // a cluster.
+ // The name of the parameter group to associate with this replication group.
+ // If this argument is omitted, the default cache parameter group for the specified
+ // engine is used.
+ //
+ // If you are restoring to an engine version that is different than the original,
+ // you must specify the default version of that version. For example, CacheParameterGroupName=default.redis4.0.
+ //
+ // If you are running Redis version 3.2.4 or later, only one node group (shard),
+ // and want to use a default parameter group, we recommend that you specify
+ // the parameter group by name.
+ //
+ // * To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2.
+ //
+ // * To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on.
CacheParameterGroupName *string `type:"string"`
- // A list of security group names to associate with this cluster.
- //
- // Use this parameter only when you are creating a cluster outside of an Amazon
- // Virtual Private Cloud (Amazon VPC).
+ // A list of cache security group names to associate with this replication group.
CacheSecurityGroupNames []*string `locationNameList:"CacheSecurityGroupName" type:"list"`
- // The name of the subnet group to be used for the cluster.
- //
- // Use this parameter only when you are creating a cluster in an Amazon Virtual
- // Private Cloud (Amazon VPC).
+ // The name of the cache subnet group to be used for the replication group.
//
// If you're going to launch your cluster in an Amazon VPC, you need to create
// a subnet group before you start creating a cluster. For more information,
// see Subnets and Subnet Groups (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html).
CacheSubnetGroupName *string `type:"string"`
- // The name of the cache engine to be used for this cluster.
- //
- // Valid values for this parameter are: memcached | redis
+ // The name of the cache engine to be used for the clusters in this replication
+ // group.
Engine *string `type:"string"`
- // The version number of the cache engine to be used for this cluster. To view
- // the supported cache engine versions, use the DescribeCacheEngineVersions
+ // The version number of the cache engine to be used for the clusters in this
+ // replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions
// operation.
//
// Important: You can upgrade to a newer engine version (see Selecting a Cache
- // Engine and Version (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SelectEngine.html#VersionManagement)),
- // but you cannot downgrade to an earlier engine version. If you want to use
- // an earlier engine version, you must delete the existing cluster or replication
- // group and create it anew with the earlier engine version.
+ // Engine and Version (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SelectEngine.html#VersionManagement))
+ // in the ElastiCache User Guide, but you cannot downgrade to an earlier engine
+ // version. If you want to use an earlier engine version, you must delete the
+ // existing cluster or replication group and create it anew with the earlier
+ // engine version.
EngineVersion *string `type:"string"`
+ // The name of the Global Datastore
+ GlobalReplicationGroupId *string `type:"string"`
+
+ // The ID of the KMS key used to encrypt the disk in the cluster.
+ KmsKeyId *string `type:"string"`
+
+ // A list of node group (shard) configuration options. Each node group (shard)
+ // configuration has the following members: PrimaryAvailabilityZone, ReplicaAvailabilityZones,
+ // ReplicaCount, and Slots.
+ //
+ // If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode
+ // enabled) replication group, you can use this parameter to individually configure
+ // each node group (shard), or you can omit this parameter. However, when seeding
+ // a Redis (cluster mode enabled) cluster from a S3 rdb file, you must configure
+ // each node group (shard) using this parameter because you must specify the
+ // slots for each node group.
+ NodeGroupConfiguration []*NodeGroupConfiguration `locationNameList:"NodeGroupConfiguration" type:"list"`
+
// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
// (SNS) topic to which notifications are sent.
//
// The Amazon SNS topic owner must be the same as the cluster owner.
NotificationTopicArn *string `type:"string"`
- // The initial number of cache nodes that the cluster has.
- //
- // For clusters running Redis, this value must be 1. For clusters running Memcached,
- // this value must be between 1 and 20.
+ // The number of clusters this replication group initially has.
//
- // If you need more than 20 nodes for your Memcached cluster, please fill out
- // the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/
- // (http://aws.amazon.com/contact-us/elasticache-node-limit-request/).
- NumCacheNodes *int64 `type:"integer"`
-
- // The port number on which each of the cache nodes accepts connections.
- Port *int64 `type:"integer"`
-
- // The EC2 Availability Zone in which the cluster is created.
+ // This parameter is not used if there is more than one node group (shard).
+ // You should use ReplicasPerNodeGroup instead.
//
- // All nodes belonging to this Memcached cluster are placed in the preferred
- // Availability Zone. If you want to create your nodes across multiple Availability
- // Zones, use PreferredAvailabilityZones.
+ // If AutomaticFailoverEnabled is true, the value of this parameter must be
+ // at least 2. If AutomaticFailoverEnabled is false you can omit this parameter
+ // (it will default to 1), or you can explicitly set it to a value between 2
+ // and 6.
//
- // Default: System chosen Availability Zone.
- PreferredAvailabilityZone *string `type:"string"`
+ // The maximum permitted value for NumCacheClusters is 6 (1 primary plus 5 replicas).
+ NumCacheClusters *int64 `type:"integer"`
- // A list of the Availability Zones in which cache nodes are created. The order
- // of the zones in the list is not important.
+ // An optional parameter that specifies the number of node groups (shards) for
+ // this Redis (cluster mode enabled) replication group. For Redis (cluster mode
+ // disabled) either omit this parameter or set it to 1.
//
- // This option is only supported on Memcached.
+ // Default: 1
+ NumNodeGroups *int64 `type:"integer"`
+
+ // The port number on which each member of the replication group accepts connections.
+ Port *int64 `type:"integer"`
+
+ // A list of EC2 Availability Zones in which the replication group's clusters
+ // are created. The order of the Availability Zones in the list is the order
+ // in which clusters are allocated. The primary cluster is created in the first
+ // AZ in the list.
//
- // If you are creating your cluster in an Amazon VPC (recommended) you can only
- // locate nodes in Availability Zones that are associated with the subnets in
- // the selected subnet group.
+ // This parameter is not used if there is more than one node group (shard).
+ // You should use NodeGroupConfiguration instead.
//
- // The number of Availability Zones listed must equal the value of NumCacheNodes.
+ // If you are creating your replication group in an Amazon VPC (recommended),
+ // you can only locate clusters in Availability Zones associated with the subnets
+ // in the selected subnet group.
//
- // If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone
- // instead, or repeat the Availability Zone multiple times in the list.
+ // The number of Availability Zones listed must equal the value of NumCacheClusters.
//
- // Default: System chosen Availability Zones.
- PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"`
+ // Default: system chosen Availability Zones.
+ PreferredCacheClusterAZs []*string `locationNameList:"AvailabilityZone" type:"list"`
// Specifies the weekly time range during which maintenance on the cluster is
// performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
@@ -7428,57 +9170,72 @@ type CreateCacheClusterInput struct {
//
// * wed
//
- // * thu
+ // * thu
+ //
+ // * fri
+ //
+ // * sat
+ //
+ // Example: sun:23:00-mon:01:30
+ PreferredMaintenanceWindow *string `type:"string"`
+
+ // The identifier of the cluster that serves as the primary for this replication
+ // group. This cluster must already exist and have a status of available.
+ //
+ // This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup
+ // is specified.
+ PrimaryClusterId *string `type:"string"`
+
+ // An optional parameter that specifies the number of replica nodes in each
+ // node group (shard). Valid values are 0 to 5.
+ ReplicasPerNodeGroup *int64 `type:"integer"`
+
+ // A user-created description for the replication group.
+ //
+ // ReplicationGroupDescription is a required field
+ ReplicationGroupDescription *string `type:"string" required:"true"`
+
+ // The replication group identifier. This parameter is stored as a lowercase
+ // string.
//
- // * fri
+ // Constraints:
//
- // * sat
+ // * A name must contain from 1 to 40 alphanumeric characters or hyphens.
//
- // Example: sun:23:00-mon:01:30
- PreferredMaintenanceWindow *string `type:"string"`
-
- // The ID of the replication group to which this cluster should belong. If this
- // parameter is specified, the cluster is added to the specified replication
- // group as a read replica; otherwise, the cluster is a standalone primary that
- // is not part of any replication group.
+ // * The first character must be a letter.
//
- // If the specified replication group is Multi-AZ enabled and the Availability
- // Zone is not specified, the cluster is created in Availability Zones that
- // provide the best spread of read replicas across Availability Zones.
+ // * A name cannot end with a hyphen or contain two consecutive hyphens.
//
- // This parameter is only valid if the Engine parameter is redis.
- ReplicationGroupId *string `type:"string"`
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
- // One or more VPC security groups associated with the cluster.
+ // One or more Amazon VPC security groups associated with this replication group.
//
- // Use this parameter only when you are creating a cluster in an Amazon Virtual
- // Private Cloud (Amazon VPC).
+ // Use this parameter only when you are creating a replication group in an Amazon
+ // Virtual Private Cloud (Amazon VPC).
SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"`
- // A single-element string list containing an Amazon Resource Name (ARN) that
- // uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot
- // file is used to populate the node group (shard). The Amazon S3 object name
- // in the ARN cannot contain any commas.
- //
- // This parameter is only valid if the Engine parameter is redis.
+ // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB
+ // snapshot files stored in Amazon S3. The snapshot files are used to populate
+ // the new replication group. The Amazon S3 object name in the ARN cannot contain
+ // any commas. The new replication group will have the number of node groups
+ // (console: shards) specified by the parameter NumNodeGroups or the number
+ // of node groups configured by NodeGroupConfiguration regardless of the number
+ // of ARNs specified here.
//
// Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"`
- // The name of a Redis snapshot from which to restore data into the new node
- // group (shard). The snapshot status changes to restoring while the new node
- // group (shard) is being created.
- //
- // This parameter is only valid if the Engine parameter is redis.
+ // The name of a snapshot from which to restore data into the new replication
+ // group. The snapshot status changes to restoring while the new replication
+ // group is being created.
SnapshotName *string `type:"string"`
// The number of days for which ElastiCache retains automatic snapshots before
// deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot
- // taken today is retained for 5 days before being deleted.
- //
- // This parameter is only valid if the Engine parameter is redis.
+ // that was taken today is retained for 5 days before being deleted.
//
- // Default: 0 (i.e., automatic backups are disabled for this cache cluster).
+ // Default: 0 (i.e., automatic backups are disabled for this cluster).
SnapshotRetentionLimit *int64 `type:"integer"`
// The daily time range (in UTC) during which ElastiCache begins taking a daily
@@ -7488,29 +9245,63 @@ type CreateCacheClusterInput struct {
//
// If you do not specify this parameter, ElastiCache automatically chooses an
// appropriate time range.
- //
- // This parameter is only valid if the Engine parameter is redis.
SnapshotWindow *string `type:"string"`
- // A list of cost allocation tags to be added to this resource.
+ // A list of cost allocation tags to be added to this resource. Tags are comma-separated
+ // key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple
+ // tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.
Tags []*Tag `locationNameList:"Tag" type:"list"`
+
+ // A flag that enables in-transit encryption when set to true.
+ //
+ // You cannot modify the value of TransitEncryptionEnabled after the cluster
+ // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
+ // to true when you create a cluster.
+ //
+ // This parameter is valid only if the Engine parameter is redis, the EngineVersion
+ // parameter is 3.2.6, 4.x or later, and the cluster is being created in an
+ // Amazon VPC.
+ //
+ // If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup.
+ //
+ // Required: Only available when creating a replication group in an Amazon VPC
+ // using redis version 3.2.6, 4.x or later.
+ //
+ // Default: false
+ //
+ // For HIPAA compliance, you must specify TransitEncryptionEnabled as true,
+ // an AuthToken, and a CacheSubnetGroup.
+ TransitEncryptionEnabled *bool `type:"boolean"`
}
// String returns the string representation
-func (s CreateCacheClusterInput) String() string {
+func (s CreateReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheClusterInput) GoString() string {
+func (s CreateReplicationGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateCacheClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCacheClusterInput"}
- if s.CacheClusterId == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheClusterId"))
+func (s *CreateReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateReplicationGroupInput"}
+ if s.ReplicationGroupDescription == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupDescription"))
+ }
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+ }
+ if s.NodeGroupConfiguration != nil {
+ for i, v := range s.NodeGroupConfiguration {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodeGroupConfiguration", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -7519,212 +9310,245 @@ func (s *CreateCacheClusterInput) Validate() error {
return nil
}
-// SetAZMode sets the AZMode field's value.
-func (s *CreateCacheClusterInput) SetAZMode(v string) *CreateCacheClusterInput {
- s.AZMode = &v
+// SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value.
+func (s *CreateReplicationGroupInput) SetAtRestEncryptionEnabled(v bool) *CreateReplicationGroupInput {
+ s.AtRestEncryptionEnabled = &v
return s
}
// SetAuthToken sets the AuthToken field's value.
-func (s *CreateCacheClusterInput) SetAuthToken(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetAuthToken(v string) *CreateReplicationGroupInput {
s.AuthToken = &v
return s
}
// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
-func (s *CreateCacheClusterInput) SetAutoMinorVersionUpgrade(v bool) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationGroupInput {
s.AutoMinorVersionUpgrade = &v
return s
}
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *CreateCacheClusterInput) SetCacheClusterId(v string) *CreateCacheClusterInput {
- s.CacheClusterId = &v
+// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value.
+func (s *CreateReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *CreateReplicationGroupInput {
+ s.AutomaticFailoverEnabled = &v
return s
}
// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *CreateCacheClusterInput) SetCacheNodeType(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetCacheNodeType(v string) *CreateReplicationGroupInput {
s.CacheNodeType = &v
return s
}
// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CreateCacheClusterInput) SetCacheParameterGroupName(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetCacheParameterGroupName(v string) *CreateReplicationGroupInput {
s.CacheParameterGroupName = &v
return s
}
// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value.
-func (s *CreateCacheClusterInput) SetCacheSecurityGroupNames(v []*string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *CreateReplicationGroupInput {
s.CacheSecurityGroupNames = v
return s
}
// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *CreateCacheClusterInput) SetCacheSubnetGroupName(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetCacheSubnetGroupName(v string) *CreateReplicationGroupInput {
s.CacheSubnetGroupName = &v
return s
}
// SetEngine sets the Engine field's value.
-func (s *CreateCacheClusterInput) SetEngine(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetEngine(v string) *CreateReplicationGroupInput {
s.Engine = &v
return s
}
// SetEngineVersion sets the EngineVersion field's value.
-func (s *CreateCacheClusterInput) SetEngineVersion(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetEngineVersion(v string) *CreateReplicationGroupInput {
s.EngineVersion = &v
return s
}
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *CreateReplicationGroupInput) SetGlobalReplicationGroupId(v string) *CreateReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
+ return s
+}
+
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *CreateReplicationGroupInput) SetKmsKeyId(v string) *CreateReplicationGroupInput {
+ s.KmsKeyId = &v
+ return s
+}
+
+// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value.
+func (s *CreateReplicationGroupInput) SetNodeGroupConfiguration(v []*NodeGroupConfiguration) *CreateReplicationGroupInput {
+ s.NodeGroupConfiguration = v
+ return s
+}
+
// SetNotificationTopicArn sets the NotificationTopicArn field's value.
-func (s *CreateCacheClusterInput) SetNotificationTopicArn(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetNotificationTopicArn(v string) *CreateReplicationGroupInput {
s.NotificationTopicArn = &v
return s
}
-// SetNumCacheNodes sets the NumCacheNodes field's value.
-func (s *CreateCacheClusterInput) SetNumCacheNodes(v int64) *CreateCacheClusterInput {
- s.NumCacheNodes = &v
+// SetNumCacheClusters sets the NumCacheClusters field's value.
+func (s *CreateReplicationGroupInput) SetNumCacheClusters(v int64) *CreateReplicationGroupInput {
+ s.NumCacheClusters = &v
return s
}
-// SetPort sets the Port field's value.
-func (s *CreateCacheClusterInput) SetPort(v int64) *CreateCacheClusterInput {
- s.Port = &v
+// SetNumNodeGroups sets the NumNodeGroups field's value.
+func (s *CreateReplicationGroupInput) SetNumNodeGroups(v int64) *CreateReplicationGroupInput {
+ s.NumNodeGroups = &v
return s
}
-// SetPreferredAvailabilityZone sets the PreferredAvailabilityZone field's value.
-func (s *CreateCacheClusterInput) SetPreferredAvailabilityZone(v string) *CreateCacheClusterInput {
- s.PreferredAvailabilityZone = &v
+// SetPort sets the Port field's value.
+func (s *CreateReplicationGroupInput) SetPort(v int64) *CreateReplicationGroupInput {
+ s.Port = &v
return s
}
-// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value.
-func (s *CreateCacheClusterInput) SetPreferredAvailabilityZones(v []*string) *CreateCacheClusterInput {
- s.PreferredAvailabilityZones = v
+// SetPreferredCacheClusterAZs sets the PreferredCacheClusterAZs field's value.
+func (s *CreateReplicationGroupInput) SetPreferredCacheClusterAZs(v []*string) *CreateReplicationGroupInput {
+ s.PreferredCacheClusterAZs = v
return s
}
// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
-func (s *CreateCacheClusterInput) SetPreferredMaintenanceWindow(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationGroupInput {
s.PreferredMaintenanceWindow = &v
return s
}
+// SetPrimaryClusterId sets the PrimaryClusterId field's value.
+func (s *CreateReplicationGroupInput) SetPrimaryClusterId(v string) *CreateReplicationGroupInput {
+ s.PrimaryClusterId = &v
+ return s
+}
+
+// SetReplicasPerNodeGroup sets the ReplicasPerNodeGroup field's value.
+func (s *CreateReplicationGroupInput) SetReplicasPerNodeGroup(v int64) *CreateReplicationGroupInput {
+ s.ReplicasPerNodeGroup = &v
+ return s
+}
+
+// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value.
+func (s *CreateReplicationGroupInput) SetReplicationGroupDescription(v string) *CreateReplicationGroupInput {
+ s.ReplicationGroupDescription = &v
+ return s
+}
+
// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *CreateCacheClusterInput) SetReplicationGroupId(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetReplicationGroupId(v string) *CreateReplicationGroupInput {
s.ReplicationGroupId = &v
return s
}
// SetSecurityGroupIds sets the SecurityGroupIds field's value.
-func (s *CreateCacheClusterInput) SetSecurityGroupIds(v []*string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetSecurityGroupIds(v []*string) *CreateReplicationGroupInput {
s.SecurityGroupIds = v
return s
}
// SetSnapshotArns sets the SnapshotArns field's value.
-func (s *CreateCacheClusterInput) SetSnapshotArns(v []*string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetSnapshotArns(v []*string) *CreateReplicationGroupInput {
s.SnapshotArns = v
return s
}
// SetSnapshotName sets the SnapshotName field's value.
-func (s *CreateCacheClusterInput) SetSnapshotName(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetSnapshotName(v string) *CreateReplicationGroupInput {
s.SnapshotName = &v
return s
}
// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value.
-func (s *CreateCacheClusterInput) SetSnapshotRetentionLimit(v int64) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *CreateReplicationGroupInput {
s.SnapshotRetentionLimit = &v
return s
}
// SetSnapshotWindow sets the SnapshotWindow field's value.
-func (s *CreateCacheClusterInput) SetSnapshotWindow(v string) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetSnapshotWindow(v string) *CreateReplicationGroupInput {
s.SnapshotWindow = &v
return s
}
// SetTags sets the Tags field's value.
-func (s *CreateCacheClusterInput) SetTags(v []*Tag) *CreateCacheClusterInput {
+func (s *CreateReplicationGroupInput) SetTags(v []*Tag) *CreateReplicationGroupInput {
s.Tags = v
return s
}
-type CreateCacheClusterOutput struct {
+// SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value.
+func (s *CreateReplicationGroupInput) SetTransitEncryptionEnabled(v bool) *CreateReplicationGroupInput {
+ s.TransitEncryptionEnabled = &v
+ return s
+}
+
+type CreateReplicationGroupOutput struct {
_ struct{} `type:"structure"`
- // Contains all of the attributes of a specific cluster.
- CacheCluster *CacheCluster `type:"structure"`
+ // Contains all of the attributes of a specific Redis replication group.
+ ReplicationGroup *ReplicationGroup `type:"structure"`
}
// String returns the string representation
-func (s CreateCacheClusterOutput) String() string {
+func (s CreateReplicationGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheClusterOutput) GoString() string {
+func (s CreateReplicationGroupOutput) GoString() string {
return s.String()
}
-// SetCacheCluster sets the CacheCluster field's value.
-func (s *CreateCacheClusterOutput) SetCacheCluster(v *CacheCluster) *CreateCacheClusterOutput {
- s.CacheCluster = v
+// SetReplicationGroup sets the ReplicationGroup field's value.
+func (s *CreateReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *CreateReplicationGroupOutput {
+ s.ReplicationGroup = v
return s
}
-// Represents the input of a CreateCacheParameterGroup operation.
-type CreateCacheParameterGroupInput struct {
- _ struct{} `type:"structure"`
-
- // The name of the cache parameter group family that the cache parameter group
- // can be used with.
- //
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- //
- // CacheParameterGroupFamily is a required field
- CacheParameterGroupFamily *string `type:"string" required:"true"`
+// Represents the input of a CreateSnapshot operation.
+type CreateSnapshotInput struct {
+ _ struct{} `type:"structure"`
- // A user-specified name for the cache parameter group.
- //
- // CacheParameterGroupName is a required field
- CacheParameterGroupName *string `type:"string" required:"true"`
+ // The identifier of an existing cluster. The snapshot is created from this
+ // cluster.
+ CacheClusterId *string `type:"string"`
- // A user-specified description for the cache parameter group.
+ // The ID of the KMS key used to encrypt the snapshot.
+ KmsKeyId *string `type:"string"`
+
+ // The identifier of an existing replication group. The snapshot is created
+ // from this replication group.
+ ReplicationGroupId *string `type:"string"`
+
+ // A name for the snapshot being created.
//
- // Description is a required field
- Description *string `type:"string" required:"true"`
+ // SnapshotName is a required field
+ SnapshotName *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CreateCacheParameterGroupInput) String() string {
+func (s CreateSnapshotInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheParameterGroupInput) GoString() string {
+func (s CreateSnapshotInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateCacheParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCacheParameterGroupInput"}
- if s.CacheParameterGroupFamily == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily"))
- }
- if s.CacheParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
- }
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
+func (s *CreateSnapshotInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
+ if s.SnapshotName == nil {
+ invalidParams.Add(request.NewErrParamRequired("SnapshotName"))
}
if invalidParams.Len() > 0 {
@@ -7733,86 +9557,143 @@ func (s *CreateCacheParameterGroupInput) Validate() error {
return nil
}
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupFamily(v string) *CreateCacheParameterGroupInput {
- s.CacheParameterGroupFamily = &v
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *CreateSnapshotInput) SetCacheClusterId(v string) *CreateSnapshotInput {
+ s.CacheClusterId = &v
return s
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CreateCacheParameterGroupInput) SetCacheParameterGroupName(v string) *CreateCacheParameterGroupInput {
- s.CacheParameterGroupName = &v
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *CreateSnapshotInput) SetKmsKeyId(v string) *CreateSnapshotInput {
+ s.KmsKeyId = &v
return s
}
-// SetDescription sets the Description field's value.
-func (s *CreateCacheParameterGroupInput) SetDescription(v string) *CreateCacheParameterGroupInput {
- s.Description = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *CreateSnapshotInput) SetReplicationGroupId(v string) *CreateSnapshotInput {
+ s.ReplicationGroupId = &v
return s
}
-type CreateCacheParameterGroupOutput struct {
+// SetSnapshotName sets the SnapshotName field's value.
+func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput {
+ s.SnapshotName = &v
+ return s
+}
+
+type CreateSnapshotOutput struct {
_ struct{} `type:"structure"`
- // Represents the output of a CreateCacheParameterGroup operation.
- CacheParameterGroup *CacheParameterGroup `type:"structure"`
+ // Represents a copy of an entire Redis cluster as of the time when the snapshot
+ // was taken.
+ Snapshot *Snapshot `type:"structure"`
}
// String returns the string representation
-func (s CreateCacheParameterGroupOutput) String() string {
+func (s CreateSnapshotOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheParameterGroupOutput) GoString() string {
+func (s CreateSnapshotOutput) GoString() string {
return s.String()
}
-// SetCacheParameterGroup sets the CacheParameterGroup field's value.
-func (s *CreateCacheParameterGroupOutput) SetCacheParameterGroup(v *CacheParameterGroup) *CreateCacheParameterGroupOutput {
- s.CacheParameterGroup = v
+// SetSnapshot sets the Snapshot field's value.
+func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput {
+ s.Snapshot = v
return s
}
-// Represents the input of a CreateCacheSecurityGroup operation.
-type CreateCacheSecurityGroupInput struct {
+// The endpoint from which data should be migrated.
+type CustomerNodeEndpoint struct {
_ struct{} `type:"structure"`
- // A name for the cache security group. This value is stored as a lowercase
- // string.
- //
- // Constraints: Must contain no more than 255 alphanumeric characters. Cannot
- // be the word "Default".
+ // The address of the node endpoint
+ Address *string `type:"string"`
+
+ // The port of the node endpoint
+ Port *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s CustomerNodeEndpoint) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CustomerNodeEndpoint) GoString() string {
+ return s.String()
+}
+
+// SetAddress sets the Address field's value.
+func (s *CustomerNodeEndpoint) SetAddress(v string) *CustomerNodeEndpoint {
+ s.Address = &v
+ return s
+}
+
+// SetPort sets the Port field's value.
+func (s *CustomerNodeEndpoint) SetPort(v int64) *CustomerNodeEndpoint {
+ s.Port = &v
+ return s
+}
+
+type DecreaseNodeGroupsInGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates that the shard reconfiguration process begins immediately. At present,
+ // the only permitted value for this parameter is true.
//
- // Example: mysecuritygroup
+ // ApplyImmediately is a required field
+ ApplyImmediately *bool `type:"boolean" required:"true"`
+
+ // If the value of NodeGroupCount is less than the current number of node groups
+ // (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required.
+ // NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
+ // ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
+ // from the cluster.
+ GlobalNodeGroupsToRemove []*string `locationNameList:"GlobalNodeGroupId" type:"list"`
+
+ // If the value of NodeGroupCount is less than the current number of node groups
+ // (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required.
+ // NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
+ // ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
+ // from the cluster.
+ GlobalNodeGroupsToRetain []*string `locationNameList:"GlobalNodeGroupId" type:"list"`
+
+ // The name of the Global Datastore
//
- // CacheSecurityGroupName is a required field
- CacheSecurityGroupName *string `type:"string" required:"true"`
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
- // A description for the cache security group.
+ // The number of node groups (shards) that results from the modification of
+ // the shard configuration
//
- // Description is a required field
- Description *string `type:"string" required:"true"`
+ // NodeGroupCount is a required field
+ NodeGroupCount *int64 `type:"integer" required:"true"`
}
// String returns the string representation
-func (s CreateCacheSecurityGroupInput) String() string {
+func (s DecreaseNodeGroupsInGlobalReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheSecurityGroupInput) GoString() string {
+func (s DecreaseNodeGroupsInGlobalReplicationGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateCacheSecurityGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCacheSecurityGroupInput"}
- if s.CacheSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DecreaseNodeGroupsInGlobalReplicationGroupInput"}
+ if s.ApplyImmediately == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
}
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+ if s.NodeGroupCount == nil {
+ invalidParams.Add(request.NewErrParamRequired("NodeGroupCount"))
}
if invalidParams.Len() > 0 {
@@ -7821,92 +9702,132 @@ func (s *CreateCacheSecurityGroupInput) Validate() error {
return nil
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *CreateCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *CreateCacheSecurityGroupInput {
- s.CacheSecurityGroupName = &v
+// SetApplyImmediately sets the ApplyImmediately field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) SetApplyImmediately(v bool) *DecreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.ApplyImmediately = &v
return s
}
-// SetDescription sets the Description field's value.
-func (s *CreateCacheSecurityGroupInput) SetDescription(v string) *CreateCacheSecurityGroupInput {
- s.Description = &v
+// SetGlobalNodeGroupsToRemove sets the GlobalNodeGroupsToRemove field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) SetGlobalNodeGroupsToRemove(v []*string) *DecreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.GlobalNodeGroupsToRemove = v
return s
}
-type CreateCacheSecurityGroupOutput struct {
+// SetGlobalNodeGroupsToRetain sets the GlobalNodeGroupsToRetain field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) SetGlobalNodeGroupsToRetain(v []*string) *DecreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.GlobalNodeGroupsToRetain = v
+ return s
+}
+
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *DecreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
+ return s
+}
+
+// SetNodeGroupCount sets the NodeGroupCount field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupInput) SetNodeGroupCount(v int64) *DecreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.NodeGroupCount = &v
+ return s
+}
+
+type DecreaseNodeGroupsInGlobalReplicationGroupOutput struct {
_ struct{} `type:"structure"`
- // Represents the output of one of the following operations:
- //
- // * AuthorizeCacheSecurityGroupIngress
- //
- // * CreateCacheSecurityGroup
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
//
- // * RevokeCacheSecurityGroupIngress
- CacheSecurityGroup *CacheSecurityGroup `type:"structure"`
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
}
// String returns the string representation
-func (s CreateCacheSecurityGroupOutput) String() string {
+func (s DecreaseNodeGroupsInGlobalReplicationGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheSecurityGroupOutput) GoString() string {
+func (s DecreaseNodeGroupsInGlobalReplicationGroupOutput) GoString() string {
return s.String()
}
-// SetCacheSecurityGroup sets the CacheSecurityGroup field's value.
-func (s *CreateCacheSecurityGroupOutput) SetCacheSecurityGroup(v *CacheSecurityGroup) *CreateCacheSecurityGroupOutput {
- s.CacheSecurityGroup = v
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *DecreaseNodeGroupsInGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *DecreaseNodeGroupsInGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
-// Represents the input of a CreateCacheSubnetGroup operation.
-type CreateCacheSubnetGroupInput struct {
+type DecreaseReplicaCountInput struct {
_ struct{} `type:"structure"`
- // A description for the cache subnet group.
+ // If True, the number of replica nodes is decreased immediately. ApplyImmediately=False
+ // is not currently supported.
//
- // CacheSubnetGroupDescription is a required field
- CacheSubnetGroupDescription *string `type:"string" required:"true"`
+ // ApplyImmediately is a required field
+ ApplyImmediately *bool `type:"boolean" required:"true"`
- // A name for the cache subnet group. This value is stored as a lowercase string.
+ // The number of read replica nodes you want at the completion of this operation.
+ // For Redis (cluster mode disabled) replication groups, this is the number
+ // of replica nodes in the replication group. For Redis (cluster mode enabled)
+ // replication groups, this is the number of replica nodes in each of the replication
+ // group's node groups.
//
- // Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
+ // The minimum number of replicas in a shard or replication group is:
//
- // Example: mysubnetgroup
+ // * Redis (cluster mode disabled) If Multi-AZ with Automatic Failover is
+ // enabled: 1 If Multi-AZ with Automatic Failover is not enabled: 0
//
- // CacheSubnetGroupName is a required field
- CacheSubnetGroupName *string `type:"string" required:"true"`
+ // * Redis (cluster mode enabled): 0 (though you will not be able to failover
+ // to a replica if your primary node fails)
+ NewReplicaCount *int64 `type:"integer"`
- // A list of VPC subnet IDs for the cache subnet group.
+ // A list of ConfigureShard objects that can be used to configure each shard
+ // in a Redis (cluster mode enabled) replication group. The ConfigureShard has
+ // three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.
+ ReplicaConfiguration []*ConfigureShard `locationNameList:"ConfigureShard" type:"list"`
+
+ // A list of the node ids to remove from the replication group or node group
+ // (shard).
+ ReplicasToRemove []*string `type:"list"`
+
+ // The id of the replication group from which you want to remove replica nodes.
//
- // SubnetIds is a required field
- SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CreateCacheSubnetGroupInput) String() string {
+func (s DecreaseReplicaCountInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheSubnetGroupInput) GoString() string {
+func (s DecreaseReplicaCountInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateCacheSubnetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCacheSubnetGroupInput"}
- if s.CacheSubnetGroupDescription == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupDescription"))
+func (s *DecreaseReplicaCountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DecreaseReplicaCountInput"}
+ if s.ApplyImmediately == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
}
- if s.CacheSubnetGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName"))
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
}
- if s.SubnetIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
+ if s.ReplicaConfiguration != nil {
+ for i, v := range s.ReplicaConfiguration {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplicaConfiguration", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -7915,406 +9836,270 @@ func (s *CreateCacheSubnetGroupInput) Validate() error {
return nil
}
-// SetCacheSubnetGroupDescription sets the CacheSubnetGroupDescription field's value.
-func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupDescription(v string) *CreateCacheSubnetGroupInput {
- s.CacheSubnetGroupDescription = &v
+// SetApplyImmediately sets the ApplyImmediately field's value.
+func (s *DecreaseReplicaCountInput) SetApplyImmediately(v bool) *DecreaseReplicaCountInput {
+ s.ApplyImmediately = &v
return s
}
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *CreateCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *CreateCacheSubnetGroupInput {
- s.CacheSubnetGroupName = &v
+// SetNewReplicaCount sets the NewReplicaCount field's value.
+func (s *DecreaseReplicaCountInput) SetNewReplicaCount(v int64) *DecreaseReplicaCountInput {
+ s.NewReplicaCount = &v
return s
}
-// SetSubnetIds sets the SubnetIds field's value.
-func (s *CreateCacheSubnetGroupInput) SetSubnetIds(v []*string) *CreateCacheSubnetGroupInput {
- s.SubnetIds = v
+// SetReplicaConfiguration sets the ReplicaConfiguration field's value.
+func (s *DecreaseReplicaCountInput) SetReplicaConfiguration(v []*ConfigureShard) *DecreaseReplicaCountInput {
+ s.ReplicaConfiguration = v
return s
}
-type CreateCacheSubnetGroupOutput struct {
+// SetReplicasToRemove sets the ReplicasToRemove field's value.
+func (s *DecreaseReplicaCountInput) SetReplicasToRemove(v []*string) *DecreaseReplicaCountInput {
+ s.ReplicasToRemove = v
+ return s
+}
+
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *DecreaseReplicaCountInput) SetReplicationGroupId(v string) *DecreaseReplicaCountInput {
+ s.ReplicationGroupId = &v
+ return s
+}
+
+type DecreaseReplicaCountOutput struct {
_ struct{} `type:"structure"`
- // Represents the output of one of the following operations:
- //
- // * CreateCacheSubnetGroup
- //
- // * ModifyCacheSubnetGroup
- CacheSubnetGroup *CacheSubnetGroup `type:"structure"`
+ // Contains all of the attributes of a specific Redis replication group.
+ ReplicationGroup *ReplicationGroup `type:"structure"`
}
// String returns the string representation
-func (s CreateCacheSubnetGroupOutput) String() string {
+func (s DecreaseReplicaCountOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateCacheSubnetGroupOutput) GoString() string {
+func (s DecreaseReplicaCountOutput) GoString() string {
return s.String()
}
-// SetCacheSubnetGroup sets the CacheSubnetGroup field's value.
-func (s *CreateCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup) *CreateCacheSubnetGroupOutput {
- s.CacheSubnetGroup = v
+// SetReplicationGroup sets the ReplicationGroup field's value.
+func (s *DecreaseReplicaCountOutput) SetReplicationGroup(v *ReplicationGroup) *DecreaseReplicaCountOutput {
+ s.ReplicationGroup = v
return s
}
-// Represents the input of a CreateReplicationGroup operation.
-type CreateReplicationGroupInput struct {
+// Represents the input of a DeleteCacheCluster operation.
+type DeleteCacheClusterInput struct {
_ struct{} `type:"structure"`
- // A flag that enables encryption at rest when set to true.
- //
- // You cannot modify the value of AtRestEncryptionEnabled after the replication
- // group is created. To enable encryption at rest on a replication group you
- // must set AtRestEncryptionEnabled to true when you create the replication
- // group.
- //
- // Required: Only available when creating a replication group in an Amazon VPC
- // using redis version 3.2.6, 4.x or later.
- //
- // Default: false
- AtRestEncryptionEnabled *bool `type:"boolean"`
-
- // Reserved parameter. The password used to access a password protected server.
- //
- // AuthToken can be specified only on replication groups where TransitEncryptionEnabled
- // is true.
- //
- // For HIPAA compliance, you must specify TransitEncryptionEnabled as true,
- // an AuthToken, and a CacheSubnetGroup.
- //
- // Password constraints:
- //
- // * Must be only printable ASCII characters.
- //
- // * Must be at least 16 characters and no more than 128 characters in length.
- //
- // * The only permitted printable special characters are !, &, #, $, ^, <,
- // >, and -. Other printable special characters cannot be used in the AUTH
- // token.
- //
- // For more information, see AUTH password (http://redis.io/commands/AUTH) at
- // http://redis.io/commands/AUTH.
- AuthToken *string `type:"string"`
-
- // This parameter is currently disabled.
- AutoMinorVersionUpgrade *bool `type:"boolean"`
-
- // Specifies whether a read-only replica is automatically promoted to read/write
- // primary if the existing primary fails.
- //
- // If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ
- // is disabled for this replication group.
- //
- // AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled)
- // replication groups.
- //
- // Default: false
- //
- // Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover
- // on:
- //
- // * Redis versions earlier than 2.8.6.
- //
- // * Redis (cluster mode disabled): T1 node types.
+ // The cluster identifier for the cluster to be deleted. This parameter is not
+ // case sensitive.
//
- // * Redis (cluster mode enabled): T1 node types.
- AutomaticFailoverEnabled *bool `type:"boolean"`
+ // CacheClusterId is a required field
+ CacheClusterId *string `type:"string" required:"true"`
- // The compute and memory capacity of the nodes in the node group (shard).
- //
- // The following node types are supported by ElastiCache. Generally speaking,
- // the current generation types provide more memory and computational power
- // at lower cost when compared to their equivalent previous generation counterparts.
- //
- // * General purpose: Current generation: M5 node types: cache.m5.large,
- // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
- // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
- //
- // * Compute optimized: Previous generation: (not recommended) C1 node types:
- // cache.c1.xlarge
- //
- // * Memory optimized: Current generation: R5 node types: cache.r5.large,
- // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
- // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
- // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
- // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
- // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
- // cache.r3.8xlarge
- //
- // Additional node type info
- //
- // * All current generation instance types are created in Amazon VPC by default.
- //
- // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
- //
- // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
- //
- // * Redis configuration variables appendonly and appendfsync are not supported
- // on Redis version 2.8.22 and later.
- CacheNodeType *string `type:"string"`
+ // The user-supplied name of a final cluster snapshot. This is the unique name
+ // that identifies the snapshot. ElastiCache creates the snapshot, and then
+ // deletes the cluster immediately afterward.
+ FinalSnapshotIdentifier *string `type:"string"`
+}
- // The name of the parameter group to associate with this replication group.
- // If this argument is omitted, the default cache parameter group for the specified
- // engine is used.
- //
- // If you are restoring to an engine version that is different than the original,
- // you must specify the default version of that version. For example, CacheParameterGroupName=default.redis4.0.
- //
- // If you are running Redis version 3.2.4 or later, only one node group (shard),
- // and want to use a default parameter group, we recommend that you specify
- // the parameter group by name.
- //
- // * To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2.
- //
- // * To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on.
- CacheParameterGroupName *string `type:"string"`
+// String returns the string representation
+func (s DeleteCacheClusterInput) String() string {
+ return awsutil.Prettify(s)
+}
- // A list of cache security group names to associate with this replication group.
- CacheSecurityGroupNames []*string `locationNameList:"CacheSecurityGroupName" type:"list"`
+// GoString returns the string representation
+func (s DeleteCacheClusterInput) GoString() string {
+ return s.String()
+}
- // The name of the cache subnet group to be used for the replication group.
- //
- // If you're going to launch your cluster in an Amazon VPC, you need to create
- // a subnet group before you start creating a cluster. For more information,
- // see Subnets and Subnet Groups (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html).
- CacheSubnetGroupName *string `type:"string"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteCacheClusterInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteCacheClusterInput"}
+ if s.CacheClusterId == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheClusterId"))
+ }
- // The name of the cache engine to be used for the clusters in this replication
- // group.
- Engine *string `type:"string"`
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
- // The version number of the cache engine to be used for the clusters in this
- // replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions
- // operation.
- //
- // Important: You can upgrade to a newer engine version (see Selecting a Cache
- // Engine and Version (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SelectEngine.html#VersionManagement))
- // in the ElastiCache User Guide, but you cannot downgrade to an earlier engine
- // version. If you want to use an earlier engine version, you must delete the
- // existing cluster or replication group and create it anew with the earlier
- // engine version.
- EngineVersion *string `type:"string"`
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *DeleteCacheClusterInput) SetCacheClusterId(v string) *DeleteCacheClusterInput {
+ s.CacheClusterId = &v
+ return s
+}
- // The ID of the KMS key used to encrypt the disk on the cluster.
- KmsKeyId *string `type:"string"`
+// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value.
+func (s *DeleteCacheClusterInput) SetFinalSnapshotIdentifier(v string) *DeleteCacheClusterInput {
+ s.FinalSnapshotIdentifier = &v
+ return s
+}
- // A list of node group (shard) configuration options. Each node group (shard)
- // configuration has the following members: PrimaryAvailabilityZone, ReplicaAvailabilityZones,
- // ReplicaCount, and Slots.
- //
- // If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode
- // enabled) replication group, you can use this parameter to individually configure
- // each node group (shard), or you can omit this parameter. However, when seeding
- // a Redis (cluster mode enabled) cluster from a S3 rdb file, you must configure
- // each node group (shard) using this parameter because you must specify the
- // slots for each node group.
- NodeGroupConfiguration []*NodeGroupConfiguration `locationNameList:"NodeGroupConfiguration" type:"list"`
+type DeleteCacheClusterOutput struct {
+ _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
- // (SNS) topic to which notifications are sent.
- //
- // The Amazon SNS topic owner must be the same as the cluster owner.
- NotificationTopicArn *string `type:"string"`
+ // Contains all of the attributes of a specific cluster.
+ CacheCluster *CacheCluster `type:"structure"`
+}
- // The number of clusters this replication group initially has.
- //
- // This parameter is not used if there is more than one node group (shard).
- // You should use ReplicasPerNodeGroup instead.
- //
- // If AutomaticFailoverEnabled is true, the value of this parameter must be
- // at least 2. If AutomaticFailoverEnabled is false you can omit this parameter
- // (it will default to 1), or you can explicitly set it to a value between 2
- // and 6.
- //
- // The maximum permitted value for NumCacheClusters is 6 (1 primary plus 5 replicas).
- NumCacheClusters *int64 `type:"integer"`
+// String returns the string representation
+func (s DeleteCacheClusterOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // An optional parameter that specifies the number of node groups (shards) for
- // this Redis (cluster mode enabled) replication group. For Redis (cluster mode
- // disabled) either omit this parameter or set it to 1.
- //
- // Default: 1
- NumNodeGroups *int64 `type:"integer"`
+// GoString returns the string representation
+func (s DeleteCacheClusterOutput) GoString() string {
+ return s.String()
+}
- // The port number on which each member of the replication group accepts connections.
- Port *int64 `type:"integer"`
+// SetCacheCluster sets the CacheCluster field's value.
+func (s *DeleteCacheClusterOutput) SetCacheCluster(v *CacheCluster) *DeleteCacheClusterOutput {
+ s.CacheCluster = v
+ return s
+}
- // A list of EC2 Availability Zones in which the replication group's clusters
- // are created. The order of the Availability Zones in the list is the order
- // in which clusters are allocated. The primary cluster is created in the first
- // AZ in the list.
- //
- // This parameter is not used if there is more than one node group (shard).
- // You should use NodeGroupConfiguration instead.
- //
- // If you are creating your replication group in an Amazon VPC (recommended),
- // you can only locate clusters in Availability Zones associated with the subnets
- // in the selected subnet group.
- //
- // The number of Availability Zones listed must equal the value of NumCacheClusters.
- //
- // Default: system chosen Availability Zones.
- PreferredCacheClusterAZs []*string `locationNameList:"AvailabilityZone" type:"list"`
+// Represents the input of a DeleteCacheParameterGroup operation.
+type DeleteCacheParameterGroupInput struct {
+ _ struct{} `type:"structure"`
- // Specifies the weekly time range during which maintenance on the cluster is
- // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
- // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid
- // values for ddd are:
- //
- // Specifies the weekly time range during which maintenance on the cluster is
- // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
- // (24H Clock UTC). The minimum maintenance window is a 60 minute period.
- //
- // Valid values for ddd are:
- //
- // * sun
- //
- // * mon
- //
- // * tue
- //
- // * wed
- //
- // * thu
- //
- // * fri
- //
- // * sat
+ // The name of the cache parameter group to delete.
//
- // Example: sun:23:00-mon:01:30
- PreferredMaintenanceWindow *string `type:"string"`
-
- // The identifier of the cluster that serves as the primary for this replication
- // group. This cluster must already exist and have a status of available.
+ // The specified cache security group must not be associated with any clusters.
//
- // This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup
- // is specified.
- PrimaryClusterId *string `type:"string"`
+ // CacheParameterGroupName is a required field
+ CacheParameterGroupName *string `type:"string" required:"true"`
+}
- // An optional parameter that specifies the number of replica nodes in each
- // node group (shard). Valid values are 0 to 5.
- ReplicasPerNodeGroup *int64 `type:"integer"`
+// String returns the string representation
+func (s DeleteCacheParameterGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
- // A user-created description for the replication group.
- //
- // ReplicationGroupDescription is a required field
- ReplicationGroupDescription *string `type:"string" required:"true"`
+// GoString returns the string representation
+func (s DeleteCacheParameterGroupInput) GoString() string {
+ return s.String()
+}
- // The replication group identifier. This parameter is stored as a lowercase
- // string.
- //
- // Constraints:
- //
- // * A name must contain from 1 to 40 alphanumeric characters or hyphens.
- //
- // * The first character must be a letter.
- //
- // * A name cannot end with a hyphen or contain two consecutive hyphens.
- //
- // ReplicationGroupId is a required field
- ReplicationGroupId *string `type:"string" required:"true"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteCacheParameterGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteCacheParameterGroupInput"}
+ if s.CacheParameterGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
+ }
- // One or more Amazon VPC security groups associated with this replication group.
- //
- // Use this parameter only when you are creating a replication group in an Amazon
- // Virtual Private Cloud (Amazon VPC).
- SecurityGroupIds []*string `locationNameList:"SecurityGroupId" type:"list"`
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
- // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB
- // snapshot files stored in Amazon S3. The snapshot files are used to populate
- // the new replication group. The Amazon S3 object name in the ARN cannot contain
- // any commas. The new replication group will have the number of node groups
- // (console: shards) specified by the parameter NumNodeGroups or the number
- // of node groups configured by NodeGroupConfiguration regardless of the number
- // of ARNs specified here.
- //
- // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
- SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"`
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *DeleteCacheParameterGroupInput) SetCacheParameterGroupName(v string) *DeleteCacheParameterGroupInput {
+ s.CacheParameterGroupName = &v
+ return s
+}
- // The name of a snapshot from which to restore data into the new replication
- // group. The snapshot status changes to restoring while the new replication
- // group is being created.
- SnapshotName *string `type:"string"`
+type DeleteCacheParameterGroupOutput struct {
+ _ struct{} `type:"structure"`
+}
- // The number of days for which ElastiCache retains automatic snapshots before
- // deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot
- // that was taken today is retained for 5 days before being deleted.
- //
- // Default: 0 (i.e., automatic backups are disabled for this cluster).
- SnapshotRetentionLimit *int64 `type:"integer"`
+// String returns the string representation
+func (s DeleteCacheParameterGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // The daily time range (in UTC) during which ElastiCache begins taking a daily
- // snapshot of your node group (shard).
- //
- // Example: 05:00-09:00
- //
- // If you do not specify this parameter, ElastiCache automatically chooses an
- // appropriate time range.
- SnapshotWindow *string `type:"string"`
+// GoString returns the string representation
+func (s DeleteCacheParameterGroupOutput) GoString() string {
+ return s.String()
+}
- // A list of cost allocation tags to be added to this resource. Tags are comma-separated
- // key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple
- // tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
+// Represents the input of a DeleteCacheSecurityGroup operation.
+type DeleteCacheSecurityGroupInput struct {
+ _ struct{} `type:"structure"`
- // A flag that enables in-transit encryption when set to true.
- //
- // You cannot modify the value of TransitEncryptionEnabled after the cluster
- // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
- // to true when you create a cluster.
- //
- // This parameter is valid only if the Engine parameter is redis, the EngineVersion
- // parameter is 3.2.6, 4.x or later, and the cluster is being created in an
- // Amazon VPC.
- //
- // If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup.
- //
- // Required: Only available when creating a replication group in an Amazon VPC
- // using redis version 3.2.6, 4.x or later.
+ // The name of the cache security group to delete.
//
- // Default: false
+ // You cannot delete the default security group.
//
- // For HIPAA compliance, you must specify TransitEncryptionEnabled as true,
- // an AuthToken, and a CacheSubnetGroup.
- TransitEncryptionEnabled *bool `type:"boolean"`
+ // CacheSecurityGroupName is a required field
+ CacheSecurityGroupName *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CreateReplicationGroupInput) String() string {
+func (s DeleteCacheSecurityGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateReplicationGroupInput) GoString() string {
+func (s DeleteCacheSecurityGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateReplicationGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateReplicationGroupInput"}
- if s.ReplicationGroupDescription == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationGroupDescription"))
+func (s *DeleteCacheSecurityGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSecurityGroupInput"}
+ if s.CacheSecurityGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
}
- if s.ReplicationGroupId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
}
- if s.NodeGroupConfiguration != nil {
- for i, v := range s.NodeGroupConfiguration {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodeGroupConfiguration", i), err.(request.ErrInvalidParams))
- }
- }
+ return nil
+}
+
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *DeleteCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *DeleteCacheSecurityGroupInput {
+ s.CacheSecurityGroupName = &v
+ return s
+}
+
+type DeleteCacheSecurityGroupOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteCacheSecurityGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteCacheSecurityGroupOutput) GoString() string {
+ return s.String()
+}
+
+// Represents the input of a DeleteCacheSubnetGroup operation.
+type DeleteCacheSubnetGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the cache subnet group to delete.
+ //
+ // Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
+ //
+ // CacheSubnetGroupName is a required field
+ CacheSubnetGroupName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteCacheSubnetGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteCacheSubnetGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteCacheSubnetGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSubnetGroupInput"}
+ if s.CacheSubnetGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName"))
}
if invalidParams.Len() > 0 {
@@ -8323,181 +10108,171 @@ func (s *CreateReplicationGroupInput) Validate() error {
return nil
}
-// SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value.
-func (s *CreateReplicationGroupInput) SetAtRestEncryptionEnabled(v bool) *CreateReplicationGroupInput {
- s.AtRestEncryptionEnabled = &v
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *DeleteCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *DeleteCacheSubnetGroupInput {
+ s.CacheSubnetGroupName = &v
return s
}
-// SetAuthToken sets the AuthToken field's value.
-func (s *CreateReplicationGroupInput) SetAuthToken(v string) *CreateReplicationGroupInput {
- s.AuthToken = &v
- return s
+type DeleteCacheSubnetGroupOutput struct {
+ _ struct{} `type:"structure"`
}
-// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
-func (s *CreateReplicationGroupInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationGroupInput {
- s.AutoMinorVersionUpgrade = &v
- return s
+// String returns the string representation
+func (s DeleteCacheSubnetGroupOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value.
-func (s *CreateReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *CreateReplicationGroupInput {
- s.AutomaticFailoverEnabled = &v
- return s
+// GoString returns the string representation
+func (s DeleteCacheSubnetGroupOutput) GoString() string {
+ return s.String()
}
-// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *CreateReplicationGroupInput) SetCacheNodeType(v string) *CreateReplicationGroupInput {
- s.CacheNodeType = &v
- return s
-}
+type DeleteGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *CreateReplicationGroupInput) SetCacheParameterGroupName(v string) *CreateReplicationGroupInput {
- s.CacheParameterGroupName = &v
- return s
-}
+ // The name of the Global Datastore
+ //
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
-// SetCacheSecurityGroupNames sets the CacheSecurityGroupNames field's value.
-func (s *CreateReplicationGroupInput) SetCacheSecurityGroupNames(v []*string) *CreateReplicationGroupInput {
- s.CacheSecurityGroupNames = v
- return s
+ // If set to true, the primary replication is retained as a standalone replication
+ // group.
+ //
+ // RetainPrimaryReplicationGroup is a required field
+ RetainPrimaryReplicationGroup *bool `type:"boolean" required:"true"`
}
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *CreateReplicationGroupInput) SetCacheSubnetGroupName(v string) *CreateReplicationGroupInput {
- s.CacheSubnetGroupName = &v
- return s
+// String returns the string representation
+func (s DeleteGlobalReplicationGroupInput) String() string {
+ return awsutil.Prettify(s)
}
-// SetEngine sets the Engine field's value.
-func (s *CreateReplicationGroupInput) SetEngine(v string) *CreateReplicationGroupInput {
- s.Engine = &v
- return s
+// GoString returns the string representation
+func (s DeleteGlobalReplicationGroupInput) GoString() string {
+ return s.String()
}
-// SetEngineVersion sets the EngineVersion field's value.
-func (s *CreateReplicationGroupInput) SetEngineVersion(v string) *CreateReplicationGroupInput {
- s.EngineVersion = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalReplicationGroupInput"}
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+ if s.RetainPrimaryReplicationGroup == nil {
+ invalidParams.Add(request.NewErrParamRequired("RetainPrimaryReplicationGroup"))
+ }
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *CreateReplicationGroupInput) SetKmsKeyId(v string) *CreateReplicationGroupInput {
- s.KmsKeyId = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetNodeGroupConfiguration sets the NodeGroupConfiguration field's value.
-func (s *CreateReplicationGroupInput) SetNodeGroupConfiguration(v []*NodeGroupConfiguration) *CreateReplicationGroupInput {
- s.NodeGroupConfiguration = v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *DeleteGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *DeleteGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetNotificationTopicArn sets the NotificationTopicArn field's value.
-func (s *CreateReplicationGroupInput) SetNotificationTopicArn(v string) *CreateReplicationGroupInput {
- s.NotificationTopicArn = &v
+// SetRetainPrimaryReplicationGroup sets the RetainPrimaryReplicationGroup field's value.
+func (s *DeleteGlobalReplicationGroupInput) SetRetainPrimaryReplicationGroup(v bool) *DeleteGlobalReplicationGroupInput {
+ s.RetainPrimaryReplicationGroup = &v
return s
}
-// SetNumCacheClusters sets the NumCacheClusters field's value.
-func (s *CreateReplicationGroupInput) SetNumCacheClusters(v int64) *CreateReplicationGroupInput {
- s.NumCacheClusters = &v
- return s
-}
+type DeleteGlobalReplicationGroupOutput struct {
+ _ struct{} `type:"structure"`
-// SetNumNodeGroups sets the NumNodeGroups field's value.
-func (s *CreateReplicationGroupInput) SetNumNodeGroups(v int64) *CreateReplicationGroupInput {
- s.NumNodeGroups = &v
- return s
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
}
-// SetPort sets the Port field's value.
-func (s *CreateReplicationGroupInput) SetPort(v int64) *CreateReplicationGroupInput {
- s.Port = &v
- return s
+// String returns the string representation
+func (s DeleteGlobalReplicationGroupOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetPreferredCacheClusterAZs sets the PreferredCacheClusterAZs field's value.
-func (s *CreateReplicationGroupInput) SetPreferredCacheClusterAZs(v []*string) *CreateReplicationGroupInput {
- s.PreferredCacheClusterAZs = v
- return s
+// GoString returns the string representation
+func (s DeleteGlobalReplicationGroupOutput) GoString() string {
+ return s.String()
}
-// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
-func (s *CreateReplicationGroupInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationGroupInput {
- s.PreferredMaintenanceWindow = &v
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *DeleteGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *DeleteGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
-// SetPrimaryClusterId sets the PrimaryClusterId field's value.
-func (s *CreateReplicationGroupInput) SetPrimaryClusterId(v string) *CreateReplicationGroupInput {
- s.PrimaryClusterId = &v
- return s
-}
+// Represents the input of a DeleteReplicationGroup operation.
+type DeleteReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
-// SetReplicasPerNodeGroup sets the ReplicasPerNodeGroup field's value.
-func (s *CreateReplicationGroupInput) SetReplicasPerNodeGroup(v int64) *CreateReplicationGroupInput {
- s.ReplicasPerNodeGroup = &v
- return s
-}
+ // The name of a final node group (shard) snapshot. ElastiCache creates the
+ // snapshot from the primary node in the cluster, rather than one of the replicas;
+ // this is to ensure that it captures the freshest data. After the final snapshot
+ // is taken, the replication group is immediately deleted.
+ FinalSnapshotIdentifier *string `type:"string"`
-// SetReplicationGroupDescription sets the ReplicationGroupDescription field's value.
-func (s *CreateReplicationGroupInput) SetReplicationGroupDescription(v string) *CreateReplicationGroupInput {
- s.ReplicationGroupDescription = &v
- return s
-}
+ // The identifier for the cluster to be deleted. This parameter is not case
+ // sensitive.
+ //
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *CreateReplicationGroupInput) SetReplicationGroupId(v string) *CreateReplicationGroupInput {
- s.ReplicationGroupId = &v
- return s
+ // If set to true, all of the read replicas are deleted, but the primary node
+ // is retained.
+ RetainPrimaryCluster *bool `type:"boolean"`
}
-// SetSecurityGroupIds sets the SecurityGroupIds field's value.
-func (s *CreateReplicationGroupInput) SetSecurityGroupIds(v []*string) *CreateReplicationGroupInput {
- s.SecurityGroupIds = v
- return s
+// String returns the string representation
+func (s DeleteReplicationGroupInput) String() string {
+ return awsutil.Prettify(s)
}
-// SetSnapshotArns sets the SnapshotArns field's value.
-func (s *CreateReplicationGroupInput) SetSnapshotArns(v []*string) *CreateReplicationGroupInput {
- s.SnapshotArns = v
- return s
+// GoString returns the string representation
+func (s DeleteReplicationGroupInput) GoString() string {
+ return s.String()
}
-// SetSnapshotName sets the SnapshotName field's value.
-func (s *CreateReplicationGroupInput) SetSnapshotName(v string) *CreateReplicationGroupInput {
- s.SnapshotName = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationGroupInput"}
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+ }
-// SetSnapshotRetentionLimit sets the SnapshotRetentionLimit field's value.
-func (s *CreateReplicationGroupInput) SetSnapshotRetentionLimit(v int64) *CreateReplicationGroupInput {
- s.SnapshotRetentionLimit = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetSnapshotWindow sets the SnapshotWindow field's value.
-func (s *CreateReplicationGroupInput) SetSnapshotWindow(v string) *CreateReplicationGroupInput {
- s.SnapshotWindow = &v
+// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value.
+func (s *DeleteReplicationGroupInput) SetFinalSnapshotIdentifier(v string) *DeleteReplicationGroupInput {
+ s.FinalSnapshotIdentifier = &v
return s
}
-// SetTags sets the Tags field's value.
-func (s *CreateReplicationGroupInput) SetTags(v []*Tag) *CreateReplicationGroupInput {
- s.Tags = v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *DeleteReplicationGroupInput) SetReplicationGroupId(v string) *DeleteReplicationGroupInput {
+ s.ReplicationGroupId = &v
return s
}
-// SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value.
-func (s *CreateReplicationGroupInput) SetTransitEncryptionEnabled(v bool) *CreateReplicationGroupInput {
- s.TransitEncryptionEnabled = &v
+// SetRetainPrimaryCluster sets the RetainPrimaryCluster field's value.
+func (s *DeleteReplicationGroupInput) SetRetainPrimaryCluster(v bool) *DeleteReplicationGroupInput {
+ s.RetainPrimaryCluster = &v
return s
}
-type CreateReplicationGroupOutput struct {
+type DeleteReplicationGroupOutput struct {
_ struct{} `type:"structure"`
// Contains all of the attributes of a specific Redis replication group.
@@ -8505,90 +10280,61 @@ type CreateReplicationGroupOutput struct {
}
// String returns the string representation
-func (s CreateReplicationGroupOutput) String() string {
+func (s DeleteReplicationGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateReplicationGroupOutput) GoString() string {
+func (s DeleteReplicationGroupOutput) GoString() string {
return s.String()
}
// SetReplicationGroup sets the ReplicationGroup field's value.
-func (s *CreateReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *CreateReplicationGroupOutput {
+func (s *DeleteReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *DeleteReplicationGroupOutput {
s.ReplicationGroup = v
return s
}
-// Represents the input of a CreateSnapshot operation.
-type CreateSnapshotInput struct {
+// Represents the input of a DeleteSnapshot operation.
+type DeleteSnapshotInput struct {
_ struct{} `type:"structure"`
- // The identifier of an existing cluster. The snapshot is created from this
- // cluster.
- CacheClusterId *string `type:"string"`
-
- // The ID of the KMS key used to encrypt the snapshot.
- KmsKeyId *string `type:"string"`
-
- // The identifier of an existing replication group. The snapshot is created
- // from this replication group.
- ReplicationGroupId *string `type:"string"`
-
- // A name for the snapshot being created.
+ // The name of the snapshot to be deleted.
//
// SnapshotName is a required field
SnapshotName *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s CreateSnapshotInput) String() string {
+func (s DeleteSnapshotInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateSnapshotInput) GoString() string {
+func (s DeleteSnapshotInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
+func (s *DeleteSnapshotInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
if s.SnapshotName == nil {
invalidParams.Add(request.NewErrParamRequired("SnapshotName"))
}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *CreateSnapshotInput) SetCacheClusterId(v string) *CreateSnapshotInput {
- s.CacheClusterId = &v
- return s
-}
-
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *CreateSnapshotInput) SetKmsKeyId(v string) *CreateSnapshotInput {
- s.KmsKeyId = &v
- return s
-}
-
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *CreateSnapshotInput) SetReplicationGroupId(v string) *CreateSnapshotInput {
- s.ReplicationGroupId = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
// SetSnapshotName sets the SnapshotName field's value.
-func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput {
+func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput {
s.SnapshotName = &v
return s
}
-type CreateSnapshotOutput struct {
+type DeleteSnapshotOutput struct {
_ struct{} `type:"structure"`
// Represents a copy of an entire Redis cluster as of the time when the snapshot
@@ -8597,338 +10343,381 @@ type CreateSnapshotOutput struct {
}
// String returns the string representation
-func (s CreateSnapshotOutput) String() string {
+func (s DeleteSnapshotOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateSnapshotOutput) GoString() string {
+func (s DeleteSnapshotOutput) GoString() string {
return s.String()
}
// SetSnapshot sets the Snapshot field's value.
-func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput {
+func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput {
s.Snapshot = v
return s
}
-// The endpoint from which data should be migrated.
-type CustomerNodeEndpoint struct {
+// Represents the input of a DescribeCacheClusters operation.
+type DescribeCacheClustersInput struct {
_ struct{} `type:"structure"`
- // The address of the node endpoint
- Address *string `type:"string"`
+ // The user-supplied cluster identifier. If this parameter is specified, only
+ // information about that specific cluster is returned. This parameter isn't
+ // case sensitive.
+ CacheClusterId *string `type:"string"`
- // The port of the node endpoint
- Port *int64 `type:"integer"`
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
+
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
+ //
+ // Default: 100
+ //
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
+
+ // An optional flag that can be included in the DescribeCacheCluster request
+ // to show only nodes (API/CLI: clusters) that are not members of a replication
+ // group. In practice, this mean Memcached and single node Redis clusters.
+ ShowCacheClustersNotInReplicationGroups *bool `type:"boolean"`
+
+ // An optional flag that can be included in the DescribeCacheCluster request
+ // to retrieve information about the individual cache nodes.
+ ShowCacheNodeInfo *bool `type:"boolean"`
}
// String returns the string representation
-func (s CustomerNodeEndpoint) String() string {
+func (s DescribeCacheClustersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CustomerNodeEndpoint) GoString() string {
+func (s DescribeCacheClustersInput) GoString() string {
return s.String()
}
-// SetAddress sets the Address field's value.
-func (s *CustomerNodeEndpoint) SetAddress(v string) *CustomerNodeEndpoint {
- s.Address = &v
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *DescribeCacheClustersInput) SetCacheClusterId(v string) *DescribeCacheClustersInput {
+ s.CacheClusterId = &v
return s
}
-// SetPort sets the Port field's value.
-func (s *CustomerNodeEndpoint) SetPort(v int64) *CustomerNodeEndpoint {
- s.Port = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheClustersInput) SetMarker(v string) *DescribeCacheClustersInput {
+ s.Marker = &v
return s
}
-type DecreaseReplicaCountInput struct {
- _ struct{} `type:"structure"`
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheClustersInput) SetMaxRecords(v int64) *DescribeCacheClustersInput {
+ s.MaxRecords = &v
+ return s
+}
- // If True, the number of replica nodes is decreased immediately. ApplyImmediately=False
- // is not currently supported.
- //
- // ApplyImmediately is a required field
- ApplyImmediately *bool `type:"boolean" required:"true"`
+// SetShowCacheClustersNotInReplicationGroups sets the ShowCacheClustersNotInReplicationGroups field's value.
+func (s *DescribeCacheClustersInput) SetShowCacheClustersNotInReplicationGroups(v bool) *DescribeCacheClustersInput {
+ s.ShowCacheClustersNotInReplicationGroups = &v
+ return s
+}
- // The number of read replica nodes you want at the completion of this operation.
- // For Redis (cluster mode disabled) replication groups, this is the number
- // of replica nodes in the replication group. For Redis (cluster mode enabled)
- // replication groups, this is the number of replica nodes in each of the replication
- // group's node groups.
- //
- // The minimum number of replicas in a shard or replication group is:
- //
- // * Redis (cluster mode disabled) If Multi-AZ with Automatic Failover is
- // enabled: 1 If Multi-AZ with Automatic Failover is not enabled: 0
- //
- // * Redis (cluster mode enabled): 0 (though you will not be able to failover
- // to a replica if your primary node fails)
- NewReplicaCount *int64 `type:"integer"`
+// SetShowCacheNodeInfo sets the ShowCacheNodeInfo field's value.
+func (s *DescribeCacheClustersInput) SetShowCacheNodeInfo(v bool) *DescribeCacheClustersInput {
+ s.ShowCacheNodeInfo = &v
+ return s
+}
- // A list of ConfigureShard objects that can be used to configure each shard
- // in a Redis (cluster mode enabled) replication group. The ConfigureShard has
- // three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.
- ReplicaConfiguration []*ConfigureShard `locationNameList:"ConfigureShard" type:"list"`
+// Represents the output of a DescribeCacheClusters operation.
+type DescribeCacheClustersOutput struct {
+ _ struct{} `type:"structure"`
- // A list of the node ids to remove from the replication group or node group
- // (shard).
- ReplicasToRemove []*string `type:"list"`
+ // A list of clusters. Each item in the list contains detailed information about
+ // one cluster.
+ CacheClusters []*CacheCluster `locationNameList:"CacheCluster" type:"list"`
- // The id of the replication group from which you want to remove replica nodes.
- //
- // ReplicationGroupId is a required field
- ReplicationGroupId *string `type:"string" required:"true"`
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
}
// String returns the string representation
-func (s DecreaseReplicaCountInput) String() string {
+func (s DescribeCacheClustersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DecreaseReplicaCountInput) GoString() string {
+func (s DescribeCacheClustersOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DecreaseReplicaCountInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DecreaseReplicaCountInput"}
- if s.ApplyImmediately == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
- }
- if s.ReplicationGroupId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
- }
- if s.ReplicaConfiguration != nil {
- for i, v := range s.ReplicaConfiguration {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplicaConfiguration", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetApplyImmediately sets the ApplyImmediately field's value.
-func (s *DecreaseReplicaCountInput) SetApplyImmediately(v bool) *DecreaseReplicaCountInput {
- s.ApplyImmediately = &v
+// SetCacheClusters sets the CacheClusters field's value.
+func (s *DescribeCacheClustersOutput) SetCacheClusters(v []*CacheCluster) *DescribeCacheClustersOutput {
+ s.CacheClusters = v
return s
}
-// SetNewReplicaCount sets the NewReplicaCount field's value.
-func (s *DecreaseReplicaCountInput) SetNewReplicaCount(v int64) *DecreaseReplicaCountInput {
- s.NewReplicaCount = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheClustersOutput) SetMarker(v string) *DescribeCacheClustersOutput {
+ s.Marker = &v
return s
}
-// SetReplicaConfiguration sets the ReplicaConfiguration field's value.
-func (s *DecreaseReplicaCountInput) SetReplicaConfiguration(v []*ConfigureShard) *DecreaseReplicaCountInput {
- s.ReplicaConfiguration = v
- return s
-}
+// Represents the input of a DescribeCacheEngineVersions operation.
+type DescribeCacheEngineVersionsInput struct {
+ _ struct{} `type:"structure"`
-// SetReplicasToRemove sets the ReplicasToRemove field's value.
-func (s *DecreaseReplicaCountInput) SetReplicasToRemove(v []*string) *DecreaseReplicaCountInput {
- s.ReplicasToRemove = v
- return s
-}
+ // The name of a specific cache parameter group family to return details for.
+ //
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ //
+ // Constraints:
+ //
+ // * Must be 1 to 255 alphanumeric characters
+ //
+ // * First character must be a letter
+ //
+ // * Cannot end with a hyphen or contain two consecutive hyphens
+ CacheParameterGroupFamily *string `type:"string"`
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *DecreaseReplicaCountInput) SetReplicationGroupId(v string) *DecreaseReplicaCountInput {
- s.ReplicationGroupId = &v
- return s
-}
+ // If true, specifies that only the default version of the specified engine
+ // or engine and major version combination is to be returned.
+ DefaultOnly *bool `type:"boolean"`
-type DecreaseReplicaCountOutput struct {
- _ struct{} `type:"structure"`
+ // The cache engine to return. Valid values: memcached | redis
+ Engine *string `type:"string"`
- // Contains all of the attributes of a specific Redis replication group.
- ReplicationGroup *ReplicationGroup `type:"structure"`
+ // The cache engine version to return.
+ //
+ // Example: 1.4.14
+ EngineVersion *string `type:"string"`
+
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
+
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
+ //
+ // Default: 100
+ //
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
}
// String returns the string representation
-func (s DecreaseReplicaCountOutput) String() string {
+func (s DescribeCacheEngineVersionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DecreaseReplicaCountOutput) GoString() string {
+func (s DescribeCacheEngineVersionsInput) GoString() string {
return s.String()
}
-// SetReplicationGroup sets the ReplicationGroup field's value.
-func (s *DecreaseReplicaCountOutput) SetReplicationGroup(v *ReplicationGroup) *DecreaseReplicaCountOutput {
- s.ReplicationGroup = v
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *DescribeCacheEngineVersionsInput) SetCacheParameterGroupFamily(v string) *DescribeCacheEngineVersionsInput {
+ s.CacheParameterGroupFamily = &v
return s
}
-// Represents the input of a DeleteCacheCluster operation.
-type DeleteCacheClusterInput struct {
- _ struct{} `type:"structure"`
-
- // The cluster identifier for the cluster to be deleted. This parameter is not
- // case sensitive.
- //
- // CacheClusterId is a required field
- CacheClusterId *string `type:"string" required:"true"`
-
- // The user-supplied name of a final cluster snapshot. This is the unique name
- // that identifies the snapshot. ElastiCache creates the snapshot, and then
- // deletes the cluster immediately afterward.
- FinalSnapshotIdentifier *string `type:"string"`
-}
-
-// String returns the string representation
-func (s DeleteCacheClusterInput) String() string {
- return awsutil.Prettify(s)
+// SetDefaultOnly sets the DefaultOnly field's value.
+func (s *DescribeCacheEngineVersionsInput) SetDefaultOnly(v bool) *DescribeCacheEngineVersionsInput {
+ s.DefaultOnly = &v
+ return s
}
-// GoString returns the string representation
-func (s DeleteCacheClusterInput) GoString() string {
- return s.String()
+// SetEngine sets the Engine field's value.
+func (s *DescribeCacheEngineVersionsInput) SetEngine(v string) *DescribeCacheEngineVersionsInput {
+ s.Engine = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteCacheClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCacheClusterInput"}
- if s.CacheClusterId == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheClusterId"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *DescribeCacheEngineVersionsInput) SetEngineVersion(v string) *DescribeCacheEngineVersionsInput {
+ s.EngineVersion = &v
+ return s
}
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *DeleteCacheClusterInput) SetCacheClusterId(v string) *DeleteCacheClusterInput {
- s.CacheClusterId = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheEngineVersionsInput) SetMarker(v string) *DescribeCacheEngineVersionsInput {
+ s.Marker = &v
return s
}
-// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value.
-func (s *DeleteCacheClusterInput) SetFinalSnapshotIdentifier(v string) *DeleteCacheClusterInput {
- s.FinalSnapshotIdentifier = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheEngineVersionsInput) SetMaxRecords(v int64) *DescribeCacheEngineVersionsInput {
+ s.MaxRecords = &v
return s
}
-type DeleteCacheClusterOutput struct {
+// Represents the output of a DescribeCacheEngineVersions operation.
+type DescribeCacheEngineVersionsOutput struct {
_ struct{} `type:"structure"`
- // Contains all of the attributes of a specific cluster.
- CacheCluster *CacheCluster `type:"structure"`
+ // A list of cache engine version details. Each element in the list contains
+ // detailed information about one cache engine version.
+ CacheEngineVersions []*CacheEngineVersion `locationNameList:"CacheEngineVersion" type:"list"`
+
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
}
// String returns the string representation
-func (s DeleteCacheClusterOutput) String() string {
+func (s DescribeCacheEngineVersionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteCacheClusterOutput) GoString() string {
+func (s DescribeCacheEngineVersionsOutput) GoString() string {
return s.String()
}
-// SetCacheCluster sets the CacheCluster field's value.
-func (s *DeleteCacheClusterOutput) SetCacheCluster(v *CacheCluster) *DeleteCacheClusterOutput {
- s.CacheCluster = v
+// SetCacheEngineVersions sets the CacheEngineVersions field's value.
+func (s *DescribeCacheEngineVersionsOutput) SetCacheEngineVersions(v []*CacheEngineVersion) *DescribeCacheEngineVersionsOutput {
+ s.CacheEngineVersions = v
return s
}
-// Represents the input of a DeleteCacheParameterGroup operation.
-type DeleteCacheParameterGroupInput struct {
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheEngineVersionsOutput) SetMarker(v string) *DescribeCacheEngineVersionsOutput {
+ s.Marker = &v
+ return s
+}
+
+// Represents the input of a DescribeCacheParameterGroups operation.
+type DescribeCacheParameterGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of the cache parameter group to delete.
+ // The name of a specific cache parameter group to return details for.
+ CacheParameterGroupName *string `type:"string"`
+
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
+
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
//
- // The specified cache security group must not be associated with any clusters.
+ // Default: 100
//
- // CacheParameterGroupName is a required field
- CacheParameterGroupName *string `type:"string" required:"true"`
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
}
// String returns the string representation
-func (s DeleteCacheParameterGroupInput) String() string {
+func (s DescribeCacheParameterGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteCacheParameterGroupInput) GoString() string {
+func (s DescribeCacheParameterGroupsInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteCacheParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCacheParameterGroupInput"}
- if s.CacheParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
- }
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *DescribeCacheParameterGroupsInput) SetCacheParameterGroupName(v string) *DescribeCacheParameterGroupsInput {
+ s.CacheParameterGroupName = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheParameterGroupsInput) SetMarker(v string) *DescribeCacheParameterGroupsInput {
+ s.Marker = &v
+ return s
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *DeleteCacheParameterGroupInput) SetCacheParameterGroupName(v string) *DeleteCacheParameterGroupInput {
- s.CacheParameterGroupName = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheParameterGroupsInput) SetMaxRecords(v int64) *DescribeCacheParameterGroupsInput {
+ s.MaxRecords = &v
return s
}
-type DeleteCacheParameterGroupOutput struct {
+// Represents the output of a DescribeCacheParameterGroups operation.
+type DescribeCacheParameterGroupsOutput struct {
_ struct{} `type:"structure"`
+
+ // A list of cache parameter groups. Each element in the list contains detailed
+ // information about one cache parameter group.
+ CacheParameterGroups []*CacheParameterGroup `locationNameList:"CacheParameterGroup" type:"list"`
+
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
}
// String returns the string representation
-func (s DeleteCacheParameterGroupOutput) String() string {
+func (s DescribeCacheParameterGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteCacheParameterGroupOutput) GoString() string {
+func (s DescribeCacheParameterGroupsOutput) GoString() string {
return s.String()
}
-// Represents the input of a DeleteCacheSecurityGroup operation.
-type DeleteCacheSecurityGroupInput struct {
+// SetCacheParameterGroups sets the CacheParameterGroups field's value.
+func (s *DescribeCacheParameterGroupsOutput) SetCacheParameterGroups(v []*CacheParameterGroup) *DescribeCacheParameterGroupsOutput {
+ s.CacheParameterGroups = v
+ return s
+}
+
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheParameterGroupsOutput) SetMarker(v string) *DescribeCacheParameterGroupsOutput {
+ s.Marker = &v
+ return s
+}
+
+// Represents the input of a DescribeCacheParameters operation.
+type DescribeCacheParametersInput struct {
_ struct{} `type:"structure"`
- // The name of the cache security group to delete.
+ // The name of a specific cache parameter group to return details for.
//
- // You cannot delete the default security group.
+ // CacheParameterGroupName is a required field
+ CacheParameterGroupName *string `type:"string" required:"true"`
+
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
+
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
//
- // CacheSecurityGroupName is a required field
- CacheSecurityGroupName *string `type:"string" required:"true"`
+ // Default: 100
+ //
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
+
+ // The parameter types to return.
+ //
+ // Valid values: user | system | engine-default
+ Source *string `type:"string"`
}
// String returns the string representation
-func (s DeleteCacheSecurityGroupInput) String() string {
+func (s DescribeCacheParametersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteCacheSecurityGroupInput) GoString() string {
+func (s DescribeCacheParametersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteCacheSecurityGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSecurityGroupInput"}
- if s.CacheSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName"))
+func (s *DescribeCacheParametersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeCacheParametersInput"}
+ if s.CacheParameterGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
}
if invalidParams.Len() > 0 {
@@ -8937,237 +10726,252 @@ func (s *DeleteCacheSecurityGroupInput) Validate() error {
return nil
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *DeleteCacheSecurityGroupInput) SetCacheSecurityGroupName(v string) *DeleteCacheSecurityGroupInput {
- s.CacheSecurityGroupName = &v
+// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
+func (s *DescribeCacheParametersInput) SetCacheParameterGroupName(v string) *DescribeCacheParametersInput {
+ s.CacheParameterGroupName = &v
return s
}
-type DeleteCacheSecurityGroupOutput struct {
- _ struct{} `type:"structure"`
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheParametersInput) SetMarker(v string) *DescribeCacheParametersInput {
+ s.Marker = &v
+ return s
}
-// String returns the string representation
-func (s DeleteCacheSecurityGroupOutput) String() string {
- return awsutil.Prettify(s)
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheParametersInput) SetMaxRecords(v int64) *DescribeCacheParametersInput {
+ s.MaxRecords = &v
+ return s
}
-// GoString returns the string representation
-func (s DeleteCacheSecurityGroupOutput) GoString() string {
- return s.String()
+// SetSource sets the Source field's value.
+func (s *DescribeCacheParametersInput) SetSource(v string) *DescribeCacheParametersInput {
+ s.Source = &v
+ return s
}
-// Represents the input of a DeleteCacheSubnetGroup operation.
-type DeleteCacheSubnetGroupInput struct {
+// Represents the output of a DescribeCacheParameters operation.
+type DescribeCacheParametersOutput struct {
_ struct{} `type:"structure"`
- // The name of the cache subnet group to delete.
- //
- // Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
- //
- // CacheSubnetGroupName is a required field
- CacheSubnetGroupName *string `type:"string" required:"true"`
+ // A list of parameters specific to a particular cache node type. Each element
+ // in the list contains detailed information about one parameter.
+ CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"`
+
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
+
+ // A list of Parameter instances.
+ Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
}
// String returns the string representation
-func (s DeleteCacheSubnetGroupInput) String() string {
+func (s DescribeCacheParametersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteCacheSubnetGroupInput) GoString() string {
+func (s DescribeCacheParametersOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteCacheSubnetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSubnetGroupInput"}
- if s.CacheSubnetGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *DeleteCacheSubnetGroupInput) SetCacheSubnetGroupName(v string) *DeleteCacheSubnetGroupInput {
- s.CacheSubnetGroupName = &v
+// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value.
+func (s *DescribeCacheParametersOutput) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *DescribeCacheParametersOutput {
+ s.CacheNodeTypeSpecificParameters = v
return s
}
-type DeleteCacheSubnetGroupOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation
-func (s DeleteCacheSubnetGroupOutput) String() string {
- return awsutil.Prettify(s)
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheParametersOutput) SetMarker(v string) *DescribeCacheParametersOutput {
+ s.Marker = &v
+ return s
}
-// GoString returns the string representation
-func (s DeleteCacheSubnetGroupOutput) GoString() string {
- return s.String()
+// SetParameters sets the Parameters field's value.
+func (s *DescribeCacheParametersOutput) SetParameters(v []*Parameter) *DescribeCacheParametersOutput {
+ s.Parameters = v
+ return s
}
-// Represents the input of a DeleteReplicationGroup operation.
-type DeleteReplicationGroupInput struct {
+// Represents the input of a DescribeCacheSecurityGroups operation.
+type DescribeCacheSecurityGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of a final node group (shard) snapshot. ElastiCache creates the
- // snapshot from the primary node in the cluster, rather than one of the replicas;
- // this is to ensure that it captures the freshest data. After the final snapshot
- // is taken, the replication group is immediately deleted.
- FinalSnapshotIdentifier *string `type:"string"`
+ // The name of the cache security group to return details for.
+ CacheSecurityGroupName *string `type:"string"`
- // The identifier for the cluster to be deleted. This parameter is not case
- // sensitive.
- //
- // ReplicationGroupId is a required field
- ReplicationGroupId *string `type:"string" required:"true"`
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
- // If set to true, all of the read replicas are deleted, but the primary node
- // is retained.
- RetainPrimaryCluster *bool `type:"boolean"`
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
+ //
+ // Default: 100
+ //
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
}
// String returns the string representation
-func (s DeleteReplicationGroupInput) String() string {
+func (s DescribeCacheSecurityGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteReplicationGroupInput) GoString() string {
+func (s DescribeCacheSecurityGroupsInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteReplicationGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationGroupInput"}
- if s.ReplicationGroupId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value.
-func (s *DeleteReplicationGroupInput) SetFinalSnapshotIdentifier(v string) *DeleteReplicationGroupInput {
- s.FinalSnapshotIdentifier = &v
+// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
+func (s *DescribeCacheSecurityGroupsInput) SetCacheSecurityGroupName(v string) *DescribeCacheSecurityGroupsInput {
+ s.CacheSecurityGroupName = &v
return s
}
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *DeleteReplicationGroupInput) SetReplicationGroupId(v string) *DeleteReplicationGroupInput {
- s.ReplicationGroupId = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheSecurityGroupsInput) SetMarker(v string) *DescribeCacheSecurityGroupsInput {
+ s.Marker = &v
return s
}
-// SetRetainPrimaryCluster sets the RetainPrimaryCluster field's value.
-func (s *DeleteReplicationGroupInput) SetRetainPrimaryCluster(v bool) *DeleteReplicationGroupInput {
- s.RetainPrimaryCluster = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheSecurityGroupsInput) SetMaxRecords(v int64) *DescribeCacheSecurityGroupsInput {
+ s.MaxRecords = &v
return s
}
-type DeleteReplicationGroupOutput struct {
+// Represents the output of a DescribeCacheSecurityGroups operation.
+type DescribeCacheSecurityGroupsOutput struct {
_ struct{} `type:"structure"`
- // Contains all of the attributes of a specific Redis replication group.
- ReplicationGroup *ReplicationGroup `type:"structure"`
+ // A list of cache security groups. Each element in the list contains detailed
+ // information about one group.
+ CacheSecurityGroups []*CacheSecurityGroup `locationNameList:"CacheSecurityGroup" type:"list"`
+
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
}
// String returns the string representation
-func (s DeleteReplicationGroupOutput) String() string {
+func (s DescribeCacheSecurityGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteReplicationGroupOutput) GoString() string {
+func (s DescribeCacheSecurityGroupsOutput) GoString() string {
return s.String()
}
-// SetReplicationGroup sets the ReplicationGroup field's value.
-func (s *DeleteReplicationGroupOutput) SetReplicationGroup(v *ReplicationGroup) *DeleteReplicationGroupOutput {
- s.ReplicationGroup = v
+// SetCacheSecurityGroups sets the CacheSecurityGroups field's value.
+func (s *DescribeCacheSecurityGroupsOutput) SetCacheSecurityGroups(v []*CacheSecurityGroup) *DescribeCacheSecurityGroupsOutput {
+ s.CacheSecurityGroups = v
return s
}
-// Represents the input of a DeleteSnapshot operation.
-type DeleteSnapshotInput struct {
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheSecurityGroupsOutput) SetMarker(v string) *DescribeCacheSecurityGroupsOutput {
+ s.Marker = &v
+ return s
+}
+
+// Represents the input of a DescribeCacheSubnetGroups operation.
+type DescribeCacheSubnetGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of the snapshot to be deleted.
+ // The name of the cache subnet group to return details for.
+ CacheSubnetGroupName *string `type:"string"`
+
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ Marker *string `type:"string"`
+
+ // The maximum number of records to include in the response. If more records
+ // exist than the specified MaxRecords value, a marker is included in the response
+ // so that the remaining results can be retrieved.
//
- // SnapshotName is a required field
- SnapshotName *string `type:"string" required:"true"`
+ // Default: 100
+ //
+ // Constraints: minimum 20; maximum 100.
+ MaxRecords *int64 `type:"integer"`
}
// String returns the string representation
-func (s DeleteSnapshotInput) String() string {
+func (s DescribeCacheSubnetGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteSnapshotInput) GoString() string {
+func (s DescribeCacheSubnetGroupsInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
- if s.SnapshotName == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotName"))
- }
+// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
+func (s *DescribeCacheSubnetGroupsInput) SetCacheSubnetGroupName(v string) *DescribeCacheSubnetGroupsInput {
+ s.CacheSubnetGroupName = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheSubnetGroupsInput) SetMarker(v string) *DescribeCacheSubnetGroupsInput {
+ s.Marker = &v
+ return s
}
-// SetSnapshotName sets the SnapshotName field's value.
-func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput {
- s.SnapshotName = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeCacheSubnetGroupsInput) SetMaxRecords(v int64) *DescribeCacheSubnetGroupsInput {
+ s.MaxRecords = &v
return s
}
-type DeleteSnapshotOutput struct {
+// Represents the output of a DescribeCacheSubnetGroups operation.
+type DescribeCacheSubnetGroupsOutput struct {
_ struct{} `type:"structure"`
- // Represents a copy of an entire Redis cluster as of the time when the snapshot
- // was taken.
- Snapshot *Snapshot `type:"structure"`
+ // A list of cache subnet groups. Each element in the list contains detailed
+ // information about one group.
+ CacheSubnetGroups []*CacheSubnetGroup `locationNameList:"CacheSubnetGroup" type:"list"`
+
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
}
// String returns the string representation
-func (s DeleteSnapshotOutput) String() string {
+func (s DescribeCacheSubnetGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteSnapshotOutput) GoString() string {
+func (s DescribeCacheSubnetGroupsOutput) GoString() string {
return s.String()
}
-// SetSnapshot sets the Snapshot field's value.
-func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput {
- s.Snapshot = v
+// SetCacheSubnetGroups sets the CacheSubnetGroups field's value.
+func (s *DescribeCacheSubnetGroupsOutput) SetCacheSubnetGroups(v []*CacheSubnetGroup) *DescribeCacheSubnetGroupsOutput {
+ s.CacheSubnetGroups = v
return s
}
-// Represents the input of a DescribeCacheClusters operation.
-type DescribeCacheClustersInput struct {
+// SetMarker sets the Marker field's value.
+func (s *DescribeCacheSubnetGroupsOutput) SetMarker(v string) *DescribeCacheSubnetGroupsOutput {
+ s.Marker = &v
+ return s
+}
+
+// Represents the input of a DescribeEngineDefaultParameters operation.
+type DescribeEngineDefaultParametersInput struct {
_ struct{} `type:"structure"`
- // The user-supplied cluster identifier. If this parameter is specified, only
- // information about that specific cluster is returned. This parameter isn't
- // case sensitive.
- CacheClusterId *string `type:"string"`
+ // The name of the cache parameter group family.
+ //
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ //
+ // CacheParameterGroupFamily is a required field
+ CacheParameterGroupFamily *string `type:"string" required:"true"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -9182,120 +10986,84 @@ type DescribeCacheClustersInput struct {
//
// Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
-
- // An optional flag that can be included in the DescribeCacheCluster request
- // to show only nodes (API/CLI: clusters) that are not members of a replication
- // group. In practice, this mean Memcached and single node Redis clusters.
- ShowCacheClustersNotInReplicationGroups *bool `type:"boolean"`
-
- // An optional flag that can be included in the DescribeCacheCluster request
- // to retrieve information about the individual cache nodes.
- ShowCacheNodeInfo *bool `type:"boolean"`
}
// String returns the string representation
-func (s DescribeCacheClustersInput) String() string {
+func (s DescribeEngineDefaultParametersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheClustersInput) GoString() string {
+func (s DescribeEngineDefaultParametersInput) GoString() string {
return s.String()
}
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *DescribeCacheClustersInput) SetCacheClusterId(v string) *DescribeCacheClustersInput {
- s.CacheClusterId = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeEngineDefaultParametersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"}
+ if s.CacheParameterGroupFamily == nil {
+ invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *DescribeEngineDefaultParametersInput) SetCacheParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput {
+ s.CacheParameterGroupFamily = &v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheClustersInput) SetMarker(v string) *DescribeCacheClustersInput {
+func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheClustersInput) SetMaxRecords(v int64) *DescribeCacheClustersInput {
+func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput {
s.MaxRecords = &v
return s
}
-// SetShowCacheClustersNotInReplicationGroups sets the ShowCacheClustersNotInReplicationGroups field's value.
-func (s *DescribeCacheClustersInput) SetShowCacheClustersNotInReplicationGroups(v bool) *DescribeCacheClustersInput {
- s.ShowCacheClustersNotInReplicationGroups = &v
- return s
-}
-
-// SetShowCacheNodeInfo sets the ShowCacheNodeInfo field's value.
-func (s *DescribeCacheClustersInput) SetShowCacheNodeInfo(v bool) *DescribeCacheClustersInput {
- s.ShowCacheNodeInfo = &v
- return s
-}
-
-// Represents the output of a DescribeCacheClusters operation.
-type DescribeCacheClustersOutput struct {
+type DescribeEngineDefaultParametersOutput struct {
_ struct{} `type:"structure"`
- // A list of clusters. Each item in the list contains detailed information about
- // one cluster.
- CacheClusters []*CacheCluster `locationNameList:"CacheCluster" type:"list"`
-
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
+ // Represents the output of a DescribeEngineDefaultParameters operation.
+ EngineDefaults *EngineDefaults `type:"structure"`
}
// String returns the string representation
-func (s DescribeCacheClustersOutput) String() string {
+func (s DescribeEngineDefaultParametersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheClustersOutput) GoString() string {
+func (s DescribeEngineDefaultParametersOutput) GoString() string {
return s.String()
}
-// SetCacheClusters sets the CacheClusters field's value.
-func (s *DescribeCacheClustersOutput) SetCacheClusters(v []*CacheCluster) *DescribeCacheClustersOutput {
- s.CacheClusters = v
- return s
-}
-
-// SetMarker sets the Marker field's value.
-func (s *DescribeCacheClustersOutput) SetMarker(v string) *DescribeCacheClustersOutput {
- s.Marker = &v
+// SetEngineDefaults sets the EngineDefaults field's value.
+func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput {
+ s.EngineDefaults = v
return s
}
-// Represents the input of a DescribeCacheEngineVersions operation.
-type DescribeCacheEngineVersionsInput struct {
+// Represents the input of a DescribeEvents operation.
+type DescribeEventsInput struct {
_ struct{} `type:"structure"`
- // The name of a specific cache parameter group family to return details for.
- //
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters
- //
- // * First character must be a letter
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens
- CacheParameterGroupFamily *string `type:"string"`
-
- // If true, specifies that only the default version of the specified engine
- // or engine and major version combination is to be returned.
- DefaultOnly *bool `type:"boolean"`
-
- // The cache engine to return. Valid values: memcached | redis
- Engine *string `type:"string"`
+ // The number of minutes worth of events to retrieve.
+ Duration *int64 `type:"integer"`
- // The cache engine version to return.
+ // The end of the time interval for which to retrieve events, specified in ISO
+ // 8601 format.
//
- // Example: 1.4.14
- EngineVersion *string `type:"string"`
+ // Example: 2017-03-30T07:03:49.555Z
+ EndTime *time.Time `type:"timestamp"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -9310,94 +11078,113 @@ type DescribeCacheEngineVersionsInput struct {
//
// Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
+
+ // The identifier of the event source for which events are returned. If not
+ // specified, all sources are included in the response.
+ SourceIdentifier *string `type:"string"`
+
+ // The event source to retrieve events for. If no value is specified, all events
+ // are returned.
+ SourceType *string `type:"string" enum:"SourceType"`
+
+ // The beginning of the time interval to retrieve events for, specified in ISO
+ // 8601 format.
+ //
+ // Example: 2017-03-30T07:03:49.555Z
+ StartTime *time.Time `type:"timestamp"`
}
// String returns the string representation
-func (s DescribeCacheEngineVersionsInput) String() string {
+func (s DescribeEventsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheEngineVersionsInput) GoString() string {
+func (s DescribeEventsInput) GoString() string {
return s.String()
}
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *DescribeCacheEngineVersionsInput) SetCacheParameterGroupFamily(v string) *DescribeCacheEngineVersionsInput {
- s.CacheParameterGroupFamily = &v
+// SetDuration sets the Duration field's value.
+func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput {
+ s.Duration = &v
return s
}
-// SetDefaultOnly sets the DefaultOnly field's value.
-func (s *DescribeCacheEngineVersionsInput) SetDefaultOnly(v bool) *DescribeCacheEngineVersionsInput {
- s.DefaultOnly = &v
+// SetEndTime sets the EndTime field's value.
+func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput {
+ s.EndTime = &v
return s
}
-// SetEngine sets the Engine field's value.
-func (s *DescribeCacheEngineVersionsInput) SetEngine(v string) *DescribeCacheEngineVersionsInput {
- s.Engine = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput {
+ s.Marker = &v
return s
}
-// SetEngineVersion sets the EngineVersion field's value.
-func (s *DescribeCacheEngineVersionsInput) SetEngineVersion(v string) *DescribeCacheEngineVersionsInput {
- s.EngineVersion = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput {
+ s.MaxRecords = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeCacheEngineVersionsInput) SetMarker(v string) *DescribeCacheEngineVersionsInput {
- s.Marker = &v
+// SetSourceIdentifier sets the SourceIdentifier field's value.
+func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput {
+ s.SourceIdentifier = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheEngineVersionsInput) SetMaxRecords(v int64) *DescribeCacheEngineVersionsInput {
- s.MaxRecords = &v
+// SetSourceType sets the SourceType field's value.
+func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput {
+ s.SourceType = &v
return s
}
-// Represents the output of a DescribeCacheEngineVersions operation.
-type DescribeCacheEngineVersionsOutput struct {
+// SetStartTime sets the StartTime field's value.
+func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput {
+ s.StartTime = &v
+ return s
+}
+
+// Represents the output of a DescribeEvents operation.
+type DescribeEventsOutput struct {
_ struct{} `type:"structure"`
- // A list of cache engine version details. Each element in the list contains
- // detailed information about one cache engine version.
- CacheEngineVersions []*CacheEngineVersion `locationNameList:"CacheEngineVersion" type:"list"`
+ // A list of events. Each element in the list contains detailed information
+ // about one event.
+ Events []*Event `locationNameList:"Event" type:"list"`
// Provides an identifier to allow retrieval of paginated results.
Marker *string `type:"string"`
}
// String returns the string representation
-func (s DescribeCacheEngineVersionsOutput) String() string {
+func (s DescribeEventsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheEngineVersionsOutput) GoString() string {
+func (s DescribeEventsOutput) GoString() string {
return s.String()
}
-// SetCacheEngineVersions sets the CacheEngineVersions field's value.
-func (s *DescribeCacheEngineVersionsOutput) SetCacheEngineVersions(v []*CacheEngineVersion) *DescribeCacheEngineVersionsOutput {
- s.CacheEngineVersions = v
+// SetEvents sets the Events field's value.
+func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput {
+ s.Events = v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheEngineVersionsOutput) SetMarker(v string) *DescribeCacheEngineVersionsOutput {
+func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput {
s.Marker = &v
return s
}
-// Represents the input of a DescribeCacheParameterGroups operation.
-type DescribeCacheParameterGroupsInput struct {
+type DescribeGlobalReplicationGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of a specific cache parameter group to return details for.
- CacheParameterGroupName *string `type:"string"`
+ // The name of the Global Datastore
+ GlobalReplicationGroupId *string `type:"string"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -9407,84 +11194,85 @@ type DescribeCacheParameterGroupsInput struct {
// The maximum number of records to include in the response. If more records
// exist than the specified MaxRecords value, a marker is included in the response
// so that the remaining results can be retrieved.
- //
- // Default: 100
- //
- // Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
+
+ // Returns the list of members that comprise the Global Datastore.
+ ShowMemberInfo *bool `type:"boolean"`
}
// String returns the string representation
-func (s DescribeCacheParameterGroupsInput) String() string {
+func (s DescribeGlobalReplicationGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheParameterGroupsInput) GoString() string {
+func (s DescribeGlobalReplicationGroupsInput) GoString() string {
return s.String()
}
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *DescribeCacheParameterGroupsInput) SetCacheParameterGroupName(v string) *DescribeCacheParameterGroupsInput {
- s.CacheParameterGroupName = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *DescribeGlobalReplicationGroupsInput) SetGlobalReplicationGroupId(v string) *DescribeGlobalReplicationGroupsInput {
+ s.GlobalReplicationGroupId = &v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheParameterGroupsInput) SetMarker(v string) *DescribeCacheParameterGroupsInput {
+func (s *DescribeGlobalReplicationGroupsInput) SetMarker(v string) *DescribeGlobalReplicationGroupsInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheParameterGroupsInput) SetMaxRecords(v int64) *DescribeCacheParameterGroupsInput {
+func (s *DescribeGlobalReplicationGroupsInput) SetMaxRecords(v int64) *DescribeGlobalReplicationGroupsInput {
s.MaxRecords = &v
return s
}
-// Represents the output of a DescribeCacheParameterGroups operation.
-type DescribeCacheParameterGroupsOutput struct {
+// SetShowMemberInfo sets the ShowMemberInfo field's value.
+func (s *DescribeGlobalReplicationGroupsInput) SetShowMemberInfo(v bool) *DescribeGlobalReplicationGroupsInput {
+ s.ShowMemberInfo = &v
+ return s
+}
+
+type DescribeGlobalReplicationGroupsOutput struct {
_ struct{} `type:"structure"`
- // A list of cache parameter groups. Each element in the list contains detailed
- // information about one cache parameter group.
- CacheParameterGroups []*CacheParameterGroup `locationNameList:"CacheParameterGroup" type:"list"`
+ // Indicates the slot configuration and global identifier for each slice group.
+ GlobalReplicationGroups []*GlobalReplicationGroup `locationNameList:"GlobalReplicationGroup" type:"list"`
- // Provides an identifier to allow retrieval of paginated results.
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
+ // >
Marker *string `type:"string"`
}
// String returns the string representation
-func (s DescribeCacheParameterGroupsOutput) String() string {
+func (s DescribeGlobalReplicationGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheParameterGroupsOutput) GoString() string {
+func (s DescribeGlobalReplicationGroupsOutput) GoString() string {
return s.String()
}
-// SetCacheParameterGroups sets the CacheParameterGroups field's value.
-func (s *DescribeCacheParameterGroupsOutput) SetCacheParameterGroups(v []*CacheParameterGroup) *DescribeCacheParameterGroupsOutput {
- s.CacheParameterGroups = v
+// SetGlobalReplicationGroups sets the GlobalReplicationGroups field's value.
+func (s *DescribeGlobalReplicationGroupsOutput) SetGlobalReplicationGroups(v []*GlobalReplicationGroup) *DescribeGlobalReplicationGroupsOutput {
+ s.GlobalReplicationGroups = v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheParameterGroupsOutput) SetMarker(v string) *DescribeCacheParameterGroupsOutput {
+func (s *DescribeGlobalReplicationGroupsOutput) SetMarker(v string) *DescribeGlobalReplicationGroupsOutput {
s.Marker = &v
return s
}
-// Represents the input of a DescribeCacheParameters operation.
-type DescribeCacheParametersInput struct {
+// Represents the input of a DescribeReplicationGroups operation.
+type DescribeReplicationGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of a specific cache parameter group to return details for.
- //
- // CacheParameterGroupName is a required field
- CacheParameterGroupName *string `type:"string" required:"true"`
-
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
// includes only records beyond the marker, up to the value specified by MaxRecords.
@@ -9499,108 +11287,124 @@ type DescribeCacheParametersInput struct {
// Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
- // The parameter types to return.
+ // The identifier for the replication group to be described. This parameter
+ // is not case sensitive.
//
- // Valid values: user | system | engine-default
- Source *string `type:"string"`
+ // If you do not specify this parameter, information about all replication groups
+ // is returned.
+ ReplicationGroupId *string `type:"string"`
}
// String returns the string representation
-func (s DescribeCacheParametersInput) String() string {
+func (s DescribeReplicationGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheParametersInput) GoString() string {
+func (s DescribeReplicationGroupsInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeCacheParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCacheParametersInput"}
- if s.CacheParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetCacheParameterGroupName sets the CacheParameterGroupName field's value.
-func (s *DescribeCacheParametersInput) SetCacheParameterGroupName(v string) *DescribeCacheParametersInput {
- s.CacheParameterGroupName = &v
- return s
-}
-
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheParametersInput) SetMarker(v string) *DescribeCacheParametersInput {
+func (s *DescribeReplicationGroupsInput) SetMarker(v string) *DescribeReplicationGroupsInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheParametersInput) SetMaxRecords(v int64) *DescribeCacheParametersInput {
+func (s *DescribeReplicationGroupsInput) SetMaxRecords(v int64) *DescribeReplicationGroupsInput {
s.MaxRecords = &v
return s
}
-// SetSource sets the Source field's value.
-func (s *DescribeCacheParametersInput) SetSource(v string) *DescribeCacheParametersInput {
- s.Source = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *DescribeReplicationGroupsInput) SetReplicationGroupId(v string) *DescribeReplicationGroupsInput {
+ s.ReplicationGroupId = &v
return s
}
-// Represents the output of a DescribeCacheParameters operation.
-type DescribeCacheParametersOutput struct {
+// Represents the output of a DescribeReplicationGroups operation.
+type DescribeReplicationGroupsOutput struct {
_ struct{} `type:"structure"`
- // A list of parameters specific to a particular cache node type. Each element
- // in the list contains detailed information about one parameter.
- CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"`
-
// Provides an identifier to allow retrieval of paginated results.
Marker *string `type:"string"`
- // A list of Parameter instances.
- Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
+ // A list of replication groups. Each item in the list contains detailed information
+ // about one replication group.
+ ReplicationGroups []*ReplicationGroup `locationNameList:"ReplicationGroup" type:"list"`
}
// String returns the string representation
-func (s DescribeCacheParametersOutput) String() string {
+func (s DescribeReplicationGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheParametersOutput) GoString() string {
+func (s DescribeReplicationGroupsOutput) GoString() string {
return s.String()
}
-// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value.
-func (s *DescribeCacheParametersOutput) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *DescribeCacheParametersOutput {
- s.CacheNodeTypeSpecificParameters = v
- return s
-}
-
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheParametersOutput) SetMarker(v string) *DescribeCacheParametersOutput {
+func (s *DescribeReplicationGroupsOutput) SetMarker(v string) *DescribeReplicationGroupsOutput {
s.Marker = &v
return s
}
-// SetParameters sets the Parameters field's value.
-func (s *DescribeCacheParametersOutput) SetParameters(v []*Parameter) *DescribeCacheParametersOutput {
- s.Parameters = v
+// SetReplicationGroups sets the ReplicationGroups field's value.
+func (s *DescribeReplicationGroupsOutput) SetReplicationGroups(v []*ReplicationGroup) *DescribeReplicationGroupsOutput {
+ s.ReplicationGroups = v
return s
}
-// Represents the input of a DescribeCacheSecurityGroups operation.
-type DescribeCacheSecurityGroupsInput struct {
+// Represents the input of a DescribeReservedCacheNodes operation.
+type DescribeReservedCacheNodesInput struct {
_ struct{} `type:"structure"`
- // The name of the cache security group to return details for.
- CacheSecurityGroupName *string `type:"string"`
+ // The cache node type filter value. Use this parameter to show only those reservations
+ // matching the specified cache node type.
+ //
+ // The following node types are supported by ElastiCache. Generally speaking,
+ // the current generation types provide more memory and computational power
+ // at lower cost when compared to their equivalent previous generation counterparts.
+ //
+ // * General purpose: Current generation: M5 node types: cache.m5.large,
+ // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
+ // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
+ //
+ // * Compute optimized: Previous generation: (not recommended) C1 node types:
+ // cache.c1.xlarge
+ //
+ // * Memory optimized: Current generation: R5 node types: cache.r5.large,
+ // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
+ // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
+ // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
+ // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
+ // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
+ // cache.r3.8xlarge
+ //
+ // Additional node type info
+ //
+ // * All current generation instance types are created in Amazon VPC by default.
+ //
+ // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
+ //
+ // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
+ //
+ // * Redis configuration variables appendonly and appendfsync are not supported
+ // on Redis version 2.8.22 and later.
+ CacheNodeType *string `type:"string"`
+
+ // The duration filter value, specified in years or seconds. Use this parameter
+ // to show only reservations for this duration.
+ //
+ // Valid Values: 1 | 3 | 31536000 | 94608000
+ Duration *string `type:"string"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -9615,76 +11419,132 @@ type DescribeCacheSecurityGroupsInput struct {
//
// Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
+
+ // The offering type filter value. Use this parameter to show only the available
+ // offerings matching the specified offering type.
+ //
+ // Valid values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
+ OfferingType *string `type:"string"`
+
+ // The product description filter value. Use this parameter to show only those
+ // reservations matching the specified product description.
+ ProductDescription *string `type:"string"`
+
+ // The reserved cache node identifier filter value. Use this parameter to show
+ // only the reservation that matches the specified reservation ID.
+ ReservedCacheNodeId *string `type:"string"`
+
+ // The offering identifier filter value. Use this parameter to show only purchased
+ // reservations matching the specified offering identifier.
+ ReservedCacheNodesOfferingId *string `type:"string"`
}
// String returns the string representation
-func (s DescribeCacheSecurityGroupsInput) String() string {
+func (s DescribeReservedCacheNodesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheSecurityGroupsInput) GoString() string {
+func (s DescribeReservedCacheNodesInput) GoString() string {
return s.String()
}
-// SetCacheSecurityGroupName sets the CacheSecurityGroupName field's value.
-func (s *DescribeCacheSecurityGroupsInput) SetCacheSecurityGroupName(v string) *DescribeCacheSecurityGroupsInput {
- s.CacheSecurityGroupName = &v
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *DescribeReservedCacheNodesInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesInput {
+ s.CacheNodeType = &v
+ return s
+}
+
+// SetDuration sets the Duration field's value.
+func (s *DescribeReservedCacheNodesInput) SetDuration(v string) *DescribeReservedCacheNodesInput {
+ s.Duration = &v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheSecurityGroupsInput) SetMarker(v string) *DescribeCacheSecurityGroupsInput {
+func (s *DescribeReservedCacheNodesInput) SetMarker(v string) *DescribeReservedCacheNodesInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheSecurityGroupsInput) SetMaxRecords(v int64) *DescribeCacheSecurityGroupsInput {
+func (s *DescribeReservedCacheNodesInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesInput {
s.MaxRecords = &v
return s
}
-// Represents the output of a DescribeCacheSecurityGroups operation.
-type DescribeCacheSecurityGroupsOutput struct {
- _ struct{} `type:"structure"`
-
- // A list of cache security groups. Each element in the list contains detailed
- // information about one group.
- CacheSecurityGroups []*CacheSecurityGroup `locationNameList:"CacheSecurityGroup" type:"list"`
-
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
-}
-
-// String returns the string representation
-func (s DescribeCacheSecurityGroupsOutput) String() string {
- return awsutil.Prettify(s)
+// SetOfferingType sets the OfferingType field's value.
+func (s *DescribeReservedCacheNodesInput) SetOfferingType(v string) *DescribeReservedCacheNodesInput {
+ s.OfferingType = &v
+ return s
}
-// GoString returns the string representation
-func (s DescribeCacheSecurityGroupsOutput) GoString() string {
- return s.String()
+// SetProductDescription sets the ProductDescription field's value.
+func (s *DescribeReservedCacheNodesInput) SetProductDescription(v string) *DescribeReservedCacheNodesInput {
+ s.ProductDescription = &v
+ return s
}
-// SetCacheSecurityGroups sets the CacheSecurityGroups field's value.
-func (s *DescribeCacheSecurityGroupsOutput) SetCacheSecurityGroups(v []*CacheSecurityGroup) *DescribeCacheSecurityGroupsOutput {
- s.CacheSecurityGroups = v
+// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value.
+func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodeId(v string) *DescribeReservedCacheNodesInput {
+ s.ReservedCacheNodeId = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeCacheSecurityGroupsOutput) SetMarker(v string) *DescribeCacheSecurityGroupsOutput {
- s.Marker = &v
+// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value.
+func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesInput {
+ s.ReservedCacheNodesOfferingId = &v
return s
}
-// Represents the input of a DescribeCacheSubnetGroups operation.
-type DescribeCacheSubnetGroupsInput struct {
+// Represents the input of a DescribeReservedCacheNodesOfferings operation.
+type DescribeReservedCacheNodesOfferingsInput struct {
_ struct{} `type:"structure"`
- // The name of the cache subnet group to return details for.
- CacheSubnetGroupName *string `type:"string"`
+ // The cache node type filter value. Use this parameter to show only the available
+ // offerings matching the specified cache node type.
+ //
+ // The following node types are supported by ElastiCache. Generally speaking,
+ // the current generation types provide more memory and computational power
+ // at lower cost when compared to their equivalent previous generation counterparts.
+ //
+ // * General purpose: Current generation: M5 node types: cache.m5.large,
+ // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
+ // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
+ //
+ // * Compute optimized: Previous generation: (not recommended) C1 node types:
+ // cache.c1.xlarge
+ //
+ // * Memory optimized: Current generation: R5 node types: cache.r5.large,
+ // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
+ // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
+ // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
+ // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
+ // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
+ // cache.r3.8xlarge
+ //
+ // Additional node type info
+ //
+ // * All current generation instance types are created in Amazon VPC by default.
+ //
+ // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
+ //
+ // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
+ //
+ // * Redis configuration variables appendonly and appendfsync are not supported
+ // on Redis version 2.8.22 and later.
+ CacheNodeType *string `type:"string"`
+
+ // Duration filter value, specified in years or seconds. Use this parameter
+ // to show only reservations for a given duration.
+ //
+ // Valid Values: 1 | 3 | 31536000 | 94608000
+ Duration *string `type:"string"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
@@ -9699,293 +11559,238 @@ type DescribeCacheSubnetGroupsInput struct {
//
// Constraints: minimum 20; maximum 100.
MaxRecords *int64 `type:"integer"`
+
+ // The offering type filter value. Use this parameter to show only the available
+ // offerings matching the specified offering type.
+ //
+ // Valid Values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
+ OfferingType *string `type:"string"`
+
+ // The product description filter value. Use this parameter to show only the
+ // available offerings matching the specified product description.
+ ProductDescription *string `type:"string"`
+
+ // The offering identifier filter value. Use this parameter to show only the
+ // available offering that matches the specified reservation identifier.
+ //
+ // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
+ ReservedCacheNodesOfferingId *string `type:"string"`
}
// String returns the string representation
-func (s DescribeCacheSubnetGroupsInput) String() string {
+func (s DescribeReservedCacheNodesOfferingsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeCacheSubnetGroupsInput) GoString() string {
+func (s DescribeReservedCacheNodesOfferingsInput) GoString() string {
return s.String()
}
-// SetCacheSubnetGroupName sets the CacheSubnetGroupName field's value.
-func (s *DescribeCacheSubnetGroupsInput) SetCacheSubnetGroupName(v string) *DescribeCacheSubnetGroupsInput {
- s.CacheSubnetGroupName = &v
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *DescribeReservedCacheNodesOfferingsInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesOfferingsInput {
+ s.CacheNodeType = &v
+ return s
+}
+
+// SetDuration sets the Duration field's value.
+func (s *DescribeReservedCacheNodesOfferingsInput) SetDuration(v string) *DescribeReservedCacheNodesOfferingsInput {
+ s.Duration = &v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeCacheSubnetGroupsInput) SetMarker(v string) *DescribeCacheSubnetGroupsInput {
+func (s *DescribeReservedCacheNodesOfferingsInput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeCacheSubnetGroupsInput) SetMaxRecords(v int64) *DescribeCacheSubnetGroupsInput {
+func (s *DescribeReservedCacheNodesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesOfferingsInput {
s.MaxRecords = &v
return s
}
-// Represents the output of a DescribeCacheSubnetGroups operation.
-type DescribeCacheSubnetGroupsOutput struct {
- _ struct{} `type:"structure"`
-
- // A list of cache subnet groups. Each element in the list contains detailed
- // information about one group.
- CacheSubnetGroups []*CacheSubnetGroup `locationNameList:"CacheSubnetGroup" type:"list"`
-
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
-}
-
-// String returns the string representation
-func (s DescribeCacheSubnetGroupsOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s DescribeCacheSubnetGroupsOutput) GoString() string {
- return s.String()
+// SetOfferingType sets the OfferingType field's value.
+func (s *DescribeReservedCacheNodesOfferingsInput) SetOfferingType(v string) *DescribeReservedCacheNodesOfferingsInput {
+ s.OfferingType = &v
+ return s
}
-// SetCacheSubnetGroups sets the CacheSubnetGroups field's value.
-func (s *DescribeCacheSubnetGroupsOutput) SetCacheSubnetGroups(v []*CacheSubnetGroup) *DescribeCacheSubnetGroupsOutput {
- s.CacheSubnetGroups = v
+// SetProductDescription sets the ProductDescription field's value.
+func (s *DescribeReservedCacheNodesOfferingsInput) SetProductDescription(v string) *DescribeReservedCacheNodesOfferingsInput {
+ s.ProductDescription = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeCacheSubnetGroupsOutput) SetMarker(v string) *DescribeCacheSubnetGroupsOutput {
- s.Marker = &v
+// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value.
+func (s *DescribeReservedCacheNodesOfferingsInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesOfferingsInput {
+ s.ReservedCacheNodesOfferingId = &v
return s
}
-// Represents the input of a DescribeEngineDefaultParameters operation.
-type DescribeEngineDefaultParametersInput struct {
+// Represents the output of a DescribeReservedCacheNodesOfferings operation.
+type DescribeReservedCacheNodesOfferingsOutput struct {
_ struct{} `type:"structure"`
- // The name of the cache parameter group family.
- //
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- //
- // CacheParameterGroupFamily is a required field
- CacheParameterGroupFamily *string `type:"string" required:"true"`
-
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
+ // Provides an identifier to allow retrieval of paginated results.
Marker *string `type:"string"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a marker is included in the response
- // so that the remaining results can be retrieved.
- //
- // Default: 100
- //
- // Constraints: minimum 20; maximum 100.
- MaxRecords *int64 `type:"integer"`
+ // A list of reserved cache node offerings. Each element in the list contains
+ // detailed information about one offering.
+ ReservedCacheNodesOfferings []*ReservedCacheNodesOffering `locationNameList:"ReservedCacheNodesOffering" type:"list"`
}
// String returns the string representation
-func (s DescribeEngineDefaultParametersInput) String() string {
+func (s DescribeReservedCacheNodesOfferingsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeEngineDefaultParametersInput) GoString() string {
+func (s DescribeReservedCacheNodesOfferingsOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeEngineDefaultParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"}
- if s.CacheParameterGroupFamily == nil {
- invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *DescribeEngineDefaultParametersInput) SetCacheParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput {
- s.CacheParameterGroupFamily = &v
- return s
-}
-
// SetMarker sets the Marker field's value.
-func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput {
+func (s *DescribeReservedCacheNodesOfferingsOutput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsOutput {
s.Marker = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput {
- s.MaxRecords = &v
+// SetReservedCacheNodesOfferings sets the ReservedCacheNodesOfferings field's value.
+func (s *DescribeReservedCacheNodesOfferingsOutput) SetReservedCacheNodesOfferings(v []*ReservedCacheNodesOffering) *DescribeReservedCacheNodesOfferingsOutput {
+ s.ReservedCacheNodesOfferings = v
return s
}
-type DescribeEngineDefaultParametersOutput struct {
+// Represents the output of a DescribeReservedCacheNodes operation.
+type DescribeReservedCacheNodesOutput struct {
_ struct{} `type:"structure"`
- // Represents the output of a DescribeEngineDefaultParameters operation.
- EngineDefaults *EngineDefaults `type:"structure"`
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
+
+ // A list of reserved cache nodes. Each element in the list contains detailed
+ // information about one node.
+ ReservedCacheNodes []*ReservedCacheNode `locationNameList:"ReservedCacheNode" type:"list"`
}
// String returns the string representation
-func (s DescribeEngineDefaultParametersOutput) String() string {
+func (s DescribeReservedCacheNodesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeEngineDefaultParametersOutput) GoString() string {
+func (s DescribeReservedCacheNodesOutput) GoString() string {
return s.String()
}
-// SetEngineDefaults sets the EngineDefaults field's value.
-func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput {
- s.EngineDefaults = v
+// SetMarker sets the Marker field's value.
+func (s *DescribeReservedCacheNodesOutput) SetMarker(v string) *DescribeReservedCacheNodesOutput {
+ s.Marker = &v
return s
}
-// Represents the input of a DescribeEvents operation.
-type DescribeEventsInput struct {
- _ struct{} `type:"structure"`
-
- // The number of minutes worth of events to retrieve.
- Duration *int64 `type:"integer"`
+// SetReservedCacheNodes sets the ReservedCacheNodes field's value.
+func (s *DescribeReservedCacheNodesOutput) SetReservedCacheNodes(v []*ReservedCacheNode) *DescribeReservedCacheNodesOutput {
+ s.ReservedCacheNodes = v
+ return s
+}
- // The end of the time interval for which to retrieve events, specified in ISO
- // 8601 format.
- //
- // Example: 2017-03-30T07:03:49.555Z
- EndTime *time.Time `type:"timestamp"`
+type DescribeServiceUpdatesInput struct {
+ _ struct{} `type:"structure"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
// includes only records beyond the marker, up to the value specified by MaxRecords.
Marker *string `type:"string"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a marker is included in the response
- // so that the remaining results can be retrieved.
- //
- // Default: 100
- //
- // Constraints: minimum 20; maximum 100.
+ // The maximum number of records to include in the response
MaxRecords *int64 `type:"integer"`
- // The identifier of the event source for which events are returned. If not
- // specified, all sources are included in the response.
- SourceIdentifier *string `type:"string"`
-
- // The event source to retrieve events for. If no value is specified, all events
- // are returned.
- SourceType *string `type:"string" enum:"SourceType"`
+ // The unique ID of the service update
+ ServiceUpdateName *string `type:"string"`
- // The beginning of the time interval to retrieve events for, specified in ISO
- // 8601 format.
- //
- // Example: 2017-03-30T07:03:49.555Z
- StartTime *time.Time `type:"timestamp"`
+ // The status of the service update
+ ServiceUpdateStatus []*string `type:"list"`
}
// String returns the string representation
-func (s DescribeEventsInput) String() string {
+func (s DescribeServiceUpdatesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeEventsInput) GoString() string {
+func (s DescribeServiceUpdatesInput) GoString() string {
return s.String()
}
-// SetDuration sets the Duration field's value.
-func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput {
- s.Duration = &v
- return s
-}
-
-// SetEndTime sets the EndTime field's value.
-func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput {
- s.EndTime = &v
- return s
-}
-
// SetMarker sets the Marker field's value.
-func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput {
+func (s *DescribeServiceUpdatesInput) SetMarker(v string) *DescribeServiceUpdatesInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput {
+func (s *DescribeServiceUpdatesInput) SetMaxRecords(v int64) *DescribeServiceUpdatesInput {
s.MaxRecords = &v
return s
}
-// SetSourceIdentifier sets the SourceIdentifier field's value.
-func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput {
- s.SourceIdentifier = &v
- return s
-}
-
-// SetSourceType sets the SourceType field's value.
-func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput {
- s.SourceType = &v
+// SetServiceUpdateName sets the ServiceUpdateName field's value.
+func (s *DescribeServiceUpdatesInput) SetServiceUpdateName(v string) *DescribeServiceUpdatesInput {
+ s.ServiceUpdateName = &v
return s
}
-// SetStartTime sets the StartTime field's value.
-func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput {
- s.StartTime = &v
+// SetServiceUpdateStatus sets the ServiceUpdateStatus field's value.
+func (s *DescribeServiceUpdatesInput) SetServiceUpdateStatus(v []*string) *DescribeServiceUpdatesInput {
+ s.ServiceUpdateStatus = v
return s
}
-// Represents the output of a DescribeEvents operation.
-type DescribeEventsOutput struct {
+type DescribeServiceUpdatesOutput struct {
_ struct{} `type:"structure"`
- // A list of events. Each element in the list contains detailed information
- // about one event.
- Events []*Event `locationNameList:"Event" type:"list"`
-
- // Provides an identifier to allow retrieval of paginated results.
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
Marker *string `type:"string"`
+
+ // A list of service updates
+ ServiceUpdates []*ServiceUpdate `locationNameList:"ServiceUpdate" type:"list"`
}
// String returns the string representation
-func (s DescribeEventsOutput) String() string {
+func (s DescribeServiceUpdatesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeEventsOutput) GoString() string {
+func (s DescribeServiceUpdatesOutput) GoString() string {
return s.String()
}
-// SetEvents sets the Events field's value.
-func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput {
- s.Events = v
+// SetMarker sets the Marker field's value.
+func (s *DescribeServiceUpdatesOutput) SetMarker(v string) *DescribeServiceUpdatesOutput {
+ s.Marker = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput {
- s.Marker = &v
+// SetServiceUpdates sets the ServiceUpdates field's value.
+func (s *DescribeServiceUpdatesOutput) SetServiceUpdates(v []*ServiceUpdate) *DescribeServiceUpdatesOutput {
+ s.ServiceUpdates = v
return s
}
-// Represents the input of a DescribeReplicationGroups operation.
-type DescribeReplicationGroupsInput struct {
+// Represents the input of a DescribeSnapshotsMessage operation.
+type DescribeSnapshotsInput struct {
_ struct{} `type:"structure"`
+ // A user-supplied cluster identifier. If this parameter is specified, only
+ // snapshots associated with that specific cluster are described.
+ CacheClusterId *string `type:"string"`
+
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
// includes only records beyond the marker, up to the value specified by MaxRecords.
@@ -9995,961 +11800,1021 @@ type DescribeReplicationGroupsInput struct {
// exist than the specified MaxRecords value, a marker is included in the response
// so that the remaining results can be retrieved.
//
- // Default: 100
+ // Default: 50
//
- // Constraints: minimum 20; maximum 100.
+ // Constraints: minimum 20; maximum 50.
MaxRecords *int64 `type:"integer"`
- // The identifier for the replication group to be described. This parameter
- // is not case sensitive.
- //
- // If you do not specify this parameter, information about all replication groups
- // is returned.
+ // A user-supplied replication group identifier. If this parameter is specified,
+ // only snapshots associated with that specific replication group are described.
ReplicationGroupId *string `type:"string"`
+
+ // A Boolean value which if true, the node group (shard) configuration is included
+ // in the snapshot description.
+ ShowNodeGroupConfig *bool `type:"boolean"`
+
+ // A user-supplied name of the snapshot. If this parameter is specified, only
+ // this snapshot are described.
+ SnapshotName *string `type:"string"`
+
+ // If set to system, the output shows snapshots that were automatically created
+ // by ElastiCache. If set to user the output shows snapshots that were manually
+ // created. If omitted, the output shows both automatically and manually created
+ // snapshots.
+ SnapshotSource *string `type:"string"`
}
// String returns the string representation
-func (s DescribeReplicationGroupsInput) String() string {
+func (s DescribeSnapshotsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReplicationGroupsInput) GoString() string {
+func (s DescribeSnapshotsInput) GoString() string {
return s.String()
}
+// SetCacheClusterId sets the CacheClusterId field's value.
+func (s *DescribeSnapshotsInput) SetCacheClusterId(v string) *DescribeSnapshotsInput {
+ s.CacheClusterId = &v
+ return s
+}
+
// SetMarker sets the Marker field's value.
-func (s *DescribeReplicationGroupsInput) SetMarker(v string) *DescribeReplicationGroupsInput {
+func (s *DescribeSnapshotsInput) SetMarker(v string) *DescribeSnapshotsInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeReplicationGroupsInput) SetMaxRecords(v int64) *DescribeReplicationGroupsInput {
+func (s *DescribeSnapshotsInput) SetMaxRecords(v int64) *DescribeSnapshotsInput {
s.MaxRecords = &v
return s
}
// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *DescribeReplicationGroupsInput) SetReplicationGroupId(v string) *DescribeReplicationGroupsInput {
+func (s *DescribeSnapshotsInput) SetReplicationGroupId(v string) *DescribeSnapshotsInput {
s.ReplicationGroupId = &v
return s
}
-// Represents the output of a DescribeReplicationGroups operation.
-type DescribeReplicationGroupsOutput struct {
+// SetShowNodeGroupConfig sets the ShowNodeGroupConfig field's value.
+func (s *DescribeSnapshotsInput) SetShowNodeGroupConfig(v bool) *DescribeSnapshotsInput {
+ s.ShowNodeGroupConfig = &v
+ return s
+}
+
+// SetSnapshotName sets the SnapshotName field's value.
+func (s *DescribeSnapshotsInput) SetSnapshotName(v string) *DescribeSnapshotsInput {
+ s.SnapshotName = &v
+ return s
+}
+
+// SetSnapshotSource sets the SnapshotSource field's value.
+func (s *DescribeSnapshotsInput) SetSnapshotSource(v string) *DescribeSnapshotsInput {
+ s.SnapshotSource = &v
+ return s
+}
+
+// Represents the output of a DescribeSnapshots operation.
+type DescribeSnapshotsOutput struct {
_ struct{} `type:"structure"`
- // Provides an identifier to allow retrieval of paginated results.
+ // An optional marker returned from a prior request. Use this marker for pagination
+ // of results from this operation. If this parameter is specified, the response
+ // includes only records beyond the marker, up to the value specified by MaxRecords.
Marker *string `type:"string"`
- // A list of replication groups. Each item in the list contains detailed information
- // about one replication group.
- ReplicationGroups []*ReplicationGroup `locationNameList:"ReplicationGroup" type:"list"`
+ // A list of snapshots. Each item in the list contains detailed information
+ // about one snapshot.
+ Snapshots []*Snapshot `locationNameList:"Snapshot" type:"list"`
}
// String returns the string representation
-func (s DescribeReplicationGroupsOutput) String() string {
+func (s DescribeSnapshotsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReplicationGroupsOutput) GoString() string {
+func (s DescribeSnapshotsOutput) GoString() string {
return s.String()
}
// SetMarker sets the Marker field's value.
-func (s *DescribeReplicationGroupsOutput) SetMarker(v string) *DescribeReplicationGroupsOutput {
+func (s *DescribeSnapshotsOutput) SetMarker(v string) *DescribeSnapshotsOutput {
s.Marker = &v
return s
}
-// SetReplicationGroups sets the ReplicationGroups field's value.
-func (s *DescribeReplicationGroupsOutput) SetReplicationGroups(v []*ReplicationGroup) *DescribeReplicationGroupsOutput {
- s.ReplicationGroups = v
+// SetSnapshots sets the Snapshots field's value.
+func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
+ s.Snapshots = v
return s
}
-// Represents the input of a DescribeReservedCacheNodes operation.
-type DescribeReservedCacheNodesInput struct {
+type DescribeUpdateActionsInput struct {
_ struct{} `type:"structure"`
- // The cache node type filter value. Use this parameter to show only those reservations
- // matching the specified cache node type.
- //
- // The following node types are supported by ElastiCache. Generally speaking,
- // the current generation types provide more memory and computational power
- // at lower cost when compared to their equivalent previous generation counterparts.
- //
- // * General purpose: Current generation: M5 node types: cache.m5.large,
- // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
- // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
- //
- // * Compute optimized: Previous generation: (not recommended) C1 node types:
- // cache.c1.xlarge
- //
- // * Memory optimized: Current generation: R5 node types: cache.r5.large,
- // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
- // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
- // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
- // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
- // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
- // cache.r3.8xlarge
- //
- // Additional node type info
- //
- // * All current generation instance types are created in Amazon VPC by default.
- //
- // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
- //
- // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
- //
- // * Redis configuration variables appendonly and appendfsync are not supported
- // on Redis version 2.8.22 and later.
- CacheNodeType *string `type:"string"`
+ // The cache cluster IDs
+ CacheClusterIds []*string `type:"list"`
- // The duration filter value, specified in years or seconds. Use this parameter
- // to show only reservations for this duration.
- //
- // Valid Values: 1 | 3 | 31536000 | 94608000
- Duration *string `type:"string"`
+ // The Elasticache engine to which the update applies. Either Redis or Memcached
+ Engine *string `type:"string"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
// includes only records beyond the marker, up to the value specified by MaxRecords.
Marker *string `type:"string"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a marker is included in the response
- // so that the remaining results can be retrieved.
- //
- // Default: 100
- //
- // Constraints: minimum 20; maximum 100.
+ // The maximum number of records to include in the response
MaxRecords *int64 `type:"integer"`
- // The offering type filter value. Use this parameter to show only the available
- // offerings matching the specified offering type.
- //
- // Valid values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
- OfferingType *string `type:"string"`
+ // The replication group IDs
+ ReplicationGroupIds []*string `type:"list"`
- // The product description filter value. Use this parameter to show only those
- // reservations matching the specified product description.
- ProductDescription *string `type:"string"`
+ // The unique ID of the service update
+ ServiceUpdateName *string `type:"string"`
- // The reserved cache node identifier filter value. Use this parameter to show
- // only the reservation that matches the specified reservation ID.
- ReservedCacheNodeId *string `type:"string"`
+ // The status of the service update
+ ServiceUpdateStatus []*string `type:"list"`
- // The offering identifier filter value. Use this parameter to show only purchased
- // reservations matching the specified offering identifier.
- ReservedCacheNodesOfferingId *string `type:"string"`
+ // The range of time specified to search for service updates that are in available
+ // status
+ ServiceUpdateTimeRange *TimeRangeFilter `type:"structure"`
+
+ // Dictates whether to include node level update status in the response
+ ShowNodeLevelUpdateStatus *bool `type:"boolean"`
+
+ // The status of the update action.
+ UpdateActionStatus []*string `type:"list"`
}
// String returns the string representation
-func (s DescribeReservedCacheNodesInput) String() string {
+func (s DescribeUpdateActionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReservedCacheNodesInput) GoString() string {
+func (s DescribeUpdateActionsInput) GoString() string {
return s.String()
}
-// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *DescribeReservedCacheNodesInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesInput {
- s.CacheNodeType = &v
+// SetCacheClusterIds sets the CacheClusterIds field's value.
+func (s *DescribeUpdateActionsInput) SetCacheClusterIds(v []*string) *DescribeUpdateActionsInput {
+ s.CacheClusterIds = v
return s
}
-// SetDuration sets the Duration field's value.
-func (s *DescribeReservedCacheNodesInput) SetDuration(v string) *DescribeReservedCacheNodesInput {
- s.Duration = &v
+// SetEngine sets the Engine field's value.
+func (s *DescribeUpdateActionsInput) SetEngine(v string) *DescribeUpdateActionsInput {
+ s.Engine = &v
return s
}
// SetMarker sets the Marker field's value.
-func (s *DescribeReservedCacheNodesInput) SetMarker(v string) *DescribeReservedCacheNodesInput {
+func (s *DescribeUpdateActionsInput) SetMarker(v string) *DescribeUpdateActionsInput {
s.Marker = &v
return s
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeReservedCacheNodesInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesInput {
+func (s *DescribeUpdateActionsInput) SetMaxRecords(v int64) *DescribeUpdateActionsInput {
s.MaxRecords = &v
return s
}
-// SetOfferingType sets the OfferingType field's value.
-func (s *DescribeReservedCacheNodesInput) SetOfferingType(v string) *DescribeReservedCacheNodesInput {
- s.OfferingType = &v
+// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
+func (s *DescribeUpdateActionsInput) SetReplicationGroupIds(v []*string) *DescribeUpdateActionsInput {
+ s.ReplicationGroupIds = v
return s
}
-// SetProductDescription sets the ProductDescription field's value.
-func (s *DescribeReservedCacheNodesInput) SetProductDescription(v string) *DescribeReservedCacheNodesInput {
- s.ProductDescription = &v
+// SetServiceUpdateName sets the ServiceUpdateName field's value.
+func (s *DescribeUpdateActionsInput) SetServiceUpdateName(v string) *DescribeUpdateActionsInput {
+ s.ServiceUpdateName = &v
return s
}
-// SetReservedCacheNodeId sets the ReservedCacheNodeId field's value.
-func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodeId(v string) *DescribeReservedCacheNodesInput {
- s.ReservedCacheNodeId = &v
+// SetServiceUpdateStatus sets the ServiceUpdateStatus field's value.
+func (s *DescribeUpdateActionsInput) SetServiceUpdateStatus(v []*string) *DescribeUpdateActionsInput {
+ s.ServiceUpdateStatus = v
return s
}
-// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value.
-func (s *DescribeReservedCacheNodesInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesInput {
- s.ReservedCacheNodesOfferingId = &v
+// SetServiceUpdateTimeRange sets the ServiceUpdateTimeRange field's value.
+func (s *DescribeUpdateActionsInput) SetServiceUpdateTimeRange(v *TimeRangeFilter) *DescribeUpdateActionsInput {
+ s.ServiceUpdateTimeRange = v
return s
}
-// Represents the input of a DescribeReservedCacheNodesOfferings operation.
-type DescribeReservedCacheNodesOfferingsInput struct {
- _ struct{} `type:"structure"`
+// SetShowNodeLevelUpdateStatus sets the ShowNodeLevelUpdateStatus field's value.
+func (s *DescribeUpdateActionsInput) SetShowNodeLevelUpdateStatus(v bool) *DescribeUpdateActionsInput {
+ s.ShowNodeLevelUpdateStatus = &v
+ return s
+}
- // The cache node type filter value. Use this parameter to show only the available
- // offerings matching the specified cache node type.
- //
- // The following node types are supported by ElastiCache. Generally speaking,
- // the current generation types provide more memory and computational power
- // at lower cost when compared to their equivalent previous generation counterparts.
- //
- // * General purpose: Current generation: M5 node types: cache.m5.large,
- // cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
- // cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
- //
- // * Compute optimized: Previous generation: (not recommended) C1 node types:
- // cache.c1.xlarge
- //
- // * Memory optimized: Current generation: R5 node types: cache.r5.large,
- // cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge,
- // cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge,
- // cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge Previous generation:
- // (not recommended) M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
- // R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,
- // cache.r3.8xlarge
- //
- // Additional node type info
- //
- // * All current generation instance types are created in Amazon VPC by default.
- //
- // * Redis append-only files (AOF) are not supported for T1 or T2 instances.
- //
- // * Redis Multi-AZ with automatic failover is not supported on T1 instances.
- //
- // * Redis configuration variables appendonly and appendfsync are not supported
- // on Redis version 2.8.22 and later.
- CacheNodeType *string `type:"string"`
+// SetUpdateActionStatus sets the UpdateActionStatus field's value.
+func (s *DescribeUpdateActionsInput) SetUpdateActionStatus(v []*string) *DescribeUpdateActionsInput {
+ s.UpdateActionStatus = v
+ return s
+}
- // Duration filter value, specified in years or seconds. Use this parameter
- // to show only reservations for a given duration.
- //
- // Valid Values: 1 | 3 | 31536000 | 94608000
- Duration *string `type:"string"`
+type DescribeUpdateActionsOutput struct {
+ _ struct{} `type:"structure"`
// An optional marker returned from a prior request. Use this marker for pagination
// of results from this operation. If this parameter is specified, the response
// includes only records beyond the marker, up to the value specified by MaxRecords.
Marker *string `type:"string"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a marker is included in the response
- // so that the remaining results can be retrieved.
- //
- // Default: 100
- //
- // Constraints: minimum 20; maximum 100.
- MaxRecords *int64 `type:"integer"`
+ // Returns a list of update actions
+ UpdateActions []*UpdateAction `locationNameList:"UpdateAction" type:"list"`
+}
- // The offering type filter value. Use this parameter to show only the available
- // offerings matching the specified offering type.
+// String returns the string representation
+func (s DescribeUpdateActionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeUpdateActionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetMarker sets the Marker field's value.
+func (s *DescribeUpdateActionsOutput) SetMarker(v string) *DescribeUpdateActionsOutput {
+ s.Marker = &v
+ return s
+}
+
+// SetUpdateActions sets the UpdateActions field's value.
+func (s *DescribeUpdateActionsOutput) SetUpdateActions(v []*UpdateAction) *DescribeUpdateActionsOutput {
+ s.UpdateActions = v
+ return s
+}
+
+type DisassociateGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the Global Datastore
//
- // Valid Values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
- OfferingType *string `type:"string"`
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
- // The product description filter value. Use this parameter to show only the
- // available offerings matching the specified product description.
- ProductDescription *string `type:"string"`
+ // The name of the secondary cluster you wish to remove from the Global Datastore
+ //
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
- // The offering identifier filter value. Use this parameter to show only the
- // available offering that matches the specified reservation identifier.
+ // The AWS region of secondary cluster you wish to remove from the Global Datastore
//
- // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- ReservedCacheNodesOfferingId *string `type:"string"`
+ // ReplicationGroupRegion is a required field
+ ReplicationGroupRegion *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s DescribeReservedCacheNodesOfferingsInput) String() string {
+func (s DisassociateGlobalReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReservedCacheNodesOfferingsInput) GoString() string {
+func (s DisassociateGlobalReplicationGroupInput) GoString() string {
return s.String()
}
-// SetCacheNodeType sets the CacheNodeType field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetCacheNodeType(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.CacheNodeType = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisassociateGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisassociateGlobalReplicationGroupInput"}
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+ }
+ if s.ReplicationGroupRegion == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupRegion"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetDuration sets the Duration field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetDuration(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.Duration = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *DisassociateGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *DisassociateGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.Marker = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *DisassociateGlobalReplicationGroupInput) SetReplicationGroupId(v string) *DisassociateGlobalReplicationGroupInput {
+ s.ReplicationGroupId = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedCacheNodesOfferingsInput {
- s.MaxRecords = &v
+// SetReplicationGroupRegion sets the ReplicationGroupRegion field's value.
+func (s *DisassociateGlobalReplicationGroupInput) SetReplicationGroupRegion(v string) *DisassociateGlobalReplicationGroupInput {
+ s.ReplicationGroupRegion = &v
return s
}
-// SetOfferingType sets the OfferingType field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetOfferingType(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.OfferingType = &v
- return s
+type DisassociateGlobalReplicationGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s DisassociateGlobalReplicationGroupOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetProductDescription sets the ProductDescription field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetProductDescription(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.ProductDescription = &v
- return s
+// GoString returns the string representation
+func (s DisassociateGlobalReplicationGroupOutput) GoString() string {
+ return s.String()
}
-// SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value.
-func (s *DescribeReservedCacheNodesOfferingsInput) SetReservedCacheNodesOfferingId(v string) *DescribeReservedCacheNodesOfferingsInput {
- s.ReservedCacheNodesOfferingId = &v
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *DisassociateGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *DisassociateGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
-// Represents the output of a DescribeReservedCacheNodesOfferings operation.
-type DescribeReservedCacheNodesOfferingsOutput struct {
+// Provides ownership and status information for an Amazon EC2 security group.
+type EC2SecurityGroup struct {
_ struct{} `type:"structure"`
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
+ // The name of the Amazon EC2 security group.
+ EC2SecurityGroupName *string `type:"string"`
- // A list of reserved cache node offerings. Each element in the list contains
- // detailed information about one offering.
- ReservedCacheNodesOfferings []*ReservedCacheNodesOffering `locationNameList:"ReservedCacheNodesOffering" type:"list"`
+ // The AWS account ID of the Amazon EC2 security group owner.
+ EC2SecurityGroupOwnerId *string `type:"string"`
+
+ // The status of the Amazon EC2 security group.
+ Status *string `type:"string"`
}
// String returns the string representation
-func (s DescribeReservedCacheNodesOfferingsOutput) String() string {
+func (s EC2SecurityGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReservedCacheNodesOfferingsOutput) GoString() string {
+func (s EC2SecurityGroup) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeReservedCacheNodesOfferingsOutput) SetMarker(v string) *DescribeReservedCacheNodesOfferingsOutput {
- s.Marker = &v
+// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
+func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup {
+ s.EC2SecurityGroupName = &v
return s
}
-// SetReservedCacheNodesOfferings sets the ReservedCacheNodesOfferings field's value.
-func (s *DescribeReservedCacheNodesOfferingsOutput) SetReservedCacheNodesOfferings(v []*ReservedCacheNodesOffering) *DescribeReservedCacheNodesOfferingsOutput {
- s.ReservedCacheNodesOfferings = v
+// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
+func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup {
+ s.EC2SecurityGroupOwnerId = &v
return s
}
-// Represents the output of a DescribeReservedCacheNodes operation.
-type DescribeReservedCacheNodesOutput struct {
+// SetStatus sets the Status field's value.
+func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup {
+ s.Status = &v
+ return s
+}
+
+// Represents the information required for client programs to connect to a cache
+// node.
+type Endpoint struct {
_ struct{} `type:"structure"`
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
+ // The DNS hostname of the cache node.
+ Address *string `type:"string"`
- // A list of reserved cache nodes. Each element in the list contains detailed
- // information about one node.
- ReservedCacheNodes []*ReservedCacheNode `locationNameList:"ReservedCacheNode" type:"list"`
+ // The port number that the cache engine is listening on.
+ Port *int64 `type:"integer"`
}
// String returns the string representation
-func (s DescribeReservedCacheNodesOutput) String() string {
+func (s Endpoint) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeReservedCacheNodesOutput) GoString() string {
+func (s Endpoint) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeReservedCacheNodesOutput) SetMarker(v string) *DescribeReservedCacheNodesOutput {
- s.Marker = &v
+// SetAddress sets the Address field's value.
+func (s *Endpoint) SetAddress(v string) *Endpoint {
+ s.Address = &v
return s
}
-// SetReservedCacheNodes sets the ReservedCacheNodes field's value.
-func (s *DescribeReservedCacheNodesOutput) SetReservedCacheNodes(v []*ReservedCacheNode) *DescribeReservedCacheNodesOutput {
- s.ReservedCacheNodes = v
+// SetPort sets the Port field's value.
+func (s *Endpoint) SetPort(v int64) *Endpoint {
+ s.Port = &v
return s
}
-type DescribeServiceUpdatesInput struct {
+// Represents the output of a DescribeEngineDefaultParameters operation.
+type EngineDefaults struct {
_ struct{} `type:"structure"`
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+ // A list of parameters specific to a particular cache node type. Each element
+ // in the list contains detailed information about one parameter.
+ CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"`
- // The maximum number of records to include in the response
- MaxRecords *int64 `type:"integer"`
+ // Specifies the name of the cache parameter group family to which the engine
+ // default parameters apply.
+ //
+ // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
+ // | redis4.0 | redis5.0 |
+ CacheParameterGroupFamily *string `type:"string"`
- // The unique ID of the service update
- ServiceUpdateName *string `type:"string"`
+ // Provides an identifier to allow retrieval of paginated results.
+ Marker *string `type:"string"`
- // The status of the service update
- ServiceUpdateStatus []*string `type:"list"`
+ // Contains a list of engine default parameters.
+ Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
}
// String returns the string representation
-func (s DescribeServiceUpdatesInput) String() string {
+func (s EngineDefaults) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeServiceUpdatesInput) GoString() string {
+func (s EngineDefaults) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeServiceUpdatesInput) SetMarker(v string) *DescribeServiceUpdatesInput {
- s.Marker = &v
+// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value.
+func (s *EngineDefaults) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *EngineDefaults {
+ s.CacheNodeTypeSpecificParameters = v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeServiceUpdatesInput) SetMaxRecords(v int64) *DescribeServiceUpdatesInput {
- s.MaxRecords = &v
+// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
+func (s *EngineDefaults) SetCacheParameterGroupFamily(v string) *EngineDefaults {
+ s.CacheParameterGroupFamily = &v
return s
}
-// SetServiceUpdateName sets the ServiceUpdateName field's value.
-func (s *DescribeServiceUpdatesInput) SetServiceUpdateName(v string) *DescribeServiceUpdatesInput {
- s.ServiceUpdateName = &v
+// SetMarker sets the Marker field's value.
+func (s *EngineDefaults) SetMarker(v string) *EngineDefaults {
+ s.Marker = &v
return s
}
-// SetServiceUpdateStatus sets the ServiceUpdateStatus field's value.
-func (s *DescribeServiceUpdatesInput) SetServiceUpdateStatus(v []*string) *DescribeServiceUpdatesInput {
- s.ServiceUpdateStatus = v
+// SetParameters sets the Parameters field's value.
+func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults {
+ s.Parameters = v
return s
}
-type DescribeServiceUpdatesOutput struct {
+// Represents a single occurrence of something interesting within the system.
+// Some examples of events are creating a cluster, adding or removing a cache
+// node, or rebooting a node.
+type Event struct {
_ struct{} `type:"structure"`
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+ // The date and time when the event occurred.
+ Date *time.Time `type:"timestamp"`
- // A list of service updates
- ServiceUpdates []*ServiceUpdate `locationNameList:"ServiceUpdate" type:"list"`
+ // The text of the event.
+ Message *string `type:"string"`
+
+ // The identifier for the source of the event. For example, if the event occurred
+ // at the cluster level, the identifier would be the name of the cluster.
+ SourceIdentifier *string `type:"string"`
+
+ // Specifies the origin of this event - a cluster, a parameter group, a security
+ // group, etc.
+ SourceType *string `type:"string" enum:"SourceType"`
}
// String returns the string representation
-func (s DescribeServiceUpdatesOutput) String() string {
+func (s Event) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeServiceUpdatesOutput) GoString() string {
+func (s Event) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeServiceUpdatesOutput) SetMarker(v string) *DescribeServiceUpdatesOutput {
- s.Marker = &v
+// SetDate sets the Date field's value.
+func (s *Event) SetDate(v time.Time) *Event {
+ s.Date = &v
return s
}
-// SetServiceUpdates sets the ServiceUpdates field's value.
-func (s *DescribeServiceUpdatesOutput) SetServiceUpdates(v []*ServiceUpdate) *DescribeServiceUpdatesOutput {
- s.ServiceUpdates = v
+// SetMessage sets the Message field's value.
+func (s *Event) SetMessage(v string) *Event {
+ s.Message = &v
return s
}
-// Represents the input of a DescribeSnapshotsMessage operation.
-type DescribeSnapshotsInput struct {
- _ struct{} `type:"structure"`
+// SetSourceIdentifier sets the SourceIdentifier field's value.
+func (s *Event) SetSourceIdentifier(v string) *Event {
+ s.SourceIdentifier = &v
+ return s
+}
- // A user-supplied cluster identifier. If this parameter is specified, only
- // snapshots associated with that specific cluster are described.
- CacheClusterId *string `type:"string"`
+// SetSourceType sets the SourceType field's value.
+func (s *Event) SetSourceType(v string) *Event {
+ s.SourceType = &v
+ return s
+}
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+type FailoverGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a marker is included in the response
- // so that the remaining results can be retrieved.
- //
- // Default: 50
+ // The name of the Global Datastore
//
- // Constraints: minimum 20; maximum 50.
- MaxRecords *int64 `type:"integer"`
-
- // A user-supplied replication group identifier. If this parameter is specified,
- // only snapshots associated with that specific replication group are described.
- ReplicationGroupId *string `type:"string"`
-
- // A Boolean value which if true, the node group (shard) configuration is included
- // in the snapshot description.
- ShowNodeGroupConfig *bool `type:"boolean"`
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
- // A user-supplied name of the snapshot. If this parameter is specified, only
- // this snapshot are described.
- SnapshotName *string `type:"string"`
+ // The AWS region of the primary cluster of the Global Datastore
+ //
+ // PrimaryRegion is a required field
+ PrimaryRegion *string `type:"string" required:"true"`
- // If set to system, the output shows snapshots that were automatically created
- // by ElastiCache. If set to user the output shows snapshots that were manually
- // created. If omitted, the output shows both automatically and manually created
- // snapshots.
- SnapshotSource *string `type:"string"`
+ // The name of the primary replication group
+ //
+ // PrimaryReplicationGroupId is a required field
+ PrimaryReplicationGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
-func (s DescribeSnapshotsInput) String() string {
+func (s FailoverGlobalReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeSnapshotsInput) GoString() string {
+func (s FailoverGlobalReplicationGroupInput) GoString() string {
return s.String()
}
-// SetCacheClusterId sets the CacheClusterId field's value.
-func (s *DescribeSnapshotsInput) SetCacheClusterId(v string) *DescribeSnapshotsInput {
- s.CacheClusterId = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *FailoverGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "FailoverGlobalReplicationGroupInput"}
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+ if s.PrimaryRegion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PrimaryRegion"))
+ }
+ if s.PrimaryReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PrimaryReplicationGroupId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeSnapshotsInput) SetMarker(v string) *DescribeSnapshotsInput {
- s.Marker = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *FailoverGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *FailoverGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeSnapshotsInput) SetMaxRecords(v int64) *DescribeSnapshotsInput {
- s.MaxRecords = &v
+// SetPrimaryRegion sets the PrimaryRegion field's value.
+func (s *FailoverGlobalReplicationGroupInput) SetPrimaryRegion(v string) *FailoverGlobalReplicationGroupInput {
+ s.PrimaryRegion = &v
return s
}
-// SetReplicationGroupId sets the ReplicationGroupId field's value.
-func (s *DescribeSnapshotsInput) SetReplicationGroupId(v string) *DescribeSnapshotsInput {
- s.ReplicationGroupId = &v
+// SetPrimaryReplicationGroupId sets the PrimaryReplicationGroupId field's value.
+func (s *FailoverGlobalReplicationGroupInput) SetPrimaryReplicationGroupId(v string) *FailoverGlobalReplicationGroupInput {
+ s.PrimaryReplicationGroupId = &v
return s
}
-// SetShowNodeGroupConfig sets the ShowNodeGroupConfig field's value.
-func (s *DescribeSnapshotsInput) SetShowNodeGroupConfig(v bool) *DescribeSnapshotsInput {
- s.ShowNodeGroupConfig = &v
- return s
+type FailoverGlobalReplicationGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
}
-// SetSnapshotName sets the SnapshotName field's value.
-func (s *DescribeSnapshotsInput) SetSnapshotName(v string) *DescribeSnapshotsInput {
- s.SnapshotName = &v
- return s
+// String returns the string representation
+func (s FailoverGlobalReplicationGroupOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetSnapshotSource sets the SnapshotSource field's value.
-func (s *DescribeSnapshotsInput) SetSnapshotSource(v string) *DescribeSnapshotsInput {
- s.SnapshotSource = &v
+// GoString returns the string representation
+func (s FailoverGlobalReplicationGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *FailoverGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *FailoverGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
-// Represents the output of a DescribeSnapshots operation.
-type DescribeSnapshotsOutput struct {
+// Indicates the slot configuration and global identifier for a slice group.
+type GlobalNodeGroup struct {
_ struct{} `type:"structure"`
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+ // The name of the global node group
+ GlobalNodeGroupId *string `type:"string"`
- // A list of snapshots. Each item in the list contains detailed information
- // about one snapshot.
- Snapshots []*Snapshot `locationNameList:"Snapshot" type:"list"`
+ // The keyspace for this node group
+ Slots *string `type:"string"`
}
// String returns the string representation
-func (s DescribeSnapshotsOutput) String() string {
+func (s GlobalNodeGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeSnapshotsOutput) GoString() string {
+func (s GlobalNodeGroup) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeSnapshotsOutput) SetMarker(v string) *DescribeSnapshotsOutput {
- s.Marker = &v
+// SetGlobalNodeGroupId sets the GlobalNodeGroupId field's value.
+func (s *GlobalNodeGroup) SetGlobalNodeGroupId(v string) *GlobalNodeGroup {
+ s.GlobalNodeGroupId = &v
return s
}
-// SetSnapshots sets the Snapshots field's value.
-func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
- s.Snapshots = v
+// SetSlots sets the Slots field's value.
+func (s *GlobalNodeGroup) SetSlots(v string) *GlobalNodeGroup {
+ s.Slots = &v
return s
}
-type DescribeUpdateActionsInput struct {
+// Consists of a primary cluster that accepts writes and an associated secondary
+// cluster that resides in a different AWS region. The secondary cluster accepts
+// only reads. The primary cluster automatically replicates updates to the secondary
+// cluster.
+//
+// * The GlobalReplicationGroupId represents the name of the Global Datastore,
+// which is what you use to associate a secondary cluster.
+type GlobalReplicationGroup struct {
_ struct{} `type:"structure"`
- // The cache cluster IDs
- CacheClusterIds []*string `type:"list"`
+ // A flag that enables encryption at rest when set to true.
+ //
+ // You cannot modify the value of AtRestEncryptionEnabled after the replication
+ // group is created. To enable encryption at rest on a replication group you
+ // must set AtRestEncryptionEnabled to true when you create the replication
+ // group.
+ //
+ // Required: Only available when creating a replication group in an Amazon VPC
+ // using redis version 3.2.6, 4.x or later.
+ AtRestEncryptionEnabled *bool `type:"boolean"`
- // The Elasticache engine to which the update applies. Either Redis or Memcached
- Engine *string `type:"string"`
+ // A flag that enables using an AuthToken (password) when issuing Redis commands.
+ //
+ // Default: false
+ AuthTokenEnabled *bool `type:"boolean"`
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+ // The cache node type of the Global Datastore
+ CacheNodeType *string `type:"string"`
- // The maximum number of records to include in the response
- MaxRecords *int64 `type:"integer"`
+ // A flag that indicates whether the Global Datastore is cluster enabled.
+ ClusterEnabled *bool `type:"boolean"`
- // The replication group IDs
- ReplicationGroupIds []*string `type:"list"`
+ // The Elasticache engine. For preview, it is Redis only.
+ Engine *string `type:"string"`
- // The unique ID of the service update
- ServiceUpdateName *string `type:"string"`
+ // The Elasticache Redis engine version. For preview, it is Redis version 5.0.5
+ // only.
+ EngineVersion *string `type:"string"`
- // The status of the service update
- ServiceUpdateStatus []*string `type:"list"`
+ // Indicates the slot configuration and global identifier for each slice group.
+ GlobalNodeGroups []*GlobalNodeGroup `locationNameList:"GlobalNodeGroup" type:"list"`
- // The range of time specified to search for service updates that are in available
- // status
- ServiceUpdateTimeRange *TimeRangeFilter `type:"structure"`
+ // The optional description of the Global Datastore
+ GlobalReplicationGroupDescription *string `type:"string"`
- // Dictates whether to include node level update status in the response
- ShowNodeLevelUpdateStatus *bool `type:"boolean"`
+ // The name of the Global Datastore
+ GlobalReplicationGroupId *string `type:"string"`
- // The status of the update action.
- UpdateActionStatus []*string `type:"list"`
+ // The replication groups that comprise the Global Datastore.
+ Members []*GlobalReplicationGroupMember `locationNameList:"GlobalReplicationGroupMember" type:"list"`
+
+ // The status of the Global Datastore
+ Status *string `type:"string"`
+
+ // A flag that enables in-transit encryption when set to true. You cannot modify
+ // the value of TransitEncryptionEnabled after the cluster is created. To enable
+ // in-transit encryption on a cluster you must set TransitEncryptionEnabled
+ // to true when you create a cluster.
+ TransitEncryptionEnabled *bool `type:"boolean"`
}
// String returns the string representation
-func (s DescribeUpdateActionsInput) String() string {
+func (s GlobalReplicationGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeUpdateActionsInput) GoString() string {
+func (s GlobalReplicationGroup) GoString() string {
return s.String()
}
-// SetCacheClusterIds sets the CacheClusterIds field's value.
-func (s *DescribeUpdateActionsInput) SetCacheClusterIds(v []*string) *DescribeUpdateActionsInput {
- s.CacheClusterIds = v
+// SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value.
+func (s *GlobalReplicationGroup) SetAtRestEncryptionEnabled(v bool) *GlobalReplicationGroup {
+ s.AtRestEncryptionEnabled = &v
return s
}
-// SetEngine sets the Engine field's value.
-func (s *DescribeUpdateActionsInput) SetEngine(v string) *DescribeUpdateActionsInput {
- s.Engine = &v
+// SetAuthTokenEnabled sets the AuthTokenEnabled field's value.
+func (s *GlobalReplicationGroup) SetAuthTokenEnabled(v bool) *GlobalReplicationGroup {
+ s.AuthTokenEnabled = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeUpdateActionsInput) SetMarker(v string) *DescribeUpdateActionsInput {
- s.Marker = &v
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *GlobalReplicationGroup) SetCacheNodeType(v string) *GlobalReplicationGroup {
+ s.CacheNodeType = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeUpdateActionsInput) SetMaxRecords(v int64) *DescribeUpdateActionsInput {
- s.MaxRecords = &v
+// SetClusterEnabled sets the ClusterEnabled field's value.
+func (s *GlobalReplicationGroup) SetClusterEnabled(v bool) *GlobalReplicationGroup {
+ s.ClusterEnabled = &v
return s
}
-// SetReplicationGroupIds sets the ReplicationGroupIds field's value.
-func (s *DescribeUpdateActionsInput) SetReplicationGroupIds(v []*string) *DescribeUpdateActionsInput {
- s.ReplicationGroupIds = v
+// SetEngine sets the Engine field's value.
+func (s *GlobalReplicationGroup) SetEngine(v string) *GlobalReplicationGroup {
+ s.Engine = &v
return s
}
-// SetServiceUpdateName sets the ServiceUpdateName field's value.
-func (s *DescribeUpdateActionsInput) SetServiceUpdateName(v string) *DescribeUpdateActionsInput {
- s.ServiceUpdateName = &v
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *GlobalReplicationGroup) SetEngineVersion(v string) *GlobalReplicationGroup {
+ s.EngineVersion = &v
return s
}
-// SetServiceUpdateStatus sets the ServiceUpdateStatus field's value.
-func (s *DescribeUpdateActionsInput) SetServiceUpdateStatus(v []*string) *DescribeUpdateActionsInput {
- s.ServiceUpdateStatus = v
+// SetGlobalNodeGroups sets the GlobalNodeGroups field's value.
+func (s *GlobalReplicationGroup) SetGlobalNodeGroups(v []*GlobalNodeGroup) *GlobalReplicationGroup {
+ s.GlobalNodeGroups = v
return s
}
-// SetServiceUpdateTimeRange sets the ServiceUpdateTimeRange field's value.
-func (s *DescribeUpdateActionsInput) SetServiceUpdateTimeRange(v *TimeRangeFilter) *DescribeUpdateActionsInput {
- s.ServiceUpdateTimeRange = v
+// SetGlobalReplicationGroupDescription sets the GlobalReplicationGroupDescription field's value.
+func (s *GlobalReplicationGroup) SetGlobalReplicationGroupDescription(v string) *GlobalReplicationGroup {
+ s.GlobalReplicationGroupDescription = &v
return s
}
-// SetShowNodeLevelUpdateStatus sets the ShowNodeLevelUpdateStatus field's value.
-func (s *DescribeUpdateActionsInput) SetShowNodeLevelUpdateStatus(v bool) *DescribeUpdateActionsInput {
- s.ShowNodeLevelUpdateStatus = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *GlobalReplicationGroup) SetGlobalReplicationGroupId(v string) *GlobalReplicationGroup {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetUpdateActionStatus sets the UpdateActionStatus field's value.
-func (s *DescribeUpdateActionsInput) SetUpdateActionStatus(v []*string) *DescribeUpdateActionsInput {
- s.UpdateActionStatus = v
+// SetMembers sets the Members field's value.
+func (s *GlobalReplicationGroup) SetMembers(v []*GlobalReplicationGroupMember) *GlobalReplicationGroup {
+ s.Members = v
return s
}
-type DescribeUpdateActionsOutput struct {
+// SetStatus sets the Status field's value.
+func (s *GlobalReplicationGroup) SetStatus(v string) *GlobalReplicationGroup {
+ s.Status = &v
+ return s
+}
+
+// SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value.
+func (s *GlobalReplicationGroup) SetTransitEncryptionEnabled(v bool) *GlobalReplicationGroup {
+ s.TransitEncryptionEnabled = &v
+ return s
+}
+
+// The name of the Global Datastore and role of this replication group in the
+// Global Datastore.
+type GlobalReplicationGroupInfo struct {
_ struct{} `type:"structure"`
- // An optional marker returned from a prior request. Use this marker for pagination
- // of results from this operation. If this parameter is specified, the response
- // includes only records beyond the marker, up to the value specified by MaxRecords.
- Marker *string `type:"string"`
+ // The name of the Global Datastore
+ GlobalReplicationGroupId *string `type:"string"`
- // Returns a list of update actions
- UpdateActions []*UpdateAction `locationNameList:"UpdateAction" type:"list"`
+ // The role of the replication group in a Global Datastore. Can be primary or
+ // secondary.
+ GlobalReplicationGroupMemberRole *string `type:"string"`
}
// String returns the string representation
-func (s DescribeUpdateActionsOutput) String() string {
+func (s GlobalReplicationGroupInfo) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeUpdateActionsOutput) GoString() string {
+func (s GlobalReplicationGroupInfo) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeUpdateActionsOutput) SetMarker(v string) *DescribeUpdateActionsOutput {
- s.Marker = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *GlobalReplicationGroupInfo) SetGlobalReplicationGroupId(v string) *GlobalReplicationGroupInfo {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetUpdateActions sets the UpdateActions field's value.
-func (s *DescribeUpdateActionsOutput) SetUpdateActions(v []*UpdateAction) *DescribeUpdateActionsOutput {
- s.UpdateActions = v
+// SetGlobalReplicationGroupMemberRole sets the GlobalReplicationGroupMemberRole field's value.
+func (s *GlobalReplicationGroupInfo) SetGlobalReplicationGroupMemberRole(v string) *GlobalReplicationGroupInfo {
+ s.GlobalReplicationGroupMemberRole = &v
return s
}
-// Provides ownership and status information for an Amazon EC2 security group.
-type EC2SecurityGroup struct {
+// A member of a Global Datastore. It contains the Replication Group Id, the
+// AWS region and the role of the replication group.
+type GlobalReplicationGroupMember struct {
_ struct{} `type:"structure"`
- // The name of the Amazon EC2 security group.
- EC2SecurityGroupName *string `type:"string"`
+ // Indicates whether automatic failover is enabled for the replication group.
+ AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"`
- // The AWS account ID of the Amazon EC2 security group owner.
- EC2SecurityGroupOwnerId *string `type:"string"`
+ // The replication group id of the Global Datastore member.
+ ReplicationGroupId *string `type:"string"`
- // The status of the Amazon EC2 security group.
+ // The AWS region of the Global Datastore member.
+ ReplicationGroupRegion *string `type:"string"`
+
+ // Indicates the role of the replication group, primary or secondary.
+ Role *string `type:"string"`
+
+ // The status of the membership of the replication group.
Status *string `type:"string"`
}
// String returns the string representation
-func (s EC2SecurityGroup) String() string {
+func (s GlobalReplicationGroupMember) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s EC2SecurityGroup) GoString() string {
+func (s GlobalReplicationGroupMember) GoString() string {
return s.String()
}
-// SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
-func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup {
- s.EC2SecurityGroupName = &v
+// SetAutomaticFailover sets the AutomaticFailover field's value.
+func (s *GlobalReplicationGroupMember) SetAutomaticFailover(v string) *GlobalReplicationGroupMember {
+ s.AutomaticFailover = &v
return s
}
-// SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
-func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup {
- s.EC2SecurityGroupOwnerId = &v
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *GlobalReplicationGroupMember) SetReplicationGroupId(v string) *GlobalReplicationGroupMember {
+ s.ReplicationGroupId = &v
return s
}
-// SetStatus sets the Status field's value.
-func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup {
- s.Status = &v
+// SetReplicationGroupRegion sets the ReplicationGroupRegion field's value.
+func (s *GlobalReplicationGroupMember) SetReplicationGroupRegion(v string) *GlobalReplicationGroupMember {
+ s.ReplicationGroupRegion = &v
return s
}
-// Represents the information required for client programs to connect to a cache
-// node.
-type Endpoint struct {
- _ struct{} `type:"structure"`
-
- // The DNS hostname of the cache node.
- Address *string `type:"string"`
-
- // The port number that the cache engine is listening on.
- Port *int64 `type:"integer"`
-}
-
-// String returns the string representation
-func (s Endpoint) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s Endpoint) GoString() string {
- return s.String()
-}
-
-// SetAddress sets the Address field's value.
-func (s *Endpoint) SetAddress(v string) *Endpoint {
- s.Address = &v
+// SetRole sets the Role field's value.
+func (s *GlobalReplicationGroupMember) SetRole(v string) *GlobalReplicationGroupMember {
+ s.Role = &v
return s
}
-// SetPort sets the Port field's value.
-func (s *Endpoint) SetPort(v int64) *Endpoint {
- s.Port = &v
+// SetStatus sets the Status field's value.
+func (s *GlobalReplicationGroupMember) SetStatus(v string) *GlobalReplicationGroupMember {
+ s.Status = &v
return s
}
-// Represents the output of a DescribeEngineDefaultParameters operation.
-type EngineDefaults struct {
+type IncreaseNodeGroupsInGlobalReplicationGroupInput struct {
_ struct{} `type:"structure"`
- // A list of parameters specific to a particular cache node type. Each element
- // in the list contains detailed information about one parameter.
- CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"`
+ // Indicates that the process begins immediately. At present, the only permitted
+ // value for this parameter is true.
+ //
+ // ApplyImmediately is a required field
+ ApplyImmediately *bool `type:"boolean" required:"true"`
- // Specifies the name of the cache parameter group family to which the engine
- // default parameters apply.
+ // The name of the Global Datastore
//
- // Valid values are: memcached1.4 | memcached1.5 | redis2.6 | redis2.8 | redis3.2
- // | redis4.0 | redis5.0 |
- CacheParameterGroupFamily *string `type:"string"`
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
- // Provides an identifier to allow retrieval of paginated results.
- Marker *string `type:"string"`
+ // The number of node groups you wish to add
+ //
+ // NodeGroupCount is a required field
+ NodeGroupCount *int64 `type:"integer" required:"true"`
- // Contains a list of engine default parameters.
- Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
+ // Describes the replication group IDs, the AWS regions where they are stored
+ // and the shard configuration for each that comprise the Global Datastore
+ RegionalConfigurations []*RegionalConfiguration `locationNameList:"RegionalConfiguration" type:"list"`
}
// String returns the string representation
-func (s EngineDefaults) String() string {
+func (s IncreaseNodeGroupsInGlobalReplicationGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s EngineDefaults) GoString() string {
+func (s IncreaseNodeGroupsInGlobalReplicationGroupInput) GoString() string {
return s.String()
}
-// SetCacheNodeTypeSpecificParameters sets the CacheNodeTypeSpecificParameters field's value.
-func (s *EngineDefaults) SetCacheNodeTypeSpecificParameters(v []*CacheNodeTypeSpecificParameter) *EngineDefaults {
- s.CacheNodeTypeSpecificParameters = v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "IncreaseNodeGroupsInGlobalReplicationGroupInput"}
+ if s.ApplyImmediately == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
+ }
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+ if s.NodeGroupCount == nil {
+ invalidParams.Add(request.NewErrParamRequired("NodeGroupCount"))
+ }
+ if s.RegionalConfigurations != nil {
+ for i, v := range s.RegionalConfigurations {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RegionalConfigurations", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetApplyImmediately sets the ApplyImmediately field's value.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupInput) SetApplyImmediately(v bool) *IncreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.ApplyImmediately = &v
return s
}
-// SetCacheParameterGroupFamily sets the CacheParameterGroupFamily field's value.
-func (s *EngineDefaults) SetCacheParameterGroupFamily(v string) *EngineDefaults {
- s.CacheParameterGroupFamily = &v
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *IncreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
return s
}
-// SetMarker sets the Marker field's value.
-func (s *EngineDefaults) SetMarker(v string) *EngineDefaults {
- s.Marker = &v
+// SetNodeGroupCount sets the NodeGroupCount field's value.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupInput) SetNodeGroupCount(v int64) *IncreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.NodeGroupCount = &v
return s
}
-// SetParameters sets the Parameters field's value.
-func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults {
- s.Parameters = v
+// SetRegionalConfigurations sets the RegionalConfigurations field's value.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupInput) SetRegionalConfigurations(v []*RegionalConfiguration) *IncreaseNodeGroupsInGlobalReplicationGroupInput {
+ s.RegionalConfigurations = v
return s
}
-// Represents a single occurrence of something interesting within the system.
-// Some examples of events are creating a cluster, adding or removing a cache
-// node, or rebooting a node.
-type Event struct {
+type IncreaseNodeGroupsInGlobalReplicationGroupOutput struct {
_ struct{} `type:"structure"`
- // The date and time when the event occurred.
- Date *time.Time `type:"timestamp"`
-
- // The text of the event.
- Message *string `type:"string"`
-
- // The identifier for the source of the event. For example, if the event occurred
- // at the cluster level, the identifier would be the name of the cluster.
- SourceIdentifier *string `type:"string"`
-
- // Specifies the origin of this event - a cluster, a parameter group, a security
- // group, etc.
- SourceType *string `type:"string" enum:"SourceType"`
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
}
// String returns the string representation
-func (s Event) String() string {
+func (s IncreaseNodeGroupsInGlobalReplicationGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s Event) GoString() string {
+func (s IncreaseNodeGroupsInGlobalReplicationGroupOutput) GoString() string {
return s.String()
}
-// SetDate sets the Date field's value.
-func (s *Event) SetDate(v time.Time) *Event {
- s.Date = &v
- return s
-}
-
-// SetMessage sets the Message field's value.
-func (s *Event) SetMessage(v string) *Event {
- s.Message = &v
- return s
-}
-
-// SetSourceIdentifier sets the SourceIdentifier field's value.
-func (s *Event) SetSourceIdentifier(v string) *Event {
- s.SourceIdentifier = &v
- return s
-}
-
-// SetSourceType sets the SourceType field's value.
-func (s *Event) SetSourceType(v string) *Event {
- s.SourceType = &v
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *IncreaseNodeGroupsInGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *IncreaseNodeGroupsInGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
return s
}
@@ -11111,11 +12976,9 @@ type ListAllowedNodeTypeModificationsOutput struct {
_ struct{} `type:"structure"`
// A string list, each element of which specifies a cache node type which you
- // can use to scale your cluster or replication group.
- //
- // When scaling down on a Redis cluster or replication group using ModifyCacheCluster
- // or ModifyReplicationGroup, use a value from this list for the CacheNodeType
- // parameter.
+ // can use to scale your cluster or replication group. When scaling down a Redis
+ // cluster or replication group using ModifyCacheCluster or ModifyReplicationGroup,
+ // use a value from this list for the CacheNodeType parameter.
ScaleDownModifications []*string `type:"list"`
// A string list, each element of which specifies a cache node type which you
@@ -11737,6 +13600,130 @@ func (s *ModifyCacheSubnetGroupOutput) SetCacheSubnetGroup(v *CacheSubnetGroup)
return s
}
+type ModifyGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // If true, this parameter causes the modifications in this request and any
+ // pending modifications to be applied, asynchronously and as soon as possible,
+ // regardless of the PreferredMaintenanceWindow setting for the replication
+ // group. If false, changes to the nodes in the replication group are applied
+ // on the next maintenance reboot, or the next failure reboot, whichever occurs
+ // first.
+ //
+ // ApplyImmediately is a required field
+ ApplyImmediately *bool `type:"boolean" required:"true"`
+
+ // Determines whether a read replica is automatically promoted to read/write
+ // primary if the existing primary encounters a failure.
+ AutomaticFailoverEnabled *bool `type:"boolean"`
+
+ // A valid cache node type that you want to scale this Global Datastore to.
+ CacheNodeType *string `type:"string"`
+
+ // The upgraded version of the cache engine to be run on the clusters in the
+ // Global Datastore.
+ EngineVersion *string `type:"string"`
+
+ // A description of the Global Datastore
+ GlobalReplicationGroupDescription *string `type:"string"`
+
+ // The name of the Global Datastore
+ //
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ModifyGlobalReplicationGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ModifyGlobalReplicationGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ModifyGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ModifyGlobalReplicationGroupInput"}
+ if s.ApplyImmediately == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
+ }
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetApplyImmediately sets the ApplyImmediately field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetApplyImmediately(v bool) *ModifyGlobalReplicationGroupInput {
+ s.ApplyImmediately = &v
+ return s
+}
+
+// SetAutomaticFailoverEnabled sets the AutomaticFailoverEnabled field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetAutomaticFailoverEnabled(v bool) *ModifyGlobalReplicationGroupInput {
+ s.AutomaticFailoverEnabled = &v
+ return s
+}
+
+// SetCacheNodeType sets the CacheNodeType field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetCacheNodeType(v string) *ModifyGlobalReplicationGroupInput {
+ s.CacheNodeType = &v
+ return s
+}
+
+// SetEngineVersion sets the EngineVersion field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetEngineVersion(v string) *ModifyGlobalReplicationGroupInput {
+ s.EngineVersion = &v
+ return s
+}
+
+// SetGlobalReplicationGroupDescription sets the GlobalReplicationGroupDescription field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetGlobalReplicationGroupDescription(v string) *ModifyGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupDescription = &v
+ return s
+}
+
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *ModifyGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *ModifyGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
+ return s
+}
+
+type ModifyGlobalReplicationGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s ModifyGlobalReplicationGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ModifyGlobalReplicationGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *ModifyGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *ModifyGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
+ return s
+}
+
// Represents the input of a ModifyReplicationGroups operation.
type ModifyReplicationGroupInput struct {
_ struct{} `type:"structure"`
@@ -13031,6 +15018,87 @@ func (s *PurchaseReservedCacheNodesOfferingOutput) SetReservedCacheNode(v *Reser
return s
}
+type RebalanceSlotsInGlobalReplicationGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // If True, redistribution is applied immediately.
+ //
+ // ApplyImmediately is a required field
+ ApplyImmediately *bool `type:"boolean" required:"true"`
+
+ // The name of the Global Datastore
+ //
+ // GlobalReplicationGroupId is a required field
+ GlobalReplicationGroupId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RebalanceSlotsInGlobalReplicationGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RebalanceSlotsInGlobalReplicationGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RebalanceSlotsInGlobalReplicationGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RebalanceSlotsInGlobalReplicationGroupInput"}
+ if s.ApplyImmediately == nil {
+ invalidParams.Add(request.NewErrParamRequired("ApplyImmediately"))
+ }
+ if s.GlobalReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GlobalReplicationGroupId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetApplyImmediately sets the ApplyImmediately field's value.
+func (s *RebalanceSlotsInGlobalReplicationGroupInput) SetApplyImmediately(v bool) *RebalanceSlotsInGlobalReplicationGroupInput {
+ s.ApplyImmediately = &v
+ return s
+}
+
+// SetGlobalReplicationGroupId sets the GlobalReplicationGroupId field's value.
+func (s *RebalanceSlotsInGlobalReplicationGroupInput) SetGlobalReplicationGroupId(v string) *RebalanceSlotsInGlobalReplicationGroupInput {
+ s.GlobalReplicationGroupId = &v
+ return s
+}
+
+type RebalanceSlotsInGlobalReplicationGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Consists of a primary cluster that accepts writes and an associated secondary
+ // cluster that resides in a different AWS region. The secondary cluster accepts
+ // only reads. The primary cluster automatically replicates updates to the secondary
+ // cluster.
+ //
+ // * The GlobalReplicationGroupId represents the name of the Global Datastore,
+ // which is what you use to associate a secondary cluster.
+ GlobalReplicationGroup *GlobalReplicationGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s RebalanceSlotsInGlobalReplicationGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RebalanceSlotsInGlobalReplicationGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGlobalReplicationGroup sets the GlobalReplicationGroup field's value.
+func (s *RebalanceSlotsInGlobalReplicationGroupOutput) SetGlobalReplicationGroup(v *GlobalReplicationGroup) *RebalanceSlotsInGlobalReplicationGroupOutput {
+ s.GlobalReplicationGroup = v
+ return s
+}
+
// Represents the input of a RebootCacheCluster operation.
type RebootCacheClusterInput struct {
_ struct{} `type:"structure"`
@@ -13142,6 +15210,84 @@ func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge
return s
}
+// A list of the replication groups
+type RegionalConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the secondary cluster
+ //
+ // ReplicationGroupId is a required field
+ ReplicationGroupId *string `type:"string" required:"true"`
+
+ // The AWS region where the cluster is stored
+ //
+ // ReplicationGroupRegion is a required field
+ ReplicationGroupRegion *string `type:"string" required:"true"`
+
+ // A list of PreferredAvailabilityZones objects that specifies the configuration
+ // of a node group in the resharded cluster.
+ //
+ // ReshardingConfiguration is a required field
+ ReshardingConfiguration []*ReshardingConfiguration `locationNameList:"ReshardingConfiguration" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s RegionalConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegionalConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RegionalConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RegionalConfiguration"}
+ if s.ReplicationGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId"))
+ }
+ if s.ReplicationGroupRegion == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationGroupRegion"))
+ }
+ if s.ReshardingConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReshardingConfiguration"))
+ }
+ if s.ReshardingConfiguration != nil {
+ for i, v := range s.ReshardingConfiguration {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReshardingConfiguration", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetReplicationGroupId sets the ReplicationGroupId field's value.
+func (s *RegionalConfiguration) SetReplicationGroupId(v string) *RegionalConfiguration {
+ s.ReplicationGroupId = &v
+ return s
+}
+
+// SetReplicationGroupRegion sets the ReplicationGroupRegion field's value.
+func (s *RegionalConfiguration) SetReplicationGroupRegion(v string) *RegionalConfiguration {
+ s.ReplicationGroupRegion = &v
+ return s
+}
+
+// SetReshardingConfiguration sets the ReshardingConfiguration field's value.
+func (s *RegionalConfiguration) SetReshardingConfiguration(v []*ReshardingConfiguration) *RegionalConfiguration {
+ s.ReshardingConfiguration = v
+ return s
+}
+
// Represents the input of a RemoveTagsFromResource operation.
type RemoveTagsFromResourceInput struct {
_ struct{} `type:"structure"`
@@ -13255,6 +15401,10 @@ type ReplicationGroup struct {
// The user supplied description of the replication group.
Description *string `type:"string"`
+ // The name of the Global Datastore and role of this replication group in the
+ // Global Datastore.
+ GlobalReplicationGroupInfo *GlobalReplicationGroupInfo `type:"structure"`
+
// The ID of the KMS key used to encrypt the disk in the cluster.
KmsKeyId *string `type:"string"`
@@ -13372,6 +15522,12 @@ func (s *ReplicationGroup) SetDescription(v string) *ReplicationGroup {
return s
}
+// SetGlobalReplicationGroupInfo sets the GlobalReplicationGroupInfo field's value.
+func (s *ReplicationGroup) SetGlobalReplicationGroupInfo(v *GlobalReplicationGroupInfo) *ReplicationGroup {
+ s.GlobalReplicationGroupInfo = v
+ return s
+}
+
// SetKmsKeyId sets the KmsKeyId field's value.
func (s *ReplicationGroup) SetKmsKeyId(v string) *ReplicationGroup {
s.KmsKeyId = &v
@@ -13511,11 +15667,11 @@ type ReservedCacheNode struct {
// * General purpose: Current generation: M5 node types: cache.m5.large,
// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
//
// * Compute optimized: Previous generation: (not recommended) C1 node types:
// cache.c1.xlarge
@@ -13677,11 +15833,11 @@ type ReservedCacheNodesOffering struct {
// * General purpose: Current generation: M5 node types: cache.m5.large,
// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
//
// * Compute optimized: Previous generation: (not recommended) C1 node types:
// cache.c1.xlarge
@@ -14241,11 +16397,11 @@ type Snapshot struct {
// * General purpose: Current generation: M5 node types: cache.m5.large,
// cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge,
// cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge,
- // cache.m4.4xlarge, cache.m4.10xlarge T2 node types: cache.t2.micro, cache.t2.small,
- // cache.t2.medium Previous generation: (not recommended) T1 node types:
- // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large,
- // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge,
- // cache.m3.2xlarge
+ // cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, cache.t3.small,
+ // cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium
+ // Previous generation: (not recommended) T1 node types: cache.t1.micro M1
+ // node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
+ // M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
//
// * Compute optimized: Previous generation: (not recommended) C1 node types:
// cache.c1.xlarge
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go
index 25579b1d5d6..e68e0121ffb 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go
@@ -117,6 +117,18 @@ const (
// of clusters per customer.
ErrCodeClusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceeded"
+ // ErrCodeGlobalReplicationGroupAlreadyExistsFault for service response error code
+ // "GlobalReplicationGroupAlreadyExistsFault".
+ //
+ // The Global Datastore name already exists.
+ ErrCodeGlobalReplicationGroupAlreadyExistsFault = "GlobalReplicationGroupAlreadyExistsFault"
+
+ // ErrCodeGlobalReplicationGroupNotFoundFault for service response error code
+ // "GlobalReplicationGroupNotFoundFault".
+ //
+ // The Global Datastore does not exist
+ ErrCodeGlobalReplicationGroupNotFoundFault = "GlobalReplicationGroupNotFoundFault"
+
// ErrCodeInsufficientCacheClusterCapacityFault for service response error code
// "InsufficientCacheClusterCapacity".
//
@@ -150,6 +162,12 @@ const (
// The current state of the cache security group does not allow deletion.
ErrCodeInvalidCacheSecurityGroupStateFault = "InvalidCacheSecurityGroupState"
+ // ErrCodeInvalidGlobalReplicationGroupStateFault for service response error code
+ // "InvalidGlobalReplicationGroupState".
+ //
+ // The Global Datastore is not available
+ ErrCodeInvalidGlobalReplicationGroupStateFault = "InvalidGlobalReplicationGroupState"
+
// ErrCodeInvalidKMSKeyFault for service response error code
// "InvalidKMSKeyFault".
//
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go
index 2e91780c444..0a41523adeb 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go
@@ -479,8 +479,8 @@ func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicat
// Omit both SourceBuildInformation and SourceBundle to use the default sample
// application.
//
-// Once you create an application version with a specified Amazon S3 bucket
-// and key location, you cannot change that Amazon S3 location. If you change
+// After you create an application version with a specified Amazon S3 bucket
+// and key location, you can't change that Amazon S3 location. If you change
// the Amazon S3 location, you receive an exception when you attempt to launch
// an environment from the application version.
//
@@ -581,9 +581,11 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi
// CreateConfigurationTemplate API operation for AWS Elastic Beanstalk.
//
-// Creates a configuration template. Templates are associated with a specific
-// application and are used to deploy different versions of the application
-// with the same configuration settings.
+// Creates an AWS Elastic Beanstalk configuration template, associated with
+// a specific Elastic Beanstalk application. You define application configuration
+// settings in a configuration template. You can then use the configuration
+// template to deploy different versions of the application with the same configuration
+// settings.
//
// Templates aren't associated with any environment. The EnvironmentName response
// element is always null.
@@ -680,8 +682,8 @@ func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInpu
// CreateEnvironment API operation for AWS Elastic Beanstalk.
//
-// Launches an environment for the specified application using the specified
-// configuration.
+// Launches an AWS Elastic Beanstalk environment for the specified application
+// using the specified configuration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -2406,7 +2408,11 @@ func (c *ElasticBeanstalk) DescribePlatformVersionRequest(input *DescribePlatfor
// DescribePlatformVersion API operation for AWS Elastic Beanstalk.
//
-// Describes the version of the platform.
+// Describes a platform version. Provides full details. Compare to ListPlatformVersions,
+// which provides summary information about a list of platform versions.
+//
+// For definitions of platform version and other platform-related terms, see
+// AWS Elastic Beanstalk Platforms Glossary (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-glossary.html).
//
// 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
@@ -2520,6 +2526,142 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksWithContext(ctx aws.Contex
return out, req.Send()
}
+const opListPlatformBranches = "ListPlatformBranches"
+
+// ListPlatformBranchesRequest generates a "aws/request.Request" representing the
+// client's request for the ListPlatformBranches operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPlatformBranches for more information on using the ListPlatformBranches
+// 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 ListPlatformBranchesRequest method.
+// req, resp := client.ListPlatformBranchesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformBranches
+func (c *ElasticBeanstalk) ListPlatformBranchesRequest(input *ListPlatformBranchesInput) (req *request.Request, output *ListPlatformBranchesOutput) {
+ op := &request.Operation{
+ Name: opListPlatformBranches,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxRecords",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPlatformBranchesInput{}
+ }
+
+ output = &ListPlatformBranchesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPlatformBranches API operation for AWS Elastic Beanstalk.
+//
+// Lists the platform branches available for your account in an AWS Region.
+// Provides summary information about each platform branch.
+//
+// For definitions of platform branch and other platform-related terms, see
+// AWS Elastic Beanstalk Platforms Glossary (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-glossary.html).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Elastic Beanstalk's
+// API operation ListPlatformBranches for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformBranches
+func (c *ElasticBeanstalk) ListPlatformBranches(input *ListPlatformBranchesInput) (*ListPlatformBranchesOutput, error) {
+ req, out := c.ListPlatformBranchesRequest(input)
+ return out, req.Send()
+}
+
+// ListPlatformBranchesWithContext is the same as ListPlatformBranches with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPlatformBranches 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 *ElasticBeanstalk) ListPlatformBranchesWithContext(ctx aws.Context, input *ListPlatformBranchesInput, opts ...request.Option) (*ListPlatformBranchesOutput, error) {
+ req, out := c.ListPlatformBranchesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPlatformBranchesPages iterates over the pages of a ListPlatformBranches operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPlatformBranches 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 ListPlatformBranches operation.
+// pageNum := 0
+// err := client.ListPlatformBranchesPages(params,
+// func(page *elasticbeanstalk.ListPlatformBranchesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *ElasticBeanstalk) ListPlatformBranchesPages(input *ListPlatformBranchesInput, fn func(*ListPlatformBranchesOutput, bool) bool) error {
+ return c.ListPlatformBranchesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPlatformBranchesPagesWithContext same as ListPlatformBranchesPages 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 *ElasticBeanstalk) ListPlatformBranchesPagesWithContext(ctx aws.Context, input *ListPlatformBranchesInput, fn func(*ListPlatformBranchesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPlatformBranchesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPlatformBranchesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPlatformBranchesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
const opListPlatformVersions = "ListPlatformVersions"
// ListPlatformVersionsRequest generates a "aws/request.Request" representing the
@@ -2564,7 +2706,12 @@ func (c *ElasticBeanstalk) ListPlatformVersionsRequest(input *ListPlatformVersio
// ListPlatformVersions API operation for AWS Elastic Beanstalk.
//
-// Lists the available platforms.
+// Lists the platform versions available for your account in an AWS Region.
+// Provides summary information about each platform version. Compare to DescribePlatformVersion,
+// which provides full details about a single platform version.
+//
+// For definitions of platform version and other platform-related terms, see
+// AWS Elastic Beanstalk Platforms Glossary (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-glossary.html).
//
// 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
@@ -2647,12 +2794,11 @@ func (c *ElasticBeanstalk) ListTagsForResourceRequest(input *ListTagsForResource
// ListTagsForResource API operation for AWS Elastic Beanstalk.
//
-// Returns the tags applied to an AWS Elastic Beanstalk resource. The response
+// Return the tags applied to an AWS Elastic Beanstalk resource. The response
// contains a list of tag key-value pairs.
//
-// Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments.
-// For details about environment tagging, see Tagging Resources in Your Elastic
-// Beanstalk Environment (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html).
+// Elastic Beanstalk supports tagging of all of its resources. For details about
+// resource tagging, see Tagging Application Resources (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-tagging-resources.html).
//
// 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
@@ -3641,9 +3787,8 @@ func (c *ElasticBeanstalk) UpdateTagsForResourceRequest(input *UpdateTagsForReso
// Update the list of tags applied to an AWS Elastic Beanstalk resource. Two
// lists can be passed: TagsToAdd for tags to add or update, and TagsToRemove.
//
-// Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments.
-// For details about environment tagging, see Tagging Resources in Your Elastic
-// Beanstalk Environment (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html).
+// Elastic Beanstalk supports tagging of all of its resources. For details about
+// resource tagging, see Tagging Application Resources (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-tagging-resources.html).
//
// If you create a custom IAM user policy to control permission to this operation,
// specify one of the following two virtual actions (or both) instead of the
@@ -4031,8 +4176,8 @@ func (s *ApplicationMetrics) SetStatusCodes(v *StatusCodes) *ApplicationMetrics
// The resource lifecycle configuration for an application. Defines lifecycle
// settings for resources that belong to the application, and the service role
-// that Elastic Beanstalk assumes in order to apply lifecycle settings. The
-// version lifecycle configuration defines lifecycle settings for application
+// that AWS Elastic Beanstalk assumes in order to apply lifecycle settings.
+// The version lifecycle configuration defines lifecycle settings for application
// versions.
type ApplicationResourceLifecycleConfig struct {
_ struct{} `type:"structure"`
@@ -4048,7 +4193,7 @@ type ApplicationResourceLifecycleConfig struct {
// Role to another value.
ServiceRole *string `type:"string"`
- // The application version lifecycle configuration.
+ // Defines lifecycle settings for application versions.
VersionLifecycleConfig *ApplicationVersionLifecycleConfig `type:"structure"`
}
@@ -4955,19 +5100,20 @@ func (s *ConfigurationOptionDescription) SetValueType(v string) *ConfigurationOp
}
// A specification identifying an individual configuration option along with
-// its current value. For a list of possible option values, go to Option Values
-// (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html)
+// its current value. For a list of possible namespaces and option values, see
+// Option Values (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html)
// in the AWS Elastic Beanstalk Developer Guide.
type ConfigurationOptionSetting struct {
_ struct{} `type:"structure"`
- // A unique namespace identifying the option's associated AWS resource.
+ // A unique namespace that identifies the option's associated AWS resource.
Namespace *string `type:"string"`
// The name of the configuration option.
OptionName *string `type:"string"`
- // A unique resource name for a time-based scaling configuration option.
+ // A unique resource name for the option setting. Use it for a time–based
+ // scaling configuration option.
ResourceName *string `min:"1" type:"string"`
// The current value for the configuration option.
@@ -5058,7 +5204,7 @@ type ConfigurationSettingsDescription struct {
// set.
OptionSettings []*ConfigurationOptionSetting `type:"list"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
// The name of the solution stack this configuration set uses.
@@ -5143,19 +5289,16 @@ func (s *ConfigurationSettingsDescription) SetTemplateName(v string) *Configurat
type CreateApplicationInput struct {
_ struct{} `type:"structure"`
- // The name of the application.
- //
- // Constraint: This name must be unique within your account. If the specified
- // name already exists, the action returns an InvalidParameterValue error.
+ // The name of the application. Must be unique within your account.
//
// ApplicationName is a required field
ApplicationName *string `min:"1" type:"string" required:"true"`
- // Describes the application.
+ // Your description of the application.
Description *string `type:"string"`
- // Specify an application resource lifecycle configuration to prevent your application
- // from accumulating too many versions.
+ // Specifies an application resource lifecycle configuration to prevent your
+ // application from accumulating too many versions.
ResourceLifecycleConfig *ApplicationResourceLifecycleConfig `type:"structure"`
// Specifies the tags applied to the application.
@@ -5246,7 +5389,7 @@ type CreateApplicationVersionInput struct {
// Settings for an AWS CodeBuild build.
BuildConfiguration *BuildConfiguration `type:"structure"`
- // Describes this version.
+ // A description of this application version.
Description *string `type:"string"`
// Pre-processes and validates the environment manifest (env.yaml) and configuration
@@ -5403,54 +5546,62 @@ func (s *CreateApplicationVersionInput) SetVersionLabel(v string) *CreateApplica
type CreateConfigurationTemplateInput struct {
_ struct{} `type:"structure"`
- // The name of the application to associate with this configuration template.
- // If no application is found with this name, AWS Elastic Beanstalk returns
- // an InvalidParameterValue error.
+ // The name of the Elastic Beanstalk application to associate with this configuration
+ // template.
//
// ApplicationName is a required field
ApplicationName *string `min:"1" type:"string" required:"true"`
- // Describes this configuration.
+ // An optional description for this configuration.
Description *string `type:"string"`
- // The ID of the environment used with this configuration template.
+ // The ID of an environment whose settings you want to use to create the configuration
+ // template. You must specify EnvironmentId if you don't specify PlatformArn,
+ // SolutionStackName, or SourceConfiguration.
EnvironmentId *string `type:"string"`
- // If specified, AWS Elastic Beanstalk sets the specified configuration option
- // to the requested value. The new value overrides the value obtained from the
- // solution stack or the source configuration template.
+ // Option values for the Elastic Beanstalk configuration, such as the instance
+ // type. If specified, these values override the values obtained from the solution
+ // stack or the source configuration template. For a complete list of Elastic
+ // Beanstalk configuration options, see Option Values (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html)
+ // in the AWS Elastic Beanstalk Developer Guide.
OptionSettings []*ConfigurationOptionSetting `type:"list"`
- // The ARN of the custom platform.
+ // The Amazon Resource Name (ARN) of the custom platform. For more information,
+ // see Custom Platforms (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html)
+ // in the AWS Elastic Beanstalk Developer Guide.
+ //
+ // If you specify PlatformArn, then don't specify SolutionStackName.
PlatformArn *string `type:"string"`
- // The name of the solution stack used by this configuration. The solution stack
- // specifies the operating system, architecture, and application server for
- // a configuration template. It determines the set of configuration options
- // as well as the possible and default values.
+ // The name of an Elastic Beanstalk solution stack (platform version) that this
+ // configuration uses. For example, 64bit Amazon Linux 2013.09 running Tomcat
+ // 7 Java 7. A solution stack specifies the operating system, runtime, and application
+ // server for a configuration template. It also determines the set of configuration
+ // options as well as the possible and default values. For more information,
+ // see Supported Platforms (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html)
+ // in the AWS Elastic Beanstalk Developer Guide.
//
- // Use ListAvailableSolutionStacks to obtain a list of available solution stacks.
+ // You must specify SolutionStackName if you don't specify PlatformArn, EnvironmentId,
+ // or SourceConfiguration.
//
- // A solution stack name or a source configuration parameter must be specified,
- // otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.
- //
- // If a solution stack name is not specified and the source configuration parameter
- // is specified, AWS Elastic Beanstalk uses the same solution stack as the source
- // configuration template.
+ // Use the ListAvailableSolutionStacks (https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_ListAvailableSolutionStacks.html)
+ // API to obtain a list of available solution stacks.
SolutionStackName *string `type:"string"`
- // If specified, AWS Elastic Beanstalk uses the configuration values from the
- // specified configuration template to create a new configuration.
+ // An Elastic Beanstalk configuration template to base this one on. If specified,
+ // Elastic Beanstalk uses the configuration values from the specified configuration
+ // template to create a new configuration.
//
- // Values specified in the OptionSettings parameter of this call overrides any
- // values obtained from the SourceConfiguration.
+ // Values specified in OptionSettings override any values obtained from the
+ // SourceConfiguration.
//
- // If no configuration template is found, returns an InvalidParameterValue error.
+ // You must specify SourceConfiguration if you don't specify PlatformArn, EnvironmentId,
+ // or SolutionStackName.
//
- // Constraint: If both the solution stack name parameter and the source configuration
- // parameters are specified, the solution stack of the source configuration
- // template must match the specified solution stack name or else AWS Elastic
- // Beanstalk returns an InvalidParameterCombination error.
+ // Constraint: If both solution stack name and source configuration are specified,
+ // the solution stack of the source configuration template must match the specified
+ // solution stack name.
SourceConfiguration *SourceConfiguration `type:"structure"`
// Specifies the tags applied to the configuration template.
@@ -5460,9 +5611,6 @@ type CreateConfigurationTemplateInput struct {
//
// Constraint: This name must be unique per application.
//
- // Default: If a configuration template already exists with this name, AWS Elastic
- // Beanstalk returns an InvalidParameterValue error.
- //
// TemplateName is a required field
TemplateName *string `min:"1" type:"string" required:"true"`
}
@@ -5581,31 +5729,29 @@ func (s *CreateConfigurationTemplateInput) SetTemplateName(v string) *CreateConf
type CreateEnvironmentInput struct {
_ struct{} `type:"structure"`
- // The name of the application that contains the version to be deployed.
- //
- // If no application is found with this name, CreateEnvironment returns an InvalidParameterValue
- // error.
+ // The name of the application that is associated with this environment.
//
// ApplicationName is a required field
ApplicationName *string `min:"1" type:"string" required:"true"`
// If specified, the environment attempts to use this value as the prefix for
- // the CNAME. If not specified, the CNAME is generated automatically by appending
- // a random alphanumeric string to the environment name.
+ // the CNAME in your Elastic Beanstalk environment URL. If not specified, the
+ // CNAME is generated automatically by appending a random alphanumeric string
+ // to the environment name.
CNAMEPrefix *string `min:"4" type:"string"`
- // Describes this environment.
+ // Your description for this environment.
Description *string `type:"string"`
- // A unique name for the deployment environment. Used in the application URL.
+ // A unique name for the environment.
//
// Constraint: Must be from 4 to 40 characters in length. The name can contain
- // only letters, numbers, and hyphens. It cannot start or end with a hyphen.
+ // only letters, numbers, and hyphens. It can't start or end with a hyphen.
// This name must be unique within a region in your account. If the specified
- // name already exists in the region, AWS Elastic Beanstalk returns an InvalidParameterValue
+ // name already exists in the region, Elastic Beanstalk returns an InvalidParameterValue
// error.
//
- // Default: If the CNAME parameter is not specified, the environment name becomes
+ // If you don't specify the CNAMEPrefix parameter, the environment name becomes
// part of the CNAME, and therefore part of the visible URL for your application.
EnvironmentName *string `min:"4" type:"string"`
@@ -5626,35 +5772,42 @@ type CreateEnvironmentInput struct {
// set for this new environment.
OptionsToRemove []*OptionSpecification `type:"list"`
- // The ARN of the platform.
+ // The Amazon Resource Name (ARN) of the custom platform to use with the environment.
+ // For more information, see Custom Platforms (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html)
+ // in the AWS Elastic Beanstalk Developer Guide.
+ //
+ // If you specify PlatformArn, don't specify SolutionStackName.
PlatformArn *string `type:"string"`
- // This is an alternative to specifying a template name. If specified, AWS Elastic
- // Beanstalk sets the configuration values to the default values associated
- // with the specified solution stack.
- //
+ // The name of an Elastic Beanstalk solution stack (platform version) to use
+ // with the environment. If specified, Elastic Beanstalk sets the configuration
+ // values to the default values associated with the specified solution stack.
// For a list of current solution stacks, see Elastic Beanstalk Supported Platforms
- // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html).
+ // (https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html)
+ // in the AWS Elastic Beanstalk Platforms guide.
+ //
+ // If you specify SolutionStackName, don't specify PlatformArn or TemplateName.
SolutionStackName *string `type:"string"`
// Specifies the tags applied to resources in the environment.
Tags []*Tag `type:"list"`
- // The name of the configuration template to use in deployment. If no configuration
- // template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue
- // error.
+ // The name of the Elastic Beanstalk configuration template to use with the
+ // environment.
+ //
+ // If you specify TemplateName, then don't specify SolutionStackName.
TemplateName *string `min:"1" type:"string"`
- // This specifies the tier to use for creating this environment.
+ // Specifies the tier to use in creating this environment. The environment tier
+ // that you choose determines whether Elastic Beanstalk provisions resources
+ // to support a web application that handles HTTP(S) requests or a web application
+ // that handles background-processing tasks.
Tier *EnvironmentTier `type:"structure"`
// The name of the application version to deploy.
//
- // If the specified application has no associated application versions, AWS
- // Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.
- //
- // Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample
- // application in the container.
+ // Default: If not specified, Elastic Beanstalk attempts to deploy the sample
+ // application.
VersionLabel *string `min:"1" type:"string"`
}
@@ -6735,7 +6888,7 @@ type DescribeConfigurationOptionsOutput struct {
// A list of ConfigurationOptionDescription.
Options []*ConfigurationOptionDescription `type:"list"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
// The name of the solution stack these configuration options belong to.
@@ -7415,7 +7568,9 @@ type DescribeEventsInput struct {
// Pagination token. If specified, the events return the next batch of results.
NextToken *string `type:"string"`
- // The ARN of the version of the custom platform.
+ // The ARN of a custom platform version. If specified, AWS Elastic Beanstalk
+ // restricts the returned descriptions to those associated with this custom
+ // platform version.
PlatformArn *string `type:"string"`
// If specified, AWS Elastic Beanstalk restricts the described events to include
@@ -7698,7 +7853,7 @@ func (s *DescribeInstancesHealthOutput) SetRefreshedAt(v time.Time) *DescribeIns
type DescribePlatformVersionInput struct {
_ struct{} `type:"structure"`
- // The ARN of the version of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
}
@@ -7721,7 +7876,7 @@ func (s *DescribePlatformVersionInput) SetPlatformArn(v string) *DescribePlatfor
type DescribePlatformVersionOutput struct {
_ struct{} `type:"structure"`
- // Detailed information about the version of the platform.
+ // Detailed information about the platform version.
PlatformDescription *PlatformDescription `type:"structure"`
}
@@ -7807,7 +7962,7 @@ type EnvironmentDescription struct {
// For more information, see Health Colors and Statuses (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
HealthStatus *string `type:"string" enum:"EnvironmentHealthStatus"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
// The description of the AWS resources used by this environment.
@@ -8283,7 +8438,7 @@ type EventDescription struct {
// The event message.
Message *string `type:"string"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
// The web service request ID for the activity of this event.
@@ -8672,18 +8827,135 @@ func (s *ListAvailableSolutionStacksOutput) SetSolutionStacks(v []*string) *List
return s
}
+type ListPlatformBranchesInput struct {
+ _ struct{} `type:"structure"`
+
+ // Criteria for restricting the resulting list of platform branches. The filter
+ // is evaluated as a logical conjunction (AND) of the separate SearchFilter
+ // terms.
+ //
+ // The following list shows valid attribute values for each of the SearchFilter
+ // terms. Most operators take a single value. The in and not_in operators can
+ // take multiple values.
+ //
+ // * Attribute = BranchName: Operator: = | != | begins_with | ends_with |
+ // contains | in | not_in
+ //
+ // * Attribute = LifecycleState: Operator: = | != | in | not_in Values: beta
+ // | supported | deprecated | retired
+ //
+ // * Attribute = PlatformName: Operator: = | != | begins_with | ends_with
+ // | contains | in | not_in
+ //
+ // * Attribute = TierType: Operator: = | != Values: WebServer/Standard |
+ // Worker/SQS/HTTP
+ //
+ // Array size: limited to 10 SearchFilter objects.
+ //
+ // Within each SearchFilter item, the Values array is limited to 10 items.
+ Filters []*SearchFilter `type:"list"`
+
+ // The maximum number of platform branch values returned in one call.
+ MaxRecords *int64 `min:"1" type:"integer"`
+
+ // For a paginated request. Specify a token from a previous response page to
+ // retrieve the next response page. All other parameter values must be identical
+ // to the ones specified in the initial request.
+ //
+ // If no NextToken is specified, the first page is retrieved.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListPlatformBranchesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPlatformBranchesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPlatformBranchesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPlatformBranchesInput"}
+ if s.MaxRecords != nil && *s.MaxRecords < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *ListPlatformBranchesInput) SetFilters(v []*SearchFilter) *ListPlatformBranchesInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *ListPlatformBranchesInput) SetMaxRecords(v int64) *ListPlatformBranchesInput {
+ s.MaxRecords = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPlatformBranchesInput) SetNextToken(v string) *ListPlatformBranchesInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListPlatformBranchesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // In a paginated request, if this value isn't null, it's the token that you
+ // can pass in a subsequent request to get the next response page.
+ NextToken *string `type:"string"`
+
+ // Summary information about the platform branches.
+ PlatformBranchSummaryList []*PlatformBranchSummary `type:"list"`
+}
+
+// String returns the string representation
+func (s ListPlatformBranchesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPlatformBranchesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPlatformBranchesOutput) SetNextToken(v string) *ListPlatformBranchesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPlatformBranchSummaryList sets the PlatformBranchSummaryList field's value.
+func (s *ListPlatformBranchesOutput) SetPlatformBranchSummaryList(v []*PlatformBranchSummary) *ListPlatformBranchesOutput {
+ s.PlatformBranchSummaryList = v
+ return s
+}
+
type ListPlatformVersionsInput struct {
_ struct{} `type:"structure"`
- // List only the platforms where the platform member value relates to one of
- // the supplied values.
+ // Criteria for restricting the resulting list of platform versions. The filter
+ // is interpreted as a logical conjunction (AND) of the separate PlatformFilter
+ // terms.
Filters []*PlatformFilter `type:"list"`
- // The maximum number of platform values returned in one call.
+ // The maximum number of platform version values returned in one call.
MaxRecords *int64 `min:"1" type:"integer"`
- // The starting index into the remaining list of platforms. Use the NextToken
- // value from a previous ListPlatformVersion call.
+ // For a paginated request. Specify a token from a previous response page to
+ // retrieve the next response page. All other parameter values must be identical
+ // to the ones specified in the initial request.
+ //
+ // If no NextToken is specified, the first page is retrieved.
NextToken *string `type:"string"`
}
@@ -8731,11 +9003,11 @@ func (s *ListPlatformVersionsInput) SetNextToken(v string) *ListPlatformVersions
type ListPlatformVersionsOutput struct {
_ struct{} `type:"structure"`
- // The starting index into the remaining list of platforms. if this value is
- // not null, you can use it in a subsequent ListPlatformVersion call.
+ // In a paginated request, if this value isn't null, it's the token that you
+ // can pass in a subsequent request to get the next response page.
NextToken *string `type:"string"`
- // Detailed information about the platforms.
+ // Summary information about the platform versions.
PlatformSummaryList []*PlatformSummary `type:"list"`
}
@@ -8766,7 +9038,7 @@ type ListTagsForResourceInput struct {
// The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.
//
- // Must be the ARN of an Elastic Beanstalk environment.
+ // Must be the ARN of an Elastic Beanstalk resource.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
@@ -8804,7 +9076,7 @@ func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResource
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resouce for which a tag list was requested.
+ // The Amazon Resource Name (ARN) of the resource for which a tag list was requested.
ResourceArn *string `type:"string"`
// A list of tag key-value pairs.
@@ -9289,62 +9561,149 @@ func (s *OptionSpecification) SetResourceName(v string) *OptionSpecification {
return s
}
-// Detailed information about a platform.
+// Summary information about a platform branch.
+type PlatformBranchSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the platform branch.
+ BranchName *string `type:"string"`
+
+ // An ordinal number that designates the order in which platform branches have
+ // been added to a platform. This can be helpful, for example, if your code
+ // calls the ListPlatformBranches action and then displays a list of platform
+ // branches.
+ //
+ // A larger BranchOrder value designates a newer platform branch within the
+ // platform.
+ BranchOrder *int64 `type:"integer"`
+
+ // The support life cycle state of the platform branch.
+ //
+ // Possible values: beta | supported | deprecated | retired
+ LifecycleState *string `type:"string"`
+
+ // The name of the platform to which this platform branch belongs.
+ PlatformName *string `type:"string"`
+
+ // The environment tiers that platform versions in this branch support.
+ //
+ // Possible values: WebServer/Standard | Worker/SQS/HTTP
+ SupportedTierList []*string `type:"list"`
+}
+
+// String returns the string representation
+func (s PlatformBranchSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PlatformBranchSummary) GoString() string {
+ return s.String()
+}
+
+// SetBranchName sets the BranchName field's value.
+func (s *PlatformBranchSummary) SetBranchName(v string) *PlatformBranchSummary {
+ s.BranchName = &v
+ return s
+}
+
+// SetBranchOrder sets the BranchOrder field's value.
+func (s *PlatformBranchSummary) SetBranchOrder(v int64) *PlatformBranchSummary {
+ s.BranchOrder = &v
+ return s
+}
+
+// SetLifecycleState sets the LifecycleState field's value.
+func (s *PlatformBranchSummary) SetLifecycleState(v string) *PlatformBranchSummary {
+ s.LifecycleState = &v
+ return s
+}
+
+// SetPlatformName sets the PlatformName field's value.
+func (s *PlatformBranchSummary) SetPlatformName(v string) *PlatformBranchSummary {
+ s.PlatformName = &v
+ return s
+}
+
+// SetSupportedTierList sets the SupportedTierList field's value.
+func (s *PlatformBranchSummary) SetSupportedTierList(v []*string) *PlatformBranchSummary {
+ s.SupportedTierList = v
+ return s
+}
+
+// Detailed information about a platform version.
type PlatformDescription struct {
_ struct{} `type:"structure"`
- // The custom AMIs supported by the platform.
+ // The custom AMIs supported by the platform version.
CustomAmiList []*CustomAmi `type:"list"`
- // The date when the platform was created.
+ // The date when the platform version was created.
DateCreated *time.Time `type:"timestamp"`
- // The date when the platform was last updated.
+ // The date when the platform version was last updated.
DateUpdated *time.Time `type:"timestamp"`
- // The description of the platform.
+ // The description of the platform version.
Description *string `type:"string"`
- // The frameworks supported by the platform.
+ // The frameworks supported by the platform version.
Frameworks []*PlatformFramework `type:"list"`
- // Information about the maintainer of the platform.
+ // Information about the maintainer of the platform version.
Maintainer *string `type:"string"`
- // The operating system used by the platform.
+ // The operating system used by the platform version.
OperatingSystemName *string `type:"string"`
- // The version of the operating system used by the platform.
+ // The version of the operating system used by the platform version.
OperatingSystemVersion *string `type:"string"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
- // The category of the platform.
+ // The state of the platform version's branch in its lifecycle.
+ //
+ // Possible values: Beta | Supported | Deprecated | Retired
+ PlatformBranchLifecycleState *string `type:"string"`
+
+ // The platform branch to which the platform version belongs.
+ PlatformBranchName *string `type:"string"`
+
+ // The category of the platform version.
PlatformCategory *string `type:"string"`
- // The name of the platform.
+ // The state of the platform version in its lifecycle.
+ //
+ // Possible values: Recommended | null
+ //
+ // If a null value is returned, the platform version isn't the recommended one
+ // for its branch. Each platform branch has a single recommended platform version,
+ // typically the most recent one.
+ PlatformLifecycleState *string `type:"string"`
+
+ // The name of the platform version.
PlatformName *string `type:"string"`
- // The AWS account ID of the person who created the platform.
+ // The AWS account ID of the person who created the platform version.
PlatformOwner *string `type:"string"`
- // The status of the platform.
+ // The status of the platform version.
PlatformStatus *string `type:"string" enum:"PlatformStatus"`
- // The version of the platform.
+ // The version of the platform version.
PlatformVersion *string `type:"string"`
- // The programming languages supported by the platform.
+ // The programming languages supported by the platform version.
ProgrammingLanguages []*PlatformProgrammingLanguage `type:"list"`
- // The name of the solution stack used by the platform.
+ // The name of the solution stack used by the platform version.
SolutionStackName *string `type:"string"`
- // The additions supported by the platform.
+ // The additions supported by the platform version.
SupportedAddonList []*string `type:"list"`
- // The tiers supported by the platform.
+ // The tiers supported by the platform version.
SupportedTierList []*string `type:"list"`
}
@@ -9412,12 +9771,30 @@ func (s *PlatformDescription) SetPlatformArn(v string) *PlatformDescription {
return s
}
+// SetPlatformBranchLifecycleState sets the PlatformBranchLifecycleState field's value.
+func (s *PlatformDescription) SetPlatformBranchLifecycleState(v string) *PlatformDescription {
+ s.PlatformBranchLifecycleState = &v
+ return s
+}
+
+// SetPlatformBranchName sets the PlatformBranchName field's value.
+func (s *PlatformDescription) SetPlatformBranchName(v string) *PlatformDescription {
+ s.PlatformBranchName = &v
+ return s
+}
+
// SetPlatformCategory sets the PlatformCategory field's value.
func (s *PlatformDescription) SetPlatformCategory(v string) *PlatformDescription {
s.PlatformCategory = &v
return s
}
+// SetPlatformLifecycleState sets the PlatformLifecycleState field's value.
+func (s *PlatformDescription) SetPlatformLifecycleState(v string) *PlatformDescription {
+ s.PlatformLifecycleState = &v
+ return s
+}
+
// SetPlatformName sets the PlatformName field's value.
func (s *PlatformDescription) SetPlatformName(v string) *PlatformDescription {
s.PlatformName = &v
@@ -9466,27 +9843,36 @@ func (s *PlatformDescription) SetSupportedTierList(v []*string) *PlatformDescrip
return s
}
-// Specify criteria to restrict the results when listing custom platforms.
-//
-// The filter is evaluated as the expression:
+// Describes criteria to restrict the results when listing platform versions.
//
-// Type Operator Values[i]
+// The filter is evaluated as follows: Type Operator Values[1]
type PlatformFilter struct {
_ struct{} `type:"structure"`
// The operator to apply to the Type with each of the Values.
//
- // Valid Values: = (equal to) | != (not equal to) | < (less than) | <= (less
- // than or equal to) | > (greater than) | >= (greater than or equal to) | contains
- // | begins_with | ends_with
+ // Valid values: = | != | < | <= | > | >= | contains | begins_with | ends_with
Operator *string `type:"string"`
- // The custom platform attribute to which the filter values are applied.
+ // The platform version attribute to which the filter values are applied.
//
- // Valid Values: PlatformName | PlatformVersion | PlatformStatus | PlatformOwner
+ // Valid values: PlatformName | PlatformVersion | PlatformStatus | PlatformBranchName
+ // | PlatformLifecycleState | PlatformOwner | SupportedTier | SupportedAddon
+ // | ProgrammingLanguageName | OperatingSystemName
Type *string `type:"string"`
- // The list of values applied to the custom platform attribute.
+ // The list of values applied to the filtering platform version attribute. Only
+ // one value is supported for all current operators.
+ //
+ // The following list shows valid filter values for some filter attributes.
+ //
+ // * PlatformStatus: Creating | Failed | Ready | Deleting | Deleted
+ //
+ // * PlatformLifecycleState: recommended
+ //
+ // * SupportedTier: WebServer/Standard | Worker/SQS/HTTP
+ //
+ // * SupportedAddon: Log/S3 | Monitoring/Healthd | WorkerDaemon/SQSD
Values []*string `type:"list"`
}
@@ -9518,7 +9904,7 @@ func (s *PlatformFilter) SetValues(v []*string) *PlatformFilter {
return s
}
-// A framework supported by the custom platform.
+// A framework supported by the platform.
type PlatformFramework struct {
_ struct{} `type:"structure"`
@@ -9584,33 +9970,52 @@ func (s *PlatformProgrammingLanguage) SetVersion(v string) *PlatformProgrammingL
return s
}
-// Detailed information about a platform.
+// Summary information about a platform version.
type PlatformSummary struct {
_ struct{} `type:"structure"`
- // The operating system used by the platform.
+ // The operating system used by the platform version.
OperatingSystemName *string `type:"string"`
- // The version of the operating system used by the platform.
+ // The version of the operating system used by the platform version.
OperatingSystemVersion *string `type:"string"`
- // The ARN of the platform.
+ // The ARN of the platform version.
PlatformArn *string `type:"string"`
- // The category of platform.
+ // The state of the platform version's branch in its lifecycle.
+ //
+ // Possible values: beta | supported | deprecated | retired
+ PlatformBranchLifecycleState *string `type:"string"`
+
+ // The platform branch to which the platform version belongs.
+ PlatformBranchName *string `type:"string"`
+
+ // The category of platform version.
PlatformCategory *string `type:"string"`
- // The AWS account ID of the person who created the platform.
+ // The state of the platform version in its lifecycle.
+ //
+ // Possible values: recommended | empty
+ //
+ // If an empty value is returned, the platform version is supported but isn't
+ // the recommended one for its branch.
+ PlatformLifecycleState *string `type:"string"`
+
+ // The AWS account ID of the person who created the platform version.
PlatformOwner *string `type:"string"`
- // The status of the platform. You can create an environment from the platform
- // once it is ready.
+ // The status of the platform version. You can create an environment from the
+ // platform version once it is ready.
PlatformStatus *string `type:"string" enum:"PlatformStatus"`
- // The additions associated with the platform.
+ // The version string of the platform version.
+ PlatformVersion *string `type:"string"`
+
+ // The additions associated with the platform version.
SupportedAddonList []*string `type:"list"`
- // The tiers in which the platform runs.
+ // The tiers in which the platform version runs.
SupportedTierList []*string `type:"list"`
}
@@ -9642,12 +10047,30 @@ func (s *PlatformSummary) SetPlatformArn(v string) *PlatformSummary {
return s
}
+// SetPlatformBranchLifecycleState sets the PlatformBranchLifecycleState field's value.
+func (s *PlatformSummary) SetPlatformBranchLifecycleState(v string) *PlatformSummary {
+ s.PlatformBranchLifecycleState = &v
+ return s
+}
+
+// SetPlatformBranchName sets the PlatformBranchName field's value.
+func (s *PlatformSummary) SetPlatformBranchName(v string) *PlatformSummary {
+ s.PlatformBranchName = &v
+ return s
+}
+
// SetPlatformCategory sets the PlatformCategory field's value.
func (s *PlatformSummary) SetPlatformCategory(v string) *PlatformSummary {
s.PlatformCategory = &v
return s
}
+// SetPlatformLifecycleState sets the PlatformLifecycleState field's value.
+func (s *PlatformSummary) SetPlatformLifecycleState(v string) *PlatformSummary {
+ s.PlatformLifecycleState = &v
+ return s
+}
+
// SetPlatformOwner sets the PlatformOwner field's value.
func (s *PlatformSummary) SetPlatformOwner(v string) *PlatformSummary {
s.PlatformOwner = &v
@@ -9660,6 +10083,12 @@ func (s *PlatformSummary) SetPlatformStatus(v string) *PlatformSummary {
return s
}
+// SetPlatformVersion sets the PlatformVersion field's value.
+func (s *PlatformSummary) SetPlatformVersion(v string) *PlatformSummary {
+ s.PlatformVersion = &v
+ return s
+}
+
// SetSupportedAddonList sets the SupportedAddonList field's value.
func (s *PlatformSummary) SetSupportedAddonList(v []*string) *PlatformSummary {
s.SupportedAddonList = v
@@ -10144,6 +10573,63 @@ func (s *S3Location) SetS3Key(v string) *S3Location {
return s
}
+// Describes criteria to restrict a list of results.
+//
+// For operators that apply a single value to the attribute, the filter is evaluated
+// as follows: Attribute Operator Values[1]
+//
+// Some operators, e.g. in, can apply multiple values. In this case, the filter
+// is evaluated as a logical union (OR) of applications of the operator to the
+// attribute with each one of the values: (Attribute Operator Values[1]) OR
+// (Attribute Operator Values[2]) OR ...
+//
+// The valid values for attributes of SearchFilter depend on the API action.
+// For valid values, see the reference page for the API action you're calling
+// that takes a SearchFilter parameter.
+type SearchFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The result attribute to which the filter values are applied. Valid values
+ // vary by API action.
+ Attribute *string `type:"string"`
+
+ // The operator to apply to the Attribute with each of the Values. Valid values
+ // vary by Attribute.
+ Operator *string `type:"string"`
+
+ // The list of values applied to the Attribute and Operator attributes. Number
+ // of values and valid values vary by Attribute.
+ Values []*string `type:"list"`
+}
+
+// String returns the string representation
+func (s SearchFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SearchFilter) GoString() string {
+ return s.String()
+}
+
+// SetAttribute sets the Attribute field's value.
+func (s *SearchFilter) SetAttribute(v string) *SearchFilter {
+ s.Attribute = &v
+ return s
+}
+
+// SetOperator sets the Operator field's value.
+func (s *SearchFilter) SetOperator(v string) *SearchFilter {
+ s.Operator = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *SearchFilter) SetValues(v []*string) *SearchFilter {
+ s.Values = v
+ return s
+}
+
// Detailed health information about an Amazon EC2 instance in your Elastic
// Beanstalk environment.
type SingleInstanceHealth struct {
@@ -10372,7 +10858,7 @@ func (s *SourceBuildInformation) SetSourceType(v string) *SourceBuildInformation
return s
}
-// A specification for an environment configuration
+// A specification for an environment configuration.
type SourceConfiguration struct {
_ struct{} `type:"structure"`
@@ -11304,7 +11790,7 @@ type UpdateTagsForResourceInput struct {
// The Amazon Resource Name (ARN) of the resouce to be updated.
//
- // Must be the ARN of an Elastic Beanstalk environment.
+ // Must be the ARN of an Elastic Beanstalk resource.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go
index 3acde019b39..ce50a0588d5 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go
@@ -105,6 +105,103 @@ func (c *ElasticsearchService) AddTagsWithContext(ctx aws.Context, input *AddTag
return out, req.Send()
}
+const opAssociatePackage = "AssociatePackage"
+
+// AssociatePackageRequest generates a "aws/request.Request" representing the
+// client's request for the AssociatePackage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AssociatePackage for more information on using the AssociatePackage
+// 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 AssociatePackageRequest method.
+// req, resp := client.AssociatePackageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) AssociatePackageRequest(input *AssociatePackageInput) (req *request.Request, output *AssociatePackageOutput) {
+ op := &request.Operation{
+ Name: opAssociatePackage,
+ HTTPMethod: "POST",
+ HTTPPath: "/2015-01-01/packages/associate/{PackageID}/{DomainName}",
+ }
+
+ if input == nil {
+ input = &AssociatePackageInput{}
+ }
+
+ output = &AssociatePackageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AssociatePackage API operation for Amazon Elasticsearch Service.
+//
+// Associates a package with an Amazon ES domain.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation AssociatePackage for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+// * ConflictException
+// An error occurred because the client attempts to remove a resource that is
+// currently in use. Returns HTTP status code 409.
+//
+func (c *ElasticsearchService) AssociatePackage(input *AssociatePackageInput) (*AssociatePackageOutput, error) {
+ req, out := c.AssociatePackageRequest(input)
+ return out, req.Send()
+}
+
+// AssociatePackageWithContext is the same as AssociatePackage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AssociatePackage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) AssociatePackageWithContext(ctx aws.Context, input *AssociatePackageInput, opts ...request.Option) (*AssociatePackageOutput, error) {
+ req, out := c.AssociatePackageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCancelElasticsearchServiceSoftwareUpdate = "CancelElasticsearchServiceSoftwareUpdate"
// CancelElasticsearchServiceSoftwareUpdateRequest generates a "aws/request.Request" representing the
@@ -299,6 +396,107 @@ func (c *ElasticsearchService) CreateElasticsearchDomainWithContext(ctx aws.Cont
return out, req.Send()
}
+const opCreatePackage = "CreatePackage"
+
+// CreatePackageRequest generates a "aws/request.Request" representing the
+// client's request for the CreatePackage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreatePackage for more information on using the CreatePackage
+// 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 CreatePackageRequest method.
+// req, resp := client.CreatePackageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) CreatePackageRequest(input *CreatePackageInput) (req *request.Request, output *CreatePackageOutput) {
+ op := &request.Operation{
+ Name: opCreatePackage,
+ HTTPMethod: "POST",
+ HTTPPath: "/2015-01-01/packages",
+ }
+
+ if input == nil {
+ input = &CreatePackageInput{}
+ }
+
+ output = &CreatePackageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreatePackage API operation for Amazon Elasticsearch Service.
+//
+// Create a package for use with Amazon ES domains.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation CreatePackage for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * LimitExceededException
+// An exception for trying to create more than allowed resources or sub-resources.
+// Gives http status code of 409.
+//
+// * InvalidTypeException
+// An exception for trying to create or access sub-resource that is either invalid
+// or not supported. Gives http status code of 409.
+//
+// * ResourceAlreadyExistsException
+// An exception for creating a resource that already exists. Gives http status
+// code of 400.
+//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+func (c *ElasticsearchService) CreatePackage(input *CreatePackageInput) (*CreatePackageOutput, error) {
+ req, out := c.CreatePackageRequest(input)
+ return out, req.Send()
+}
+
+// CreatePackageWithContext is the same as CreatePackage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreatePackage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) CreatePackageWithContext(ctx aws.Context, input *CreatePackageInput, opts ...request.Option) (*CreatePackageOutput, error) {
+ req, out := c.CreatePackageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain"
// DeleteElasticsearchDomainRequest generates a "aws/request.Request" representing the
@@ -479,6 +677,103 @@ func (c *ElasticsearchService) DeleteElasticsearchServiceRoleWithContext(ctx aws
return out, req.Send()
}
+const opDeletePackage = "DeletePackage"
+
+// DeletePackageRequest generates a "aws/request.Request" representing the
+// client's request for the DeletePackage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeletePackage for more information on using the DeletePackage
+// 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 DeletePackageRequest method.
+// req, resp := client.DeletePackageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) DeletePackageRequest(input *DeletePackageInput) (req *request.Request, output *DeletePackageOutput) {
+ op := &request.Operation{
+ Name: opDeletePackage,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/2015-01-01/packages/{PackageID}",
+ }
+
+ if input == nil {
+ input = &DeletePackageInput{}
+ }
+
+ output = &DeletePackageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeletePackage API operation for Amazon Elasticsearch Service.
+//
+// Delete the package.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation DeletePackage for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+// * ConflictException
+// An error occurred because the client attempts to remove a resource that is
+// currently in use. Returns HTTP status code 409.
+//
+func (c *ElasticsearchService) DeletePackage(input *DeletePackageInput) (*DeletePackageOutput, error) {
+ req, out := c.DeletePackageRequest(input)
+ return out, req.Send()
+}
+
+// DeletePackageWithContext is the same as DeletePackage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeletePackage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) DeletePackageWithContext(ctx aws.Context, input *DeletePackageInput, opts ...request.Option) (*DeletePackageOutput, error) {
+ req, out := c.DeletePackageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain"
// DescribeElasticsearchDomainRequest generates a "aws/request.Request" representing the
@@ -845,35 +1140,35 @@ func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimitsWithContex
return out, req.Send()
}
-const opDescribeReservedElasticsearchInstanceOfferings = "DescribeReservedElasticsearchInstanceOfferings"
+const opDescribePackages = "DescribePackages"
-// DescribeReservedElasticsearchInstanceOfferingsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeReservedElasticsearchInstanceOfferings operation. The "output" return
+// DescribePackagesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribePackages operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeReservedElasticsearchInstanceOfferings for more information on using the DescribeReservedElasticsearchInstanceOfferings
+// See DescribePackages for more information on using the DescribePackages
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
-// // Example sending a request using the DescribeReservedElasticsearchInstanceOfferingsRequest method.
-// req, resp := client.DescribeReservedElasticsearchInstanceOfferingsRequest(params)
+// // Example sending a request using the DescribePackagesRequest method.
+// req, resp := client.DescribePackagesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
-func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsRequest(input *DescribeReservedElasticsearchInstanceOfferingsInput) (req *request.Request, output *DescribeReservedElasticsearchInstanceOfferingsOutput) {
+func (c *ElasticsearchService) DescribePackagesRequest(input *DescribePackagesInput) (req *request.Request, output *DescribePackagesOutput) {
op := &request.Operation{
- Name: opDescribeReservedElasticsearchInstanceOfferings,
- HTTPMethod: "GET",
- HTTPPath: "/2015-01-01/es/reservedInstanceOfferings",
+ Name: opDescribePackages,
+ HTTPMethod: "POST",
+ HTTPPath: "/2015-01-01/packages/describe",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
@@ -883,45 +1178,197 @@ func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsReq
}
if input == nil {
- input = &DescribeReservedElasticsearchInstanceOfferingsInput{}
+ input = &DescribePackagesInput{}
}
- output = &DescribeReservedElasticsearchInstanceOfferingsOutput{}
+ output = &DescribePackagesOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeReservedElasticsearchInstanceOfferings API operation for Amazon Elasticsearch Service.
+// DescribePackages API operation for Amazon Elasticsearch Service.
//
-// Lists available reserved Elasticsearch instance offerings.
+// Describes all packages available to Amazon ES. Includes options for filtering,
+// limiting the number of results, and pagination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elasticsearch Service's
-// API operation DescribeReservedElasticsearchInstanceOfferings for usage and error information.
+// API operation DescribePackages for usage and error information.
//
// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
// * ResourceNotFoundException
// An exception for accessing or deleting a resource that does not exist. Gives
// http status code of 400.
//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
// * ValidationException
// An exception for missing / invalid input fields. Gives http status code of
// 400.
//
-// * DisabledOperationException
-// An error occured because the client wanted to access a not supported operation.
-// Gives http status code of 409.
-//
-// * InternalException
-// The request processing has failed because of an unknown error, exception
-// or failure (the failure is internal to the service) . Gives http status code
-// of 500.
-//
-func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferings(input *DescribeReservedElasticsearchInstanceOfferingsInput) (*DescribeReservedElasticsearchInstanceOfferingsOutput, error) {
- req, out := c.DescribeReservedElasticsearchInstanceOfferingsRequest(input)
+func (c *ElasticsearchService) DescribePackages(input *DescribePackagesInput) (*DescribePackagesOutput, error) {
+ req, out := c.DescribePackagesRequest(input)
+ return out, req.Send()
+}
+
+// DescribePackagesWithContext is the same as DescribePackages with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribePackages for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) DescribePackagesWithContext(ctx aws.Context, input *DescribePackagesInput, opts ...request.Option) (*DescribePackagesOutput, error) {
+ req, out := c.DescribePackagesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribePackagesPages iterates over the pages of a DescribePackages operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribePackages 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 DescribePackages operation.
+// pageNum := 0
+// err := client.DescribePackagesPages(params,
+// func(page *elasticsearchservice.DescribePackagesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *ElasticsearchService) DescribePackagesPages(input *DescribePackagesInput, fn func(*DescribePackagesOutput, bool) bool) error {
+ return c.DescribePackagesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribePackagesPagesWithContext same as DescribePackagesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) DescribePackagesPagesWithContext(ctx aws.Context, input *DescribePackagesInput, fn func(*DescribePackagesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribePackagesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribePackagesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribePackagesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeReservedElasticsearchInstanceOfferings = "DescribeReservedElasticsearchInstanceOfferings"
+
+// DescribeReservedElasticsearchInstanceOfferingsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeReservedElasticsearchInstanceOfferings operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeReservedElasticsearchInstanceOfferings for more information on using the DescribeReservedElasticsearchInstanceOfferings
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeReservedElasticsearchInstanceOfferingsRequest method.
+// req, resp := client.DescribeReservedElasticsearchInstanceOfferingsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsRequest(input *DescribeReservedElasticsearchInstanceOfferingsInput) (req *request.Request, output *DescribeReservedElasticsearchInstanceOfferingsOutput) {
+ op := &request.Operation{
+ Name: opDescribeReservedElasticsearchInstanceOfferings,
+ HTTPMethod: "GET",
+ HTTPPath: "/2015-01-01/es/reservedInstanceOfferings",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeReservedElasticsearchInstanceOfferingsInput{}
+ }
+
+ output = &DescribeReservedElasticsearchInstanceOfferingsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeReservedElasticsearchInstanceOfferings API operation for Amazon Elasticsearch Service.
+//
+// Lists available reserved Elasticsearch instance offerings.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation DescribeReservedElasticsearchInstanceOfferings for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+// * DisabledOperationException
+// An error occured because the client wanted to access a not supported operation.
+// Gives http status code of 409.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferings(input *DescribeReservedElasticsearchInstanceOfferingsInput) (*DescribeReservedElasticsearchInstanceOfferingsOutput, error) {
+ req, out := c.DescribeReservedElasticsearchInstanceOfferingsRequest(input)
return out, req.Send()
}
@@ -1141,6 +1588,103 @@ func (c *ElasticsearchService) DescribeReservedElasticsearchInstancesPagesWithCo
return p.Err()
}
+const opDissociatePackage = "DissociatePackage"
+
+// DissociatePackageRequest generates a "aws/request.Request" representing the
+// client's request for the DissociatePackage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DissociatePackage for more information on using the DissociatePackage
+// 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 DissociatePackageRequest method.
+// req, resp := client.DissociatePackageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) DissociatePackageRequest(input *DissociatePackageInput) (req *request.Request, output *DissociatePackageOutput) {
+ op := &request.Operation{
+ Name: opDissociatePackage,
+ HTTPMethod: "POST",
+ HTTPPath: "/2015-01-01/packages/dissociate/{PackageID}/{DomainName}",
+ }
+
+ if input == nil {
+ input = &DissociatePackageInput{}
+ }
+
+ output = &DissociatePackageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DissociatePackage API operation for Amazon Elasticsearch Service.
+//
+// Dissociates a package from the Amazon ES domain.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation DissociatePackage for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+// * ConflictException
+// An error occurred because the client attempts to remove a resource that is
+// currently in use. Returns HTTP status code 409.
+//
+func (c *ElasticsearchService) DissociatePackage(input *DissociatePackageInput) (*DissociatePackageOutput, error) {
+ req, out := c.DissociatePackageRequest(input)
+ return out, req.Send()
+}
+
+// DissociatePackageWithContext is the same as DissociatePackage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DissociatePackage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) DissociatePackageWithContext(ctx aws.Context, input *DissociatePackageInput, opts ...request.Option) (*DissociatePackageOutput, error) {
+ req, out := c.DissociatePackageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetCompatibleElasticsearchVersions = "GetCompatibleElasticsearchVersions"
// GetCompatibleElasticsearchVersionsRequest generates a "aws/request.Request" representing the
@@ -1563,35 +2107,35 @@ func (c *ElasticsearchService) ListDomainNamesWithContext(ctx aws.Context, input
return out, req.Send()
}
-const opListElasticsearchInstanceTypes = "ListElasticsearchInstanceTypes"
+const opListDomainsForPackage = "ListDomainsForPackage"
-// ListElasticsearchInstanceTypesRequest generates a "aws/request.Request" representing the
-// client's request for the ListElasticsearchInstanceTypes operation. The "output" return
+// ListDomainsForPackageRequest generates a "aws/request.Request" representing the
+// client's request for the ListDomainsForPackage operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListElasticsearchInstanceTypes for more information on using the ListElasticsearchInstanceTypes
+// See ListDomainsForPackage for more information on using the ListDomainsForPackage
// 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 ListElasticsearchInstanceTypesRequest method.
-// req, resp := client.ListElasticsearchInstanceTypesRequest(params)
+// // Example sending a request using the ListDomainsForPackageRequest method.
+// req, resp := client.ListDomainsForPackageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
-func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *ListElasticsearchInstanceTypesInput) (req *request.Request, output *ListElasticsearchInstanceTypesOutput) {
+func (c *ElasticsearchService) ListDomainsForPackageRequest(input *ListDomainsForPackageInput) (req *request.Request, output *ListDomainsForPackageOutput) {
op := &request.Operation{
- Name: opListElasticsearchInstanceTypes,
+ Name: opListDomainsForPackage,
HTTPMethod: "GET",
- HTTPPath: "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}",
+ HTTPPath: "/2015-01-01/packages/{PackageID}/domains",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
@@ -1601,24 +2145,24 @@ func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *List
}
if input == nil {
- input = &ListElasticsearchInstanceTypesInput{}
+ input = &ListDomainsForPackageInput{}
}
- output = &ListElasticsearchInstanceTypesOutput{}
+ output = &ListDomainsForPackageOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListElasticsearchInstanceTypes API operation for Amazon Elasticsearch Service.
+// ListDomainsForPackage API operation for Amazon Elasticsearch Service.
//
-// List all Elasticsearch instance types that are supported for given ElasticsearchVersion
+// Lists all Amazon ES domains associated with the package.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elasticsearch Service's
-// API operation ListElasticsearchInstanceTypes for usage and error information.
+// API operation ListDomainsForPackage for usage and error information.
//
// Returned Error Types:
// * BaseException
@@ -1633,68 +2177,72 @@ func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *List
// An exception for accessing or deleting a resource that does not exist. Gives
// http status code of 400.
//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
// * ValidationException
// An exception for missing / invalid input fields. Gives http status code of
// 400.
//
-func (c *ElasticsearchService) ListElasticsearchInstanceTypes(input *ListElasticsearchInstanceTypesInput) (*ListElasticsearchInstanceTypesOutput, error) {
- req, out := c.ListElasticsearchInstanceTypesRequest(input)
+func (c *ElasticsearchService) ListDomainsForPackage(input *ListDomainsForPackageInput) (*ListDomainsForPackageOutput, error) {
+ req, out := c.ListDomainsForPackageRequest(input)
return out, req.Send()
}
-// ListElasticsearchInstanceTypesWithContext is the same as ListElasticsearchInstanceTypes with the addition of
+// ListDomainsForPackageWithContext is the same as ListDomainsForPackage with the addition of
// the ability to pass a context and additional request options.
//
-// See ListElasticsearchInstanceTypes for details on how to use this API operation.
+// See ListDomainsForPackage for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *ElasticsearchService) ListElasticsearchInstanceTypesWithContext(ctx aws.Context, input *ListElasticsearchInstanceTypesInput, opts ...request.Option) (*ListElasticsearchInstanceTypesOutput, error) {
- req, out := c.ListElasticsearchInstanceTypesRequest(input)
+func (c *ElasticsearchService) ListDomainsForPackageWithContext(ctx aws.Context, input *ListDomainsForPackageInput, opts ...request.Option) (*ListDomainsForPackageOutput, error) {
+ req, out := c.ListDomainsForPackageRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// ListElasticsearchInstanceTypesPages iterates over the pages of a ListElasticsearchInstanceTypes operation,
+// ListDomainsForPackagePages iterates over the pages of a ListDomainsForPackage operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See ListElasticsearchInstanceTypes method for more information on how to use this operation.
+// See ListDomainsForPackage 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 ListElasticsearchInstanceTypes operation.
+// // Example iterating over at most 3 pages of a ListDomainsForPackage operation.
// pageNum := 0
-// err := client.ListElasticsearchInstanceTypesPages(params,
-// func(page *elasticsearchservice.ListElasticsearchInstanceTypesOutput, lastPage bool) bool {
+// err := client.ListDomainsForPackagePages(params,
+// func(page *elasticsearchservice.ListDomainsForPackageOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
-func (c *ElasticsearchService) ListElasticsearchInstanceTypesPages(input *ListElasticsearchInstanceTypesInput, fn func(*ListElasticsearchInstanceTypesOutput, bool) bool) error {
- return c.ListElasticsearchInstanceTypesPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *ElasticsearchService) ListDomainsForPackagePages(input *ListDomainsForPackageInput, fn func(*ListDomainsForPackageOutput, bool) bool) error {
+ return c.ListDomainsForPackagePagesWithContext(aws.BackgroundContext(), input, fn)
}
-// ListElasticsearchInstanceTypesPagesWithContext same as ListElasticsearchInstanceTypesPages except
+// ListDomainsForPackagePagesWithContext same as ListDomainsForPackagePages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *ElasticsearchService) ListElasticsearchInstanceTypesPagesWithContext(ctx aws.Context, input *ListElasticsearchInstanceTypesInput, fn func(*ListElasticsearchInstanceTypesOutput, bool) bool, opts ...request.Option) error {
+func (c *ElasticsearchService) ListDomainsForPackagePagesWithContext(ctx aws.Context, input *ListDomainsForPackageInput, fn func(*ListDomainsForPackageOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
- var inCpy *ListElasticsearchInstanceTypesInput
+ var inCpy *ListDomainsForPackageInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.ListElasticsearchInstanceTypesRequest(inCpy)
+ req, _ := c.ListDomainsForPackageRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -1702,7 +2250,7 @@ func (c *ElasticsearchService) ListElasticsearchInstanceTypesPagesWithContext(ct
}
for p.Next() {
- if !fn(p.Page().(*ListElasticsearchInstanceTypesOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*ListDomainsForPackageOutput), !p.HasNextPage()) {
break
}
}
@@ -1710,35 +2258,35 @@ func (c *ElasticsearchService) ListElasticsearchInstanceTypesPagesWithContext(ct
return p.Err()
}
-const opListElasticsearchVersions = "ListElasticsearchVersions"
+const opListElasticsearchInstanceTypes = "ListElasticsearchInstanceTypes"
-// ListElasticsearchVersionsRequest generates a "aws/request.Request" representing the
-// client's request for the ListElasticsearchVersions operation. The "output" return
+// ListElasticsearchInstanceTypesRequest generates a "aws/request.Request" representing the
+// client's request for the ListElasticsearchInstanceTypes operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListElasticsearchVersions for more information on using the ListElasticsearchVersions
+// See ListElasticsearchInstanceTypes for more information on using the ListElasticsearchInstanceTypes
// 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 ListElasticsearchVersionsRequest method.
-// req, resp := client.ListElasticsearchVersionsRequest(params)
+// // Example sending a request using the ListElasticsearchInstanceTypesRequest method.
+// req, resp := client.ListElasticsearchInstanceTypesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
-func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElasticsearchVersionsInput) (req *request.Request, output *ListElasticsearchVersionsOutput) {
+func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *ListElasticsearchInstanceTypesInput) (req *request.Request, output *ListElasticsearchInstanceTypesOutput) {
op := &request.Operation{
- Name: opListElasticsearchVersions,
+ Name: opListElasticsearchInstanceTypes,
HTTPMethod: "GET",
- HTTPPath: "/2015-01-01/es/versions",
+ HTTPPath: "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
@@ -1748,7 +2296,154 @@ func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElast
}
if input == nil {
- input = &ListElasticsearchVersionsInput{}
+ input = &ListElasticsearchInstanceTypesInput{}
+ }
+
+ output = &ListElasticsearchInstanceTypesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListElasticsearchInstanceTypes API operation for Amazon Elasticsearch Service.
+//
+// List all Elasticsearch instance types that are supported for given ElasticsearchVersion
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation ListElasticsearchInstanceTypes for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+func (c *ElasticsearchService) ListElasticsearchInstanceTypes(input *ListElasticsearchInstanceTypesInput) (*ListElasticsearchInstanceTypesOutput, error) {
+ req, out := c.ListElasticsearchInstanceTypesRequest(input)
+ return out, req.Send()
+}
+
+// ListElasticsearchInstanceTypesWithContext is the same as ListElasticsearchInstanceTypes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListElasticsearchInstanceTypes for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) ListElasticsearchInstanceTypesWithContext(ctx aws.Context, input *ListElasticsearchInstanceTypesInput, opts ...request.Option) (*ListElasticsearchInstanceTypesOutput, error) {
+ req, out := c.ListElasticsearchInstanceTypesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListElasticsearchInstanceTypesPages iterates over the pages of a ListElasticsearchInstanceTypes operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListElasticsearchInstanceTypes 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 ListElasticsearchInstanceTypes operation.
+// pageNum := 0
+// err := client.ListElasticsearchInstanceTypesPages(params,
+// func(page *elasticsearchservice.ListElasticsearchInstanceTypesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *ElasticsearchService) ListElasticsearchInstanceTypesPages(input *ListElasticsearchInstanceTypesInput, fn func(*ListElasticsearchInstanceTypesOutput, bool) bool) error {
+ return c.ListElasticsearchInstanceTypesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListElasticsearchInstanceTypesPagesWithContext same as ListElasticsearchInstanceTypesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) ListElasticsearchInstanceTypesPagesWithContext(ctx aws.Context, input *ListElasticsearchInstanceTypesInput, fn func(*ListElasticsearchInstanceTypesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListElasticsearchInstanceTypesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListElasticsearchInstanceTypesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListElasticsearchInstanceTypesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListElasticsearchVersions = "ListElasticsearchVersions"
+
+// ListElasticsearchVersionsRequest generates a "aws/request.Request" representing the
+// client's request for the ListElasticsearchVersions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListElasticsearchVersions for more information on using the ListElasticsearchVersions
+// 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 ListElasticsearchVersionsRequest method.
+// req, resp := client.ListElasticsearchVersionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElasticsearchVersionsInput) (req *request.Request, output *ListElasticsearchVersionsOutput) {
+ op := &request.Operation{
+ Name: opListElasticsearchVersions,
+ HTTPMethod: "GET",
+ HTTPPath: "/2015-01-01/es/versions",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListElasticsearchVersionsInput{}
}
output = &ListElasticsearchVersionsOutput{}
@@ -1857,6 +2552,157 @@ func (c *ElasticsearchService) ListElasticsearchVersionsPagesWithContext(ctx aws
return p.Err()
}
+const opListPackagesForDomain = "ListPackagesForDomain"
+
+// ListPackagesForDomainRequest generates a "aws/request.Request" representing the
+// client's request for the ListPackagesForDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPackagesForDomain for more information on using the ListPackagesForDomain
+// 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 ListPackagesForDomainRequest method.
+// req, resp := client.ListPackagesForDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *ElasticsearchService) ListPackagesForDomainRequest(input *ListPackagesForDomainInput) (req *request.Request, output *ListPackagesForDomainOutput) {
+ op := &request.Operation{
+ Name: opListPackagesForDomain,
+ HTTPMethod: "GET",
+ HTTPPath: "/2015-01-01/domain/{DomainName}/packages",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPackagesForDomainInput{}
+ }
+
+ output = &ListPackagesForDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPackagesForDomain API operation for Amazon Elasticsearch Service.
+//
+// Lists all packages associated with the Amazon ES domain.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elasticsearch Service's
+// API operation ListPackagesForDomain for usage and error information.
+//
+// Returned Error Types:
+// * BaseException
+// An error occurred while processing the request.
+//
+// * InternalException
+// The request processing has failed because of an unknown error, exception
+// or failure (the failure is internal to the service) . Gives http status code
+// of 500.
+//
+// * ResourceNotFoundException
+// An exception for accessing or deleting a resource that does not exist. Gives
+// http status code of 400.
+//
+// * AccessDeniedException
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+//
+// * ValidationException
+// An exception for missing / invalid input fields. Gives http status code of
+// 400.
+//
+func (c *ElasticsearchService) ListPackagesForDomain(input *ListPackagesForDomainInput) (*ListPackagesForDomainOutput, error) {
+ req, out := c.ListPackagesForDomainRequest(input)
+ return out, req.Send()
+}
+
+// ListPackagesForDomainWithContext is the same as ListPackagesForDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPackagesForDomain for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) ListPackagesForDomainWithContext(ctx aws.Context, input *ListPackagesForDomainInput, opts ...request.Option) (*ListPackagesForDomainOutput, error) {
+ req, out := c.ListPackagesForDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPackagesForDomainPages iterates over the pages of a ListPackagesForDomain operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPackagesForDomain 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 ListPackagesForDomain operation.
+// pageNum := 0
+// err := client.ListPackagesForDomainPages(params,
+// func(page *elasticsearchservice.ListPackagesForDomainOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *ElasticsearchService) ListPackagesForDomainPages(input *ListPackagesForDomainInput, fn func(*ListPackagesForDomainOutput, bool) bool) error {
+ return c.ListPackagesForDomainPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPackagesForDomainPagesWithContext same as ListPackagesForDomainPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ElasticsearchService) ListPackagesForDomainPagesWithContext(ctx aws.Context, input *ListPackagesForDomainInput, fn func(*ListPackagesForDomainOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPackagesForDomainInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPackagesForDomainRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPackagesForDomainOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
const opListTags = "ListTags"
// ListTagsRequest generates a "aws/request.Request" representing the
@@ -2415,6 +3261,63 @@ func (c *ElasticsearchService) UpgradeElasticsearchDomainWithContext(ctx aws.Con
return out, req.Send()
}
+// An error occurred because user does not have permissions to access the resource.
+// Returns HTTP status code 403.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// The configured access rules for the domain's document and search endpoints,
// and the current status of those rules.
type AccessPoliciesStatus struct {
@@ -2754,10 +3657,94 @@ func (s *AdvancedSecurityOptionsStatus) SetStatus(v *OptionStatus) *AdvancedSecu
return s
}
+// Container for request parameters to AssociatePackage operation.
+type AssociatePackageInput struct {
+ _ struct{} `type:"structure"`
+
+ // Name of the domain that you want to associate the package with.
+ //
+ // DomainName is a required field
+ DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"`
+
+ // Internal ID of the package that you want to associate with a domain. Use
+ // DescribePackages to find this value.
+ //
+ // PackageID is a required field
+ PackageID *string `location:"uri" locationName:"PackageID" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AssociatePackageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssociatePackageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssociatePackageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssociatePackageInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DomainName != nil && len(*s.DomainName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
+ }
+ if s.PackageID == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageID"))
+ }
+ if s.PackageID != nil && len(*s.PackageID) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageID", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *AssociatePackageInput) SetDomainName(v string) *AssociatePackageInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *AssociatePackageInput) SetPackageID(v string) *AssociatePackageInput {
+ s.PackageID = &v
+ return s
+}
+
+// Container for response returned by AssociatePackage operation.
+type AssociatePackageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // DomainPackageDetails
+ DomainPackageDetails *DomainPackageDetails `type:"structure"`
+}
+
+// String returns the string representation
+func (s AssociatePackageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssociatePackageOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainPackageDetails sets the DomainPackageDetails field's value.
+func (s *AssociatePackageOutput) SetDomainPackageDetails(v *DomainPackageDetails) *AssociatePackageOutput {
+ s.DomainPackageDetails = v
+ return s
+}
+
// An error occurred while processing the request.
type BaseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description of the error.
Message_ *string `locationName:"message" type:"string"`
@@ -2775,17 +3762,17 @@ func (s BaseException) GoString() string {
func newErrorBaseException(v protocol.ResponseMetadata) error {
return &BaseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BaseException) Code() string {
+func (s *BaseException) Code() string {
return "BaseException"
}
// Message returns the exception's message.
-func (s BaseException) Message() string {
+func (s *BaseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2793,22 +3780,22 @@ func (s BaseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BaseException) OrigErr() error {
+func (s *BaseException) OrigErr() error {
return nil
}
-func (s BaseException) Error() string {
+func (s *BaseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BaseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BaseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BaseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BaseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate
@@ -3025,6 +4012,63 @@ func (s *CompatibleVersionsMap) SetTargetVersions(v []*string) *CompatibleVersio
return s
}
+// An error occurred because the client attempts to remove a resource that is
+// currently in use. Returns HTTP status code 409.
+type ConflictException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s ConflictException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ConflictException) GoString() string {
+ return s.String()
+}
+
+func newErrorConflictException(v protocol.ResponseMetadata) error {
+ return &ConflictException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ConflictException) Code() string {
+ return "ConflictException"
+}
+
+// Message returns the exception's message.
+func (s *ConflictException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ConflictException) OrigErr() error {
+ return nil
+}
+
+func (s *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
type CreateElasticsearchDomainInput struct {
_ struct{} `type:"structure"`
@@ -3183,58 +4227,166 @@ func (s *CreateElasticsearchDomainInput) SetElasticsearchVersion(v string) *Crea
return s
}
-// SetEncryptionAtRestOptions sets the EncryptionAtRestOptions field's value.
-func (s *CreateElasticsearchDomainInput) SetEncryptionAtRestOptions(v *EncryptionAtRestOptions) *CreateElasticsearchDomainInput {
- s.EncryptionAtRestOptions = v
- return s
+// SetEncryptionAtRestOptions sets the EncryptionAtRestOptions field's value.
+func (s *CreateElasticsearchDomainInput) SetEncryptionAtRestOptions(v *EncryptionAtRestOptions) *CreateElasticsearchDomainInput {
+ s.EncryptionAtRestOptions = v
+ return s
+}
+
+// SetLogPublishingOptions sets the LogPublishingOptions field's value.
+func (s *CreateElasticsearchDomainInput) SetLogPublishingOptions(v map[string]*LogPublishingOption) *CreateElasticsearchDomainInput {
+ s.LogPublishingOptions = v
+ return s
+}
+
+// SetNodeToNodeEncryptionOptions sets the NodeToNodeEncryptionOptions field's value.
+func (s *CreateElasticsearchDomainInput) SetNodeToNodeEncryptionOptions(v *NodeToNodeEncryptionOptions) *CreateElasticsearchDomainInput {
+ s.NodeToNodeEncryptionOptions = v
+ return s
+}
+
+// SetSnapshotOptions sets the SnapshotOptions field's value.
+func (s *CreateElasticsearchDomainInput) SetSnapshotOptions(v *SnapshotOptions) *CreateElasticsearchDomainInput {
+ s.SnapshotOptions = v
+ return s
+}
+
+// SetVPCOptions sets the VPCOptions field's value.
+func (s *CreateElasticsearchDomainInput) SetVPCOptions(v *VPCOptions) *CreateElasticsearchDomainInput {
+ s.VPCOptions = v
+ return s
+}
+
+// The result of a CreateElasticsearchDomain operation. Contains the status
+// of the newly created Elasticsearch domain.
+type CreateElasticsearchDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The status of the newly created Elasticsearch domain.
+ DomainStatus *ElasticsearchDomainStatus `type:"structure"`
+}
+
+// String returns the string representation
+func (s CreateElasticsearchDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateElasticsearchDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainStatus sets the DomainStatus field's value.
+func (s *CreateElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *CreateElasticsearchDomainOutput {
+ s.DomainStatus = v
+ return s
+}
+
+// Container for request parameters to CreatePackage operation.
+type CreatePackageInput struct {
+ _ struct{} `type:"structure"`
+
+ // Description of the package.
+ PackageDescription *string `type:"string"`
+
+ // Unique identifier for the package.
+ //
+ // PackageName is a required field
+ PackageName *string `min:"3" type:"string" required:"true"`
+
+ // The customer S3 location PackageSource for importing the package.
+ //
+ // PackageSource is a required field
+ PackageSource *PackageSource `type:"structure" required:"true"`
+
+ // Type of package. Currently supports only TXT-DICTIONARY.
+ //
+ // PackageType is a required field
+ PackageType *string `type:"string" required:"true" enum:"PackageType"`
+}
+
+// String returns the string representation
+func (s CreatePackageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreatePackageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreatePackageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreatePackageInput"}
+ if s.PackageName == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageName"))
+ }
+ if s.PackageName != nil && len(*s.PackageName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageName", 3))
+ }
+ if s.PackageSource == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageSource"))
+ }
+ if s.PackageType == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageType"))
+ }
+ if s.PackageSource != nil {
+ if err := s.PackageSource.Validate(); err != nil {
+ invalidParams.AddNested("PackageSource", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetLogPublishingOptions sets the LogPublishingOptions field's value.
-func (s *CreateElasticsearchDomainInput) SetLogPublishingOptions(v map[string]*LogPublishingOption) *CreateElasticsearchDomainInput {
- s.LogPublishingOptions = v
+// SetPackageDescription sets the PackageDescription field's value.
+func (s *CreatePackageInput) SetPackageDescription(v string) *CreatePackageInput {
+ s.PackageDescription = &v
return s
}
-// SetNodeToNodeEncryptionOptions sets the NodeToNodeEncryptionOptions field's value.
-func (s *CreateElasticsearchDomainInput) SetNodeToNodeEncryptionOptions(v *NodeToNodeEncryptionOptions) *CreateElasticsearchDomainInput {
- s.NodeToNodeEncryptionOptions = v
+// SetPackageName sets the PackageName field's value.
+func (s *CreatePackageInput) SetPackageName(v string) *CreatePackageInput {
+ s.PackageName = &v
return s
}
-// SetSnapshotOptions sets the SnapshotOptions field's value.
-func (s *CreateElasticsearchDomainInput) SetSnapshotOptions(v *SnapshotOptions) *CreateElasticsearchDomainInput {
- s.SnapshotOptions = v
+// SetPackageSource sets the PackageSource field's value.
+func (s *CreatePackageInput) SetPackageSource(v *PackageSource) *CreatePackageInput {
+ s.PackageSource = v
return s
}
-// SetVPCOptions sets the VPCOptions field's value.
-func (s *CreateElasticsearchDomainInput) SetVPCOptions(v *VPCOptions) *CreateElasticsearchDomainInput {
- s.VPCOptions = v
+// SetPackageType sets the PackageType field's value.
+func (s *CreatePackageInput) SetPackageType(v string) *CreatePackageInput {
+ s.PackageType = &v
return s
}
-// The result of a CreateElasticsearchDomain operation. Contains the status
-// of the newly created Elasticsearch domain.
-type CreateElasticsearchDomainOutput struct {
+// Container for response returned by CreatePackage operation.
+type CreatePackageOutput struct {
_ struct{} `type:"structure"`
- // The status of the newly created Elasticsearch domain.
- DomainStatus *ElasticsearchDomainStatus `type:"structure"`
+ // Information about the package PackageDetails.
+ PackageDetails *PackageDetails `type:"structure"`
}
// String returns the string representation
-func (s CreateElasticsearchDomainOutput) String() string {
+func (s CreatePackageOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateElasticsearchDomainOutput) GoString() string {
+func (s CreatePackageOutput) GoString() string {
return s.String()
}
-// SetDomainStatus sets the DomainStatus field's value.
-func (s *CreateElasticsearchDomainOutput) SetDomainStatus(v *ElasticsearchDomainStatus) *CreateElasticsearchDomainOutput {
- s.DomainStatus = v
+// SetPackageDetails sets the PackageDetails field's value.
+func (s *CreatePackageOutput) SetPackageDetails(v *PackageDetails) *CreatePackageOutput {
+ s.PackageDetails = v
return s
}
@@ -3335,6 +4487,73 @@ func (s DeleteElasticsearchServiceRoleOutput) GoString() string {
return s.String()
}
+// Container for request parameters to DeletePackage operation.
+type DeletePackageInput struct {
+ _ struct{} `type:"structure"`
+
+ // Internal ID of the package that you want to delete. Use DescribePackages
+ // to find this value.
+ //
+ // PackageID is a required field
+ PackageID *string `location:"uri" locationName:"PackageID" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeletePackageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePackageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePackageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePackageInput"}
+ if s.PackageID == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageID"))
+ }
+ if s.PackageID != nil && len(*s.PackageID) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageID", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *DeletePackageInput) SetPackageID(v string) *DeletePackageInput {
+ s.PackageID = &v
+ return s
+}
+
+// Container for response parameters to DeletePackage operation.
+type DeletePackageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // PackageDetails
+ PackageDetails *PackageDetails `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeletePackageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePackageOutput) GoString() string {
+ return s.String()
+}
+
+// SetPackageDetails sets the PackageDetails field's value.
+func (s *DeletePackageOutput) SetPackageDetails(v *PackageDetails) *DeletePackageOutput {
+ s.PackageDetails = v
+ return s
+}
+
// Container for the parameters to the DescribeElasticsearchDomainConfig operation.
// Specifies the domain name for which you want configuration information.
type DescribeElasticsearchDomainConfigInput struct {
@@ -3647,6 +4866,114 @@ func (s *DescribeElasticsearchInstanceTypeLimitsOutput) SetLimitsByRole(v map[st
return s
}
+// Filter to apply in DescribePackage response.
+type DescribePackagesFilter struct {
+ _ struct{} `type:"structure"`
+
+ // Any field from PackageDetails.
+ Name *string `type:"string" enum:"DescribePackagesFilterName"`
+
+ // A list of values for the specified field.
+ Value []*string `type:"list"`
+}
+
+// String returns the string representation
+func (s DescribePackagesFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribePackagesFilter) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *DescribePackagesFilter) SetName(v string) *DescribePackagesFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *DescribePackagesFilter) SetValue(v []*string) *DescribePackagesFilter {
+ s.Value = v
+ return s
+}
+
+// Container for request parameters to DescribePackage operation.
+type DescribePackagesInput struct {
+ _ struct{} `type:"structure"`
+
+ // Only returns packages that match the DescribePackagesFilterList values.
+ Filters []*DescribePackagesFilter `type:"list"`
+
+ // Limits results to a maximum number of packages.
+ MaxResults *int64 `type:"integer"`
+
+ // Used for pagination. Only necessary if a previous API call includes a non-null
+ // NextToken value. If provided, returns results for the next page.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DescribePackagesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribePackagesInput) GoString() string {
+ return s.String()
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribePackagesInput) SetFilters(v []*DescribePackagesFilter) *DescribePackagesInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribePackagesInput) SetMaxResults(v int64) *DescribePackagesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePackagesInput) SetNextToken(v string) *DescribePackagesInput {
+ s.NextToken = &v
+ return s
+}
+
+// Container for response returned by DescribePackages operation.
+type DescribePackagesOutput struct {
+ _ struct{} `type:"structure"`
+
+ NextToken *string `type:"string"`
+
+ // List of PackageDetails objects.
+ PackageDetailsList []*PackageDetails `type:"list"`
+}
+
+// String returns the string representation
+func (s DescribePackagesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribePackagesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePackagesOutput) SetNextToken(v string) *DescribePackagesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackageDetailsList sets the PackageDetailsList field's value.
+func (s *DescribePackagesOutput) SetPackageDetailsList(v []*PackageDetails) *DescribePackagesOutput {
+ s.PackageDetailsList = v
+ return s
+}
+
// Container for parameters to DescribeReservedElasticsearchInstanceOfferings
type DescribeReservedElasticsearchInstanceOfferingsInput struct {
_ struct{} `type:"structure"`
@@ -3807,8 +5134,8 @@ func (s *DescribeReservedElasticsearchInstancesOutput) SetReservedElasticsearchI
// An error occured because the client wanted to access a not supported operation.
// Gives http status code of 409.
type DisabledOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3825,17 +5152,17 @@ func (s DisabledOperationException) GoString() string {
func newErrorDisabledOperationException(v protocol.ResponseMetadata) error {
return &DisabledOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DisabledOperationException) Code() string {
+func (s *DisabledOperationException) Code() string {
return "DisabledOperationException"
}
// Message returns the exception's message.
-func (s DisabledOperationException) Message() string {
+func (s *DisabledOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3843,22 +5170,106 @@ func (s DisabledOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DisabledOperationException) OrigErr() error {
+func (s *DisabledOperationException) OrigErr() error {
return nil
}
-func (s DisabledOperationException) Error() string {
+func (s *DisabledOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DisabledOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DisabledOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DisabledOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DisabledOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Container for request parameters to DissociatePackage operation.
+type DissociatePackageInput struct {
+ _ struct{} `type:"structure"`
+
+ // Name of the domain that you want to associate the package with.
+ //
+ // DomainName is a required field
+ DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"`
+
+ // Internal ID of the package that you want to associate with a domain. Use
+ // DescribePackages to find this value.
+ //
+ // PackageID is a required field
+ PackageID *string `location:"uri" locationName:"PackageID" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DissociatePackageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DissociatePackageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DissociatePackageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DissociatePackageInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DomainName != nil && len(*s.DomainName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
+ }
+ if s.PackageID == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageID"))
+ }
+ if s.PackageID != nil && len(*s.PackageID) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageID", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DissociatePackageInput) SetDomainName(v string) *DissociatePackageInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *DissociatePackageInput) SetPackageID(v string) *DissociatePackageInput {
+ s.PackageID = &v
+ return s
+}
+
+// Container for response returned by DissociatePackage operation.
+type DissociatePackageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // DomainPackageDetails
+ DomainPackageDetails *DomainPackageDetails `type:"structure"`
+}
+
+// String returns the string representation
+func (s DissociatePackageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DissociatePackageOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainPackageDetails sets the DomainPackageDetails field's value.
+func (s *DissociatePackageOutput) SetDomainPackageDetails(v *DomainPackageDetails) *DissociatePackageOutput {
+ s.DomainPackageDetails = v
+ return s
}
// Options to configure endpoint for the Elasticsearch domain.
@@ -3950,14 +5361,102 @@ func (s DomainInfo) String() string {
return awsutil.Prettify(s)
}
-// GoString returns the string representation
-func (s DomainInfo) GoString() string {
- return s.String()
+// GoString returns the string representation
+func (s DomainInfo) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DomainInfo) SetDomainName(v string) *DomainInfo {
+ s.DomainName = &v
+ return s
+}
+
+// Information on a package that is associated with a domain.
+type DomainPackageDetails struct {
+ _ struct{} `type:"structure"`
+
+ // Name of the domain you've associated a package with.
+ DomainName *string `min:"3" type:"string"`
+
+ // State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
+ DomainPackageStatus *string `type:"string" enum:"DomainPackageStatus"`
+
+ // Additional information if the package is in an error state. Null otherwise.
+ ErrorDetails *ErrorDetails `type:"structure"`
+
+ // Timestamp of the most-recent update to the association status.
+ LastUpdated *time.Time `type:"timestamp"`
+
+ // Internal ID of the package.
+ PackageID *string `type:"string"`
+
+ // User specified name of the package.
+ PackageName *string `min:"3" type:"string"`
+
+ // Currently supports only TXT-DICTIONARY.
+ PackageType *string `type:"string" enum:"PackageType"`
+
+ // The relative path on Amazon ES nodes, which can be used as synonym_path when
+ // the package is synonym file.
+ ReferencePath *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DomainPackageDetails) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainPackageDetails) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DomainPackageDetails) SetDomainName(v string) *DomainPackageDetails {
+ s.DomainName = &v
+ return s
+}
+
+// SetDomainPackageStatus sets the DomainPackageStatus field's value.
+func (s *DomainPackageDetails) SetDomainPackageStatus(v string) *DomainPackageDetails {
+ s.DomainPackageStatus = &v
+ return s
+}
+
+// SetErrorDetails sets the ErrorDetails field's value.
+func (s *DomainPackageDetails) SetErrorDetails(v *ErrorDetails) *DomainPackageDetails {
+ s.ErrorDetails = v
+ return s
+}
+
+// SetLastUpdated sets the LastUpdated field's value.
+func (s *DomainPackageDetails) SetLastUpdated(v time.Time) *DomainPackageDetails {
+ s.LastUpdated = &v
+ return s
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *DomainPackageDetails) SetPackageID(v string) *DomainPackageDetails {
+ s.PackageID = &v
+ return s
+}
+
+// SetPackageName sets the PackageName field's value.
+func (s *DomainPackageDetails) SetPackageName(v string) *DomainPackageDetails {
+ s.PackageName = &v
+ return s
+}
+
+// SetPackageType sets the PackageType field's value.
+func (s *DomainPackageDetails) SetPackageType(v string) *DomainPackageDetails {
+ s.PackageType = &v
+ return s
}
-// SetDomainName sets the DomainName field's value.
-func (s *DomainInfo) SetDomainName(v string) *DomainInfo {
- s.DomainName = &v
+// SetReferencePath sets the ReferencePath field's value.
+func (s *DomainPackageDetails) SetReferencePath(v string) *DomainPackageDetails {
+ s.ReferencePath = &v
return s
}
@@ -4708,6 +6207,36 @@ func (s *EncryptionAtRestOptionsStatus) SetStatus(v *OptionStatus) *EncryptionAt
return s
}
+type ErrorDetails struct {
+ _ struct{} `type:"structure"`
+
+ ErrorMessage *string `type:"string"`
+
+ ErrorType *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ErrorDetails) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ErrorDetails) GoString() string {
+ return s.String()
+}
+
+// SetErrorMessage sets the ErrorMessage field's value.
+func (s *ErrorDetails) SetErrorMessage(v string) *ErrorDetails {
+ s.ErrorMessage = &v
+ return s
+}
+
+// SetErrorType sets the ErrorType field's value.
+func (s *ErrorDetails) SetErrorType(v string) *ErrorDetails {
+ s.ErrorType = &v
+ return s
+}
+
// Container for request parameters to GetCompatibleElasticsearchVersions operation.
type GetCompatibleElasticsearchVersionsInput struct {
_ struct{} `type:"structure"`
@@ -5039,8 +6568,8 @@ func (s *InstanceLimits) SetInstanceCountLimits(v *InstanceCountLimits) *Instanc
// or failure (the failure is internal to the service) . Gives http status code
// of 500.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5057,17 +6586,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5075,29 +6604,29 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An exception for trying to create or access sub-resource that is either invalid
// or not supported. Gives http status code of 409.
type InvalidTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5114,17 +6643,17 @@ func (s InvalidTypeException) GoString() string {
func newErrorInvalidTypeException(v protocol.ResponseMetadata) error {
return &InvalidTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTypeException) Code() string {
+func (s *InvalidTypeException) Code() string {
return "InvalidTypeException"
}
// Message returns the exception's message.
-func (s InvalidTypeException) Message() string {
+func (s *InvalidTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5132,29 +6661,29 @@ func (s InvalidTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTypeException) OrigErr() error {
+func (s *InvalidTypeException) OrigErr() error {
return nil
}
-func (s InvalidTypeException) Error() string {
+func (s *InvalidTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An exception for trying to create more than allowed resources or sub-resources.
// Gives http status code of 409.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5171,17 +6700,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5189,22 +6718,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Limits for given InstanceType and for each of it's role. Limits contains
@@ -5292,6 +6821,99 @@ func (s *ListDomainNamesOutput) SetDomainNames(v []*DomainInfo) *ListDomainNames
return s
}
+// Container for request parameters to ListDomainsForPackage operation.
+type ListDomainsForPackageInput struct {
+ _ struct{} `type:"structure"`
+
+ // Limits results to a maximum number of domains.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+
+ // Used for pagination. Only necessary if a previous API call includes a non-null
+ // NextToken value. If provided, returns results for the next page.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+
+ // The package for which to list domains.
+ //
+ // PackageID is a required field
+ PackageID *string `location:"uri" locationName:"PackageID" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ListDomainsForPackageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsForPackageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListDomainsForPackageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListDomainsForPackageInput"}
+ if s.PackageID == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageID"))
+ }
+ if s.PackageID != nil && len(*s.PackageID) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageID", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListDomainsForPackageInput) SetMaxResults(v int64) *ListDomainsForPackageInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDomainsForPackageInput) SetNextToken(v string) *ListDomainsForPackageInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *ListDomainsForPackageInput) SetPackageID(v string) *ListDomainsForPackageInput {
+ s.PackageID = &v
+ return s
+}
+
+// Container for response parameters to ListDomainsForPackage operation.
+type ListDomainsForPackageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // List of DomainPackageDetails objects.
+ DomainPackageDetailsList []*DomainPackageDetails `type:"list"`
+
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListDomainsForPackageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsForPackageOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainPackageDetailsList sets the DomainPackageDetailsList field's value.
+func (s *ListDomainsForPackageOutput) SetDomainPackageDetailsList(v []*DomainPackageDetails) *ListDomainsForPackageOutput {
+ s.DomainPackageDetailsList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDomainsForPackageOutput) SetNextToken(v string) *ListDomainsForPackageOutput {
+ s.NextToken = &v
+ return s
+}
+
// Container for the parameters to the ListElasticsearchInstanceTypes operation.
type ListElasticsearchInstanceTypesInput struct {
_ struct{} `type:"structure"`
@@ -5482,6 +7104,101 @@ func (s *ListElasticsearchVersionsOutput) SetNextToken(v string) *ListElasticsea
return s
}
+// Container for request parameters to ListPackagesForDomain operation.
+type ListPackagesForDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain for which you want to list associated packages.
+ //
+ // DomainName is a required field
+ DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"`
+
+ // Limits results to a maximum number of packages.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+
+ // Used for pagination. Only necessary if a previous API call includes a non-null
+ // NextToken value. If provided, returns results for the next page.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListPackagesForDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackagesForDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPackagesForDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPackagesForDomainInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DomainName != nil && len(*s.DomainName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *ListPackagesForDomainInput) SetDomainName(v string) *ListPackagesForDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListPackagesForDomainInput) SetMaxResults(v int64) *ListPackagesForDomainInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackagesForDomainInput) SetNextToken(v string) *ListPackagesForDomainInput {
+ s.NextToken = &v
+ return s
+}
+
+// Container for response parameters to ListPackagesForDomain operation.
+type ListPackagesForDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // List of DomainPackageDetails objects.
+ DomainPackageDetailsList []*DomainPackageDetails `type:"list"`
+
+ // Pagination token that needs to be supplied to the next call to get the next
+ // page of results.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListPackagesForDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackagesForDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainPackageDetailsList sets the DomainPackageDetailsList field's value.
+func (s *ListPackagesForDomainOutput) SetDomainPackageDetailsList(v []*DomainPackageDetails) *ListPackagesForDomainOutput {
+ s.DomainPackageDetailsList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackagesForDomainOutput) SetNextToken(v string) *ListPackagesForDomainOutput {
+ s.NextToken = &v
+ return s
+}
+
// Container for the parameters to the ListTags operation. Specify the ARN for
// the Elasticsearch domain to which the tags are attached that you want to
// view are attached.
@@ -5812,6 +7529,130 @@ func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus {
return s
}
+// Basic information about a package.
+type PackageDetails struct {
+ _ struct{} `type:"structure"`
+
+ // Timestamp which tells creation date of the package.
+ CreatedAt *time.Time `type:"timestamp"`
+
+ // Additional information if the package is in an error state. Null otherwise.
+ ErrorDetails *ErrorDetails `type:"structure"`
+
+ // User-specified description of the package.
+ PackageDescription *string `type:"string"`
+
+ // Internal ID of the package.
+ PackageID *string `type:"string"`
+
+ // User specified name of the package.
+ PackageName *string `min:"3" type:"string"`
+
+ // Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
+ PackageStatus *string `type:"string" enum:"PackageStatus"`
+
+ // Currently supports only TXT-DICTIONARY.
+ PackageType *string `type:"string" enum:"PackageType"`
+}
+
+// String returns the string representation
+func (s PackageDetails) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageDetails) GoString() string {
+ return s.String()
+}
+
+// SetCreatedAt sets the CreatedAt field's value.
+func (s *PackageDetails) SetCreatedAt(v time.Time) *PackageDetails {
+ s.CreatedAt = &v
+ return s
+}
+
+// SetErrorDetails sets the ErrorDetails field's value.
+func (s *PackageDetails) SetErrorDetails(v *ErrorDetails) *PackageDetails {
+ s.ErrorDetails = v
+ return s
+}
+
+// SetPackageDescription sets the PackageDescription field's value.
+func (s *PackageDetails) SetPackageDescription(v string) *PackageDetails {
+ s.PackageDescription = &v
+ return s
+}
+
+// SetPackageID sets the PackageID field's value.
+func (s *PackageDetails) SetPackageID(v string) *PackageDetails {
+ s.PackageID = &v
+ return s
+}
+
+// SetPackageName sets the PackageName field's value.
+func (s *PackageDetails) SetPackageName(v string) *PackageDetails {
+ s.PackageName = &v
+ return s
+}
+
+// SetPackageStatus sets the PackageStatus field's value.
+func (s *PackageDetails) SetPackageStatus(v string) *PackageDetails {
+ s.PackageStatus = &v
+ return s
+}
+
+// SetPackageType sets the PackageType field's value.
+func (s *PackageDetails) SetPackageType(v string) *PackageDetails {
+ s.PackageType = &v
+ return s
+}
+
+// The S3 location for importing the package specified as S3BucketName and S3Key
+type PackageSource struct {
+ _ struct{} `type:"structure"`
+
+ // Name of the bucket containing the package.
+ S3BucketName *string `min:"3" type:"string"`
+
+ // Key (file name) of the package.
+ S3Key *string `type:"string"`
+}
+
+// String returns the string representation
+func (s PackageSource) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageSource) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PackageSource) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PackageSource"}
+ if s.S3BucketName != nil && len(*s.S3BucketName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("S3BucketName", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetS3BucketName sets the S3BucketName field's value.
+func (s *PackageSource) SetS3BucketName(v string) *PackageSource {
+ s.S3BucketName = &v
+ return s
+}
+
+// SetS3Key sets the S3Key field's value.
+func (s *PackageSource) SetS3Key(v string) *PackageSource {
+ s.S3Key = &v
+ return s
+}
+
// Container for parameters to PurchaseReservedElasticsearchInstanceOffering
type PurchaseReservedElasticsearchInstanceOfferingInput struct {
_ struct{} `type:"structure"`
@@ -6248,8 +8089,8 @@ func (s *ReservedElasticsearchInstanceOffering) SetUsagePrice(v float64) *Reserv
// An exception for creating a resource that already exists. Gives http status
// code of 400.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6266,17 +8107,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6284,29 +8125,29 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An exception for accessing or deleting a resource that does not exist. Gives
// http status code of 400.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6323,17 +8164,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6341,22 +8182,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The current options of an Elasticsearch domain service software options.
@@ -6380,6 +8221,10 @@ type ServiceSoftwareOptions struct {
// The new service software version if one is available.
NewVersion *string `type:"string"`
+ // True if a service software is never automatically updated. False if a service
+ // software is automatically updated after AutomatedUpdateDate.
+ OptionalDeployment *bool `type:"boolean"`
+
// True if you are able to update you service software version. False if you
// are not able to update your service software version.
UpdateAvailable *bool `type:"boolean"`
@@ -6429,6 +8274,12 @@ func (s *ServiceSoftwareOptions) SetNewVersion(v string) *ServiceSoftwareOptions
return s
}
+// SetOptionalDeployment sets the OptionalDeployment field's value.
+func (s *ServiceSoftwareOptions) SetOptionalDeployment(v bool) *ServiceSoftwareOptions {
+ s.OptionalDeployment = &v
+ return s
+}
+
// SetUpdateAvailable sets the UpdateAvailable field's value.
func (s *ServiceSoftwareOptions) SetUpdateAvailable(v bool) *ServiceSoftwareOptions {
s.UpdateAvailable = &v
@@ -7273,8 +9124,8 @@ func (s *VPCOptions) SetSubnetIds(v []*string) *VPCOptions {
// An exception for missing / invalid input fields. Gives http status code of
// 400.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7291,17 +9142,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7309,22 +9160,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the zone awareness configuration for the domain cluster, such as
@@ -7371,6 +9222,34 @@ const (
DeploymentStatusEligible = "ELIGIBLE"
)
+const (
+ // DescribePackagesFilterNamePackageId is a DescribePackagesFilterName enum value
+ DescribePackagesFilterNamePackageId = "PackageID"
+
+ // DescribePackagesFilterNamePackageName is a DescribePackagesFilterName enum value
+ DescribePackagesFilterNamePackageName = "PackageName"
+
+ // DescribePackagesFilterNamePackageStatus is a DescribePackagesFilterName enum value
+ DescribePackagesFilterNamePackageStatus = "PackageStatus"
+)
+
+const (
+ // DomainPackageStatusAssociating is a DomainPackageStatus enum value
+ DomainPackageStatusAssociating = "ASSOCIATING"
+
+ // DomainPackageStatusAssociationFailed is a DomainPackageStatus enum value
+ DomainPackageStatusAssociationFailed = "ASSOCIATION_FAILED"
+
+ // DomainPackageStatusActive is a DomainPackageStatus enum value
+ DomainPackageStatusActive = "ACTIVE"
+
+ // DomainPackageStatusDissociating is a DomainPackageStatus enum value
+ DomainPackageStatusDissociating = "DISSOCIATING"
+
+ // DomainPackageStatusDissociationFailed is a DomainPackageStatus enum value
+ DomainPackageStatusDissociationFailed = "DISSOCIATION_FAILED"
+)
+
const (
// ESPartitionInstanceTypeM3MediumElasticsearch is a ESPartitionInstanceType enum value
ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch"
@@ -7593,6 +9472,37 @@ const (
OptionStateActive = "Active"
)
+const (
+ // PackageStatusCopying is a PackageStatus enum value
+ PackageStatusCopying = "COPYING"
+
+ // PackageStatusCopyFailed is a PackageStatus enum value
+ PackageStatusCopyFailed = "COPY_FAILED"
+
+ // PackageStatusValidating is a PackageStatus enum value
+ PackageStatusValidating = "VALIDATING"
+
+ // PackageStatusValidationFailed is a PackageStatus enum value
+ PackageStatusValidationFailed = "VALIDATION_FAILED"
+
+ // PackageStatusAvailable is a PackageStatus enum value
+ PackageStatusAvailable = "AVAILABLE"
+
+ // PackageStatusDeleting is a PackageStatus enum value
+ PackageStatusDeleting = "DELETING"
+
+ // PackageStatusDeleted is a PackageStatus enum value
+ PackageStatusDeleted = "DELETED"
+
+ // PackageStatusDeleteFailed is a PackageStatus enum value
+ PackageStatusDeleteFailed = "DELETE_FAILED"
+)
+
+const (
+ // PackageTypeTxtDictionary is a PackageType enum value
+ PackageTypeTxtDictionary = "TXT-DICTIONARY"
+)
+
const (
// ReservedElasticsearchInstancePaymentOptionAllUpfront is a ReservedElasticsearchInstancePaymentOption enum value
ReservedElasticsearchInstancePaymentOptionAllUpfront = "ALL_UPFRONT"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go
index 9773068cafa..d0ca4fe8804 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/errors.go
@@ -8,12 +8,26 @@ import (
const (
+ // ErrCodeAccessDeniedException for service response error code
+ // "AccessDeniedException".
+ //
+ // An error occurred because user does not have permissions to access the resource.
+ // Returns HTTP status code 403.
+ ErrCodeAccessDeniedException = "AccessDeniedException"
+
// ErrCodeBaseException for service response error code
// "BaseException".
//
// An error occurred while processing the request.
ErrCodeBaseException = "BaseException"
+ // ErrCodeConflictException for service response error code
+ // "ConflictException".
+ //
+ // An error occurred because the client attempts to remove a resource that is
+ // currently in use. Returns HTTP status code 409.
+ ErrCodeConflictException = "ConflictException"
+
// ErrCodeDisabledOperationException for service response error code
// "DisabledOperationException".
//
@@ -66,7 +80,9 @@ const (
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
"BaseException": newErrorBaseException,
+ "ConflictException": newErrorConflictException,
"DisabledOperationException": newErrorDisabledOperationException,
"InternalException": newErrorInternalException,
"InvalidTypeException": newErrorInvalidTypeException,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go
index 504a3e30815..7d37b50e969 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go
@@ -1865,8 +1865,8 @@ func (c *ElasticTranscoder) UpdatePipelineStatusWithContext(ctx aws.Context, inp
// General authentication failure. The request was not signed correctly.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1883,17 +1883,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1901,22 +1901,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The file to be used as album art. There can be multiple artworks associated
@@ -4095,8 +4095,8 @@ func (s *HlsContentProtection) SetMethod(v string) *HlsContentProtection {
}
type IncompatibleVersionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4113,17 +4113,17 @@ func (s IncompatibleVersionException) GoString() string {
func newErrorIncompatibleVersionException(v protocol.ResponseMetadata) error {
return &IncompatibleVersionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncompatibleVersionException) Code() string {
+func (s *IncompatibleVersionException) Code() string {
return "IncompatibleVersionException"
}
// Message returns the exception's message.
-func (s IncompatibleVersionException) Message() string {
+func (s *IncompatibleVersionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4131,22 +4131,22 @@ func (s IncompatibleVersionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncompatibleVersionException) OrigErr() error {
+func (s *IncompatibleVersionException) OrigErr() error {
return nil
}
-func (s IncompatibleVersionException) Error() string {
+func (s *IncompatibleVersionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncompatibleVersionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncompatibleVersionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncompatibleVersionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncompatibleVersionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The captions to be created, if any.
@@ -4224,8 +4224,8 @@ func (s *InputCaptions) SetMergePolicy(v string) *InputCaptions {
// Elastic Transcoder encountered an unexpected exception while trying to fulfill
// the request.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4242,17 +4242,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4260,22 +4260,22 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A section of the response body that provides information about the job that
@@ -5131,8 +5131,8 @@ func (s *JobWatermark) SetPresetWatermarkId(v string) *JobWatermark {
// Too many operations for a given AWS account. For example, the number of pipelines
// exceeds the maximum allowed.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5149,17 +5149,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5167,22 +5167,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The ListJobsByPipelineRequest structure.
@@ -6763,8 +6763,8 @@ func (s *ReadPresetOutput) SetPreset(v *Preset) *ReadPresetOutput {
// The resource you are attempting to change is in use. For example, you are
// attempting to delete a pipeline that is currently in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6781,17 +6781,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6799,30 +6799,30 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource does not exist or is not available. For example, the
// pipeline to which you're trying to add a job doesn't exist or is still being
// created.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6839,17 +6839,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6857,22 +6857,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The TestRoleRequest structure.
@@ -7708,8 +7708,8 @@ func (s *UpdatePipelineStatusOutput) SetPipeline(v *Pipeline) *UpdatePipelineSta
// One or more required parameter values were not provided in the request.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7726,17 +7726,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7744,22 +7744,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The VideoParameters structure.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go
index f0de166ef22..3633bd5f97e 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go
@@ -1059,6 +1059,80 @@ func (c *EMR) GetBlockPublicAccessConfigurationWithContext(ctx aws.Context, inpu
return out, req.Send()
}
+const opGetManagedScalingPolicy = "GetManagedScalingPolicy"
+
+// GetManagedScalingPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetManagedScalingPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetManagedScalingPolicy for more information on using the GetManagedScalingPolicy
+// 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 GetManagedScalingPolicyRequest method.
+// req, resp := client.GetManagedScalingPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetManagedScalingPolicy
+func (c *EMR) GetManagedScalingPolicyRequest(input *GetManagedScalingPolicyInput) (req *request.Request, output *GetManagedScalingPolicyOutput) {
+ op := &request.Operation{
+ Name: opGetManagedScalingPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetManagedScalingPolicyInput{}
+ }
+
+ output = &GetManagedScalingPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetManagedScalingPolicy API operation for Amazon Elastic MapReduce.
+//
+// Fetches the attached managed scaling policy for an Amazon EMR cluster.
+//
+// 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 Elastic MapReduce's
+// API operation GetManagedScalingPolicy for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetManagedScalingPolicy
+func (c *EMR) GetManagedScalingPolicy(input *GetManagedScalingPolicyInput) (*GetManagedScalingPolicyOutput, error) {
+ req, out := c.GetManagedScalingPolicyRequest(input)
+ return out, req.Send()
+}
+
+// GetManagedScalingPolicyWithContext is the same as GetManagedScalingPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetManagedScalingPolicy 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 *EMR) GetManagedScalingPolicyWithContext(ctx aws.Context, input *GetManagedScalingPolicyInput, opts ...request.Option) (*GetManagedScalingPolicyOutput, error) {
+ req, out := c.GetManagedScalingPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListBootstrapActions = "ListBootstrapActions"
// ListBootstrapActionsRequest generates a "aws/request.Request" representing the
@@ -2473,6 +2547,84 @@ func (c *EMR) PutBlockPublicAccessConfigurationWithContext(ctx aws.Context, inpu
return out, req.Send()
}
+const opPutManagedScalingPolicy = "PutManagedScalingPolicy"
+
+// PutManagedScalingPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutManagedScalingPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutManagedScalingPolicy for more information on using the PutManagedScalingPolicy
+// 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 PutManagedScalingPolicyRequest method.
+// req, resp := client.PutManagedScalingPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutManagedScalingPolicy
+func (c *EMR) PutManagedScalingPolicyRequest(input *PutManagedScalingPolicyInput) (req *request.Request, output *PutManagedScalingPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutManagedScalingPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutManagedScalingPolicyInput{}
+ }
+
+ output = &PutManagedScalingPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutManagedScalingPolicy API operation for Amazon Elastic MapReduce.
+//
+// Creates or updates a managed scaling policy for an Amazon EMR cluster. The
+// managed scaling policy defines the limits for resources, such as EC2 instances
+// that can be added or terminated from a cluster. The policy only applies to
+// the core and task nodes. The master node cannot be scaled after initial configuration.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic MapReduce's
+// API operation PutManagedScalingPolicy for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutManagedScalingPolicy
+func (c *EMR) PutManagedScalingPolicy(input *PutManagedScalingPolicyInput) (*PutManagedScalingPolicyOutput, error) {
+ req, out := c.PutManagedScalingPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutManagedScalingPolicyWithContext is the same as PutManagedScalingPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutManagedScalingPolicy 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 *EMR) PutManagedScalingPolicyWithContext(ctx aws.Context, input *PutManagedScalingPolicyInput, opts ...request.Option) (*PutManagedScalingPolicyOutput, error) {
+ req, out := c.PutManagedScalingPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opRemoveAutoScalingPolicy = "RemoveAutoScalingPolicy"
// RemoveAutoScalingPolicyRequest generates a "aws/request.Request" representing the
@@ -2549,6 +2701,81 @@ func (c *EMR) RemoveAutoScalingPolicyWithContext(ctx aws.Context, input *RemoveA
return out, req.Send()
}
+const opRemoveManagedScalingPolicy = "RemoveManagedScalingPolicy"
+
+// RemoveManagedScalingPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the RemoveManagedScalingPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RemoveManagedScalingPolicy for more information on using the RemoveManagedScalingPolicy
+// 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 RemoveManagedScalingPolicyRequest method.
+// req, resp := client.RemoveManagedScalingPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveManagedScalingPolicy
+func (c *EMR) RemoveManagedScalingPolicyRequest(input *RemoveManagedScalingPolicyInput) (req *request.Request, output *RemoveManagedScalingPolicyOutput) {
+ op := &request.Operation{
+ Name: opRemoveManagedScalingPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RemoveManagedScalingPolicyInput{}
+ }
+
+ output = &RemoveManagedScalingPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// RemoveManagedScalingPolicy API operation for Amazon Elastic MapReduce.
+//
+// Removes a managed scaling policy from a specified EMR cluster.
+//
+// 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 Elastic MapReduce's
+// API operation RemoveManagedScalingPolicy for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveManagedScalingPolicy
+func (c *EMR) RemoveManagedScalingPolicy(input *RemoveManagedScalingPolicyInput) (*RemoveManagedScalingPolicyOutput, error) {
+ req, out := c.RemoveManagedScalingPolicyRequest(input)
+ return out, req.Send()
+}
+
+// RemoveManagedScalingPolicyWithContext is the same as RemoveManagedScalingPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RemoveManagedScalingPolicy 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 *EMR) RemoveManagedScalingPolicyWithContext(ctx aws.Context, input *RemoveManagedScalingPolicyInput, opts ...request.Option) (*RemoveManagedScalingPolicyOutput, error) {
+ req, out := c.RemoveManagedScalingPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a "aws/request.Request" representing the
@@ -4646,6 +4873,97 @@ func (s *Command) SetScriptPath(v string) *Command {
return s
}
+// The EC2 unit limits for a managed scaling policy. The managed scaling activity
+// of a cluster can not be above or below these limits. The limit only applies
+// to the core and task nodes. The master node cannot be scaled after initial
+// configuration.
+type ComputeLimits struct {
+ _ struct{} `type:"structure"`
+
+ // The upper boundary of EC2 units. It is measured through VCPU cores or instances
+ // for instance groups and measured through units for instance fleets. Managed
+ // scaling activities are not allowed beyond this boundary. The limit only applies
+ // to the core and task nodes. The master node cannot be scaled after initial
+ // configuration.
+ //
+ // MaximumCapacityUnits is a required field
+ MaximumCapacityUnits *int64 `type:"integer" required:"true"`
+
+ // The upper boundary of on-demand EC2 units. It is measured through VCPU cores
+ // or instances for instance groups and measured through units for instance
+ // fleets. The on-demand units are not allowed to scale beyond this boundary.
+ // The limit only applies to the core and task nodes. The master node cannot
+ // be scaled after initial configuration.
+ MaximumOnDemandCapacityUnits *int64 `type:"integer"`
+
+ // The lower boundary of EC2 units. It is measured through VCPU cores or instances
+ // for instance groups and measured through units for instance fleets. Managed
+ // scaling activities are not allowed beyond this boundary. The limit only applies
+ // to the core and task nodes. The master node cannot be scaled after initial
+ // configuration.
+ //
+ // MinimumCapacityUnits is a required field
+ MinimumCapacityUnits *int64 `type:"integer" required:"true"`
+
+ // The unit type used for specifying a managed scaling policy.
+ //
+ // UnitType is a required field
+ UnitType *string `type:"string" required:"true" enum:"ComputeLimitsUnitType"`
+}
+
+// String returns the string representation
+func (s ComputeLimits) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ComputeLimits) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ComputeLimits) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ComputeLimits"}
+ if s.MaximumCapacityUnits == nil {
+ invalidParams.Add(request.NewErrParamRequired("MaximumCapacityUnits"))
+ }
+ if s.MinimumCapacityUnits == nil {
+ invalidParams.Add(request.NewErrParamRequired("MinimumCapacityUnits"))
+ }
+ if s.UnitType == nil {
+ invalidParams.Add(request.NewErrParamRequired("UnitType"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaximumCapacityUnits sets the MaximumCapacityUnits field's value.
+func (s *ComputeLimits) SetMaximumCapacityUnits(v int64) *ComputeLimits {
+ s.MaximumCapacityUnits = &v
+ return s
+}
+
+// SetMaximumOnDemandCapacityUnits sets the MaximumOnDemandCapacityUnits field's value.
+func (s *ComputeLimits) SetMaximumOnDemandCapacityUnits(v int64) *ComputeLimits {
+ s.MaximumOnDemandCapacityUnits = &v
+ return s
+}
+
+// SetMinimumCapacityUnits sets the MinimumCapacityUnits field's value.
+func (s *ComputeLimits) SetMinimumCapacityUnits(v int64) *ComputeLimits {
+ s.MinimumCapacityUnits = &v
+ return s
+}
+
+// SetUnitType sets the UnitType field's value.
+func (s *ComputeLimits) SetUnitType(v string) *ComputeLimits {
+ s.UnitType = &v
+ return s
+}
+
//
// Amazon EMR releases 4.x or later.
//
@@ -5521,6 +5839,12 @@ type GetBlockPublicAccessConfigurationOutput struct {
// and public access is allowed on this port. You can change this by updating
// the block public access configuration to remove the exception.
//
+ // For accounts that created clusters in a Region before November 25, 2019,
+ // block public access is disabled by default in that Region. To use this feature,
+ // you must manually enable and configure it. For accounts that did not create
+ // an EMR cluster in a Region before this date, block public access is enabled
+ // by default in that Region.
+ //
// BlockPublicAccessConfiguration is a required field
BlockPublicAccessConfiguration *BlockPublicAccessConfiguration `type:"structure" required:"true"`
@@ -5555,6 +5879,68 @@ func (s *GetBlockPublicAccessConfigurationOutput) SetBlockPublicAccessConfigurat
return s
}
+type GetManagedScalingPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the ID of the cluster for which the managed scaling policy will
+ // be fetched.
+ //
+ // ClusterId is a required field
+ ClusterId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetManagedScalingPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetManagedScalingPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetManagedScalingPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetManagedScalingPolicyInput"}
+ if s.ClusterId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClusterId sets the ClusterId field's value.
+func (s *GetManagedScalingPolicyInput) SetClusterId(v string) *GetManagedScalingPolicyInput {
+ s.ClusterId = &v
+ return s
+}
+
+type GetManagedScalingPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
+ ManagedScalingPolicy *ManagedScalingPolicy `type:"structure"`
+}
+
+// String returns the string representation
+func (s GetManagedScalingPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetManagedScalingPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetManagedScalingPolicy sets the ManagedScalingPolicy field's value.
+func (s *GetManagedScalingPolicyOutput) SetManagedScalingPolicy(v *ManagedScalingPolicy) *GetManagedScalingPolicyOutput {
+ s.ManagedScalingPolicy = v
+ return s
+}
+
// A job flow step consisting of a JAR file whose main function will be executed.
// The main function submits a job for Hadoop to execute and waits for the job
// to finish or fail.
@@ -7392,8 +7778,8 @@ func (s *InstanceTypeSpecification) SetWeightedCapacity(v int64) *InstanceTypeSp
// Indicates that an error occurred while processing the request and that the
// request was not completed.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7410,17 +7796,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7428,28 +7814,28 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception occurs when there is an internal failure in the EMR service.
type InternalServerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message associated with the exception.
Message_ *string `locationName:"Message" type:"string"`
@@ -7467,17 +7853,17 @@ func (s InternalServerException) GoString() string {
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerException) Code() string {
+func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
-func (s InternalServerException) Message() string {
+func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7485,28 +7871,28 @@ func (s InternalServerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerException) OrigErr() error {
+func (s *InternalServerException) OrigErr() error {
return nil
}
-func (s InternalServerException) Error() string {
+func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception occurs when there is something wrong with user input.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error code associated with the exception.
ErrorCode *string `min:"1" type:"string"`
@@ -7527,17 +7913,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7545,22 +7931,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A description of a cluster (job flow).
@@ -8933,6 +9319,51 @@ func (s *ListStepsOutput) SetSteps(v []*StepSummary) *ListStepsOutput {
return s
}
+// Managed scaling policy for an Amazon EMR cluster. The policy specifies the
+// limits for resources that can be added or terminated from a cluster. The
+// policy only applies to the core and task nodes. The master node cannot be
+// scaled after initial configuration.
+type ManagedScalingPolicy struct {
+ _ struct{} `type:"structure"`
+
+ // The EC2 unit limits for a managed scaling policy. The managed scaling activity
+ // of a cluster is not allowed to go above or below these limits. The limit
+ // only applies to the core and task nodes. The master node cannot be scaled
+ // after initial configuration.
+ ComputeLimits *ComputeLimits `type:"structure"`
+}
+
+// String returns the string representation
+func (s ManagedScalingPolicy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ManagedScalingPolicy) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ManagedScalingPolicy) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ManagedScalingPolicy"}
+ if s.ComputeLimits != nil {
+ if err := s.ComputeLimits.Validate(); err != nil {
+ invalidParams.AddNested("ComputeLimits", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetComputeLimits sets the ComputeLimits field's value.
+func (s *ManagedScalingPolicy) SetComputeLimits(v *ComputeLimits) *ManagedScalingPolicy {
+ s.ComputeLimits = v
+ return s
+}
+
// A CloudWatch dimension, which is specified using a Key (known as a Name in
// CloudWatch), Value pair. By default, Amazon EMR uses one dimension whose
// Key is JobFlowID and Value is a variable representing the cluster ID, which
@@ -9407,6 +9838,12 @@ type PutBlockPublicAccessConfigurationInput struct {
// and public access is allowed on this port. You can change this by updating
// BlockPublicSecurityGroupRules to remove the exception.
//
+ // For accounts that created clusters in a Region before November 25, 2019,
+ // block public access is disabled by default in that Region. To use this feature,
+ // you must manually enable and configure it. For accounts that did not create
+ // an EMR cluster in a Region before this date, block public access is enabled
+ // by default in that Region.
+ //
// BlockPublicAccessConfiguration is a required field
BlockPublicAccessConfiguration *BlockPublicAccessConfiguration `type:"structure" required:"true"`
}
@@ -9459,6 +9896,77 @@ func (s PutBlockPublicAccessConfigurationOutput) GoString() string {
return s.String()
}
+type PutManagedScalingPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the ID of an EMR cluster where the managed scaling policy is attached.
+ //
+ // ClusterId is a required field
+ ClusterId *string `type:"string" required:"true"`
+
+ // Specifies the constraints for the managed scaling policy.
+ //
+ // ManagedScalingPolicy is a required field
+ ManagedScalingPolicy *ManagedScalingPolicy `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s PutManagedScalingPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutManagedScalingPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutManagedScalingPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutManagedScalingPolicyInput"}
+ if s.ClusterId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterId"))
+ }
+ if s.ManagedScalingPolicy == nil {
+ invalidParams.Add(request.NewErrParamRequired("ManagedScalingPolicy"))
+ }
+ if s.ManagedScalingPolicy != nil {
+ if err := s.ManagedScalingPolicy.Validate(); err != nil {
+ invalidParams.AddNested("ManagedScalingPolicy", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClusterId sets the ClusterId field's value.
+func (s *PutManagedScalingPolicyInput) SetClusterId(v string) *PutManagedScalingPolicyInput {
+ s.ClusterId = &v
+ return s
+}
+
+// SetManagedScalingPolicy sets the ManagedScalingPolicy field's value.
+func (s *PutManagedScalingPolicyInput) SetManagedScalingPolicy(v *ManagedScalingPolicy) *PutManagedScalingPolicyInput {
+ s.ManagedScalingPolicy = v
+ return s
+}
+
+type PutManagedScalingPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s PutManagedScalingPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutManagedScalingPolicyOutput) GoString() string {
+ return s.String()
+}
+
type RemoveAutoScalingPolicyInput struct {
_ struct{} `type:"structure"`
@@ -9526,6 +10034,59 @@ func (s RemoveAutoScalingPolicyOutput) GoString() string {
return s.String()
}
+type RemoveManagedScalingPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the ID of the cluster from which the managed scaling policy will
+ // be removed.
+ //
+ // ClusterId is a required field
+ ClusterId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RemoveManagedScalingPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveManagedScalingPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RemoveManagedScalingPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RemoveManagedScalingPolicyInput"}
+ if s.ClusterId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClusterId sets the ClusterId field's value.
+func (s *RemoveManagedScalingPolicyInput) SetClusterId(v string) *RemoveManagedScalingPolicyInput {
+ s.ClusterId = &v
+ return s
+}
+
+type RemoveManagedScalingPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s RemoveManagedScalingPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveManagedScalingPolicyOutput) GoString() string {
+ return s.String()
+}
+
// This input identifies a cluster and a list of tags to remove.
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
@@ -9663,6 +10224,9 @@ type RunJobFlowInput struct {
// is not provided, logs are not created.
LogUri *string `type:"string"`
+ // The specified managed scaling policy for an Amazon EMR cluster.
+ ManagedScalingPolicy *ManagedScalingPolicy `type:"structure"`
+
// The name of the job flow.
//
// Name is a required field
@@ -9804,6 +10368,11 @@ func (s *RunJobFlowInput) Validate() error {
invalidParams.AddNested("KerberosAttributes", err.(request.ErrInvalidParams))
}
}
+ if s.ManagedScalingPolicy != nil {
+ if err := s.ManagedScalingPolicy.Validate(); err != nil {
+ invalidParams.AddNested("ManagedScalingPolicy", err.(request.ErrInvalidParams))
+ }
+ }
if s.Steps != nil {
for i, v := range s.Steps {
if v == nil {
@@ -9893,6 +10462,12 @@ func (s *RunJobFlowInput) SetLogUri(v string) *RunJobFlowInput {
return s
}
+// SetManagedScalingPolicy sets the ManagedScalingPolicy field's value.
+func (s *RunJobFlowInput) SetManagedScalingPolicy(v *ManagedScalingPolicy) *RunJobFlowInput {
+ s.ManagedScalingPolicy = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *RunJobFlowInput) SetName(v string) *RunJobFlowInput {
s.Name = &v
@@ -11404,6 +11979,17 @@ const (
ComparisonOperatorLessThanOrEqual = "LESS_THAN_OR_EQUAL"
)
+const (
+ // ComputeLimitsUnitTypeInstanceFleetUnits is a ComputeLimitsUnitType enum value
+ ComputeLimitsUnitTypeInstanceFleetUnits = "InstanceFleetUnits"
+
+ // ComputeLimitsUnitTypeInstances is a ComputeLimitsUnitType enum value
+ ComputeLimitsUnitTypeInstances = "Instances"
+
+ // ComputeLimitsUnitTypeVcpu is a ComputeLimitsUnitType enum value
+ ComputeLimitsUnitTypeVcpu = "VCPU"
+)
+
const (
// InstanceCollectionTypeInstanceFleet is a InstanceCollectionType enum value
InstanceCollectionTypeInstanceFleet = "INSTANCE_FLEET"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go
index b07a4fc7ed5..63f397348f4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go
@@ -866,9 +866,11 @@ func (c *Firehose) StartDeliveryStreamEncryptionRequest(input *StartDeliveryStre
//
// Even if encryption is currently enabled for a delivery stream, you can still
// invoke this operation on it to change the ARN of the CMK or both its type
-// and ARN. In this case, Kinesis Data Firehose schedules the grant it had on
-// the old CMK for retirement and creates a grant that enables it to use the
-// new CMK to encrypt and decrypt data and to manage the grant.
+// and ARN. If you invoke this method to change the CMK, and the old CMK is
+// of type CUSTOMER_MANAGED_CMK, Kinesis Data Firehose schedules the grant it
+// had on the old CMK for retirement. If the new CMK is of type CUSTOMER_MANAGED_CMK,
+// Kinesis Data Firehose creates a grant that enables it to use the new CMK
+// to encrypt and decrypt data and to manage the grant.
//
// If a delivery stream already has encryption enabled and then you invoke this
// operation to change the ARN of the CMK or both its type and ARN and you get
@@ -876,10 +878,12 @@ func (c *Firehose) StartDeliveryStreamEncryptionRequest(input *StartDeliveryStre
// In this case, encryption remains enabled with the old CMK.
//
// If the encryption status of your delivery stream is ENABLING_FAILED, you
-// can invoke this operation again.
+// can invoke this operation again with a valid CMK. The CMK must be enabled
+// and the key policy mustn't explicitly deny the permission for Kinesis Data
+// Firehose to invoke KMS encrypt and decrypt operations.
//
-// You can only enable SSE for a delivery stream that uses DirectPut as its
-// source.
+// You can enable SSE for a delivery stream only if it's a delivery stream that
+// uses DirectPut as its source.
//
// The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations
// have a combined limit of 25 calls per delivery stream per 24 hours. For example,
@@ -1470,8 +1474,8 @@ func (s *CloudWatchLoggingOptions) SetLogStreamName(v string) *CloudWatchLogging
// Another modification has already happened. Fetch VersionId again and use
// it to update the destination.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -1489,17 +1493,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1507,22 +1511,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a COPY command for Amazon Redshift.
@@ -1831,14 +1835,17 @@ type DataFormatConversionConfiguration struct {
Enabled *bool `type:"boolean"`
// Specifies the deserializer that you want Kinesis Data Firehose to use to
- // convert the format of your data from JSON.
+ // convert the format of your data from JSON. This parameter is required if
+ // Enabled is set to true.
InputFormatConfiguration *InputFormatConfiguration `type:"structure"`
// Specifies the serializer that you want Kinesis Data Firehose to use to convert
- // the format of your data to the Parquet or ORC format.
+ // the format of your data to the Parquet or ORC format. This parameter is required
+ // if Enabled is set to true.
OutputFormatConfiguration *OutputFormatConfiguration `type:"structure"`
// Specifies the AWS Glue Data Catalog table that contains the column information.
+ // This parameter is required if Enabled is set to true.
SchemaConfiguration *SchemaConfiguration `type:"structure"`
}
@@ -1860,6 +1867,11 @@ func (s *DataFormatConversionConfiguration) Validate() error {
invalidParams.AddNested("OutputFormatConfiguration", err.(request.ErrInvalidParams))
}
}
+ if s.SchemaConfiguration != nil {
+ if err := s.SchemaConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("SchemaConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -2179,8 +2191,8 @@ func (s *DeliveryStreamEncryptionConfiguration) SetStatus(v string) *DeliveryStr
return s
}
-// Used to specify the type and Amazon Resource Name (ARN) of the CMK needed
-// for Server-Side Encryption (SSE).
+// Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side
+// Encryption (SSE).
type DeliveryStreamEncryptionConfigurationInput struct {
_ struct{} `type:"structure"`
@@ -2200,8 +2212,17 @@ type DeliveryStreamEncryptionConfigurationInput struct {
// manages that grant.
//
// When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery
- // stream that is already encrypted with a customer managed CMK, Kinesis Data
- // Firehose schedules the grant it had on the old CMK for retirement.
+ // stream that is encrypted with a customer managed CMK, Kinesis Data Firehose
+ // schedules the grant it had on the old CMK for retirement.
+ //
+ // You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery
+ // streams. If a CreateDeliveryStream or StartDeliveryStreamEncryption operation
+ // exceeds this limit, Kinesis Data Firehose throws a LimitExceededException.
+ //
+ // To encrypt your delivery stream, use symmetric CMKs. Kinesis Data Firehose
+ // doesn't support asymmetric CMKs. For information about symmetric and asymmetric
+ // CMKs, see About Symmetric and Asymmetric CMKs (https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html)
+ // in the AWS Key Management Service developer guide.
//
// KeyType is a required field
KeyType *string `type:"string" required:"true" enum:"KeyType"`
@@ -2581,6 +2602,9 @@ type ElasticsearchDestinationConfiguration struct {
//
// For Elasticsearch 7.x, don't specify a TypeName.
TypeName *string `type:"string"`
+
+ // The details of the VPC of the Amazon ES destination.
+ VpcConfiguration *VpcConfiguration `type:"structure"`
}
// String returns the string representation
@@ -2632,6 +2656,11 @@ func (s *ElasticsearchDestinationConfiguration) Validate() error {
invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams))
}
}
+ if s.VpcConfiguration != nil {
+ if err := s.VpcConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -2711,6 +2740,12 @@ func (s *ElasticsearchDestinationConfiguration) SetTypeName(v string) *Elasticse
return s
}
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *ElasticsearchDestinationConfiguration) SetVpcConfiguration(v *VpcConfiguration) *ElasticsearchDestinationConfiguration {
+ s.VpcConfiguration = v
+ return s
+}
+
// The destination description in Amazon ES.
type ElasticsearchDestinationDescription struct {
_ struct{} `type:"structure"`
@@ -2758,6 +2793,9 @@ type ElasticsearchDestinationDescription struct {
// The Elasticsearch type name. This applies to Elasticsearch 6.x and lower
// versions. For Elasticsearch 7.x, there's no value for TypeName.
TypeName *string `type:"string"`
+
+ // The details of the VPC of the Amazon ES destination.
+ VpcConfigurationDescription *VpcConfigurationDescription `type:"structure"`
}
// String returns the string representation
@@ -2842,6 +2880,12 @@ func (s *ElasticsearchDestinationDescription) SetTypeName(v string) *Elasticsear
return s
}
+// SetVpcConfigurationDescription sets the VpcConfigurationDescription field's value.
+func (s *ElasticsearchDestinationDescription) SetVpcConfigurationDescription(v *VpcConfigurationDescription) *ElasticsearchDestinationDescription {
+ s.VpcConfigurationDescription = v
+ return s
+}
+
// Describes an update for a destination in Amazon ES.
type ElasticsearchDestinationUpdate struct {
_ struct{} `type:"structure"`
@@ -3600,7 +3644,7 @@ type FailureDescription struct {
// A message providing details about the error that caused the failure.
//
// Details is a required field
- Details *string `type:"string" required:"true"`
+ Details *string `min:"1" type:"string" required:"true"`
// The type of error that caused the failure.
//
@@ -3665,7 +3709,7 @@ func (s *HiveJsonSerDe) SetTimestampFormats(v []*string) *HiveJsonSerDe {
}
// Specifies the deserializer you want to use to convert the format of the input
-// data.
+// data. This parameter is required if Enabled is set to true.
type InputFormatConfiguration struct {
_ struct{} `type:"structure"`
@@ -3693,8 +3737,8 @@ func (s *InputFormatConfiguration) SetDeserializer(v *Deserializer) *InputFormat
// The specified input parameter has a value that is not valid.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -3712,17 +3756,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3730,22 +3774,22 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Kinesis Data Firehose throws this exception when an attempt to put records
@@ -3753,8 +3797,8 @@ func (s InvalidArgumentException) RequestID() string {
// KMS service throws one of the following exception types: AccessDeniedException,
// InvalidStateException, DisabledException, or NotFoundException.
type InvalidKMSResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -3773,17 +3817,17 @@ func (s InvalidKMSResourceException) GoString() string {
func newErrorInvalidKMSResourceException(v protocol.ResponseMetadata) error {
return &InvalidKMSResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidKMSResourceException) Code() string {
+func (s *InvalidKMSResourceException) Code() string {
return "InvalidKMSResourceException"
}
// Message returns the exception's message.
-func (s InvalidKMSResourceException) Message() string {
+func (s *InvalidKMSResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3791,22 +3835,22 @@ func (s InvalidKMSResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidKMSResourceException) OrigErr() error {
+func (s *InvalidKMSResourceException) OrigErr() error {
return nil
}
-func (s InvalidKMSResourceException) Error() string {
+func (s *InvalidKMSResourceException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidKMSResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidKMSResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidKMSResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidKMSResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an encryption key for a destination in Amazon S3.
@@ -3964,8 +4008,8 @@ func (s *KinesisStreamSourceDescription) SetRoleARN(v string) *KinesisStreamSour
// You have already reached the limit for a requested resource.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -3983,17 +4027,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4001,22 +4045,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListDeliveryStreamsInput struct {
@@ -4438,7 +4482,8 @@ func (s *OrcSerDe) SetStripeSizeBytes(v int64) *OrcSerDe {
}
// Specifies the serializer that you want Kinesis Data Firehose to use to convert
-// the format of your data before it writes it to Amazon S3.
+// the format of your data before it writes it to Amazon S3. This parameter
+// is required if Enabled is set to true.
type OutputFormatConfiguration struct {
_ struct{} `type:"structure"`
@@ -5540,8 +5585,8 @@ func (s *RedshiftRetryOptions) SetDurationInSeconds(v int64) *RedshiftRetryOptio
// The resource is already in use and not available for this operation.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5559,17 +5604,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5577,28 +5622,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource could not be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5616,17 +5661,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5634,22 +5679,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the configuration of a destination in Amazon S3.
@@ -6021,35 +6066,36 @@ func (s *S3DestinationUpdate) SetRoleARN(v string) *S3DestinationUpdate {
}
// Specifies the schema to which you want Kinesis Data Firehose to configure
-// your data before it writes it to Amazon S3.
+// your data before it writes it to Amazon S3. This parameter is required if
+// Enabled is set to true.
type SchemaConfiguration struct {
_ struct{} `type:"structure"`
// The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account
// ID is used by default.
- CatalogId *string `type:"string"`
+ CatalogId *string `min:"1" type:"string"`
// Specifies the name of the AWS Glue database that contains the schema for
// the output data.
- DatabaseName *string `type:"string"`
+ DatabaseName *string `min:"1" type:"string"`
// If you don't specify an AWS Region, the default is the current Region.
- Region *string `type:"string"`
+ Region *string `min:"1" type:"string"`
// The role that Kinesis Data Firehose can use to access AWS Glue. This role
// must be in the same account you use for Kinesis Data Firehose. Cross-account
// roles aren't allowed.
- RoleARN *string `type:"string"`
+ RoleARN *string `min:"1" type:"string"`
// Specifies the AWS Glue table that contains the column information that constitutes
// your data schema.
- TableName *string `type:"string"`
+ TableName *string `min:"1" type:"string"`
// Specifies the table version for the output data schema. If you don't specify
// this version ID, or if you set it to LATEST, Kinesis Data Firehose uses the
// most recent version. This means that any updates to the table are automatically
// picked up.
- VersionId *string `type:"string"`
+ VersionId *string `min:"1" type:"string"`
}
// String returns the string representation
@@ -6062,6 +6108,34 @@ func (s SchemaConfiguration) GoString() string {
return s.String()
}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SchemaConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SchemaConfiguration"}
+ if s.CatalogId != nil && len(*s.CatalogId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("CatalogId", 1))
+ }
+ if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
+ }
+ if s.Region != nil && len(*s.Region) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Region", 1))
+ }
+ if s.RoleARN != nil && len(*s.RoleARN) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
+ }
+ if s.TableName != nil && len(*s.TableName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TableName", 1))
+ }
+ if s.VersionId != nil && len(*s.VersionId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("VersionId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
// SetCatalogId sets the CatalogId field's value.
func (s *SchemaConfiguration) SetCatalogId(v string) *SchemaConfiguration {
s.CatalogId = &v
@@ -6161,8 +6235,8 @@ func (s *Serializer) SetParquetSerDe(v *ParquetSerDe) *Serializer {
// been exceeded. For more information about limits and how to request an increase,
// see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html).
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -6180,17 +6254,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6198,22 +6272,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about a Kinesis data stream used as the source for a Kinesis Data
@@ -7154,6 +7228,173 @@ func (s UpdateDestinationOutput) GoString() string {
return s.String()
}
+// The details of the VPC of the Amazon ES destination.
+type VpcConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the IAM role that you want the delivery stream to use to create
+ // endpoints in the destination VPC.
+ //
+ // RoleARN is a required field
+ RoleARN *string `min:"1" type:"string" required:"true"`
+
+ // The IDs of the security groups that you want Kinesis Data Firehose to use
+ // when it creates ENIs in the VPC of the Amazon ES destination.
+ //
+ // SecurityGroupIds is a required field
+ SecurityGroupIds []*string `min:"1" type:"list" required:"true"`
+
+ // The IDs of the subnets that you want Kinesis Data Firehose to use to create
+ // ENIs in the VPC of the Amazon ES destination. Make sure that the routing
+ // tables and inbound and outbound rules allow traffic to flow from the subnets
+ // whose IDs are specified here to the subnets that have the destination Amazon
+ // ES endpoints. Kinesis Data Firehose creates at least one ENI in each of the
+ // subnets that are specified here. Do not delete or modify these ENIs.
+ //
+ // The number of ENIs that Kinesis Data Firehose creates in the subnets specified
+ // here scales up and down automatically based on throughput. To enable Kinesis
+ // Data Firehose to scale up the number of ENIs to match throughput, ensure
+ // that you have sufficient quota. To help you calculate the quota you need,
+ // assume that Kinesis Data Firehose can create up to three ENIs for this delivery
+ // stream for each of the subnets specified here. For more information about
+ // ENI quota, see Network Interfaces (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-enis)
+ // in the Amazon VPC Quotas topic.
+ //
+ // SubnetIds is a required field
+ SubnetIds []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s VpcConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *VpcConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "VpcConfiguration"}
+ if s.RoleARN == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleARN"))
+ }
+ if s.RoleARN != nil && len(*s.RoleARN) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
+ }
+ if s.SecurityGroupIds == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
+ }
+ if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1))
+ }
+ if s.SubnetIds == nil {
+ invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
+ }
+ if s.SubnetIds != nil && len(s.SubnetIds) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SubnetIds", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetRoleARN sets the RoleARN field's value.
+func (s *VpcConfiguration) SetRoleARN(v string) *VpcConfiguration {
+ s.RoleARN = &v
+ return s
+}
+
+// SetSecurityGroupIds sets the SecurityGroupIds field's value.
+func (s *VpcConfiguration) SetSecurityGroupIds(v []*string) *VpcConfiguration {
+ s.SecurityGroupIds = v
+ return s
+}
+
+// SetSubnetIds sets the SubnetIds field's value.
+func (s *VpcConfiguration) SetSubnetIds(v []*string) *VpcConfiguration {
+ s.SubnetIds = v
+ return s
+}
+
+// The details of the VPC of the Amazon ES destination.
+type VpcConfigurationDescription struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the IAM role that you want the delivery stream uses to create
+ // endpoints in the destination VPC.
+ //
+ // RoleARN is a required field
+ RoleARN *string `min:"1" type:"string" required:"true"`
+
+ // The IDs of the security groups that Kinesis Data Firehose uses when it creates
+ // ENIs in the VPC of the Amazon ES destination.
+ //
+ // SecurityGroupIds is a required field
+ SecurityGroupIds []*string `min:"1" type:"list" required:"true"`
+
+ // The IDs of the subnets that Kinesis Data Firehose uses to create ENIs in
+ // the VPC of the Amazon ES destination. Make sure that the routing tables and
+ // inbound and outbound rules allow traffic to flow from the subnets whose IDs
+ // are specified here to the subnets that have the destination Amazon ES endpoints.
+ // Kinesis Data Firehose creates at least one ENI in each of the subnets that
+ // are specified here. Do not delete or modify these ENIs.
+ //
+ // The number of ENIs that Kinesis Data Firehose creates in the subnets specified
+ // here scales up and down automatically based on throughput. To enable Kinesis
+ // Data Firehose to scale up the number of ENIs to match throughput, ensure
+ // that you have sufficient quota. To help you calculate the quota you need,
+ // assume that Kinesis Data Firehose can create up to three ENIs for this delivery
+ // stream for each of the subnets specified here. For more information about
+ // ENI quota, see Network Interfaces (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-enis)
+ // in the Amazon VPC Quotas topic.
+ //
+ // SubnetIds is a required field
+ SubnetIds []*string `min:"1" type:"list" required:"true"`
+
+ // The ID of the Amazon ES destination's VPC.
+ //
+ // VpcId is a required field
+ VpcId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s VpcConfigurationDescription) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcConfigurationDescription) GoString() string {
+ return s.String()
+}
+
+// SetRoleARN sets the RoleARN field's value.
+func (s *VpcConfigurationDescription) SetRoleARN(v string) *VpcConfigurationDescription {
+ s.RoleARN = &v
+ return s
+}
+
+// SetSecurityGroupIds sets the SecurityGroupIds field's value.
+func (s *VpcConfigurationDescription) SetSecurityGroupIds(v []*string) *VpcConfigurationDescription {
+ s.SecurityGroupIds = v
+ return s
+}
+
+// SetSubnetIds sets the SubnetIds field's value.
+func (s *VpcConfigurationDescription) SetSubnetIds(v []*string) *VpcConfigurationDescription {
+ s.SubnetIds = v
+ return s
+}
+
+// SetVpcId sets the VpcId field's value.
+func (s *VpcConfigurationDescription) SetVpcId(v string) *VpcConfigurationDescription {
+ s.VpcId = &v
+ return s
+}
+
const (
// CompressionFormatUncompressed is a CompressionFormat enum value
CompressionFormatUncompressed = "UNCOMPRESSED"
@@ -7166,6 +7407,9 @@ const (
// CompressionFormatSnappy is a CompressionFormat enum value
CompressionFormatSnappy = "Snappy"
+
+ // CompressionFormatHadoopSnappy is a CompressionFormat enum value
+ CompressionFormatHadoopSnappy = "HADOOP_SNAPPY"
)
const (
@@ -7210,6 +7454,27 @@ const (
// DeliveryStreamFailureTypeKmsOptInRequired is a DeliveryStreamFailureType enum value
DeliveryStreamFailureTypeKmsOptInRequired = "KMS_OPT_IN_REQUIRED"
+ // DeliveryStreamFailureTypeCreateEniFailed is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeCreateEniFailed = "CREATE_ENI_FAILED"
+
+ // DeliveryStreamFailureTypeDeleteEniFailed is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeDeleteEniFailed = "DELETE_ENI_FAILED"
+
+ // DeliveryStreamFailureTypeSubnetNotFound is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeSubnetNotFound = "SUBNET_NOT_FOUND"
+
+ // DeliveryStreamFailureTypeSecurityGroupNotFound is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeSecurityGroupNotFound = "SECURITY_GROUP_NOT_FOUND"
+
+ // DeliveryStreamFailureTypeEniAccessDenied is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeEniAccessDenied = "ENI_ACCESS_DENIED"
+
+ // DeliveryStreamFailureTypeSubnetAccessDenied is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeSubnetAccessDenied = "SUBNET_ACCESS_DENIED"
+
+ // DeliveryStreamFailureTypeSecurityGroupAccessDenied is a DeliveryStreamFailureType enum value
+ DeliveryStreamFailureTypeSecurityGroupAccessDenied = "SECURITY_GROUP_ACCESS_DENIED"
+
// DeliveryStreamFailureTypeUnknownError is a DeliveryStreamFailureType enum value
DeliveryStreamFailureTypeUnknownError = "UNKNOWN_ERROR"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/fms/api.go b/vendor/github.com/aws/aws-sdk-go/service/fms/api.go
index 52cabde0cc2..36baa3ac82a 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/fms/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/fms/api.go
@@ -1501,15 +1501,18 @@ func (c *FMS) PutPolicyRequest(input *PutPolicyInput) (req *request.Request, out
// * A Shield Advanced policy, which applies Shield Advanced protection to
// specified accounts and resources
//
-// * An AWS WAF policy, which contains a rule group and defines which resources
-// are to be protected by that rule group
+// * An AWS WAF policy (type WAFV2), which defines rule groups to run first
+// in the corresponding AWS WAF web ACL and rule groups to run last in the
+// web ACL.
+//
+// * An AWS WAF Classic policy (type WAF), which defines a rule group.
//
// * A security group policy, which manages VPC security groups across your
// AWS organization.
//
-// Each policy is specific to one of the three types. If you want to enforce
-// more than one policy type across accounts, you can create multiple policies.
-// You can create multiple policies for each type.
+// Each policy is specific to one of the types. If you want to enforce more
+// than one policy type across accounts, create multiple policies. You can create
+// multiple policies for each type.
//
// You must be subscribed to Shield Advanced to create a Shield Advanced policy.
// For more information about subscribing to Shield Advanced, see CreateSubscription
@@ -2488,8 +2491,8 @@ func (s *GetProtectionStatusOutput) SetServiceType(v string) *GetProtectionStatu
// The operation failed because of a system problem, even though the request
// was valid. Retry your request.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2506,17 +2509,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2524,28 +2527,28 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parameters of the request were invalid.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2562,17 +2565,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2580,30 +2583,30 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because there was nothing to do. For example, you might
// have submitted an AssociateAdminAccount request, but the account ID that
// you submitted was already set as the AWS Firewall Manager administrator.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2620,17 +2623,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "InvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2638,28 +2641,28 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value of the Type parameter is invalid.
type InvalidTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2676,17 +2679,17 @@ func (s InvalidTypeException) GoString() string {
func newErrorInvalidTypeException(v protocol.ResponseMetadata) error {
return &InvalidTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTypeException) Code() string {
+func (s *InvalidTypeException) Code() string {
return "InvalidTypeException"
}
// Message returns the exception's message.
-func (s InvalidTypeException) Message() string {
+func (s *InvalidTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2694,22 +2697,22 @@ func (s InvalidTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTypeException) OrigErr() error {
+func (s *InvalidTypeException) OrigErr() error {
return nil
}
-func (s InvalidTypeException) Error() string {
+func (s *InvalidTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation exceeds a resource limit, for example, the maximum number of
@@ -2717,8 +2720,8 @@ func (s InvalidTypeException) RequestID() string {
// see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html)
// in the AWS WAF Developer Guide.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2735,17 +2738,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2753,22 +2756,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListComplianceStatusInput struct {
@@ -3134,13 +3137,28 @@ func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOut
type Policy struct {
_ struct{} `type:"structure"`
- // Specifies the AWS account IDs to exclude from the policy. The IncludeMap
- // values are evaluated first, with all the appropriate account IDs added to
- // the policy. Then the accounts listed in ExcludeMap are removed, resulting
- // in the final list of accounts to add to the policy.
+ // Specifies the AWS account IDs and AWS Organizations organizational units
+ // (OUs) to exclude from the policy. Specifying an OU is the equivalent of specifying
+ // all accounts in the OU and in any of its child OUs, including any child OUs
+ // and accounts that are added at a later time.
+ //
+ // You can specify inclusions or exclusions, but not both. If you specify an
+ // IncludeMap, AWS Firewall Manager applies the policy to all accounts specified
+ // by the IncludeMap, and does not evaluate any ExcludeMap specifications. If
+ // you do not specify an IncludeMap, then Firewall Manager applies the policy
+ // to all accounts except for those specified by the ExcludeMap.
+ //
+ // You can specify account IDs, OUs, or a combination:
//
- // The key to the map is ACCOUNT. For example, a valid ExcludeMap would be {“ACCOUNT”
- // : [“accountID1”, “accountID2”]}.
+ // * Specify account IDs by setting the key to ACCOUNT. For example, the
+ // following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
+ //
+ // * Specify OUs by setting the key to ORG_UNIT. For example, the following
+ // is a valid map: {“ORG_UNIT” : [“ouid111”, “ouid112”]}.
+ //
+ // * Specify accounts and OUs together in a single map, separated with a
+ // comma. For example, the following is a valid map: {“ACCOUNT” : [“accountID1”,
+ // “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
ExcludeMap map[string][]*string `type:"map"`
// If set to True, resources with the tags that are specified in the ResourceTag
@@ -3151,13 +3169,28 @@ type Policy struct {
// ExcludeResourceTags is a required field
ExcludeResourceTags *bool `type:"boolean" required:"true"`
- // Specifies the AWS account IDs to include in the policy. If IncludeMap is
- // null, all accounts in the organization in AWS Organizations are included
- // in the policy. If IncludeMap is not null, only values listed in IncludeMap
- // are included in the policy.
+ // Specifies the AWS account IDs and AWS Organizations organizational units
+ // (OUs) to include in the policy. Specifying an OU is the equivalent of specifying
+ // all accounts in the OU and in any of its child OUs, including any child OUs
+ // and accounts that are added at a later time.
+ //
+ // You can specify inclusions or exclusions, but not both. If you specify an
+ // IncludeMap, AWS Firewall Manager applies the policy to all accounts specified
+ // by the IncludeMap, and does not evaluate any ExcludeMap specifications. If
+ // you do not specify an IncludeMap, then Firewall Manager applies the policy
+ // to all accounts except for those specified by the ExcludeMap.
//
- // The key to the map is ACCOUNT. For example, a valid IncludeMap would be {“ACCOUNT”
- // : [“accountID1”, “accountID2”]}.
+ // You can specify account IDs, OUs, or a combination:
+ //
+ // * Specify account IDs by setting the key to ACCOUNT. For example, the
+ // following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
+ //
+ // * Specify OUs by setting the key to ORG_UNIT. For example, the following
+ // is a valid map: {“ORG_UNIT” : [“ouid111”, “ouid112”]}.
+ //
+ // * Specify accounts and OUs together in a single map, separated with a
+ // comma. For example, the following is a valid map: {“ACCOUNT” : [“accountID1”,
+ // “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
IncludeMap map[string][]*string `type:"map"`
// The ID of the AWS Firewall Manager policy.
@@ -3749,8 +3782,8 @@ func (s *PutPolicyOutput) SetPolicyArn(v string) *PutPolicyOutput {
// The specified resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3767,17 +3800,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3785,22 +3818,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource tags that AWS Firewall Manager uses to determine if a particular
@@ -3868,12 +3901,14 @@ type SecurityServicePolicyData struct {
// Details about the service that are specific to the service type, in JSON
// format. For service type SHIELD_ADVANCED, this is an empty string.
//
- // * Example: WAF ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\":
+ // * Example: WAFV2 "ManagedServiceData": "{\"type\":\"WAFV2\",\"defaultAction\":{\"type\":\"ALLOW\"},\"preProcessRuleGroups\":[{\"managedRuleGroupIdentifier\":null,\"ruleGroupArn\":\"rulegrouparn\",\"overrideAction\":{\"type\":\"COUNT\"},\"excludedRules\":[{\"name\":\"EntityName\"}],\"ruleGroupType\":\"RuleGroup\"}],\"postProcessRuleGroups\":[{\"managedRuleGroupIdentifier\":{\"managedRuleGroupName\":\"AWSManagedRulesAdminProtectionRuleSet\",\"vendor\":\"AWS\"},\"ruleGroupArn\":\"rulegrouparn\",\"overrideAction\":{\"type\":\"NONE\"},\"excludedRules\":[],\"ruleGroupType\":\"ManagedRuleGroup\"}],\"overrideCustomerWebACLAssociation\":false}"
+ //
+ // * Example: WAF Classic "ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\":
// [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\"
// : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}
//
- // * Example: SECURITY_GROUPS_COMMON "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_COMMON","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false,\"securityGroups\":[{\"id\":\"
- // sg-000e55995d61a06bd\"}]}"},"RemediationEnabled":false,"ResourceType":"AWS::EC2::NetworkInterface"}
+ // * Example: SECURITY_GROUPS_COMMON "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_COMMON","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_COMMON\",\"revertManualSecurityGroupChanges\":false,\"exclusiveResourceSecurityGroupManagement\":false,
+ // \"applyToAllEC2InstanceENIs\":false,\"securityGroups\":[{\"id\":\" sg-000e55995d61a06bd\"}]}"},"RemediationEnabled":false,"ResourceType":"AWS::EC2::NetworkInterface"}
//
// * Example: SECURITY_GROUPS_CONTENT_AUDIT "SecurityServicePolicyData":{"Type":"SECURITY_GROUPS_CONTENT_AUDIT","ManagedServiceData":"{\"type\":\"SECURITY_GROUPS_CONTENT_AUDIT\",\"securityGroups\":[{\"id\":\"
// sg-000e55995d61a06bd \"}],\"securityGroupAction\":{\"type\":\"ALLOW\"}}"},"RemediationEnabled":false,"ResourceType":"AWS::EC2::NetworkInterface"}
@@ -4169,6 +4204,9 @@ const (
const (
// CustomerPolicyScopeIdTypeAccount is a CustomerPolicyScopeIdType enum value
CustomerPolicyScopeIdTypeAccount = "ACCOUNT"
+
+ // CustomerPolicyScopeIdTypeOrgUnit is a CustomerPolicyScopeIdType enum value
+ CustomerPolicyScopeIdTypeOrgUnit = "ORG_UNIT"
)
const (
@@ -4197,6 +4235,9 @@ const (
// SecurityServiceTypeWaf is a SecurityServiceType enum value
SecurityServiceTypeWaf = "WAF"
+ // SecurityServiceTypeWafv2 is a SecurityServiceType enum value
+ SecurityServiceTypeWafv2 = "WAFV2"
+
// SecurityServiceTypeShieldAdvanced is a SecurityServiceType enum value
SecurityServiceTypeShieldAdvanced = "SHIELD_ADVANCED"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/forecastservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/forecastservice/api.go
index 93cc9f06625..e6425c8afb7 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/forecastservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/forecastservice/api.go
@@ -6469,8 +6469,8 @@ func (s *IntegerParameterRange) SetScalingType(v string) *IntegerParameterRange
// We can't process the request because it includes an invalid value or a value
// that exceeds the valid range.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6487,17 +6487,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6505,28 +6505,28 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The token is not valid. Tokens expire after 24 hours.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6543,17 +6543,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6561,28 +6561,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The limit on the number of resources per account has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6599,17 +6599,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6617,22 +6617,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListDatasetGroupsInput struct {
@@ -7575,8 +7575,8 @@ func (s *PredictorSummary) SetStatus(v string) *PredictorSummary {
// There is already a resource with this name. Try again with a different name.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7593,17 +7593,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7611,28 +7611,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource is in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7649,17 +7649,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7667,29 +7667,29 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can't find a resource with that Amazon Resource Name (ARN). Check the
// ARN and try again.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7706,17 +7706,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7724,22 +7724,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go
index eb676ca1590..91aa12c43ec 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go
@@ -293,8 +293,8 @@ func (c *FSx) CreateDataRepositoryTaskRequest(input *CreateDataRepositoryTaskInp
// repository. A CreateDataRepositoryTask operation will fail if a data repository
// is not linked to the FSx file system. To learn more about data repository
// tasks, see Using Data Repository Tasks (https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-repository-tasks.html).
-// To learn more about linking a data repository to your file system, see Step
-// 1: Create Your Amazon FSx for Lustre File System (https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step1.html).
+// To learn more about linking a data repository to your file system, see Setting
+// the Export Prefix (https://docs.aws.amazon.com/fsx/latest/LustreGuide/export-data-repository.html#export-prefix).
//
// 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
@@ -1772,8 +1772,8 @@ func (s *ActiveDirectoryBackupAttributes) SetDomainName(v string) *ActiveDirecto
// An Active Directory error.
type ActiveDirectoryError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The directory ID of the directory that an error pertains to.
//
@@ -1799,17 +1799,17 @@ func (s ActiveDirectoryError) GoString() string {
func newErrorActiveDirectoryError(v protocol.ResponseMetadata) error {
return &ActiveDirectoryError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActiveDirectoryError) Code() string {
+func (s *ActiveDirectoryError) Code() string {
return "ActiveDirectoryError"
}
// Message returns the exception's message.
-func (s ActiveDirectoryError) Message() string {
+func (s *ActiveDirectoryError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1817,22 +1817,22 @@ func (s ActiveDirectoryError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActiveDirectoryError) OrigErr() error {
+func (s *ActiveDirectoryError) OrigErr() error {
return nil
}
-func (s ActiveDirectoryError) Error() string {
+func (s *ActiveDirectoryError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActiveDirectoryError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActiveDirectoryError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActiveDirectoryError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActiveDirectoryError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A backup of an Amazon FSx for Windows File Server file system. You can create
@@ -1991,8 +1991,8 @@ func (s *BackupFailureDetails) SetMessage(v string) *BackupFailureDetails {
// Another backup is already under way. Wait for completion before initiating
// additional backups of this file system.
type BackupInProgress struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -2010,17 +2010,17 @@ func (s BackupInProgress) GoString() string {
func newErrorBackupInProgress(v protocol.ResponseMetadata) error {
return &BackupInProgress{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BackupInProgress) Code() string {
+func (s *BackupInProgress) Code() string {
return "BackupInProgress"
}
// Message returns the exception's message.
-func (s BackupInProgress) Message() string {
+func (s *BackupInProgress) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2028,28 +2028,28 @@ func (s BackupInProgress) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BackupInProgress) OrigErr() error {
+func (s *BackupInProgress) OrigErr() error {
return nil
}
-func (s BackupInProgress) Error() string {
+func (s *BackupInProgress) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BackupInProgress) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BackupInProgress) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BackupInProgress) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BackupInProgress) RequestID() string {
+ return s.RespMetadata.RequestID
}
// No Amazon FSx backups were found based upon the supplied parameters.
type BackupNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -2067,17 +2067,17 @@ func (s BackupNotFound) GoString() string {
func newErrorBackupNotFound(v protocol.ResponseMetadata) error {
return &BackupNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BackupNotFound) Code() string {
+func (s *BackupNotFound) Code() string {
return "BackupNotFound"
}
// Message returns the exception's message.
-func (s BackupNotFound) Message() string {
+func (s *BackupNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2085,28 +2085,28 @@ func (s BackupNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BackupNotFound) OrigErr() error {
+func (s *BackupNotFound) OrigErr() error {
return nil
}
-func (s BackupNotFound) Error() string {
+func (s *BackupNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BackupNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BackupNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BackupNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BackupNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You can't delete a backup while it's being used to restore a file system.
type BackupRestoring struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The ID of a file system being restored from the backup.
FileSystemId *string `min:"11" type:"string"`
@@ -2127,17 +2127,17 @@ func (s BackupRestoring) GoString() string {
func newErrorBackupRestoring(v protocol.ResponseMetadata) error {
return &BackupRestoring{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BackupRestoring) Code() string {
+func (s *BackupRestoring) Code() string {
return "BackupRestoring"
}
// Message returns the exception's message.
-func (s BackupRestoring) Message() string {
+func (s *BackupRestoring) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2145,28 +2145,28 @@ func (s BackupRestoring) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BackupRestoring) OrigErr() error {
+func (s *BackupRestoring) OrigErr() error {
return nil
}
-func (s BackupRestoring) Error() string {
+func (s *BackupRestoring) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BackupRestoring) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BackupRestoring) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BackupRestoring) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BackupRestoring) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A generic error indicating a failure with a client request.
type BadRequest struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -2184,17 +2184,17 @@ func (s BadRequest) GoString() string {
func newErrorBadRequest(v protocol.ResponseMetadata) error {
return &BadRequest{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequest) Code() string {
+func (s *BadRequest) Code() string {
return "BadRequest"
}
// Message returns the exception's message.
-func (s BadRequest) Message() string {
+func (s *BadRequest) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2202,22 +2202,22 @@ func (s BadRequest) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequest) OrigErr() error {
+func (s *BadRequest) OrigErr() error {
return nil
}
-func (s BadRequest) Error() string {
+func (s *BadRequest) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequest) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequest) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequest) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequest) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Cancels a data repository task.
@@ -2515,12 +2515,16 @@ type CreateDataRepositoryTaskInput struct {
// (Optional) The path or paths on the Amazon FSx file system to use when the
// data repository task is processed. The default path is the file system root
- // directory.
+ // directory. The paths you provide need to be relative to the mount point of
+ // the file system. If the mount point is /mnt/fsx and /mnt/fsx/path1 is a directory
+ // or file on the file system you want to export, then the path to provide is
+ // path1. If a path that you provide isn't valid, the task fails.
Paths []*string `type:"list"`
// Defines whether or not Amazon FSx provides a CompletionReport once the task
// has completed. A CompletionReport provides a detailed report on the files
// that Amazon FSx processed that meet the criteria specified by the Scope parameter.
+ // For more information, see Working with Task Completion Reports (https://docs.aws.amazon.com/fsx/latest/LustreGuide/task-completion-report.html).
//
// Report is a required field
Report *CompletionReport `type:"structure" required:"true"`
@@ -2663,12 +2667,37 @@ type CreateFileSystemFromBackupInput struct {
// A list of IDs for the security groups that apply to the specified network
// interfaces created for file system access. These security groups apply to
- // all network interfaces. This value isn't returned in later describe requests.
+ // all network interfaces. This value isn't returned in later DescribeFileSystem
+ // requests.
SecurityGroupIds []*string `type:"list"`
- // A list of IDs for the subnets that the file system will be accessible from.
- // Currently, you can specify only one subnet. The file server is also launched
- // in that subnet's Availability Zone.
+ // Sets the storage type for the Windows file system you're creating from a
+ // backup. Valid values are SSD and HDD.
+ //
+ // * Set to SSD to use solid state drive storage. Supported on all Windows
+ // deployment types.
+ //
+ // * Set to HDD to use hard disk drive storage. Supported on SINGLE_AZ_2
+ // and MULTI_AZ_1 Windows file system deployment types.
+ //
+ // Default value is SSD.
+ //
+ // HDD and SSD storage types have different minimum storage capacity requirements.
+ // A restored file system's storage capacity is tied to the file system that
+ // was backed up. You can create a file system that uses HDD storage from a
+ // backup of a file system that used SSD storage only if the original SSD file
+ // system had a storage capacity of at least 2000 GiB.
+ StorageType *string `type:"string" enum:"StorageType"`
+
+ // Specifies the IDs of the subnets that the file system will be accessible
+ // from. For Windows MULTI_AZ_1 file system deployment types, provide exactly
+ // two subnet IDs, one for the preferred file server and one for the standby
+ // file server. You specify one of these subnets as the preferred subnet using
+ // the WindowsConfiguration > PreferredSubnetID property.
+ //
+ // For Windows SINGLE_AZ_1 and SINGLE_AZ_2 deployment types and Lustre file
+ // systems, provide exactly one subnet ID. The file server is launched in that
+ // subnet's Availability Zone.
//
// SubnetIds is a required field
SubnetIds []*string `type:"list" required:"true"`
@@ -2749,6 +2778,12 @@ func (s *CreateFileSystemFromBackupInput) SetSecurityGroupIds(v []*string) *Crea
return s
}
+// SetStorageType sets the StorageType field's value.
+func (s *CreateFileSystemFromBackupInput) SetStorageType(v string) *CreateFileSystemFromBackupInput {
+ s.StorageType = &v
+ return s
+}
+
// SetSubnetIds sets the SubnetIds field's value.
func (s *CreateFileSystemFromBackupInput) SetSubnetIds(v []*string) *CreateFileSystemFromBackupInput {
s.SubnetIds = v
@@ -2814,8 +2849,7 @@ type CreateFileSystemInput struct {
// in the AWS Key Management Service API Reference.
KmsKeyId *string `min:"1" type:"string"`
- // The Lustre configuration for the file system being created. This value is
- // required if FileSystemType is set to LUSTRE.
+ // The Lustre configuration for the file system being created.
LustreConfiguration *CreateFileSystemLustreConfiguration `type:"structure"`
// A list of IDs specifying the security groups to apply to all network interfaces
@@ -2823,27 +2857,47 @@ type CreateFileSystemInput struct {
// to describe the file system.
SecurityGroupIds []*string `type:"list"`
- // The storage capacity of the file system being created.
+ // Sets the storage capacity of the file system that you're creating.
//
- // For Windows file systems, valid values are 32 GiB - 65,536 GiB.
+ // For Lustre file systems:
//
- // For SCRATCH_1 Lustre file systems, valid values are 1,200, 2,400, 3,600,
- // then continuing in increments of 3600 GiB. For SCRATCH_2 and PERSISTENT_1
- // file systems, valid values are 1200, 2400, then continuing in increments
- // of 2400 GiB.
+ // * For SCRATCH_2 and PERSISTENT_1 deployment types, valid values are 1.2,
+ // 2.4, and increments of 2.4 TiB.
+ //
+ // * For SCRATCH_1 deployment type, valid values are 1.2, 2.4, and increments
+ // of 3.6 TiB.
+ //
+ // For Windows file systems:
+ //
+ // * If StorageType=SSD, valid values are 32 GiB - 65,536 GiB (64 TiB).
+ //
+ // * If StorageType=HDD, valid values are 2000 GiB - 65,536 GiB (64 TiB).
//
// StorageCapacity is a required field
StorageCapacity *int64 `type:"integer" required:"true"`
+ // Sets the storage type for the Amazon FSx for Windows file system you're creating.
+ // Valid values are SSD and HDD.
+ //
+ // * Set to SSD to use solid state drive storage. SSD is supported on all
+ // Windows deployment types.
+ //
+ // * Set to HDD to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
+ // and MULTI_AZ_1 Windows file system deployment types.
+ //
+ // Default value is SSD. For more information, see Storage Type Options (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/optimize-fsx-tco.html#saz-maz-storage-type)
+ // in the Amazon FSx for Windows User Guide.
+ StorageType *string `type:"string" enum:"StorageType"`
+
// Specifies the IDs of the subnets that the file system will be accessible
// from. For Windows MULTI_AZ_1 file system deployment types, provide exactly
// two subnet IDs, one for the preferred file server and one for the standby
// file server. You specify one of these subnets as the preferred subnet using
// the WindowsConfiguration > PreferredSubnetID property.
//
- // For Windows SINGLE_AZ_1 file system deployment types and Lustre file systems,
- // provide exactly one subnet ID. The file server is launched in that subnet's
- // Availability Zone.
+ // For Windows SINGLE_AZ_1 and SINGLE_AZ_2 file system deployment types and
+ // Lustre file systems, provide exactly one subnet ID. The file server is launched
+ // in that subnet's Availability Zone.
//
// SubnetIds is a required field
SubnetIds []*string `type:"list" required:"true"`
@@ -2852,8 +2906,7 @@ type CreateFileSystemInput struct {
// Name tag appears in the console as the file system name.
Tags []*Tag `min:"1" type:"list"`
- // The Microsoft Windows configuration for the file system being created. This
- // value is required if FileSystemType is set to WINDOWS.
+ // The Microsoft Windows configuration for the file system being created.
WindowsConfiguration *CreateFileSystemWindowsConfiguration `type:"structure"`
}
@@ -2951,6 +3004,12 @@ func (s *CreateFileSystemInput) SetStorageCapacity(v int64) *CreateFileSystemInp
return s
}
+// SetStorageType sets the StorageType field's value.
+func (s *CreateFileSystemInput) SetStorageType(v string) *CreateFileSystemInput {
+ s.StorageType = &v
+ return s
+}
+
// SetSubnetIds sets the SubnetIds field's value.
func (s *CreateFileSystemInput) SetSubnetIds(v []*string) *CreateFileSystemInput {
s.SubnetIds = v
@@ -2969,8 +3028,7 @@ func (s *CreateFileSystemInput) SetWindowsConfiguration(v *CreateFileSystemWindo
return s
}
-// The Lustre configuration for the file system being created. This value is
-// required if FileSystemType is set to LUSTRE.
+// The Lustre configuration for the file system being created.
type CreateFileSystemLustreConfiguration struct {
_ struct{} `type:"structure"`
@@ -3027,13 +3085,12 @@ type CreateFileSystemLustreConfiguration struct {
// MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
ImportedFileChunkSize *int64 `min:"1" type:"integer"`
- // (Optional) For the PERSISTENT_1 deployment type, describes the amount of
- // read and write throughput for each 1 tebibyte of storage, in MB/s/TiB. File
- // system throughput capacity is calculated by multiplying file system storage
- // capacity (TiB) by the PerUnitStorageThroughput (MB/s/TiB). For a 2.4 TiB
- // file system, provisioning 50 MB/s/TiB of PerUnitStorageThroughput yields
- // 120 MB/s of file system throughput. You pay for the amount of throughput
- // that you provision. (Default = 200 MB/s/TiB)
+ // Required for the PERSISTENT_1 deployment type, describes the amount of read
+ // and write throughput for each 1 tebibyte of storage, in MB/s/TiB. File system
+ // throughput capacity is calculated by multiplying file system storage capacity
+ // (TiB) by the PerUnitStorageThroughput (MB/s/TiB). For a 2.4 TiB file system,
+ // provisioning 50 MB/s/TiB of PerUnitStorageThroughput yields 117 MB/s of file
+ // system throughput. You pay for the amount of throughput that you provision.
//
// Valid values are 50, 100, 200.
PerUnitStorageThroughput *int64 `min:"50" type:"integer"`
@@ -3169,13 +3226,17 @@ type CreateFileSystemWindowsConfiguration struct {
// * MULTI_AZ_1 - Deploys a high availability file system that is configured
// for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability.
// You can only deploy a Multi-AZ file system in AWS Regions that have a
- // minimum of three Availability Zones.
+ // minimum of three Availability Zones. Also supports HDD storage type
//
// * SINGLE_AZ_1 - (Default) Choose to deploy a file system that is configured
// for single AZ redundancy.
//
- // To learn more about high availability Multi-AZ file systems, see High Availability
- // for Amazon FSx for Windows File Server (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html).
+ // * SINGLE_AZ_2 - The latest generation Single AZ file system. Specifies
+ // a file system that is configured for single AZ redundancy and supports
+ // HDD storage type.
+ //
+ // For more information, see Availability and Durability: Single-AZ and Multi-AZ
+ // File Systems (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html).
DeploymentType *string `type:"string" enum:"WindowsDeploymentType"`
// Required when DeploymentType is set to MULTI_AZ_1. This specifies the subnet
@@ -3538,8 +3599,8 @@ func (s *DataRepositoryTask) SetType(v string) *DataRepositoryTask {
// The data repository task could not be canceled because the task has already
// ended.
type DataRepositoryTaskEnded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -3557,17 +3618,17 @@ func (s DataRepositoryTaskEnded) GoString() string {
func newErrorDataRepositoryTaskEnded(v protocol.ResponseMetadata) error {
return &DataRepositoryTaskEnded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DataRepositoryTaskEnded) Code() string {
+func (s *DataRepositoryTaskEnded) Code() string {
return "DataRepositoryTaskEnded"
}
// Message returns the exception's message.
-func (s DataRepositoryTaskEnded) Message() string {
+func (s *DataRepositoryTaskEnded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3575,29 +3636,29 @@ func (s DataRepositoryTaskEnded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DataRepositoryTaskEnded) OrigErr() error {
+func (s *DataRepositoryTaskEnded) OrigErr() error {
return nil
}
-func (s DataRepositoryTaskEnded) Error() string {
+func (s *DataRepositoryTaskEnded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DataRepositoryTaskEnded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DataRepositoryTaskEnded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DataRepositoryTaskEnded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DataRepositoryTaskEnded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An existing data repository task is currently executing on the file system.
// Wait until the existing task has completed, then create the new task.
type DataRepositoryTaskExecuting struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -3615,17 +3676,17 @@ func (s DataRepositoryTaskExecuting) GoString() string {
func newErrorDataRepositoryTaskExecuting(v protocol.ResponseMetadata) error {
return &DataRepositoryTaskExecuting{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DataRepositoryTaskExecuting) Code() string {
+func (s *DataRepositoryTaskExecuting) Code() string {
return "DataRepositoryTaskExecuting"
}
// Message returns the exception's message.
-func (s DataRepositoryTaskExecuting) Message() string {
+func (s *DataRepositoryTaskExecuting) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3633,22 +3694,22 @@ func (s DataRepositoryTaskExecuting) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DataRepositoryTaskExecuting) OrigErr() error {
+func (s *DataRepositoryTaskExecuting) OrigErr() error {
return nil
}
-func (s DataRepositoryTaskExecuting) Error() string {
+func (s *DataRepositoryTaskExecuting) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DataRepositoryTaskExecuting) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DataRepositoryTaskExecuting) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DataRepositoryTaskExecuting) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DataRepositoryTaskExecuting) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information about why a data repository task failed. Only populated
@@ -3723,8 +3784,8 @@ func (s *DataRepositoryTaskFilter) SetValues(v []*string) *DataRepositoryTaskFil
// The data repository task or tasks you specified could not be found.
type DataRepositoryTaskNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -3742,17 +3803,17 @@ func (s DataRepositoryTaskNotFound) GoString() string {
func newErrorDataRepositoryTaskNotFound(v protocol.ResponseMetadata) error {
return &DataRepositoryTaskNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DataRepositoryTaskNotFound) Code() string {
+func (s *DataRepositoryTaskNotFound) Code() string {
return "DataRepositoryTaskNotFound"
}
// Message returns the exception's message.
-func (s DataRepositoryTaskNotFound) Message() string {
+func (s *DataRepositoryTaskNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3760,22 +3821,22 @@ func (s DataRepositoryTaskNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DataRepositoryTaskNotFound) OrigErr() error {
+func (s *DataRepositoryTaskNotFound) OrigErr() error {
return nil
}
-func (s DataRepositoryTaskNotFound) Error() string {
+func (s *DataRepositoryTaskNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DataRepositoryTaskNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DataRepositoryTaskNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DataRepositoryTaskNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DataRepositoryTaskNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides the task status showing a running total of the total number of files
@@ -4516,9 +4577,21 @@ type FileSystem struct {
// The storage capacity of the file system in gigabytes (GB).
StorageCapacity *int64 `type:"integer"`
- // The ID of the subnet to contain the endpoint for the file system. One and
- // only one is supported. The file system is launched in the Availability Zone
- // associated with this subnet.
+ // The storage type of the file system. Valid values are SSD and HDD. If set
+ // to SSD, the file system uses solid state drive storage. If set to HDD, the
+ // file system uses hard disk drive storage.
+ StorageType *string `type:"string" enum:"StorageType"`
+
+ // Specifies the IDs of the subnets that the file system is accessible from.
+ // For Windows MULTI_AZ_1 file system deployment type, there are two subnet
+ // IDs, one for the preferred file server and one for the standby file server.
+ // The preferred file server subnet identified in the PreferredSubnetID property.
+ // All other file systems have only one subnet ID.
+ //
+ // For Lustre file systems, and Single-AZ Windows file systems, this is the
+ // ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1
+ // Windows file systems, the endpoint for the file system is available in the
+ // PreferredSubnetID.
SubnetIds []*string `type:"list"`
// The tags to associate with the file system. For more information, see Tagging
@@ -4615,6 +4688,12 @@ func (s *FileSystem) SetStorageCapacity(v int64) *FileSystem {
return s
}
+// SetStorageType sets the StorageType field's value.
+func (s *FileSystem) SetStorageType(v string) *FileSystem {
+ s.StorageType = &v
+ return s
+}
+
// SetSubnetIds sets the SubnetIds field's value.
func (s *FileSystem) SetSubnetIds(v []*string) *FileSystem {
s.SubnetIds = v
@@ -4666,8 +4745,8 @@ func (s *FileSystemFailureDetails) SetMessage(v string) *FileSystemFailureDetail
// No Amazon FSx file systems were found based upon supplied parameters.
type FileSystemNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -4685,17 +4764,17 @@ func (s FileSystemNotFound) GoString() string {
func newErrorFileSystemNotFound(v protocol.ResponseMetadata) error {
return &FileSystemNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FileSystemNotFound) Code() string {
+func (s *FileSystemNotFound) Code() string {
return "FileSystemNotFound"
}
// Message returns the exception's message.
-func (s FileSystemNotFound) Message() string {
+func (s *FileSystemNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4703,22 +4782,22 @@ func (s FileSystemNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FileSystemNotFound) OrigErr() error {
+func (s *FileSystemNotFound) OrigErr() error {
return nil
}
-func (s FileSystemNotFound) Error() string {
+func (s *FileSystemNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FileSystemNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FileSystemNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FileSystemNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FileSystemNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A filter used to restrict the results of describe calls. You can use multiple
@@ -4760,8 +4839,8 @@ func (s *Filter) SetValues(v []*string) *Filter {
// request token but different parameters settings. A client request token should
// always uniquely identify a single request.
type IncompatibleParameterError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -4784,17 +4863,17 @@ func (s IncompatibleParameterError) GoString() string {
func newErrorIncompatibleParameterError(v protocol.ResponseMetadata) error {
return &IncompatibleParameterError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncompatibleParameterError) Code() string {
+func (s *IncompatibleParameterError) Code() string {
return "IncompatibleParameterError"
}
// Message returns the exception's message.
-func (s IncompatibleParameterError) Message() string {
+func (s *IncompatibleParameterError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4802,28 +4881,28 @@ func (s IncompatibleParameterError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncompatibleParameterError) OrigErr() error {
+func (s *IncompatibleParameterError) OrigErr() error {
return nil
}
-func (s IncompatibleParameterError) Error() string {
+func (s *IncompatibleParameterError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncompatibleParameterError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncompatibleParameterError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncompatibleParameterError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncompatibleParameterError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A generic error indicating a server-side failure.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -4841,17 +4920,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4859,28 +4938,28 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The path provided for data repository export isn't valid.
type InvalidExportPath struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -4898,17 +4977,17 @@ func (s InvalidExportPath) GoString() string {
func newErrorInvalidExportPath(v protocol.ResponseMetadata) error {
return &InvalidExportPath{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidExportPath) Code() string {
+func (s *InvalidExportPath) Code() string {
return "InvalidExportPath"
}
// Message returns the exception's message.
-func (s InvalidExportPath) Message() string {
+func (s *InvalidExportPath) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4916,28 +4995,28 @@ func (s InvalidExportPath) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidExportPath) OrigErr() error {
+func (s *InvalidExportPath) OrigErr() error {
return nil
}
-func (s InvalidExportPath) Error() string {
+func (s *InvalidExportPath) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidExportPath) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidExportPath) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidExportPath) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidExportPath) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The path provided for data repository import isn't valid.
type InvalidImportPath struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -4955,17 +5034,17 @@ func (s InvalidImportPath) GoString() string {
func newErrorInvalidImportPath(v protocol.ResponseMetadata) error {
return &InvalidImportPath{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidImportPath) Code() string {
+func (s *InvalidImportPath) Code() string {
return "InvalidImportPath"
}
// Message returns the exception's message.
-func (s InvalidImportPath) Message() string {
+func (s *InvalidImportPath) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4973,22 +5052,22 @@ func (s InvalidImportPath) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidImportPath) OrigErr() error {
+func (s *InvalidImportPath) OrigErr() error {
return nil
}
-func (s InvalidImportPath) Error() string {
+func (s *InvalidImportPath) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidImportPath) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidImportPath) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidImportPath) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidImportPath) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more network settings specified in the request are invalid. InvalidVpcId
@@ -4998,8 +5077,8 @@ func (s InvalidImportPath) RequestID() string {
// of IDs for security groups that are either invalid or not part of the VPC
// specified.
type InvalidNetworkSettings struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The ID of your Amazon EC2 security group. This ID is used to control network
// access to the endpoint that Amazon FSx creates on your behalf in each subnet.
@@ -5029,17 +5108,17 @@ func (s InvalidNetworkSettings) GoString() string {
func newErrorInvalidNetworkSettings(v protocol.ResponseMetadata) error {
return &InvalidNetworkSettings{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNetworkSettings) Code() string {
+func (s *InvalidNetworkSettings) Code() string {
return "InvalidNetworkSettings"
}
// Message returns the exception's message.
-func (s InvalidNetworkSettings) Message() string {
+func (s *InvalidNetworkSettings) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5047,29 +5126,29 @@ func (s InvalidNetworkSettings) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNetworkSettings) OrigErr() error {
+func (s *InvalidNetworkSettings) OrigErr() error {
return nil
}
-func (s InvalidNetworkSettings) Error() string {
+func (s *InvalidNetworkSettings) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNetworkSettings) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNetworkSettings) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNetworkSettings) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNetworkSettings) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invalid value for PerUnitStorageThroughput was provided. Please create
// your file system again, using a valid value.
type InvalidPerUnitStorageThroughput struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -5087,17 +5166,17 @@ func (s InvalidPerUnitStorageThroughput) GoString() string {
func newErrorInvalidPerUnitStorageThroughput(v protocol.ResponseMetadata) error {
return &InvalidPerUnitStorageThroughput{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPerUnitStorageThroughput) Code() string {
+func (s *InvalidPerUnitStorageThroughput) Code() string {
return "InvalidPerUnitStorageThroughput"
}
// Message returns the exception's message.
-func (s InvalidPerUnitStorageThroughput) Message() string {
+func (s *InvalidPerUnitStorageThroughput) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5105,22 +5184,22 @@ func (s InvalidPerUnitStorageThroughput) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPerUnitStorageThroughput) OrigErr() error {
+func (s *InvalidPerUnitStorageThroughput) OrigErr() error {
return nil
}
-func (s InvalidPerUnitStorageThroughput) Error() string {
+func (s *InvalidPerUnitStorageThroughput) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPerUnitStorageThroughput) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPerUnitStorageThroughput) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPerUnitStorageThroughput) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPerUnitStorageThroughput) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request object for ListTagsForResource operation.
@@ -5299,8 +5378,8 @@ func (s *LustreFileSystemConfiguration) SetWeeklyMaintenanceStartTime(v string)
// A file system configuration is required for this operation.
type MissingFileSystemConfiguration struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -5318,17 +5397,17 @@ func (s MissingFileSystemConfiguration) GoString() string {
func newErrorMissingFileSystemConfiguration(v protocol.ResponseMetadata) error {
return &MissingFileSystemConfiguration{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingFileSystemConfiguration) Code() string {
+func (s *MissingFileSystemConfiguration) Code() string {
return "MissingFileSystemConfiguration"
}
// Message returns the exception's message.
-func (s MissingFileSystemConfiguration) Message() string {
+func (s *MissingFileSystemConfiguration) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5336,29 +5415,29 @@ func (s MissingFileSystemConfiguration) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingFileSystemConfiguration) OrigErr() error {
+func (s *MissingFileSystemConfiguration) OrigErr() error {
return nil
}
-func (s MissingFileSystemConfiguration) Error() string {
+func (s *MissingFileSystemConfiguration) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingFileSystemConfiguration) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingFileSystemConfiguration) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingFileSystemConfiguration) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingFileSystemConfiguration) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource specified for the tagging operation is not a resource type owned
// by Amazon FSx. Use the API of the relevant service to perform the operation.
type NotServiceResourceError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -5381,17 +5460,17 @@ func (s NotServiceResourceError) GoString() string {
func newErrorNotServiceResourceError(v protocol.ResponseMetadata) error {
return &NotServiceResourceError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotServiceResourceError) Code() string {
+func (s *NotServiceResourceError) Code() string {
return "NotServiceResourceError"
}
// Message returns the exception's message.
-func (s NotServiceResourceError) Message() string {
+func (s *NotServiceResourceError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5399,28 +5478,28 @@ func (s NotServiceResourceError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotServiceResourceError) OrigErr() error {
+func (s *NotServiceResourceError) OrigErr() error {
return nil
}
-func (s NotServiceResourceError) Error() string {
+func (s *NotServiceResourceError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotServiceResourceError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotServiceResourceError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotServiceResourceError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotServiceResourceError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource specified does not support tagging.
type ResourceDoesNotSupportTagging struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -5443,17 +5522,17 @@ func (s ResourceDoesNotSupportTagging) GoString() string {
func newErrorResourceDoesNotSupportTagging(v protocol.ResponseMetadata) error {
return &ResourceDoesNotSupportTagging{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDoesNotSupportTagging) Code() string {
+func (s *ResourceDoesNotSupportTagging) Code() string {
return "ResourceDoesNotSupportTagging"
}
// Message returns the exception's message.
-func (s ResourceDoesNotSupportTagging) Message() string {
+func (s *ResourceDoesNotSupportTagging) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5461,28 +5540,28 @@ func (s ResourceDoesNotSupportTagging) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDoesNotSupportTagging) OrigErr() error {
+func (s *ResourceDoesNotSupportTagging) OrigErr() error {
return nil
}
-func (s ResourceDoesNotSupportTagging) Error() string {
+func (s *ResourceDoesNotSupportTagging) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDoesNotSupportTagging) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDoesNotSupportTagging) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDoesNotSupportTagging) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDoesNotSupportTagging) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource specified by the Amazon Resource Name (ARN) can't be found.
type ResourceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -5505,17 +5584,17 @@ func (s ResourceNotFound) GoString() string {
func newErrorResourceNotFound(v protocol.ResponseMetadata) error {
return &ResourceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFound) Code() string {
+func (s *ResourceNotFound) Code() string {
return "ResourceNotFound"
}
// Message returns the exception's message.
-func (s ResourceNotFound) Message() string {
+func (s *ResourceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5523,22 +5602,22 @@ func (s ResourceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFound) OrigErr() error {
+func (s *ResourceNotFound) OrigErr() error {
return nil
}
-func (s ResourceNotFound) Error() string {
+func (s *ResourceNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration of the self-managed Microsoft Active Directory (AD) directory
@@ -5826,8 +5905,8 @@ func (s *SelfManagedActiveDirectoryConfigurationUpdates) SetUserName(v string) *
// An error indicating that a particular service limit was exceeded. You can
// increase some service limits by contacting AWS Support.
type ServiceLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Enumeration of the service limit that was exceeded.
//
@@ -5850,17 +5929,17 @@ func (s ServiceLimitExceeded) GoString() string {
func newErrorServiceLimitExceeded(v protocol.ResponseMetadata) error {
return &ServiceLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceLimitExceeded) Code() string {
+func (s *ServiceLimitExceeded) Code() string {
return "ServiceLimitExceeded"
}
// Message returns the exception's message.
-func (s ServiceLimitExceeded) Message() string {
+func (s *ServiceLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5868,22 +5947,22 @@ func (s ServiceLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceLimitExceeded) OrigErr() error {
+func (s *ServiceLimitExceeded) OrigErr() error {
return nil
}
-func (s ServiceLimitExceeded) Error() string {
+func (s *ServiceLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies a key-value pair for a resource tag.
@@ -6024,8 +6103,8 @@ func (s TagResourceOutput) GoString() string {
// The requested operation is not supported for this resource or API.
type UnsupportedOperation struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A detailed error message.
Message_ *string `locationName:"Message" min:"1" type:"string"`
@@ -6043,17 +6122,17 @@ func (s UnsupportedOperation) GoString() string {
func newErrorUnsupportedOperation(v protocol.ResponseMetadata) error {
return &UnsupportedOperation{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperation) Code() string {
+func (s *UnsupportedOperation) Code() string {
return "UnsupportedOperation"
}
// Message returns the exception's message.
-func (s UnsupportedOperation) Message() string {
+func (s *UnsupportedOperation) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6061,22 +6140,22 @@ func (s UnsupportedOperation) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperation) OrigErr() error {
+func (s *UnsupportedOperation) OrigErr() error {
return nil
}
-func (s UnsupportedOperation) Error() string {
+func (s *UnsupportedOperation) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperation) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperation) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperation) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperation) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request object for UntagResource action.
@@ -6407,10 +6486,17 @@ type WindowsFileSystemConfiguration struct {
// Specifies the file system deployment type, valid values are the following:
//
// * MULTI_AZ_1 - Specifies a high availability file system that is configured
- // for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability.
+ // for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability,
+ // and supports SSD and HDD storage.
//
// * SINGLE_AZ_1 - (Default) Specifies a file system that is configured for
- // single AZ redundancy.
+ // single AZ redundancy, only supports SSD storage.
+ //
+ // * SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file
+ // system that is configured for single AZ redundancy and supports SSD and
+ // HDD storage.
+ //
+ // For more information, see Single-AZ and Multi-AZ File Systems (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html).
DeploymentType *string `type:"string" enum:"WindowsDeploymentType"`
// The list of maintenance operations in progress for this file system.
@@ -6421,12 +6507,11 @@ type WindowsFileSystemConfiguration struct {
//
// Use this IP address when mounting the file system on Linux SMB clients or
// Windows SMB clients that are not joined to a Microsoft Active Directory.
- // Applicable for both SINGLE_AZ_1 and MULTI_AZ_1 deployment types. This IP
- // address is temporarily unavailable when the file system is undergoing maintenance.
+ // Applicable for all Windows file system deployment types. This IP address
+ // is temporarily unavailable when the file system is undergoing maintenance.
// For Linux and Windows SMB clients that are joined to an Active Directory,
- // use the file system's DNSName instead. For more information and instruction
- // on mapping and mounting file shares, see https://docs.aws.amazon.com/fsx/latest/WindowsGuide/accessing-file-shares.html
- // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/accessing-file-shares.html).
+ // use the file system's DNSName instead. For more information on mapping and
+ // mounting file shares, see Accessing File Shares (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/accessing-file-shares.html).
PreferredFileServerIp *string `min:"7" type:"string"`
// For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where
@@ -6434,13 +6519,16 @@ type WindowsFileSystemConfiguration struct {
// in SubnetIds property. Amazon FSx serves traffic from this subnet except
// in the event of a failover to the secondary file server.
//
- // For SINGLE_AZ_1 deployment types, this value is the same as that for SubnetIDs.
+ // For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same
+ // as that for SubnetIDs. For more information, see Availability and Durability:
+ // Single-AZ and Multi-AZ File Systems (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html#single-multi-az-resources)
PreferredSubnetId *string `min:"15" type:"string"`
// For MULTI_AZ_1 deployment types, use this endpoint when performing administrative
// tasks on the file system using Amazon FSx Remote PowerShell.
//
- // For SINGLE_AZ_1 deployment types, this is the DNS name of the file system.
+ // For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of
+ // the file system.
//
// This endpoint is temporarily unavailable when the file system is undergoing
// maintenance.
@@ -6703,10 +6791,22 @@ const (
ServiceLimitTotalUserInitiatedBackups = "TOTAL_USER_INITIATED_BACKUPS"
)
+// The storage type for your Amazon FSx file system.
+const (
+ // StorageTypeSsd is a StorageType enum value
+ StorageTypeSsd = "SSD"
+
+ // StorageTypeHdd is a StorageType enum value
+ StorageTypeHdd = "HDD"
+)
+
const (
// WindowsDeploymentTypeMultiAz1 is a WindowsDeploymentType enum value
WindowsDeploymentTypeMultiAz1 = "MULTI_AZ_1"
// WindowsDeploymentTypeSingleAz1 is a WindowsDeploymentType enum value
WindowsDeploymentTypeSingleAz1 = "SINGLE_AZ_1"
+
+ // WindowsDeploymentTypeSingleAz2 is a WindowsDeploymentType enum value
+ WindowsDeploymentTypeSingleAz2 = "SINGLE_AZ_2"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go
index 48ab3b57d31..41c2a1d5d4f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go
@@ -49,6 +49,9 @@ const (
// svc := fsx.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *FSx {
c := p.ClientConfig(EndpointsID, cfgs...)
+ if c.SigningNameDerived || len(c.SigningName) == 0 {
+ c.SigningName = "fsx"
+ }
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go
index 9f89e27cd63..d4e7cf76e2d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go
@@ -145,6 +145,161 @@ func (c *GameLift) AcceptMatchWithContext(ctx aws.Context, input *AcceptMatchInp
return out, req.Send()
}
+const opClaimGameServer = "ClaimGameServer"
+
+// ClaimGameServerRequest generates a "aws/request.Request" representing the
+// client's request for the ClaimGameServer operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ClaimGameServer for more information on using the ClaimGameServer
+// 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 ClaimGameServerRequest method.
+// req, resp := client.ClaimGameServerRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ClaimGameServer
+func (c *GameLift) ClaimGameServerRequest(input *ClaimGameServerInput) (req *request.Request, output *ClaimGameServerOutput) {
+ op := &request.Operation{
+ Name: opClaimGameServer,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ClaimGameServerInput{}
+ }
+
+ output = &ClaimGameServerOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ClaimGameServer API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Locates an available game server and temporarily reserves it to host gameplay
+// and players. This action is called by a game client or client service (such
+// as a matchmaker) to request hosting resources for a new game session. In
+// response, GameLift FleetIQ searches for an available game server in the specified
+// game server group, places the game server in "claimed" status for 60 seconds,
+// and returns connection information back to the requester so that players
+// can connect to the game server.
+//
+// There are two ways you can claim a game server. For the first option, you
+// provide a game server group ID only, which prompts GameLift FleetIQ to search
+// for an available game server in the specified group and claim it. With this
+// option, GameLift FleetIQ attempts to consolidate gameplay on as few instances
+// as possible to minimize hosting costs. For the second option, you request
+// a specific game server by its ID. This option results in a less efficient
+// claiming process because it does not take advantage of consolidation and
+// may fail if the requested game server is unavailable.
+//
+// To claim a game server, identify a game server group and (optionally) a game
+// server ID. If your game requires that game data be provided to the game server
+// at the start of a game, such as a game map or player information, you can
+// provide it in your claim request.
+//
+// When a game server is successfully claimed, connection information is returned.
+// A claimed game server's utilization status remains AVAILABLE, while the claim
+// status is set to CLAIMED for up to 60 seconds. This time period allows the
+// game server to be prompted to update its status to UTILIZED (using UpdateGameServer).
+// If the game server's status is not updated within 60 seconds, the game server
+// reverts to unclaimed status and is available to be claimed by another request.
+//
+// If you try to claim a specific game server, this request will fail in the
+// following cases: (1) if the game server utilization status is UTILIZED, (2)
+// if the game server claim status is CLAIMED, or (3) if the instance that the
+// game server is running on is flagged as draining.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * RegisterGameServer
+//
+// * ListGameServers
+//
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation ClaimGameServer for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * ConflictException
+// The requested operation would cause a conflict with the current state of
+// a service resource associated with the request. Resolve the conflict before
+// retrying this request.
+//
+// * OutOfCapacityException
+// The specified game server group has no available game servers to fulfill
+// a ClaimGameServer request. Clients can retry such requests immediately or
+// after a waiting period.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ClaimGameServer
+func (c *GameLift) ClaimGameServer(input *ClaimGameServerInput) (*ClaimGameServerOutput, error) {
+ req, out := c.ClaimGameServerRequest(input)
+ return out, req.Send()
+}
+
+// ClaimGameServerWithContext is the same as ClaimGameServer with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ClaimGameServer 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 *GameLift) ClaimGameServerWithContext(ctx aws.Context, input *ClaimGameServerInput, opts ...request.Option) (*ClaimGameServerOutput, error) {
+ req, out := c.ClaimGameServerRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateAlias = "CreateAlias"
// CreateAliasRequest generates a "aws/request.Request" representing the
@@ -319,45 +474,40 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req
// CreateBuild API operation for Amazon GameLift.
//
-// Creates a new Amazon GameLift build record for your game server binary files
-// and points to the location of your game server build files in an Amazon Simple
-// Storage Service (Amazon S3) location.
-//
-// Game server binaries must be combined into a zip file for use with Amazon
-// GameLift.
-//
-// To create new builds directly from a file directory, use the AWS CLI command
-// upload-build (https://docs.aws.amazon.com/cli/latest/reference/gamelift/upload-build.html)
-// . This helper command uploads build files and creates a new build record
-// in one step, and automatically handles the necessary permissions.
-//
-// The CreateBuild operation should be used only in the following scenarios:
-//
-// * To create a new game build with build files that are in an Amazon S3
-// bucket under your own AWS account. To use this option, you must first
-// give Amazon GameLift access to that Amazon S3 bucket. Then call CreateBuild
-// and specify a build name, operating system, and the Amazon S3 storage
-// location of your game build.
-//
-// * To upload build files directly to Amazon GameLift's Amazon S3 account.
-// To use this option, first call CreateBuild and specify a build name and
-// operating system. This action creates a new build record and returns an
-// Amazon S3 storage location (bucket and key only) and temporary access
-// credentials. Use the credentials to manually upload your build file to
-// the provided storage location (see the Amazon S3 topic Uploading Objects
-// (https://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html)).
-// You can upload build files to the GameLift Amazon S3 location only once.
-//
-// If successful, this operation creates a new build record with a unique build
-// ID and places it in INITIALIZED status. You can use DescribeBuild to check
-// the status of your build. A build must be in READY status before it can be
-// used to create fleets.
+// Creates a new Amazon GameLift build resource for your game server binary
+// files. Game server binaries must be combined into a zip file for use with
+// Amazon GameLift.
+//
+// When setting up a new game build for GameLift, we recommend using the AWS
+// CLI command upload-build (https://docs.aws.amazon.com/cli/latest/reference/gamelift/upload-build.html)
+// . This helper command combines two tasks: (1) it uploads your build files
+// from a file directory to a GameLift Amazon S3 location, and (2) it creates
+// a new build resource.
+//
+// The CreateBuild operation can used in the following scenarios:
+//
+// * To create a new game build with build files that are in an S3 location
+// under an AWS account that you control. To use this option, you must first
+// give Amazon GameLift access to the S3 bucket. With permissions in place,
+// call CreateBuild and specify a build name, operating system, and the S3
+// storage location of your game build.
+//
+// * To directly upload your build files to a GameLift S3 location. To use
+// this option, first call CreateBuild and specify a build name and operating
+// system. This action creates a new build resource and also returns an S3
+// location with temporary access credentials. Use the credentials to manually
+// upload your build files to the specified S3 location. For more information,
+// see Uploading Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html)
+// in the Amazon S3 Developer Guide. Build files can be uploaded to the GameLift
+// S3 location once only; that can't be updated.
+//
+// If successful, this operation creates a new build resource with a unique
+// build ID and places it in INITIALIZED status. A build must be in READY status
+// before you can create fleets with it.
//
// Learn more
//
// Uploading Your Game (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
-// https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
-// (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
//
// Create a Build with Files in Amazon S3 (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build)
//
@@ -476,17 +626,16 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req
// set some configuration options, and specify the game server to deploy on
// the new fleet.
//
-// To create a new fleet, you must provide the following: (1) a fleet name,
-// (2) an EC2 instance type and fleet type (spot or on-demand), (3) the build
-// ID for your game build or script ID if using Realtime Servers, and (4) a
-// runtime configuration, which determines how game servers will run on each
-// instance in the fleet.
+// To create a new fleet, provide the following: (1) a fleet name, (2) an EC2
+// instance type and fleet type (spot or on-demand), (3) the build ID for your
+// game build or script ID if using Realtime Servers, and (4) a runtime configuration,
+// which determines how game servers will run on each instance in the fleet.
//
// If the CreateFleet call is successful, Amazon GameLift performs the following
// tasks. You can track the process of a fleet by checking the fleet status
// or by monitoring fleet creation events:
//
-// * Creates a fleet record. Status: NEW.
+// * Creates a fleet resource. Status: NEW.
//
// * Begins writing events to the fleet event log, which can be accessed
// in the Amazon GameLift console.
@@ -506,9 +655,9 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req
//
// Learn more
//
-// Setting Up Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
+// Setting Up Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
-// Debug Fleet Creation Issues (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-debug.html#fleets-creating-debug-creation)
+// Debug Fleet Creation Issues (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-debug.html#fleets-creating-debug-creation)
//
// Related operations
//
@@ -522,7 +671,7 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -584,6 +733,162 @@ func (c *GameLift) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInp
return out, req.Send()
}
+const opCreateGameServerGroup = "CreateGameServerGroup"
+
+// CreateGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the CreateGameServerGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateGameServerGroup for more information on using the CreateGameServerGroup
+// 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 CreateGameServerGroupRequest method.
+// req, resp := client.CreateGameServerGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameServerGroup
+func (c *GameLift) CreateGameServerGroupRequest(input *CreateGameServerGroupInput) (req *request.Request, output *CreateGameServerGroupOutput) {
+ op := &request.Operation{
+ Name: opCreateGameServerGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateGameServerGroupInput{}
+ }
+
+ output = &CreateGameServerGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateGameServerGroup API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Creates a GameLift FleetIQ game server group to manage a collection of EC2
+// instances for game hosting. In addition to creating the game server group,
+// this action also creates an Auto Scaling group in your AWS account and establishes
+// a link between the two groups. You have full control over configuration of
+// the Auto Scaling group, but GameLift FleetIQ routinely certain Auto Scaling
+// group properties in order to optimize the group's instances for low-cost
+// game hosting. You can view the status of your game server groups in the GameLift
+// Console. Game server group metrics and events are emitted to Amazon CloudWatch.
+//
+// Prior creating a new game server group, you must set up the following:
+//
+// * An EC2 launch template. The template provides configuration settings
+// for a set of EC2 instances and includes the game server build that you
+// want to deploy and run on each instance. For more information on creating
+// a launch template, see Launching an Instance from a Launch Template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html)
+// in the Amazon EC2 User Guide.
+//
+// * An IAM role. The role sets up limited access to your AWS account, allowing
+// GameLift FleetIQ to create and manage the EC2 Auto Scaling group, get
+// instance data, and emit metrics and events to CloudWatch. For more information
+// on setting up an IAM permissions policy with principal access for GameLift,
+// see Specifying a Principal in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-bucket-user-policy-specifying-principal-intro.html)
+// in the Amazon S3 Developer Guide.
+//
+// To create a new game server group, provide a name and specify the IAM role
+// and EC2 launch template. You also need to provide a list of instance types
+// to be used in the group and set initial maximum and minimum limits on the
+// group's instance count. You can optionally set an autoscaling policy with
+// target tracking based on a GameLift FleetIQ metric.
+//
+// Once the game server group and corresponding Auto Scaling group are created,
+// you have full access to change the Auto Scaling group's configuration as
+// needed. Keep in mind, however, that some properties are periodically updated
+// by GameLift FleetIQ as it balances the group's instances based on availability
+// and cost.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Updating a GameLift FleetIQ-Linked Auto Scaling Group (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-asgroups.html)
+//
+// Related operations
+//
+// * CreateGameServerGroup
+//
+// * ListGameServerGroups
+//
+// * DescribeGameServerGroup
+//
+// * UpdateGameServerGroup
+//
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
+//
+// 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 GameLift's
+// API operation CreateGameServerGroup for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * ConflictException
+// The requested operation would cause a conflict with the current state of
+// a service resource associated with the request. Resolve the conflict before
+// retrying this request.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// * LimitExceededException
+// The requested operation would cause the resource to exceed the allowed service
+// limit. Resolve the issue before retrying.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/CreateGameServerGroup
+func (c *GameLift) CreateGameServerGroup(input *CreateGameServerGroupInput) (*CreateGameServerGroupOutput, error) {
+ req, out := c.CreateGameServerGroupRequest(input)
+ return out, req.Send()
+}
+
+// CreateGameServerGroupWithContext is the same as CreateGameServerGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateGameServerGroup 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 *GameLift) CreateGameServerGroupWithContext(ctx aws.Context, input *CreateGameServerGroupInput, opts ...request.Option) (*CreateGameServerGroupOutput, error) {
+ req, out := c.CreateGameServerGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateGameSession = "CreateGameSession"
// CreateGameSessionRequest generates a "aws/request.Request" representing the
@@ -824,6 +1129,14 @@ func (c *GameLift) CreateGameSessionQueueRequest(input *CreateGameSessionQueueIn
// and, if desired, a set of latency policies. If successful, a new queue object
// is returned.
//
+// Learn more
+//
+// Design a Game Session Queue (https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-design.html)
+//
+// Create a Game Session Queue (https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-creating.html)
+//
+// Related operations
+//
// * CreateGameSessionQueue
//
// * DescribeGameSessionQueues
@@ -1969,16 +2282,16 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req
// DeleteBuild API operation for Amazon GameLift.
//
-// Deletes a build. This action permanently deletes the build record and any
-// uploaded build files.
+// Deletes a build. This action permanently deletes the build resource and any
+// uploaded build files. Deleting a build does not affect the status of any
+// active fleets using the build, but you can no longer create new fleets with
+// the deleted build.
//
-// To delete a build, specify its ID. Deleting a build does not affect the status
-// of any active fleets using the build, but you can no longer create new fleets
-// with the deleted build.
+// To delete a build, specify the build ID.
//
// Learn more
//
-// Working with Builds (https://docs.aws.amazon.com/gamelift/latest/developerguide/build-intro.html)
+// Upload a Custom Server Build (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
//
// Related operations
//
@@ -2096,12 +2409,12 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req
// You do not need to explicitly delete the VPC peering connection--this is
// done as part of the delete fleet process.
//
-// This action removes the fleet's resources and the fleet record. Once a fleet
-// is deleted, you can no longer use that fleet.
+// This action removes the fleet and its resources. Once a fleet is deleted,
+// you can no longer use any of the resource in that fleet.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -2115,7 +2428,7 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -2173,76 +2486,101 @@ func (c *GameLift) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInp
return out, req.Send()
}
-const opDeleteGameSessionQueue = "DeleteGameSessionQueue"
+const opDeleteGameServerGroup = "DeleteGameServerGroup"
-// DeleteGameSessionQueueRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteGameSessionQueue operation. The "output" return
+// DeleteGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteGameServerGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteGameSessionQueue for more information on using the DeleteGameSessionQueue
+// See DeleteGameServerGroup for more information on using the DeleteGameServerGroup
// 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 DeleteGameSessionQueueRequest method.
-// req, resp := client.DeleteGameSessionQueueRequest(params)
+// // Example sending a request using the DeleteGameServerGroupRequest method.
+// req, resp := client.DeleteGameServerGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue
-func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueInput) (req *request.Request, output *DeleteGameSessionQueueOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameServerGroup
+func (c *GameLift) DeleteGameServerGroupRequest(input *DeleteGameServerGroupInput) (req *request.Request, output *DeleteGameServerGroupOutput) {
op := &request.Operation{
- Name: opDeleteGameSessionQueue,
+ Name: opDeleteGameServerGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteGameSessionQueueInput{}
+ input = &DeleteGameServerGroupInput{}
}
- output = &DeleteGameSessionQueueOutput{}
+ output = &DeleteGameServerGroupOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteGameSessionQueue API operation for Amazon GameLift.
+// DeleteGameServerGroup API operation for Amazon GameLift.
//
-// Deletes a game session queue. This action means that any StartGameSessionPlacement
-// requests that reference this queue will fail. To delete a queue, specify
-// the queue name.
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
//
-// * CreateGameSessionQueue
+// Terminates a game server group and permanently deletes the game server group
+// record. You have several options for how these resources are impacted when
+// deleting the game server group. Depending on the type of delete action selected,
+// this action may affect three types of resources: the game server group, the
+// corresponding Auto Scaling group, and all game servers currently running
+// in the group.
//
-// * DescribeGameSessionQueues
+// To delete a game server group, identify the game server group to delete and
+// specify the type of delete action to initiate. Game server groups can only
+// be deleted if they are in ACTIVE or ERROR status.
//
-// * UpdateGameSessionQueue
+// If the delete request is successful, a series of actions are kicked off.
+// The game server group status is changed to DELETE_SCHEDULED, which prevents
+// new game servers from being registered and stops autoscaling activity. Once
+// all game servers in the game server group are de-registered, GameLift FleetIQ
+// can begin deleting resources. If any of the delete actions fail, the game
+// server group is placed in ERROR status.
//
-// * DeleteGameSessionQueue
+// GameLift FleetIQ emits delete events to Amazon CloudWatch.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * CreateGameServerGroup
+//
+// * ListGameServerGroups
+//
+// * DescribeGameServerGroup
+//
+// * UpdateGameServerGroup
+//
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
//
// 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 GameLift's
-// API operation DeleteGameSessionQueue for usage and error information.
+// API operation DeleteGameServerGroup for usage and error information.
//
// Returned Error Types:
-// * InternalServiceException
-// The service encountered an unrecoverable internal failure while processing
-// the request. Clients can retry such requests immediately or after a waiting
-// period.
-//
// * InvalidRequestException
// One or more parameter values in the request are invalid. Correct the invalid
// parameter values before retrying.
@@ -2254,52 +2592,166 @@ func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueIn
// * UnauthorizedException
// The client failed authentication. Clients should not retry such requests.
//
-// * TaggingFailedException
-// The requested tagging operation did not succeed. This may be due to invalid
-// tag format or the maximum tag limit may have been exceeded. Resolve the issue
-// before retrying.
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue
-func (c *GameLift) DeleteGameSessionQueue(input *DeleteGameSessionQueueInput) (*DeleteGameSessionQueueOutput, error) {
- req, out := c.DeleteGameSessionQueueRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameServerGroup
+func (c *GameLift) DeleteGameServerGroup(input *DeleteGameServerGroupInput) (*DeleteGameServerGroupOutput, error) {
+ req, out := c.DeleteGameServerGroupRequest(input)
return out, req.Send()
}
-// DeleteGameSessionQueueWithContext is the same as DeleteGameSessionQueue with the addition of
+// DeleteGameServerGroupWithContext is the same as DeleteGameServerGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteGameSessionQueue for details on how to use this API operation.
+// See DeleteGameServerGroup 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 *GameLift) DeleteGameSessionQueueWithContext(ctx aws.Context, input *DeleteGameSessionQueueInput, opts ...request.Option) (*DeleteGameSessionQueueOutput, error) {
- req, out := c.DeleteGameSessionQueueRequest(input)
+func (c *GameLift) DeleteGameServerGroupWithContext(ctx aws.Context, input *DeleteGameServerGroupInput, opts ...request.Option) (*DeleteGameServerGroupOutput, error) {
+ req, out := c.DeleteGameServerGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteMatchmakingConfiguration = "DeleteMatchmakingConfiguration"
+const opDeleteGameSessionQueue = "DeleteGameSessionQueue"
-// DeleteMatchmakingConfigurationRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteMatchmakingConfiguration operation. The "output" return
+// DeleteGameSessionQueueRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteGameSessionQueue operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteMatchmakingConfiguration for more information on using the DeleteMatchmakingConfiguration
+// See DeleteGameSessionQueue for more information on using the DeleteGameSessionQueue
// 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 DeleteMatchmakingConfigurationRequest method.
-// req, resp := client.DeleteMatchmakingConfigurationRequest(params)
+// // Example sending a request using the DeleteGameSessionQueueRequest method.
+// req, resp := client.DeleteGameSessionQueueRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue
+func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueInput) (req *request.Request, output *DeleteGameSessionQueueOutput) {
+ op := &request.Operation{
+ Name: opDeleteGameSessionQueue,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteGameSessionQueueInput{}
+ }
+
+ output = &DeleteGameSessionQueueOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteGameSessionQueue API operation for Amazon GameLift.
+//
+// Deletes a game session queue. This action means that any StartGameSessionPlacement
+// requests that reference this queue will fail. To delete a queue, specify
+// the queue name.
+//
+// Learn more
+//
+// Using Multi-Region Queues (https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-intro.html)
+//
+// Related operations
+//
+// * CreateGameSessionQueue
+//
+// * DescribeGameSessionQueues
+//
+// * UpdateGameSessionQueue
+//
+// * DeleteGameSessionQueue
+//
+// 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 GameLift's
+// API operation DeleteGameSessionQueue for usage and error information.
+//
+// Returned Error Types:
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * TaggingFailedException
+// The requested tagging operation did not succeed. This may be due to invalid
+// tag format or the maximum tag limit may have been exceeded. Resolve the issue
+// before retrying.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteGameSessionQueue
+func (c *GameLift) DeleteGameSessionQueue(input *DeleteGameSessionQueueInput) (*DeleteGameSessionQueueOutput, error) {
+ req, out := c.DeleteGameSessionQueueRequest(input)
+ return out, req.Send()
+}
+
+// DeleteGameSessionQueueWithContext is the same as DeleteGameSessionQueue with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteGameSessionQueue 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 *GameLift) DeleteGameSessionQueueWithContext(ctx aws.Context, input *DeleteGameSessionQueueInput, opts ...request.Option) (*DeleteGameSessionQueueOutput, error) {
+ req, out := c.DeleteGameSessionQueueRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteMatchmakingConfiguration = "DeleteMatchmakingConfiguration"
+
+// DeleteMatchmakingConfigurationRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteMatchmakingConfiguration operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteMatchmakingConfiguration for more information on using the DeleteMatchmakingConfiguration
+// 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 DeleteMatchmakingConfigurationRequest method.
+// req, resp := client.DeleteMatchmakingConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
@@ -2971,6 +3423,126 @@ func (c *GameLift) DeleteVpcPeeringConnectionWithContext(ctx aws.Context, input
return out, req.Send()
}
+const opDeregisterGameServer = "DeregisterGameServer"
+
+// DeregisterGameServerRequest generates a "aws/request.Request" representing the
+// client's request for the DeregisterGameServer operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeregisterGameServer for more information on using the DeregisterGameServer
+// 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 DeregisterGameServerRequest method.
+// req, resp := client.DeregisterGameServerRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeregisterGameServer
+func (c *GameLift) DeregisterGameServerRequest(input *DeregisterGameServerInput) (req *request.Request, output *DeregisterGameServerOutput) {
+ op := &request.Operation{
+ Name: opDeregisterGameServer,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeregisterGameServerInput{}
+ }
+
+ output = &DeregisterGameServerOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeregisterGameServer API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Removes the game server resource from the game server group. As a result
+// of this action, the de-registered game server can no longer be claimed and
+// will not returned in a list of active game servers.
+//
+// To de-register a game server, specify the game server group and game server
+// ID. If successful, this action emits a CloudWatch event with termination
+// time stamp and reason.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * RegisterGameServer
+//
+// * ListGameServers
+//
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation DeregisterGameServer for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeregisterGameServer
+func (c *GameLift) DeregisterGameServer(input *DeregisterGameServerInput) (*DeregisterGameServerOutput, error) {
+ req, out := c.DeregisterGameServerRequest(input)
+ return out, req.Send()
+}
+
+// DeregisterGameServerWithContext is the same as DeregisterGameServer with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeregisterGameServer 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 *GameLift) DeregisterGameServerWithContext(ctx aws.Context, input *DeregisterGameServerInput, opts ...request.Option) (*DeregisterGameServerOutput, error) {
+ req, out := c.DeregisterGameServerRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeAlias = "DescribeAlias"
// DescribeAliasRequest generates a "aws/request.Request" representing the
@@ -3123,12 +3695,13 @@ func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request
// DescribeBuild API operation for Amazon GameLift.
//
-// Retrieves properties for a build. To request a build record, specify a build
-// ID. If successful, an object containing the build properties is returned.
+// Retrieves properties for a custom game build. To request a build resource,
+// specify a build ID. If successful, an object containing the build properties
+// is returned.
//
// Learn more
//
-// Working with Builds (https://docs.aws.amazon.com/gamelift/latest/developerguide/build-intro.html)
+// Upload a Custom Server Build (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
//
// Related operations
//
@@ -3234,17 +3807,17 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi
//
// Retrieves the following information for the specified EC2 instance type:
//
-// * maximum number of instances allowed per AWS account (service limit)
+// * Maximum number of instances allowed per AWS account (service limit).
//
-// * current usage level for the AWS account
+// * Current usage for the AWS account.
//
-// Service limits vary depending on Region. Available Regions for Amazon GameLift
-// can be found in the AWS Management Console for Amazon GameLift (see the drop-down
-// list in the upper right corner).
+// To learn more about the capabilities of each instance type, see Amazon EC2
+// Instance Types (http://aws.amazon.com/ec2/instance-types/). Note that the
+// instance types offered may vary depending on the region.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -3254,14 +3827,11 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi
//
// * DeleteFleet
//
-// * Describe fleets: DescribeFleetAttributes DescribeFleetCapacity DescribeFleetPortSettings
-// DescribeFleetUtilization DescribeRuntimeConfiguration DescribeEC2InstanceLimits
-// DescribeFleetEvents
+// * DescribeFleetAttributes
//
-// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
-// UpdateRuntimeConfiguration
+// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3349,21 +3919,23 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes
// DescribeFleetAttributes API operation for Amazon GameLift.
//
-// Retrieves fleet properties, including metadata, status, and configuration,
-// for one or more fleets. You can request attributes for all fleets, or specify
-// a list of one or more fleet IDs. When requesting multiple fleets, use the
-// pagination parameters to retrieve results as a set of sequential pages. If
-// successful, a FleetAttributes object is returned for each requested fleet
-// ID. When specifying a list of fleet IDs, attribute objects are returned only
-// for fleets that currently exist.
+// Retrieves core properties, including configuration, status, and metadata,
+// for a fleet.
+//
+// To get attributes for one or more fleets, provide a list of fleet IDs or
+// fleet ARNs. To get attributes for all fleets, do not specify a fleet identifier.
+// When requesting attributes for multiple fleets, use the pagination parameters
+// to retrieve results as a set of sequential pages. If successful, a FleetAttributes
+// object is returned for each fleet requested, unless the fleet identifier
+// is not found.
//
// Some API actions may limit the number of fleet IDs allowed in one request.
// If a request exceeds this limit, the request fails and the error message
-// includes the maximum allowed.
+// includes the maximum allowed number.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -3379,7 +3951,7 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3471,14 +4043,17 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu
// DescribeFleetCapacity API operation for Amazon GameLift.
//
-// Retrieves the current status of fleet capacity for one or more fleets. This
-// information includes the number of instances that have been requested for
-// the fleet and the number currently active. You can request capacity for all
-// fleets, or specify a list of one or more fleet IDs. When requesting multiple
-// fleets, use the pagination parameters to retrieve results as a set of sequential
-// pages. If successful, a FleetCapacity object is returned for each requested
-// fleet ID. When specifying a list of fleet IDs, attribute objects are returned
-// only for fleets that currently exist.
+// Retrieves the current capacity statistics for one or more fleets. These statistics
+// present a snapshot of the fleet's instances and provide insight on current
+// or imminent scaling activity. To get statistics on game hosting activity
+// in the fleet, see DescribeFleetUtilization.
+//
+// You can request capacity for all fleets or specify a list of one or more
+// fleet identifiers. When requesting multiple fleets, use the pagination parameters
+// to retrieve results as a set of sequential pages. If successful, a FleetCapacity
+// object is returned for each requested fleet ID. When a list of fleet IDs
+// is provided, attribute objects are returned only for fleets that currently
+// exist.
//
// Some API actions may limit the number of fleet IDs allowed in one request.
// If a request exceeds this limit, the request fails and the error message
@@ -3486,7 +4061,9 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
+//
+// GameLift Metrics for Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/monitoring-cloudwatch.html#gamelift-metrics-fleet)
//
// Related operations
//
@@ -3502,7 +4079,7 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3601,7 +4178,7 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -3617,7 +4194,7 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3709,16 +4286,19 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett
// DescribeFleetPortSettings API operation for Amazon GameLift.
//
-// Retrieves the inbound connection permissions for a fleet. Connection permissions
-// include a range of IP addresses and port settings that incoming traffic can
-// use to access server processes in the fleet. To get a fleet's inbound connection
-// permissions, specify a fleet ID. If successful, a collection of IpPermission
-// objects is returned for the requested fleet ID. If the requested fleet has
-// been deleted, the result set is empty.
+// Retrieves a fleet's inbound connection permissions. Connection permissions
+// specify the range of IP addresses and port settings that incoming traffic
+// can use to access server processes in the fleet. Game sessions that are running
+// on instances in the fleet use connections that fall in this range.
+//
+// To get a fleet's inbound connection permissions, specify the fleet's unique
+// identifier. If successful, a collection of IpPermission objects is returned
+// for the requested fleet ID. If the requested fleet has been deleted, the
+// result set is empty.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -3734,7 +4314,7 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3826,12 +4406,15 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati
// DescribeFleetUtilization API operation for Amazon GameLift.
//
-// Retrieves utilization statistics for one or more fleets. You can request
-// utilization data for all fleets, or specify a list of one or more fleet IDs.
-// When requesting multiple fleets, use the pagination parameters to retrieve
-// results as a set of sequential pages. If successful, a FleetUtilization object
-// is returned for each requested fleet ID. When specifying a list of fleet
-// IDs, utilization objects are returned only for fleets that currently exist.
+// Retrieves utilization statistics for one or more fleets. These statistics
+// provide insight into how available hosting resources are currently being
+// used. To get statistics on available hosting resources, see DescribeFleetCapacity.
+//
+// You can request utilization data for all fleets, or specify a list of one
+// or more fleet IDs. When requesting multiple fleets, use the pagination parameters
+// to retrieve results as a set of sequential pages. If successful, a FleetUtilization
+// object is returned for each requested fleet ID, unless the fleet identifier
+// is not found.
//
// Some API actions may limit the number of fleet IDs allowed in one request.
// If a request exceeds this limit, the request fails and the error message
@@ -3839,7 +4422,9 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
+//
+// GameLift Metrics for Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/monitoring-cloudwatch.html#gamelift-metrics-fleet)
//
// Related operations
//
@@ -3855,7 +4440,7 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -3903,76 +4488,312 @@ func (c *GameLift) DescribeFleetUtilizationWithContext(ctx aws.Context, input *D
return out, req.Send()
}
-const opDescribeGameSessionDetails = "DescribeGameSessionDetails"
+const opDescribeGameServer = "DescribeGameServer"
-// DescribeGameSessionDetailsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeGameSessionDetails operation. The "output" return
+// DescribeGameServerRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeGameServer operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeGameSessionDetails for more information on using the DescribeGameSessionDetails
+// See DescribeGameServer for more information on using the DescribeGameServer
// 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 DescribeGameSessionDetailsRequest method.
-// req, resp := client.DescribeGameSessionDetailsRequest(params)
+// // Example sending a request using the DescribeGameServerRequest method.
+// req, resp := client.DescribeGameServerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetails
-func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameServer
+func (c *GameLift) DescribeGameServerRequest(input *DescribeGameServerInput) (req *request.Request, output *DescribeGameServerOutput) {
op := &request.Operation{
- Name: opDescribeGameSessionDetails,
+ Name: opDescribeGameServer,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeGameSessionDetailsInput{}
+ input = &DescribeGameServerInput{}
}
- output = &DescribeGameSessionDetailsOutput{}
+ output = &DescribeGameServerOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeGameSessionDetails API operation for Amazon GameLift.
+// DescribeGameServer API operation for Amazon GameLift.
//
-// Retrieves properties, including the protection policy in force, for one or
-// more game sessions. This action can be used in several ways: (1) provide
-// a GameSessionId or GameSessionArn to request details for a specific game
-// session; (2) provide either a FleetId or an AliasId to request properties
-// for all game sessions running on a fleet.
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
//
-// To get game session record(s), specify just one of the following: game session
-// ID, fleet ID, or alias ID. You can filter this request by game session status.
-// Use the pagination parameters to retrieve results as a set of sequential
-// pages. If successful, a GameSessionDetail object is returned for each session
-// matching the request.
+// Retrieves information for a game server resource. Information includes the
+// game server statuses, health check info, and the instance the game server
+// is running on.
//
-// * CreateGameSession
+// To retrieve game server information, specify the game server ID. If successful,
+// the requested game server object is returned.
//
-// * DescribeGameSessions
+// Learn more
//
-// * DescribeGameSessionDetails
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
//
-// * SearchGameSessions
+// Related operations
//
-// * UpdateGameSession
+// * RegisterGameServer
//
-// * GetGameSessionLogUrl
+// * ListGameServers
//
-// * Game session placements StartGameSessionPlacement DescribeGameSessionPlacement
-// StopGameSessionPlacement
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation DescribeGameServer for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameServer
+func (c *GameLift) DescribeGameServer(input *DescribeGameServerInput) (*DescribeGameServerOutput, error) {
+ req, out := c.DescribeGameServerRequest(input)
+ return out, req.Send()
+}
+
+// DescribeGameServerWithContext is the same as DescribeGameServer with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeGameServer 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 *GameLift) DescribeGameServerWithContext(ctx aws.Context, input *DescribeGameServerInput, opts ...request.Option) (*DescribeGameServerOutput, error) {
+ req, out := c.DescribeGameServerRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeGameServerGroup = "DescribeGameServerGroup"
+
+// DescribeGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeGameServerGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeGameServerGroup for more information on using the DescribeGameServerGroup
+// 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 DescribeGameServerGroupRequest method.
+// req, resp := client.DescribeGameServerGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameServerGroup
+func (c *GameLift) DescribeGameServerGroupRequest(input *DescribeGameServerGroupInput) (req *request.Request, output *DescribeGameServerGroupOutput) {
+ op := &request.Operation{
+ Name: opDescribeGameServerGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeGameServerGroupInput{}
+ }
+
+ output = &DescribeGameServerGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeGameServerGroup API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Retrieves information on a game server group.
+//
+// To get attributes for a game server group, provide a group name or ARN value.
+// If successful, a GameServerGroup object is returned.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * CreateGameServerGroup
+//
+// * ListGameServerGroups
+//
+// * DescribeGameServerGroup
+//
+// * UpdateGameServerGroup
+//
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
+//
+// 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 GameLift's
+// API operation DescribeGameServerGroup for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameServerGroup
+func (c *GameLift) DescribeGameServerGroup(input *DescribeGameServerGroupInput) (*DescribeGameServerGroupOutput, error) {
+ req, out := c.DescribeGameServerGroupRequest(input)
+ return out, req.Send()
+}
+
+// DescribeGameServerGroupWithContext is the same as DescribeGameServerGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeGameServerGroup 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 *GameLift) DescribeGameServerGroupWithContext(ctx aws.Context, input *DescribeGameServerGroupInput, opts ...request.Option) (*DescribeGameServerGroupOutput, error) {
+ req, out := c.DescribeGameServerGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeGameSessionDetails = "DescribeGameSessionDetails"
+
+// DescribeGameSessionDetailsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeGameSessionDetails operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeGameSessionDetails for more information on using the DescribeGameSessionDetails
+// 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 DescribeGameSessionDetailsRequest method.
+// req, resp := client.DescribeGameSessionDetailsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionDetails
+func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) {
+ op := &request.Operation{
+ Name: opDescribeGameSessionDetails,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeGameSessionDetailsInput{}
+ }
+
+ output = &DescribeGameSessionDetailsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeGameSessionDetails API operation for Amazon GameLift.
+//
+// Retrieves properties, including the protection policy in force, for one or
+// more game sessions. This action can be used in several ways: (1) provide
+// a GameSessionId or GameSessionArn to request details for a specific game
+// session; (2) provide either a FleetId or an AliasId to request properties
+// for all game sessions running on a fleet.
+//
+// To get game session record(s), specify just one of the following: game session
+// ID, fleet ID, or alias ID. You can filter this request by game session status.
+// Use the pagination parameters to retrieve results as a set of sequential
+// pages. If successful, a GameSessionDetail object is returned for each session
+// matching the request.
+//
+// * CreateGameSession
+//
+// * DescribeGameSessions
+//
+// * DescribeGameSessionDetails
+//
+// * SearchGameSessions
+//
+// * UpdateGameSession
+//
+// * GetGameSessionLogUrl
+//
+// * Game session placements StartGameSessionPlacement DescribeGameSessionPlacement
+// StopGameSessionPlacement
//
// 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
@@ -4186,6 +5007,12 @@ func (c *GameLift) DescribeGameSessionQueuesRequest(input *DescribeGameSessionQu
// for each requested queue. When specifying a list of queues, objects are returned
// only for queues that currently exist in the Region.
//
+// Learn more
+//
+// View Your Queues (https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-console.html)
+//
+// Related operations
+//
// * CreateGameSessionQueue
//
// * DescribeGameSessionQueues
@@ -4418,6 +5245,18 @@ func (c *GameLift) DescribeInstancesRequest(input *DescribeInstancesInput) (req
// to retrieve results as a set of sequential pages. If successful, an Instance
// object is returned for each result.
//
+// Learn more
+//
+// Remotely Access Fleet Instances (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html)
+//
+// Debug Fleet Issues (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-debug.html)
+//
+// Related operations
+//
+// * DescribeInstances
+//
+// * GetInstanceAccess
+//
// 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.
@@ -4973,13 +5812,19 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon
// DescribeRuntimeConfiguration API operation for Amazon GameLift.
//
-// Retrieves the current runtime configuration for the specified fleet. The
-// runtime configuration tells Amazon GameLift how to launch server processes
-// on instances in the fleet.
+// Retrieves a fleet's runtime configuration settings. The runtime configuration
+// tells Amazon GameLift which server processes to run (and how) on each instance
+// in the fleet.
+//
+// To get a runtime configuration, specify the fleet's unique identifier. If
+// successful, a RuntimeConfiguration object is returned for the requested fleet.
+// If the requested fleet has been deleted, the result set is empty.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
+//
+// Running Multiple Processes on a Fleet (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-multiprocess.html)
//
// Related operations
//
@@ -4995,7 +5840,7 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -5639,22 +6484,34 @@ func (c *GameLift) GetInstanceAccessRequest(input *GetInstanceAccessInput) (req
// GetInstanceAccess API operation for Amazon GameLift.
//
// Requests remote access to a fleet instance. Remote access is useful for debugging,
-// gathering benchmarking data, or watching activity in real time.
-//
-// Access requires credentials that match the operating system of the instance.
-// For a Windows instance, Amazon GameLift returns a user name and password
-// as strings for use with a Windows Remote Desktop client. For a Linux instance,
-// Amazon GameLift returns a user name and RSA private key, also as strings,
-// for use with an SSH client. The private key must be saved in the proper format
-// to a .pem file before using. If you're making this request using the AWS
-// CLI, saving the secret can be handled as part of the GetInstanceAccess request.
-// (See the example later in this topic). For more information on remote access,
-// see Remotely Accessing an Instance (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html).
+// gathering benchmarking data, or observing activity in real time.
+//
+// To remotely access an instance, you need credentials that match the operating
+// system of the instance. For a Windows instance, Amazon GameLift returns a
+// user name and password as strings for use with a Windows Remote Desktop client.
+// For a Linux instance, Amazon GameLift returns a user name and RSA private
+// key, also as strings, for use with an SSH client. The private key must be
+// saved in the proper format to a .pem file before using. If you're making
+// this request using the AWS CLI, saving the secret can be handled as part
+// of the GetInstanceAccess request, as shown in one of the examples for this
+// action.
//
// To request access to a specific instance, specify the IDs of both the instance
// and the fleet it belongs to. You can retrieve a fleet's instance IDs by calling
-// DescribeInstances. If successful, an InstanceAccess object is returned containing
-// the instance's IP address and a set of credentials.
+// DescribeInstances. If successful, an InstanceAccess object is returned that
+// contains the instance's IP address and a set of credentials.
+//
+// Learn more
+//
+// Remotely Access Fleet Instances (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html)
+//
+// Debug Fleet Issues (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-creating-debug.html)
+//
+// Related operations
+//
+// * DescribeInstances
+//
+// * GetInstanceAccess
//
// 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
@@ -5850,16 +6707,16 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque
// ListBuilds API operation for Amazon GameLift.
//
-// Retrieves build records for all builds associated with the AWS account in
-// use. You can limit results to builds that are in a specific status by using
-// the Status parameter. Use the pagination parameters to retrieve results in
-// a set of sequential pages.
+// Retrieves build resources for all builds associated with the AWS account
+// in use. You can limit results to builds that are in a specific status by
+// using the Status parameter. Use the pagination parameters to retrieve results
+// in a set of sequential pages.
//
-// Build records are not listed in any particular order.
+// Build resources are not listed in any particular order.
//
// Learn more
//
-// Working with Builds (https://docs.aws.amazon.com/gamelift/latest/developerguide/build-intro.html)
+// Upload a Custom Server Build (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
//
// Related operations
//
@@ -5959,16 +6816,16 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque
// ListFleets API operation for Amazon GameLift.
//
-// Retrieves a collection of fleet records for this AWS account. You can filter
+// Retrieves a collection of fleet resources for this AWS account. You can filter
// the result set to find only those fleets that are deployed with a specific
// build or script. Use the pagination parameters to retrieve results in sequential
// pages.
//
-// Fleet records are not listed in a particular order.
+// Fleet resources are not listed in a particular order.
//
// Learn more
//
-// Set Up Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -5982,7 +6839,7 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -6030,106 +6887,332 @@ func (c *GameLift) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput
return out, req.Send()
}
-const opListScripts = "ListScripts"
+const opListGameServerGroups = "ListGameServerGroups"
-// ListScriptsRequest generates a "aws/request.Request" representing the
-// client's request for the ListScripts operation. The "output" return
+// ListGameServerGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the ListGameServerGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListScripts for more information on using the ListScripts
+// See ListGameServerGroups for more information on using the ListGameServerGroups
// 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 ListScriptsRequest method.
-// req, resp := client.ListScriptsRequest(params)
+// // Example sending a request using the ListGameServerGroupsRequest method.
+// req, resp := client.ListGameServerGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListScripts
-func (c *GameLift) ListScriptsRequest(input *ListScriptsInput) (req *request.Request, output *ListScriptsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListGameServerGroups
+func (c *GameLift) ListGameServerGroupsRequest(input *ListGameServerGroupsInput) (req *request.Request, output *ListGameServerGroupsOutput) {
op := &request.Operation{
- Name: opListScripts,
+ Name: opListGameServerGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ListScriptsInput{}
+ input = &ListGameServerGroupsInput{}
}
- output = &ListScriptsOutput{}
+ output = &ListGameServerGroupsOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListScripts API operation for Amazon GameLift.
+// ListGameServerGroups API operation for Amazon GameLift.
//
-// Retrieves script records for all Realtime scripts that are associated with
-// the AWS account in use.
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Retrieves information on all game servers groups that exist in the current
+// AWS account for the selected region. Use the pagination parameters to retrieve
+// results in a set of sequential pages.
//
// Learn more
//
-// Amazon GameLift Realtime Servers (https://docs.aws.amazon.com/gamelift/latest/developerguide/realtime-intro.html)
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
//
// Related operations
//
-// * CreateScript
+// * CreateGameServerGroup
//
-// * ListScripts
+// * ListGameServerGroups
//
-// * DescribeScript
+// * DescribeGameServerGroup
//
-// * UpdateScript
+// * UpdateGameServerGroup
//
-// * DeleteScript
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
//
// 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 GameLift's
-// API operation ListScripts for usage and error information.
+// API operation ListGameServerGroups for usage and error information.
//
// Returned Error Types:
-// * UnauthorizedException
-// The client failed authentication. Clients should not retry such requests.
-//
// * InvalidRequestException
// One or more parameter values in the request are invalid. Correct the invalid
// parameter values before retrying.
//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
// * InternalServiceException
// The service encountered an unrecoverable internal failure while processing
// the request. Clients can retry such requests immediately or after a waiting
// period.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListScripts
-func (c *GameLift) ListScripts(input *ListScriptsInput) (*ListScriptsOutput, error) {
- req, out := c.ListScriptsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListGameServerGroups
+func (c *GameLift) ListGameServerGroups(input *ListGameServerGroupsInput) (*ListGameServerGroupsOutput, error) {
+ req, out := c.ListGameServerGroupsRequest(input)
return out, req.Send()
}
-// ListScriptsWithContext is the same as ListScripts with the addition of
+// ListGameServerGroupsWithContext is the same as ListGameServerGroups with the addition of
// the ability to pass a context and additional request options.
//
-// See ListScripts for details on how to use this API operation.
+// See ListGameServerGroups 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 *GameLift) ListScriptsWithContext(ctx aws.Context, input *ListScriptsInput, opts ...request.Option) (*ListScriptsOutput, error) {
- req, out := c.ListScriptsRequest(input)
+func (c *GameLift) ListGameServerGroupsWithContext(ctx aws.Context, input *ListGameServerGroupsInput, opts ...request.Option) (*ListGameServerGroupsOutput, error) {
+ req, out := c.ListGameServerGroupsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListGameServers = "ListGameServers"
+
+// ListGameServersRequest generates a "aws/request.Request" representing the
+// client's request for the ListGameServers operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListGameServers for more information on using the ListGameServers
+// 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 ListGameServersRequest method.
+// req, resp := client.ListGameServersRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListGameServers
+func (c *GameLift) ListGameServersRequest(input *ListGameServersInput) (req *request.Request, output *ListGameServersOutput) {
+ op := &request.Operation{
+ Name: opListGameServers,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListGameServersInput{}
+ }
+
+ output = &ListGameServersOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListGameServers API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Retrieves information on all game servers that are currently running in a
+// specified game server group. If there are custom key sort values for your
+// game servers, you can opt to have the returned list sorted based on these
+// values. Use the pagination parameters to retrieve results in a set of sequential
+// pages.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * RegisterGameServer
+//
+// * ListGameServers
+//
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation ListGameServers for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListGameServers
+func (c *GameLift) ListGameServers(input *ListGameServersInput) (*ListGameServersOutput, error) {
+ req, out := c.ListGameServersRequest(input)
+ return out, req.Send()
+}
+
+// ListGameServersWithContext is the same as ListGameServers with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListGameServers 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 *GameLift) ListGameServersWithContext(ctx aws.Context, input *ListGameServersInput, opts ...request.Option) (*ListGameServersOutput, error) {
+ req, out := c.ListGameServersRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListScripts = "ListScripts"
+
+// ListScriptsRequest generates a "aws/request.Request" representing the
+// client's request for the ListScripts operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListScripts for more information on using the ListScripts
+// 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 ListScriptsRequest method.
+// req, resp := client.ListScriptsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListScripts
+func (c *GameLift) ListScriptsRequest(input *ListScriptsInput) (req *request.Request, output *ListScriptsOutput) {
+ op := &request.Operation{
+ Name: opListScripts,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListScriptsInput{}
+ }
+
+ output = &ListScriptsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListScripts API operation for Amazon GameLift.
+//
+// Retrieves script records for all Realtime scripts that are associated with
+// the AWS account in use.
+//
+// Learn more
+//
+// Amazon GameLift Realtime Servers (https://docs.aws.amazon.com/gamelift/latest/developerguide/realtime-intro.html)
+//
+// Related operations
+//
+// * CreateScript
+//
+// * ListScripts
+//
+// * DescribeScript
+//
+// * UpdateScript
+//
+// * DeleteScript
+//
+// 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 GameLift's
+// API operation ListScripts for usage and error information.
+//
+// Returned Error Types:
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListScripts
+func (c *GameLift) ListScripts(input *ListScriptsInput) (*ListScriptsOutput, error) {
+ req, out := c.ListScriptsRequest(input)
+ return out, req.Send()
+}
+
+// ListScriptsWithContext is the same as ListScripts with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListScripts 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 *GameLift) ListScriptsWithContext(ctx aws.Context, input *ListScriptsInput, opts ...request.Option) (*ListScriptsOutput, error) {
+ req, out := c.ListScriptsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
@@ -6439,6 +7522,139 @@ func (c *GameLift) PutScalingPolicyWithContext(ctx aws.Context, input *PutScalin
return out, req.Send()
}
+const opRegisterGameServer = "RegisterGameServer"
+
+// RegisterGameServerRequest generates a "aws/request.Request" representing the
+// client's request for the RegisterGameServer operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RegisterGameServer for more information on using the RegisterGameServer
+// 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 RegisterGameServerRequest method.
+// req, resp := client.RegisterGameServerRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RegisterGameServer
+func (c *GameLift) RegisterGameServerRequest(input *RegisterGameServerInput) (req *request.Request, output *RegisterGameServerOutput) {
+ op := &request.Operation{
+ Name: opRegisterGameServer,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RegisterGameServerInput{}
+ }
+
+ output = &RegisterGameServerOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RegisterGameServer API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Creates a new game server resource and notifies GameLift FleetIQ that the
+// game server is ready to host gameplay and players. This action is called
+// by a game server process that is running on an instance in a game server
+// group. Registering game servers enables GameLift FleetIQ to track available
+// game servers and enables game clients and services to claim a game server
+// for a new game session.
+//
+// To register a game server, identify the game server group and instance where
+// the game server is running, and provide a unique identifier for the game
+// server. You can also include connection and game server data; when a game
+// client or service requests a game server by calling ClaimGameServer, this
+// information is returned in response.
+//
+// Once a game server is successfully registered, it is put in status AVAILABLE.
+// A request to register a game server may fail if the instance it is in the
+// process of shutting down as part of instance rebalancing or scale-down activity.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * RegisterGameServer
+//
+// * ListGameServers
+//
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation RegisterGameServer for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * ConflictException
+// The requested operation would cause a conflict with the current state of
+// a service resource associated with the request. Resolve the conflict before
+// retrying this request.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// * LimitExceededException
+// The requested operation would cause the resource to exceed the allowed service
+// limit. Resolve the issue before retrying.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/RegisterGameServer
+func (c *GameLift) RegisterGameServer(input *RegisterGameServerInput) (*RegisterGameServerOutput, error) {
+ req, out := c.RegisterGameServerRequest(input)
+ return out, req.Send()
+}
+
+// RegisterGameServerWithContext is the same as RegisterGameServer with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RegisterGameServer 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 *GameLift) RegisterGameServerWithContext(ctx aws.Context, input *RegisterGameServerInput, opts ...request.Option) (*RegisterGameServerOutput, error) {
+ req, out := c.RegisterGameServerRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opRequestUploadCredentials = "RequestUploadCredentials"
// RequestUploadCredentialsRequest generates a "aws/request.Request" representing the
@@ -6493,7 +7709,7 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia
//
// Learn more
//
-// Uploading Your Game (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
+// Create a Build with Files in S3 (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html#gamelift-build-cli-uploading-create-build)
//
// Related operations
//
@@ -6664,6 +7880,129 @@ func (c *GameLift) ResolveAliasWithContext(ctx aws.Context, input *ResolveAliasI
return out, req.Send()
}
+const opResumeGameServerGroup = "ResumeGameServerGroup"
+
+// ResumeGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ResumeGameServerGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ResumeGameServerGroup for more information on using the ResumeGameServerGroup
+// 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 ResumeGameServerGroupRequest method.
+// req, resp := client.ResumeGameServerGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResumeGameServerGroup
+func (c *GameLift) ResumeGameServerGroupRequest(input *ResumeGameServerGroupInput) (req *request.Request, output *ResumeGameServerGroupOutput) {
+ op := &request.Operation{
+ Name: opResumeGameServerGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ResumeGameServerGroupInput{}
+ }
+
+ output = &ResumeGameServerGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ResumeGameServerGroup API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Reinstates activity on a game server group after it has been suspended. A
+// game server group may be suspended by calling SuspendGameServerGroup, or
+// it may have been involuntarily suspended due to a configuration problem.
+// You can manually resume activity on the group once the configuration problem
+// has been resolved. Refer to the game server group status and status reason
+// for more information on why group activity is suspended.
+//
+// To resume activity, specify a game server group ARN and the type of activity
+// to be resumed.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * CreateGameServerGroup
+//
+// * ListGameServerGroups
+//
+// * DescribeGameServerGroup
+//
+// * UpdateGameServerGroup
+//
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
+//
+// 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 GameLift's
+// API operation ResumeGameServerGroup for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResumeGameServerGroup
+func (c *GameLift) ResumeGameServerGroup(input *ResumeGameServerGroupInput) (*ResumeGameServerGroupOutput, error) {
+ req, out := c.ResumeGameServerGroupRequest(input)
+ return out, req.Send()
+}
+
+// ResumeGameServerGroupWithContext is the same as ResumeGameServerGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ResumeGameServerGroup 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 *GameLift) ResumeGameServerGroupWithContext(ctx aws.Context, input *ResumeGameServerGroupInput, opts ...request.Option) (*ResumeGameServerGroupOutput, error) {
+ req, out := c.ResumeGameServerGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opSearchGameSessions = "SearchGameSessions"
// SearchGameSessionsRequest generates a "aws/request.Request" representing the
@@ -6882,7 +8221,7 @@ func (c *GameLift) StartFleetActionsRequest(input *StartFleetActionsInput) (req
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -6892,14 +8231,11 @@ func (c *GameLift) StartFleetActionsRequest(input *StartFleetActionsInput) (req
//
// * DeleteFleet
//
-// * Describe fleets: DescribeFleetAttributes DescribeFleetCapacity DescribeFleetPortSettings
-// DescribeFleetUtilization DescribeRuntimeConfiguration DescribeEC2InstanceLimits
-// DescribeFleetEvents
+// * DescribeFleetAttributes
//
-// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
-// UpdateRuntimeConfiguration
+// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -7446,19 +8782,18 @@ func (c *GameLift) StopFleetActionsRequest(input *StopFleetActionsInput) (req *r
// StopFleetActions API operation for Amazon GameLift.
//
// Suspends activity on a fleet. Currently, this operation is used to stop a
-// fleet's auto-scaling activity. It is used to temporarily stop scaling events
-// triggered by the fleet's scaling policies. The policies can be retained and
-// auto-scaling activity can be restarted using StartFleetActions. You can view
-// a fleet's stopped actions using DescribeFleetAttributes.
+// fleet's auto-scaling activity. It is used to temporarily stop triggering
+// scaling events. The policies can be retained and auto-scaling activity can
+// be restarted using StartFleetActions. You can view a fleet's stopped actions
+// using DescribeFleetAttributes.
//
// To stop fleet actions, specify the fleet ID and the type of actions to suspend.
// When auto-scaling fleet actions are stopped, Amazon GameLift no longer initiates
-// scaling events except to maintain the fleet's desired instances setting (FleetCapacity.
-// Changes to the fleet's capacity must be done manually using UpdateFleetCapacity.
+// scaling events except in response to manual changes using UpdateFleetCapacity.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -7468,14 +8803,11 @@ func (c *GameLift) StopFleetActionsRequest(input *StopFleetActionsInput) (req *r
//
// * DeleteFleet
//
-// * Describe fleets: DescribeFleetAttributes DescribeFleetCapacity DescribeFleetPortSettings
-// DescribeFleetUtilization DescribeRuntimeConfiguration DescribeEC2InstanceLimits
-// DescribeFleetEvents
+// * DescribeFleetAttributes
//
-// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
-// UpdateRuntimeConfiguration
+// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -7669,48 +9001,177 @@ func (c *GameLift) StopMatchmakingRequest(input *StopMatchmakingInput) (req *req
input = &StopMatchmakingInput{}
}
- output = &StopMatchmakingOutput{}
+ output = &StopMatchmakingOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// StopMatchmaking API operation for Amazon GameLift.
+//
+// Cancels a matchmaking ticket or match backfill ticket that is currently being
+// processed. To stop the matchmaking operation, specify the ticket ID. If successful,
+// work on the ticket is stopped, and the ticket status is changed to CANCELLED.
+//
+// This call is also used to turn off automatic backfill for an individual game
+// session. This is for game sessions that are created with a matchmaking configuration
+// that has automatic backfill enabled. The ticket ID is included in the MatchmakerData
+// of an updated game session object, which is provided to the game server.
+//
+// If the action is successful, the service sends back an empty JSON struct
+// with the HTTP 200 response (not an empty HTTP body).
+//
+// Learn more
+//
+// Add FlexMatch to a Game Client (https://docs.aws.amazon.com/gamelift/latest/developerguide/match-client.html)
+//
+// Related operations
+//
+// * StartMatchmaking
+//
+// * DescribeMatchmaking
+//
+// * StopMatchmaking
+//
+// * AcceptMatch
+//
+// * StartMatchBackfill
+//
+// 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 GameLift's
+// API operation StopMatchmaking for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// * UnsupportedRegionException
+// The requested operation is not supported in the Region specified.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopMatchmaking
+func (c *GameLift) StopMatchmaking(input *StopMatchmakingInput) (*StopMatchmakingOutput, error) {
+ req, out := c.StopMatchmakingRequest(input)
+ return out, req.Send()
+}
+
+// StopMatchmakingWithContext is the same as StopMatchmaking with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StopMatchmaking 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 *GameLift) StopMatchmakingWithContext(ctx aws.Context, input *StopMatchmakingInput, opts ...request.Option) (*StopMatchmakingOutput, error) {
+ req, out := c.StopMatchmakingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSuspendGameServerGroup = "SuspendGameServerGroup"
+
+// SuspendGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the SuspendGameServerGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SuspendGameServerGroup for more information on using the SuspendGameServerGroup
+// 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 SuspendGameServerGroupRequest method.
+// req, resp := client.SuspendGameServerGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SuspendGameServerGroup
+func (c *GameLift) SuspendGameServerGroupRequest(input *SuspendGameServerGroupInput) (req *request.Request, output *SuspendGameServerGroupOutput) {
+ op := &request.Operation{
+ Name: opSuspendGameServerGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SuspendGameServerGroupInput{}
+ }
+
+ output = &SuspendGameServerGroupOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// StopMatchmaking API operation for Amazon GameLift.
+// SuspendGameServerGroup API operation for Amazon GameLift.
//
-// Cancels a matchmaking ticket or match backfill ticket that is currently being
-// processed. To stop the matchmaking operation, specify the ticket ID. If successful,
-// work on the ticket is stopped, and the ticket status is changed to CANCELLED.
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
//
-// This call is also used to turn off automatic backfill for an individual game
-// session. This is for game sessions that are created with a matchmaking configuration
-// that has automatic backfill enabled. The ticket ID is included in the MatchmakerData
-// of an updated game session object, which is provided to the game server.
+// Temporarily stops activity on a game server group without terminating instances
+// or the game server group. Activity can be restarted by calling ResumeGameServerGroup.
+// Activities that can suspended are:
//
-// If the action is successful, the service sends back an empty JSON struct
-// with the HTTP 200 response (not an empty HTTP body).
+// * Instance type replacement. This activity evaluates the current Spot
+// viability of all instance types that are defined for the game server group.
+// It updates the Auto Scaling group to remove nonviable Spot instance types
+// (which have a higher chance of game server interruptions) and rebalances
+// capacity across the remaining viable Spot instance types. When this activity
+// is suspended, the Auto Scaling group continues with its current balance,
+// regardless of viability. Instance protection, utilization metrics, and
+// capacity autoscaling activities continue to be active.
+//
+// To suspend activity, specify a game server group ARN and the type of activity
+// to be suspended.
//
// Learn more
//
-// Add FlexMatch to a Game Client (https://docs.aws.amazon.com/gamelift/latest/developerguide/match-client.html)
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
//
// Related operations
//
-// * StartMatchmaking
+// * CreateGameServerGroup
//
-// * DescribeMatchmaking
+// * ListGameServerGroups
//
-// * StopMatchmaking
+// * DescribeGameServerGroup
//
-// * AcceptMatch
+// * UpdateGameServerGroup
//
-// * StartMatchBackfill
+// * DeleteGameServerGroup
+//
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
//
// 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 GameLift's
-// API operation StopMatchmaking for usage and error information.
+// API operation SuspendGameServerGroup for usage and error information.
//
// Returned Error Types:
// * InvalidRequestException
@@ -7721,31 +9182,31 @@ func (c *GameLift) StopMatchmakingRequest(input *StopMatchmakingInput) (req *req
// A service resource associated with the request could not be found. Clients
// should not retry such requests.
//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
// * InternalServiceException
// The service encountered an unrecoverable internal failure while processing
// the request. Clients can retry such requests immediately or after a waiting
// period.
//
-// * UnsupportedRegionException
-// The requested operation is not supported in the Region specified.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopMatchmaking
-func (c *GameLift) StopMatchmaking(input *StopMatchmakingInput) (*StopMatchmakingOutput, error) {
- req, out := c.StopMatchmakingRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/SuspendGameServerGroup
+func (c *GameLift) SuspendGameServerGroup(input *SuspendGameServerGroupInput) (*SuspendGameServerGroupOutput, error) {
+ req, out := c.SuspendGameServerGroupRequest(input)
return out, req.Send()
}
-// StopMatchmakingWithContext is the same as StopMatchmaking with the addition of
+// SuspendGameServerGroupWithContext is the same as SuspendGameServerGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See StopMatchmaking for details on how to use this API operation.
+// See SuspendGameServerGroup 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 *GameLift) StopMatchmakingWithContext(ctx aws.Context, input *StopMatchmakingInput, opts ...request.Option) (*StopMatchmakingOutput, error) {
- req, out := c.StopMatchmakingRequest(input)
+func (c *GameLift) SuspendGameServerGroupWithContext(ctx aws.Context, input *SuspendGameServerGroupInput, opts ...request.Option) (*SuspendGameServerGroupOutput, error) {
+ req, out := c.SuspendGameServerGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
@@ -7817,7 +9278,7 @@ func (c *GameLift) TagResourceRequest(input *TagResourceInput) (req *request.Req
// * MatchmakingRuleSet
//
// To add a tag to a resource, specify the unique ARN value for the resource
-// and provide a trig list containing one or more tags. The operation succeeds
+// and provide a tag list containing one or more tags. The operation succeeds
// even if the list includes tags that are already assigned to the specified
// resource.
//
@@ -8167,14 +9628,14 @@ func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Req
// UpdateBuild API operation for Amazon GameLift.
//
-// Updates metadata in a build record, including the build name and version.
+// Updates metadata in a build resource, including the build name and version.
// To update the metadata, specify the build ID to update and provide the new
// values. If successful, a build object containing the updated metadata is
// returned.
//
// Learn more
//
-// Working with Builds (https://docs.aws.amazon.com/gamelift/latest/developerguide/build-intro.html)
+// Upload a Custom Server Build (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
//
// Related operations
//
@@ -8284,7 +9745,7 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -8299,7 +9760,7 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu
// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
// UpdateRuntimeConfiguration
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -8424,7 +9885,7 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -8439,7 +9900,7 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (
// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
// UpdateRuntimeConfiguration
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -8485,147 +9946,414 @@ func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*Update
return out, req.Send()
}
-// UpdateFleetCapacityWithContext is the same as UpdateFleetCapacity with the addition of
+// UpdateFleetCapacityWithContext is the same as UpdateFleetCapacity with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateFleetCapacity 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 *GameLift) UpdateFleetCapacityWithContext(ctx aws.Context, input *UpdateFleetCapacityInput, opts ...request.Option) (*UpdateFleetCapacityOutput, error) {
+ req, out := c.UpdateFleetCapacityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateFleetPortSettings = "UpdateFleetPortSettings"
+
+// UpdateFleetPortSettingsRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateFleetPortSettings operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateFleetPortSettings for more information on using the UpdateFleetPortSettings
+// 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 UpdateFleetPortSettingsRequest method.
+// req, resp := client.UpdateFleetPortSettingsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings
+func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) {
+ op := &request.Operation{
+ Name: opUpdateFleetPortSettings,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateFleetPortSettingsInput{}
+ }
+
+ output = &UpdateFleetPortSettingsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateFleetPortSettings API operation for Amazon GameLift.
+//
+// Updates port settings for a fleet. To update settings, specify the fleet
+// ID to be updated and list the permissions you want to update. List the permissions
+// you want to add in InboundPermissionAuthorizations, and permissions you want
+// to remove in InboundPermissionRevocations. Permissions to be removed must
+// match existing fleet permissions. If successful, the fleet ID for the updated
+// fleet is returned.
+//
+// Learn more
+//
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
+//
+// Related operations
+//
+// * CreateFleet
+//
+// * ListFleets
+//
+// * DeleteFleet
+//
+// * DescribeFleetAttributes
+//
+// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
+// UpdateRuntimeConfiguration
+//
+// * StartFleetActions or StopFleetActions
+//
+// 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 GameLift's
+// API operation UpdateFleetPortSettings for usage and error information.
+//
+// Returned Error Types:
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * ConflictException
+// The requested operation would cause a conflict with the current state of
+// a service resource associated with the request. Resolve the conflict before
+// retrying this request.
+//
+// * InvalidFleetStatusException
+// The requested operation would cause a conflict with the current state of
+// a resource associated with the request and/or the fleet. Resolve the conflict
+// before retrying.
+//
+// * LimitExceededException
+// The requested operation would cause the resource to exceed the allowed service
+// limit. Resolve the issue before retrying.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings
+func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) {
+ req, out := c.UpdateFleetPortSettingsRequest(input)
+ return out, req.Send()
+}
+
+// UpdateFleetPortSettingsWithContext is the same as UpdateFleetPortSettings with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateFleetPortSettings 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 *GameLift) UpdateFleetPortSettingsWithContext(ctx aws.Context, input *UpdateFleetPortSettingsInput, opts ...request.Option) (*UpdateFleetPortSettingsOutput, error) {
+ req, out := c.UpdateFleetPortSettingsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateGameServer = "UpdateGameServer"
+
+// UpdateGameServerRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateGameServer operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateGameServer for more information on using the UpdateGameServer
+// 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 UpdateGameServerRequest method.
+// req, resp := client.UpdateGameServerRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameServer
+func (c *GameLift) UpdateGameServerRequest(input *UpdateGameServerInput) (req *request.Request, output *UpdateGameServerOutput) {
+ op := &request.Operation{
+ Name: opUpdateGameServer,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateGameServerInput{}
+ }
+
+ output = &UpdateGameServerOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateGameServer API operation for Amazon GameLift.
+//
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Updates information about a registered game server. This action is called
+// by a game server process that is running on an instance in a game server
+// group. There are three reasons to update game server information: (1) to
+// change the utilization status of the game server, (2) to report game server
+// health status, and (3) to change game server metadata. A registered game
+// server should regularly report health and should update utilization status
+// when it is supporting gameplay so that GameLift FleetIQ can accurately track
+// game server availability. You can make all three types of updates in the
+// same request.
+//
+// * To update the game server's utilization status, identify the game server
+// and game server group and specify the current utilization status. Use
+// this status to identify when game servers are currently hosting games
+// and when they are available to be claimed.
+//
+// * To report health status, identify the game server and game server group
+// and set health check to HEALTHY. If a game server does not report health
+// status for a certain length of time, the game server is no longer considered
+// healthy and will be eventually de-registered from the game server group
+// to avoid affecting utilization metrics. The best practice is to report
+// health every 60 seconds.
+//
+// * To change game server metadata, provide updated game server data and
+// custom sort key values.
+//
+// Once a game server is successfully updated, the relevant statuses and timestamps
+// are updated.
+//
+// Learn more
+//
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Related operations
+//
+// * RegisterGameServer
+//
+// * ListGameServers
+//
+// * ClaimGameServer
+//
+// * DescribeGameServer
+//
+// * UpdateGameServer
+//
+// * DeregisterGameServer
+//
+// 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 GameLift's
+// API operation UpdateGameServer for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
+// * NotFoundException
+// A service resource associated with the request could not be found. Clients
+// should not retry such requests.
+//
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
+//
+// * InternalServiceException
+// The service encountered an unrecoverable internal failure while processing
+// the request. Clients can retry such requests immediately or after a waiting
+// period.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameServer
+func (c *GameLift) UpdateGameServer(input *UpdateGameServerInput) (*UpdateGameServerOutput, error) {
+ req, out := c.UpdateGameServerRequest(input)
+ return out, req.Send()
+}
+
+// UpdateGameServerWithContext is the same as UpdateGameServer with the addition of
// the ability to pass a context and additional request options.
//
-// See UpdateFleetCapacity for details on how to use this API operation.
+// See UpdateGameServer 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 *GameLift) UpdateFleetCapacityWithContext(ctx aws.Context, input *UpdateFleetCapacityInput, opts ...request.Option) (*UpdateFleetCapacityOutput, error) {
- req, out := c.UpdateFleetCapacityRequest(input)
+func (c *GameLift) UpdateGameServerWithContext(ctx aws.Context, input *UpdateGameServerInput, opts ...request.Option) (*UpdateGameServerOutput, error) {
+ req, out := c.UpdateGameServerRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opUpdateFleetPortSettings = "UpdateFleetPortSettings"
+const opUpdateGameServerGroup = "UpdateGameServerGroup"
-// UpdateFleetPortSettingsRequest generates a "aws/request.Request" representing the
-// client's request for the UpdateFleetPortSettings operation. The "output" return
+// UpdateGameServerGroupRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateGameServerGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See UpdateFleetPortSettings for more information on using the UpdateFleetPortSettings
+// See UpdateGameServerGroup for more information on using the UpdateGameServerGroup
// 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 UpdateFleetPortSettingsRequest method.
-// req, resp := client.UpdateFleetPortSettingsRequest(params)
+// // Example sending a request using the UpdateGameServerGroupRequest method.
+// req, resp := client.UpdateGameServerGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings
-func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameServerGroup
+func (c *GameLift) UpdateGameServerGroupRequest(input *UpdateGameServerGroupInput) (req *request.Request, output *UpdateGameServerGroupOutput) {
op := &request.Operation{
- Name: opUpdateFleetPortSettings,
+ Name: opUpdateGameServerGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &UpdateFleetPortSettingsInput{}
+ input = &UpdateGameServerGroupInput{}
}
- output = &UpdateFleetPortSettingsOutput{}
+ output = &UpdateGameServerGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// UpdateFleetPortSettings API operation for Amazon GameLift.
+// UpdateGameServerGroup API operation for Amazon GameLift.
//
-// Updates port settings for a fleet. To update settings, specify the fleet
-// ID to be updated and list the permissions you want to update. List the permissions
-// you want to add in InboundPermissionAuthorizations, and permissions you want
-// to remove in InboundPermissionRevocations. Permissions to be removed must
-// match existing fleet permissions. If successful, the fleet ID for the updated
-// fleet is returned.
+// This action is part of Amazon GameLift FleetIQ with game server groups, which
+// is in preview release and is subject to change.
+//
+// Updates GameLift FleetIQ-specific properties for a game server group. These
+// properties include instance rebalancing and game server protection. Many
+// Auto Scaling group properties are updated directly. These include autoscaling
+// policies, minimum/maximum/desired instance counts, and launch template.
+//
+// To update the game server group, specify the game server group ID and provide
+// the updated values.
+//
+// Updated properties are validated to ensure that GameLift FleetIQ can continue
+// to perform its core instance rebalancing activity. When you change Auto Scaling
+// group properties directly and the changes cause errors with GameLift FleetIQ
+// activities, an alert is sent.
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// GameLift FleetIQ Guide (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-intro.html)
+//
+// Updating a GameLift FleetIQ-Linked Auto Scaling Group (https://docs.aws.amazon.com/gamelift/latest/developerguide/gsg-asgroups.html)
//
// Related operations
//
-// * CreateFleet
+// * CreateGameServerGroup
//
-// * ListFleets
+// * ListGameServerGroups
//
-// * DeleteFleet
+// * DescribeGameServerGroup
//
-// * DescribeFleetAttributes
+// * UpdateGameServerGroup
//
-// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
-// UpdateRuntimeConfiguration
+// * DeleteGameServerGroup
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * ResumeGameServerGroup
+//
+// * SuspendGameServerGroup
//
// 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 GameLift's
-// API operation UpdateFleetPortSettings for usage and error information.
+// API operation UpdateGameServerGroup for usage and error information.
//
// Returned Error Types:
+// * InvalidRequestException
+// One or more parameter values in the request are invalid. Correct the invalid
+// parameter values before retrying.
+//
// * NotFoundException
// A service resource associated with the request could not be found. Clients
// should not retry such requests.
//
-// * ConflictException
-// The requested operation would cause a conflict with the current state of
-// a service resource associated with the request. Resolve the conflict before
-// retrying this request.
-//
-// * InvalidFleetStatusException
-// The requested operation would cause a conflict with the current state of
-// a resource associated with the request and/or the fleet. Resolve the conflict
-// before retrying.
-//
-// * LimitExceededException
-// The requested operation would cause the resource to exceed the allowed service
-// limit. Resolve the issue before retrying.
+// * UnauthorizedException
+// The client failed authentication. Clients should not retry such requests.
//
// * InternalServiceException
// The service encountered an unrecoverable internal failure while processing
// the request. Clients can retry such requests immediately or after a waiting
// period.
//
-// * InvalidRequestException
-// One or more parameter values in the request are invalid. Correct the invalid
-// parameter values before retrying.
-//
-// * UnauthorizedException
-// The client failed authentication. Clients should not retry such requests.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings
-func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) {
- req, out := c.UpdateFleetPortSettingsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameServerGroup
+func (c *GameLift) UpdateGameServerGroup(input *UpdateGameServerGroupInput) (*UpdateGameServerGroupOutput, error) {
+ req, out := c.UpdateGameServerGroupRequest(input)
return out, req.Send()
}
-// UpdateFleetPortSettingsWithContext is the same as UpdateFleetPortSettings with the addition of
+// UpdateGameServerGroupWithContext is the same as UpdateGameServerGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See UpdateFleetPortSettings for details on how to use this API operation.
+// See UpdateGameServerGroup 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 *GameLift) UpdateFleetPortSettingsWithContext(ctx aws.Context, input *UpdateFleetPortSettingsInput, opts ...request.Option) (*UpdateFleetPortSettingsOutput, error) {
- req, out := c.UpdateFleetPortSettingsRequest(input)
+func (c *GameLift) UpdateGameServerGroupWithContext(ctx aws.Context, input *UpdateGameServerGroupInput, opts ...request.Option) (*UpdateGameServerGroupOutput, error) {
+ req, out := c.UpdateGameServerGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
@@ -8803,6 +10531,12 @@ func (c *GameLift) UpdateGameSessionQueueRequest(input *UpdateGameSessionQueueIn
// the queue name to be updated and provide the new settings. When updating
// destinations, provide a complete list of destinations.
//
+// Learn more
+//
+// Using Multi-Region Queues (https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-intro.html)
+//
+// Related operations
+//
// * CreateGameSessionQueue
//
// * DescribeGameSessionQueues
@@ -9035,7 +10769,7 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu
//
// Learn more
//
-// Working with Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html).
+// Setting up GameLift Fleets (https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html)
//
// Related operations
//
@@ -9050,7 +10784,7 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu
// * Update fleets: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings
// UpdateRuntimeConfiguration
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
//
// 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
@@ -9438,9 +11172,9 @@ type Alias struct {
// Amazon Resource Name (ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html))
// that is assigned to a GameLift alias resource and uniquely identifies it.
- // ARNs are unique across all Regions.. In a GameLift alias ARN, the resource
+ // ARNs are unique across all Regions. In a GameLift alias ARN, the resource
// ID matches the alias ID value.
- AliasArn *string `min:"1" type:"string"`
+ AliasArn *string `type:"string"`
// A unique identifier for an alias. Alias IDs are unique within a Region.
AliasId *string `type:"string"`
@@ -9795,12 +11529,106 @@ func (s *CertificateConfiguration) SetCertificateType(v string) *CertificateConf
return s
}
+type ClaimGameServerInput struct {
+ _ struct{} `type:"structure"`
+
+ // A set of custom game server properties, formatted as a single string value,
+ // to be passed to the claimed game server.
+ GameServerData *string `min:"1" type:"string"`
+
+ // An identifier for the game server group. When claiming a specific game server,
+ // this is the game server group whether the game server is located. When requesting
+ // that GameLift FleetIQ locate an available game server, this is the game server
+ // group to search on. You can use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // A custom string that uniquely identifies the game server to claim. If this
+ // parameter is left empty, GameLift FleetIQ searches for an available game
+ // server in the specified game server group.
+ GameServerId *string `min:"3" type:"string"`
+}
+
+// String returns the string representation
+func (s ClaimGameServerInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ClaimGameServerInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ClaimGameServerInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ClaimGameServerInput"}
+ if s.GameServerData != nil && len(*s.GameServerData) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerData", 1))
+ }
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.GameServerId != nil && len(*s.GameServerId) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerId", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerData sets the GameServerData field's value.
+func (s *ClaimGameServerInput) SetGameServerData(v string) *ClaimGameServerInput {
+ s.GameServerData = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *ClaimGameServerInput) SetGameServerGroupName(v string) *ClaimGameServerInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerId sets the GameServerId field's value.
+func (s *ClaimGameServerInput) SetGameServerId(v string) *ClaimGameServerInput {
+ s.GameServerId = &v
+ return s
+}
+
+type ClaimGameServerOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Object that describes the newly claimed game server resource.
+ GameServer *GameServer `type:"structure"`
+}
+
+// String returns the string representation
+func (s ClaimGameServerOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ClaimGameServerOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServer sets the GameServer field's value.
+func (s *ClaimGameServerOutput) SetGameServer(v *GameServer) *ClaimGameServerOutput {
+ s.GameServer = v
+ return s
+}
+
// The requested operation would cause a conflict with the current state of
// a service resource associated with the request. Resolve the conflict before
// retrying this request.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -9817,17 +11645,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9835,22 +11663,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input for a request action.
@@ -9990,11 +11818,11 @@ type CreateBuildInput struct {
OperatingSystem *string `type:"string" enum:"OperatingSystem"`
// Information indicating where your game build files are stored. Use this parameter
- // only when creating a build with files stored in an Amazon S3 bucket that
- // you own. The storage location must specify an Amazon S3 bucket name and key.
- // The location must also specify a role ARN that you set up to allow Amazon
- // GameLift to access your Amazon S3 bucket. The S3 bucket and your new build
- // must be in the same Region.
+ // only when creating a build with files stored in an S3 bucket that you own.
+ // The storage location must specify an S3 bucket name and key. The location
+ // must also specify a role ARN that you set up to allow Amazon GameLift to
+ // access your S3 bucket. The S3 bucket and your new build must be in the same
+ // Region.
StorageLocation *S3Location `type:"structure"`
// A list of labels to assign to the new build resource. Tags are developer-defined
@@ -10087,7 +11915,7 @@ func (s *CreateBuildInput) SetVersion(v string) *CreateBuildInput {
type CreateBuildOutput struct {
_ struct{} `type:"structure"`
- // The newly created build record, including a unique build IDs and status.
+ // The newly created build resource, including a unique build IDs and status.
Build *Build `type:"structure"`
// Amazon S3 location for your game build file, including bucket name and key.
@@ -10095,8 +11923,8 @@ type CreateBuildOutput struct {
// This element is returned only when the operation is called without a storage
// location. It contains credentials to use when you are uploading a build file
- // to an Amazon S3 bucket that is owned by Amazon GameLift. Credentials have
- // a limited life span. To refresh these credentials, call RequestUploadCredentials.
+ // to an S3 bucket that is owned by Amazon GameLift. Credentials have a limited
+ // life span. To refresh these credentials, call RequestUploadCredentials.
UploadCredentials *AwsCredentials `type:"structure" sensitive:"true"`
}
@@ -10456,45 +12284,320 @@ func (s *CreateFleetInput) SetScriptId(v string) *CreateFleetInput {
return s
}
-// SetServerLaunchParameters sets the ServerLaunchParameters field's value.
-func (s *CreateFleetInput) SetServerLaunchParameters(v string) *CreateFleetInput {
- s.ServerLaunchParameters = &v
+// SetServerLaunchParameters sets the ServerLaunchParameters field's value.
+func (s *CreateFleetInput) SetServerLaunchParameters(v string) *CreateFleetInput {
+ s.ServerLaunchParameters = &v
+ return s
+}
+
+// SetServerLaunchPath sets the ServerLaunchPath field's value.
+func (s *CreateFleetInput) SetServerLaunchPath(v string) *CreateFleetInput {
+ s.ServerLaunchPath = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateFleetInput) SetTags(v []*Tag) *CreateFleetInput {
+ s.Tags = v
+ return s
+}
+
+// Represents the returned data in response to a request action.
+type CreateFleetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Properties for the newly created fleet.
+ FleetAttributes *FleetAttributes `type:"structure"`
+}
+
+// String returns the string representation
+func (s CreateFleetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateFleetOutput) GoString() string {
+ return s.String()
+}
+
+// SetFleetAttributes sets the FleetAttributes field's value.
+func (s *CreateFleetOutput) SetFleetAttributes(v *FleetAttributes) *CreateFleetOutput {
+ s.FleetAttributes = v
+ return s
+}
+
+type CreateGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration settings to define a scaling policy for the Auto Scaling group
+ // that is optimized for game hosting. The scaling policy uses the metric "PercentUtilizedGameServers"
+ // to maintain a buffer of idle game servers that can immediately accommodate
+ // new games and players. Once the game server and Auto Scaling groups are created,
+ // you can update the scaling policy settings directly in Auto Scaling Groups.
+ AutoScalingPolicy *GameServerGroupAutoScalingPolicy `type:"structure"`
+
+ // The fallback balancing method to use for the game server group when Spot
+ // instances in a Region become unavailable or are not viable for game hosting.
+ // Once triggered, this method remains active until Spot instances can once
+ // again be used. Method options include:
+ //
+ // * SPOT_ONLY -- If Spot instances are unavailable, the game server group
+ // provides no hosting capacity. No new instances are started, and the existing
+ // nonviable Spot instances are terminated (once current gameplay ends) and
+ // not replaced.
+ //
+ // * SPOT_PREFERRED -- If Spot instances are unavailable, the game server
+ // group continues to provide hosting capacity by using On-Demand instances.
+ // Existing nonviable Spot instances are terminated (once current gameplay
+ // ends) and replaced with new On-Demand instances.
+ BalancingStrategy *string `type:"string" enum:"BalancingStrategy"`
+
+ // An identifier for the new game server group. This value is used to generate
+ // unique ARN identifiers for the EC2 Auto Scaling group and the GameLift FleetIQ
+ // game server group. The name must be unique per Region per AWS account.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // A flag that indicates whether instances in the game server group are protected
+ // from early termination. Unprotected instances that have active game servers
+ // running may by terminated during a scale-down event, causing players to be
+ // dropped from the game. Protected instances cannot be terminated while there
+ // are active game servers running. An exception to this is Spot Instances,
+ // which may be terminated by AWS regardless of protection status. This property
+ // is set to NO_PROTECTION by default.
+ GameServerProtectionPolicy *string `type:"string" enum:"GameServerProtectionPolicy"`
+
+ // A set of EC2 instance types to use when creating instances in the group.
+ // The instance definitions must specify at least two different instance types
+ // that are supported by GameLift FleetIQ. For more information on instance
+ // types, see EC2 Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
+ // in the Amazon EC2 User Guide.
+ //
+ // InstanceDefinitions is a required field
+ InstanceDefinitions []*InstanceDefinition `min:"2" type:"list" required:"true"`
+
+ // The EC2 launch template that contains configuration settings and game server
+ // code to be deployed to all instances in the game server group. You can specify
+ // the template using either the template name or ID. For help with creating
+ // a launch template, see Creating a Launch Template for an Auto Scaling Group
+ // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html)
+ // in the Amazon EC2 Auto Scaling User Guide.
+ //
+ // LaunchTemplate is a required field
+ LaunchTemplate *LaunchTemplateSpecification `type:"structure" required:"true"`
+
+ // The maximum number of instances allowed in the EC2 Auto Scaling group. During
+ // autoscaling events, GameLift FleetIQ and EC2 do not scale up the group above
+ // this maximum.
+ //
+ // MaxSize is a required field
+ MaxSize *int64 `min:"1" type:"integer" required:"true"`
+
+ // The minimum number of instances allowed in the EC2 Auto Scaling group. During
+ // autoscaling events, GameLift FleetIQ and EC2 do not scale down the group
+ // below this minimum. In production, this value should be set to at least 1.
+ //
+ // MinSize is a required field
+ MinSize *int64 `type:"integer" required:"true"`
+
+ // The Amazon Resource Name (ARN (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html))
+ // for an IAM role that allows Amazon GameLift to access your EC2 Auto Scaling
+ // groups. The submitted role is validated to ensure that it contains the necessary
+ // permissions for game server groups.
+ //
+ // RoleArn is a required field
+ RoleArn *string `min:"1" type:"string" required:"true"`
+
+ // A list of labels to assign to the new game server group resource. Tags are
+ // developer-defined key-value pairs. Tagging AWS resources are useful for resource
+ // management, access management, and cost allocation. For more information,
+ // see Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
+ // in the AWS General Reference. Once the resource is created, you can use TagResource,
+ // UntagResource, and ListTagsForResource to add, remove, and view tags. The
+ // maximum tag limit may be lower than stated. See the AWS General Reference
+ // for actual tagging limits.
+ Tags []*Tag `type:"list"`
+
+ // A list of virtual private cloud (VPC) subnets to use with instances in the
+ // game server group. By default, all GameLift FleetIQ-supported availability
+ // zones are used; this parameter allows you to specify VPCs that you've set
+ // up.
+ VpcSubnets []*string `min:"1" type:"list"`
+}
+
+// String returns the string representation
+func (s CreateGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.InstanceDefinitions == nil {
+ invalidParams.Add(request.NewErrParamRequired("InstanceDefinitions"))
+ }
+ if s.InstanceDefinitions != nil && len(s.InstanceDefinitions) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("InstanceDefinitions", 2))
+ }
+ if s.LaunchTemplate == nil {
+ invalidParams.Add(request.NewErrParamRequired("LaunchTemplate"))
+ }
+ if s.MaxSize == nil {
+ invalidParams.Add(request.NewErrParamRequired("MaxSize"))
+ }
+ if s.MaxSize != nil && *s.MaxSize < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxSize", 1))
+ }
+ if s.MinSize == nil {
+ invalidParams.Add(request.NewErrParamRequired("MinSize"))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.RoleArn != nil && len(*s.RoleArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
+ }
+ if s.VpcSubnets != nil && len(s.VpcSubnets) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("VpcSubnets", 1))
+ }
+ if s.AutoScalingPolicy != nil {
+ if err := s.AutoScalingPolicy.Validate(); err != nil {
+ invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.InstanceDefinitions != nil {
+ for i, v := range s.InstanceDefinitions {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceDefinitions", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.LaunchTemplate != nil {
+ if err := s.LaunchTemplate.Validate(); err != nil {
+ invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAutoScalingPolicy sets the AutoScalingPolicy field's value.
+func (s *CreateGameServerGroupInput) SetAutoScalingPolicy(v *GameServerGroupAutoScalingPolicy) *CreateGameServerGroupInput {
+ s.AutoScalingPolicy = v
+ return s
+}
+
+// SetBalancingStrategy sets the BalancingStrategy field's value.
+func (s *CreateGameServerGroupInput) SetBalancingStrategy(v string) *CreateGameServerGroupInput {
+ s.BalancingStrategy = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *CreateGameServerGroupInput) SetGameServerGroupName(v string) *CreateGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerProtectionPolicy sets the GameServerProtectionPolicy field's value.
+func (s *CreateGameServerGroupInput) SetGameServerProtectionPolicy(v string) *CreateGameServerGroupInput {
+ s.GameServerProtectionPolicy = &v
+ return s
+}
+
+// SetInstanceDefinitions sets the InstanceDefinitions field's value.
+func (s *CreateGameServerGroupInput) SetInstanceDefinitions(v []*InstanceDefinition) *CreateGameServerGroupInput {
+ s.InstanceDefinitions = v
+ return s
+}
+
+// SetLaunchTemplate sets the LaunchTemplate field's value.
+func (s *CreateGameServerGroupInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *CreateGameServerGroupInput {
+ s.LaunchTemplate = v
+ return s
+}
+
+// SetMaxSize sets the MaxSize field's value.
+func (s *CreateGameServerGroupInput) SetMaxSize(v int64) *CreateGameServerGroupInput {
+ s.MaxSize = &v
+ return s
+}
+
+// SetMinSize sets the MinSize field's value.
+func (s *CreateGameServerGroupInput) SetMinSize(v int64) *CreateGameServerGroupInput {
+ s.MinSize = &v
return s
}
-// SetServerLaunchPath sets the ServerLaunchPath field's value.
-func (s *CreateFleetInput) SetServerLaunchPath(v string) *CreateFleetInput {
- s.ServerLaunchPath = &v
+// SetRoleArn sets the RoleArn field's value.
+func (s *CreateGameServerGroupInput) SetRoleArn(v string) *CreateGameServerGroupInput {
+ s.RoleArn = &v
return s
}
// SetTags sets the Tags field's value.
-func (s *CreateFleetInput) SetTags(v []*Tag) *CreateFleetInput {
+func (s *CreateGameServerGroupInput) SetTags(v []*Tag) *CreateGameServerGroupInput {
s.Tags = v
return s
}
-// Represents the returned data in response to a request action.
-type CreateFleetOutput struct {
+// SetVpcSubnets sets the VpcSubnets field's value.
+func (s *CreateGameServerGroupInput) SetVpcSubnets(v []*string) *CreateGameServerGroupInput {
+ s.VpcSubnets = v
+ return s
+}
+
+type CreateGameServerGroupOutput struct {
_ struct{} `type:"structure"`
- // Properties for the newly created fleet.
- FleetAttributes *FleetAttributes `type:"structure"`
+ // The newly created game server group object, including the new ARN value for
+ // the GameLift FleetIQ game server group and the object's status. The EC2 Auto
+ // Scaling group ARN is initially null, since the group has not yet been created.
+ // This value is added once the game server group status reaches ACTIVE.
+ GameServerGroup *GameServerGroup `type:"structure"`
}
// String returns the string representation
-func (s CreateFleetOutput) String() string {
+func (s CreateGameServerGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s CreateFleetOutput) GoString() string {
+func (s CreateGameServerGroupOutput) GoString() string {
return s.String()
}
-// SetFleetAttributes sets the FleetAttributes field's value.
-func (s *CreateFleetOutput) SetFleetAttributes(v *FleetAttributes) *CreateFleetOutput {
- s.FleetAttributes = v
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *CreateGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *CreateGameServerGroupOutput {
+ s.GameServerGroup = v
return s
}
@@ -11883,6 +13986,91 @@ func (s DeleteFleetOutput) GoString() string {
return s.String()
}
+type DeleteGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The type of delete to perform. Options include:
+ //
+ // * SAFE_DELETE – Terminates the game server group and EC2 Auto Scaling
+ // group only when it has no game servers that are in IN_USE status.
+ //
+ // * FORCE_DELETE – Terminates the game server group, including all active
+ // game servers regardless of their utilization status, and the EC2 Auto
+ // Scaling group.
+ //
+ // * RETAIN – Does a safe delete of the game server group but retains the
+ // EC2 Auto Scaling group as is.
+ DeleteOption *string `type:"string" enum:"GameServerGroupDeleteOption"`
+
+ // The unique identifier of the game server group to delete. Use either the
+ // GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeleteOption sets the DeleteOption field's value.
+func (s *DeleteGameServerGroupInput) SetDeleteOption(v string) *DeleteGameServerGroupInput {
+ s.DeleteOption = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *DeleteGameServerGroupInput) SetGameServerGroupName(v string) *DeleteGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+type DeleteGameServerGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An object that describes the deleted game server group resource, with status
+ // updated to DELETE_SCHEDULED.
+ GameServerGroup *GameServerGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteGameServerGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteGameServerGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *DeleteGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *DeleteGameServerGroupOutput {
+ s.GameServerGroup = v
+ return s
+}
+
// Represents the input for a request action.
type DeleteGameSessionQueueInput struct {
_ struct{} `type:"structure"`
@@ -12334,6 +14522,79 @@ func (s DeleteVpcPeeringConnectionOutput) GoString() string {
return s.String()
}
+type DeregisterGameServerInput struct {
+ _ struct{} `type:"structure"`
+
+ // An identifier for the game server group where the game server to be de-registered
+ // is running. Use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // The identifier for the game server to be de-registered.
+ //
+ // GameServerId is a required field
+ GameServerId *string `min:"3" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeregisterGameServerInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeregisterGameServerInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeregisterGameServerInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeregisterGameServerInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.GameServerId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerId"))
+ }
+ if s.GameServerId != nil && len(*s.GameServerId) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerId", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *DeregisterGameServerInput) SetGameServerGroupName(v string) *DeregisterGameServerInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerId sets the GameServerId field's value.
+func (s *DeregisterGameServerInput) SetGameServerId(v string) *DeregisterGameServerInput {
+ s.GameServerId = &v
+ return s
+}
+
+type DeregisterGameServerOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeregisterGameServerOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeregisterGameServerOutput) GoString() string {
+ return s.String()
+}
+
// Represents the input for a request action.
type DescribeAliasInput struct {
_ struct{} `type:"structure"`
@@ -12519,8 +14780,11 @@ func (s *DescribeEC2InstanceLimitsOutput) SetEC2InstanceLimits(v []*EC2InstanceL
type DescribeFleetAttributesInput struct {
_ struct{} `type:"structure"`
- // A unique identifier for a fleet(s) to retrieve attributes for. You can use
- // either the fleet ID or ARN value.
+ // A list of unique fleet identifiers to retrieve attributes for. You can use
+ // either the fleet ID or ARN value. To retrieve attributes for all current
+ // fleets, do not include this parameter. If the list of fleet identifiers includes
+ // fleets that don't currently exist, the request succeeds but no attributes
+ // for that fleet are returned.
FleetIds []*string `min:"1" type:"list"`
// The maximum number of results to return. Use this parameter with NextToken
@@ -12587,7 +14851,7 @@ type DescribeFleetAttributesOutput struct {
_ struct{} `type:"structure"`
// A collection of objects containing attribute metadata for each requested
- // fleet ID.
+ // fleet ID. Attribute objects are returned only for fleets that currently exist.
FleetAttributes []*FleetAttributes `type:"list"`
// Token that indicates where to resume retrieving results on the next call
@@ -12916,42 +15180,211 @@ type DescribeFleetUtilizationInput struct {
_ struct{} `type:"structure"`
// A unique identifier for a fleet(s) to retrieve utilization data for. You
- // can use either the fleet ID or ARN value.
+ // can use either the fleet ID or ARN value. To retrieve attributes for all
+ // current fleets, do not include this parameter. If the list of fleet identifiers
+ // includes fleets that don't currently exist, the request succeeds but no attributes
+ // for that fleet are returned.
FleetIds []*string `min:"1" type:"list"`
- // The maximum number of results to return. Use this parameter with NextToken
- // to get results as a set of sequential pages. This parameter is ignored when
- // the request specifies one or a list of fleet IDs.
- Limit *int64 `min:"1" type:"integer"`
+ // The maximum number of results to return. Use this parameter with NextToken
+ // to get results as a set of sequential pages. This parameter is ignored when
+ // the request specifies one or a list of fleet IDs.
+ Limit *int64 `min:"1" type:"integer"`
+
+ // Token that indicates the start of the next sequential page of results. Use
+ // the token that is returned with a previous call to this action. To start
+ // at the beginning of the result set, do not specify a value. This parameter
+ // is ignored when the request specifies one or a list of fleet IDs.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeFleetUtilizationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeFleetUtilizationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeFleetUtilizationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeFleetUtilizationInput"}
+ if s.FleetIds != nil && len(s.FleetIds) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
+ }
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFleetIds sets the FleetIds field's value.
+func (s *DescribeFleetUtilizationInput) SetFleetIds(v []*string) *DescribeFleetUtilizationInput {
+ s.FleetIds = v
+ return s
+}
+
+// SetLimit sets the Limit field's value.
+func (s *DescribeFleetUtilizationInput) SetLimit(v int64) *DescribeFleetUtilizationInput {
+ s.Limit = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeFleetUtilizationInput) SetNextToken(v string) *DescribeFleetUtilizationInput {
+ s.NextToken = &v
+ return s
+}
+
+// Represents the returned data in response to a request action.
+type DescribeFleetUtilizationOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A collection of objects containing utilization information for each requested
+ // fleet ID.
+ FleetUtilization []*FleetUtilization `type:"list"`
+
+ // Token that indicates where to resume retrieving results on the next call
+ // to this action. If no token is returned, these results represent the end
+ // of the list.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeFleetUtilizationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeFleetUtilizationOutput) GoString() string {
+ return s.String()
+}
+
+// SetFleetUtilization sets the FleetUtilization field's value.
+func (s *DescribeFleetUtilizationOutput) SetFleetUtilization(v []*FleetUtilization) *DescribeFleetUtilizationOutput {
+ s.FleetUtilization = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeFleetUtilizationOutput) SetNextToken(v string) *DescribeFleetUtilizationOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier for the game server group being requested. Use either
+ // the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DescribeGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *DescribeGameServerGroupInput) SetGameServerGroupName(v string) *DescribeGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+type DescribeGameServerGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An object that describes the requested game server group resource.
+ GameServerGroup *GameServerGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s DescribeGameServerGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeGameServerGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *DescribeGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *DescribeGameServerGroupOutput {
+ s.GameServerGroup = v
+ return s
+}
+
+type DescribeGameServerInput struct {
+ _ struct{} `type:"structure"`
+
+ // An identifier for the game server group where the game server is running.
+ // Use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
- // Token that indicates the start of the next sequential page of results. Use
- // the token that is returned with a previous call to this action. To start
- // at the beginning of the result set, do not specify a value. This parameter
- // is ignored when the request specifies one or a list of fleet IDs.
- NextToken *string `min:"1" type:"string"`
+ // The identifier for the game server to be retrieved.
+ //
+ // GameServerId is a required field
+ GameServerId *string `min:"3" type:"string" required:"true"`
}
// String returns the string representation
-func (s DescribeFleetUtilizationInput) String() string {
+func (s DescribeGameServerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeFleetUtilizationInput) GoString() string {
+func (s DescribeGameServerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeFleetUtilizationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeFleetUtilizationInput"}
- if s.FleetIds != nil && len(s.FleetIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
+func (s *DescribeGameServerInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeGameServerInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ if s.GameServerId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerId"))
+ }
+ if s.GameServerId != nil && len(*s.GameServerId) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerId", 3))
}
if invalidParams.Len() > 0 {
@@ -12960,57 +15393,38 @@ func (s *DescribeFleetUtilizationInput) Validate() error {
return nil
}
-// SetFleetIds sets the FleetIds field's value.
-func (s *DescribeFleetUtilizationInput) SetFleetIds(v []*string) *DescribeFleetUtilizationInput {
- s.FleetIds = v
- return s
-}
-
-// SetLimit sets the Limit field's value.
-func (s *DescribeFleetUtilizationInput) SetLimit(v int64) *DescribeFleetUtilizationInput {
- s.Limit = &v
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *DescribeGameServerInput) SetGameServerGroupName(v string) *DescribeGameServerInput {
+ s.GameServerGroupName = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeFleetUtilizationInput) SetNextToken(v string) *DescribeFleetUtilizationInput {
- s.NextToken = &v
+// SetGameServerId sets the GameServerId field's value.
+func (s *DescribeGameServerInput) SetGameServerId(v string) *DescribeGameServerInput {
+ s.GameServerId = &v
return s
}
-// Represents the returned data in response to a request action.
-type DescribeFleetUtilizationOutput struct {
+type DescribeGameServerOutput struct {
_ struct{} `type:"structure"`
- // A collection of objects containing utilization information for each requested
- // fleet ID.
- FleetUtilization []*FleetUtilization `type:"list"`
-
- // Token that indicates where to resume retrieving results on the next call
- // to this action. If no token is returned, these results represent the end
- // of the list.
- NextToken *string `min:"1" type:"string"`
+ // Object that describes the requested game server resource.
+ GameServer *GameServer `type:"structure"`
}
// String returns the string representation
-func (s DescribeFleetUtilizationOutput) String() string {
+func (s DescribeGameServerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeFleetUtilizationOutput) GoString() string {
+func (s DescribeGameServerOutput) GoString() string {
return s.String()
}
-// SetFleetUtilization sets the FleetUtilization field's value.
-func (s *DescribeFleetUtilizationOutput) SetFleetUtilization(v []*FleetUtilization) *DescribeFleetUtilizationOutput {
- s.FleetUtilization = v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeFleetUtilizationOutput) SetNextToken(v string) *DescribeFleetUtilizationOutput {
- s.NextToken = &v
+// SetGameServer sets the GameServer field's value.
+func (s *DescribeGameServerOutput) SetGameServer(v *GameServer) *DescribeGameServerOutput {
+ s.GameServer = v
return s
}
@@ -14393,7 +16807,7 @@ func (s *DesiredPlayerSession) SetPlayerId(v string) *DesiredPlayerSession {
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
type EC2InstanceCounts struct {
_ struct{} `type:"structure"`
@@ -14532,7 +16946,7 @@ type Event struct {
//
// Fleet creation events (ordered by fleet creation activity):
//
- // * FLEET_CREATED -- A fleet record was successfully created with a status
+ // * FLEET_CREATED -- A fleet resource was successfully created with a status
// of NEW. Event messaging includes the fleet ID.
//
// * FLEET_STATE_DOWNLOADING -- Fleet status changed from NEW to DOWNLOADING.
@@ -14700,7 +17114,7 @@ func (s *Event) SetResourceId(v string) *Event {
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
type FleetAttributes struct {
_ struct{} `type:"structure"`
@@ -14727,7 +17141,7 @@ type FleetAttributes struct {
// that is assigned to a GameLift fleet resource and uniquely identifies it.
// ARNs are unique across all Regions. In a GameLift fleet ARN, the resource
// ID matches the FleetId value.
- FleetArn *string `min:"1" type:"string"`
+ FleetArn *string `type:"string"`
// A unique identifier for a fleet.
FleetId *string `type:"string"`
@@ -15002,7 +17416,7 @@ func (s *FleetAttributes) SetTerminationTime(v time.Time) *FleetAttributes {
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
type FleetCapacity struct {
_ struct{} `type:"structure"`
@@ -15051,8 +17465,8 @@ func (s *FleetCapacity) SetInstanceType(v string) *FleetCapacity {
// The specified fleet has no available instances to fulfill a CreateGameSession
// request. Clients can retry such requests immediately or after a waiting period.
type FleetCapacityExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -15069,17 +17483,17 @@ func (s FleetCapacityExceededException) GoString() string {
func newErrorFleetCapacityExceededException(v protocol.ResponseMetadata) error {
return &FleetCapacityExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FleetCapacityExceededException) Code() string {
+func (s *FleetCapacityExceededException) Code() string {
return "FleetCapacityExceededException"
}
// Message returns the exception's message.
-func (s FleetCapacityExceededException) Message() string {
+func (s *FleetCapacityExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15087,22 +17501,22 @@ func (s FleetCapacityExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FleetCapacityExceededException) OrigErr() error {
+func (s *FleetCapacityExceededException) OrigErr() error {
return nil
}
-func (s FleetCapacityExceededException) Error() string {
+func (s *FleetCapacityExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FleetCapacityExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FleetCapacityExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FleetCapacityExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FleetCapacityExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Current status of fleet utilization, including the number of game and player
@@ -15118,7 +17532,7 @@ func (s FleetCapacityExceededException) RequestID() string {
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
type FleetUtilization struct {
_ struct{} `type:"structure"`
@@ -15203,23 +17617,431 @@ type GameProperty struct {
}
// String returns the string representation
-func (s GameProperty) String() string {
+func (s GameProperty) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GameProperty) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GameProperty) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GameProperty"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
+ }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKey sets the Key field's value.
+func (s *GameProperty) SetKey(v string) *GameProperty {
+ s.Key = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *GameProperty) SetValue(v string) *GameProperty {
+ s.Value = &v
+ return s
+}
+
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// Properties describing a game server resource.
+//
+// A game server resource is created by a successful call to RegisterGameServer
+// and deleted by calling DeregisterGameServer.
+type GameServer struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates when an available game server has been reserved but has not yet
+ // started hosting a game. Once it is claimed, game server remains in CLAIMED
+ // status for a maximum of one minute. During this time, game clients must connect
+ // to the game server and start the game, which triggers the game server to
+ // update its utilization status. After one minute, the game server claim status
+ // reverts to null.
+ ClaimStatus *string `type:"string" enum:"GameServerClaimStatus"`
+
+ // The port and IP address that must be used to establish a client connection
+ // to the game server.
+ ConnectionInfo *string `min:"1" type:"string"`
+
+ // A game server tag that can be used to request sorted lists of game servers
+ // when calling ListGameServers. Custom sort keys are developer-defined. This
+ // property can be updated using UpdateGameServer.
+ CustomSortKey *string `min:"1" type:"string"`
+
+ // A set of custom game server properties, formatted as a single string value.
+ // This data is passed to a game client or service in response to requests ListGameServers
+ // or ClaimGameServer. This property can be updated using UpdateGameServer.
+ GameServerData *string `min:"1" type:"string"`
+
+ // The ARN identifier for the game server group where the game server is located.
+ GameServerGroupArn *string `min:"1" type:"string"`
+
+ // The name identifier for the game server group where the game server is located.
+ GameServerGroupName *string `min:"1" type:"string"`
+
+ // A custom string that uniquely identifies the game server. Game server IDs
+ // are developer-defined and are unique across all game server groups in an
+ // AWS account.
+ GameServerId *string `min:"3" type:"string"`
+
+ // The unique identifier for the instance where the game server is located.
+ InstanceId *string `min:"19" type:"string"`
+
+ // Time stamp indicating the last time the game server was claimed with a ClaimGameServer
+ // request. Format is a number expressed in Unix time as milliseconds (for example
+ // "1469498468.057"). This value is used to calculate when the game server's
+ // claim status.
+ LastClaimTime *time.Time `type:"timestamp"`
+
+ // Time stamp indicating the last time the game server was updated with health
+ // status using an UpdateGameServer request. Format is a number expressed in
+ // Unix time as milliseconds (for example "1469498468.057"). After game server
+ // registration, this property is only changed when a game server update specifies
+ // a health check value.
+ LastHealthCheckTime *time.Time `type:"timestamp"`
+
+ // Time stamp indicating when the game server resource was created with a RegisterGameServer
+ // request. Format is a number expressed in Unix time as milliseconds (for example
+ // "1469498468.057").
+ RegistrationTime *time.Time `type:"timestamp"`
+
+ // Indicates whether the game server is currently available for new games or
+ // is busy. Possible statuses include:
+ //
+ // * AVAILABLE - The game server is available to be claimed. A game server
+ // that has been claimed remains in this status until it reports game hosting
+ // activity.
+ //
+ // * IN_USE - The game server is currently hosting a game session with players.
+ UtilizationStatus *string `type:"string" enum:"GameServerUtilizationStatus"`
+}
+
+// String returns the string representation
+func (s GameServer) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GameServer) GoString() string {
+ return s.String()
+}
+
+// SetClaimStatus sets the ClaimStatus field's value.
+func (s *GameServer) SetClaimStatus(v string) *GameServer {
+ s.ClaimStatus = &v
+ return s
+}
+
+// SetConnectionInfo sets the ConnectionInfo field's value.
+func (s *GameServer) SetConnectionInfo(v string) *GameServer {
+ s.ConnectionInfo = &v
+ return s
+}
+
+// SetCustomSortKey sets the CustomSortKey field's value.
+func (s *GameServer) SetCustomSortKey(v string) *GameServer {
+ s.CustomSortKey = &v
+ return s
+}
+
+// SetGameServerData sets the GameServerData field's value.
+func (s *GameServer) SetGameServerData(v string) *GameServer {
+ s.GameServerData = &v
+ return s
+}
+
+// SetGameServerGroupArn sets the GameServerGroupArn field's value.
+func (s *GameServer) SetGameServerGroupArn(v string) *GameServer {
+ s.GameServerGroupArn = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *GameServer) SetGameServerGroupName(v string) *GameServer {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerId sets the GameServerId field's value.
+func (s *GameServer) SetGameServerId(v string) *GameServer {
+ s.GameServerId = &v
+ return s
+}
+
+// SetInstanceId sets the InstanceId field's value.
+func (s *GameServer) SetInstanceId(v string) *GameServer {
+ s.InstanceId = &v
+ return s
+}
+
+// SetLastClaimTime sets the LastClaimTime field's value.
+func (s *GameServer) SetLastClaimTime(v time.Time) *GameServer {
+ s.LastClaimTime = &v
+ return s
+}
+
+// SetLastHealthCheckTime sets the LastHealthCheckTime field's value.
+func (s *GameServer) SetLastHealthCheckTime(v time.Time) *GameServer {
+ s.LastHealthCheckTime = &v
+ return s
+}
+
+// SetRegistrationTime sets the RegistrationTime field's value.
+func (s *GameServer) SetRegistrationTime(v time.Time) *GameServer {
+ s.RegistrationTime = &v
+ return s
+}
+
+// SetUtilizationStatus sets the UtilizationStatus field's value.
+func (s *GameServer) SetUtilizationStatus(v string) *GameServer {
+ s.UtilizationStatus = &v
+ return s
+}
+
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// Properties describing a game server group resource. A game server group manages
+// certain properties of a corresponding EC2 Auto Scaling group.
+//
+// A game server group is created by a successful call to CreateGameServerGroup
+// and deleted by calling DeleteGameServerGroup. Game server group activity
+// can be temporarily suspended and resumed by calling SuspendGameServerGroup
+// and ResumeGameServerGroup.
+type GameServerGroup struct {
+ _ struct{} `type:"structure"`
+
+ // A generated unique ID for the EC2 Auto Scaling group with is associated with
+ // this game server group.
+ AutoScalingGroupArn *string `type:"string"`
+
+ // The fallback balancing method to use for the game server group when Spot
+ // instances in a Region become unavailable or are not viable for game hosting.
+ // Once triggered, this method remains active until Spot instances can once
+ // again be used. Method options include:
+ //
+ // * SPOT_ONLY -- If Spot instances are unavailable, the game server group
+ // provides no hosting capacity. No new instances are started, and the existing
+ // nonviable Spot instances are terminated (once current gameplay ends) and
+ // not replaced.
+ //
+ // * SPOT_PREFERRED -- If Spot instances are unavailable, the game server
+ // group continues to provide hosting capacity by using On-Demand instances.
+ // Existing nonviable Spot instances are terminated (once current gameplay
+ // ends) and replaced with new On-Demand instances.
+ BalancingStrategy *string `type:"string" enum:"BalancingStrategy"`
+
+ // A time stamp indicating when this data object was created. Format is a number
+ // expressed in Unix time as milliseconds (for example "1469498468.057").
+ CreationTime *time.Time `type:"timestamp"`
+
+ // A generated unique ID for the game server group.
+ GameServerGroupArn *string `min:"1" type:"string"`
+
+ // A developer-defined identifier for the game server group. The name is unique
+ // per Region per AWS account.
+ GameServerGroupName *string `min:"1" type:"string"`
+
+ // A flag that indicates whether instances in the game server group are protected
+ // from early termination. Unprotected instances that have active game servers
+ // running may be terminated during a scale-down event, causing players to be
+ // dropped from the game. Protected instances cannot be terminated while there
+ // are active game servers running except in the event of a forced game server
+ // group deletion (see DeleteGameServerGroup). An exception to this is Spot
+ // Instances, which may be terminated by AWS regardless of protection status.
+ GameServerProtectionPolicy *string `type:"string" enum:"GameServerProtectionPolicy"`
+
+ // The set of EC2 instance types that GameLift FleetIQ can use when rebalancing
+ // and autoscaling instances in the group.
+ InstanceDefinitions []*InstanceDefinition `min:"2" type:"list"`
+
+ // A time stamp indicating when this game server group was last updated.
+ LastUpdatedTime *time.Time `type:"timestamp"`
+
+ // The Amazon Resource Name (ARN (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html))
+ // for an IAM role that allows Amazon GameLift to access your EC2 Auto Scaling
+ // groups. The submitted role is validated to ensure that it contains the necessary
+ // permissions for game server groups.
+ RoleArn *string `min:"1" type:"string"`
+
+ // The current status of the game server group. Possible statuses include:
+ //
+ // * NEW - GameLift FleetIQ has validated the CreateGameServerGroup() request.
+ //
+ // * ACTIVATING - GameLift FleetIQ is setting up a game server group, which
+ // includes creating an autoscaling group in your AWS account.
+ //
+ // * ACTIVE - The game server group has been successfully created.
+ //
+ // * DELETE_SCHEDULED - A request to delete the game server group has been
+ // received.
+ //
+ // * DELETING - GameLift FleetIQ has received a valid DeleteGameServerGroup()
+ // request and is processing it. GameLift FleetIQ must first complete and
+ // release hosts before it deletes the autoscaling group and the game server
+ // group.
+ //
+ // * DELETED - The game server group has been successfully deleted.
+ //
+ // * ERROR - The asynchronous processes of activating or deleting a game
+ // server group has failed, resulting in an error state.
+ Status *string `type:"string" enum:"GameServerGroupStatus"`
+
+ // Additional information about the current game server group status. This information
+ // may provide additional insight on groups that in ERROR status.
+ StatusReason *string `min:"1" type:"string"`
+
+ // A list of activities that are currently suspended for this game server group.
+ // If this property is empty, all activities are occurring.
+ SuspendedActions []*string `min:"1" type:"list"`
+}
+
+// String returns the string representation
+func (s GameServerGroup) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GameServerGroup) GoString() string {
+ return s.String()
+}
+
+// SetAutoScalingGroupArn sets the AutoScalingGroupArn field's value.
+func (s *GameServerGroup) SetAutoScalingGroupArn(v string) *GameServerGroup {
+ s.AutoScalingGroupArn = &v
+ return s
+}
+
+// SetBalancingStrategy sets the BalancingStrategy field's value.
+func (s *GameServerGroup) SetBalancingStrategy(v string) *GameServerGroup {
+ s.BalancingStrategy = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *GameServerGroup) SetCreationTime(v time.Time) *GameServerGroup {
+ s.CreationTime = &v
+ return s
+}
+
+// SetGameServerGroupArn sets the GameServerGroupArn field's value.
+func (s *GameServerGroup) SetGameServerGroupArn(v string) *GameServerGroup {
+ s.GameServerGroupArn = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *GameServerGroup) SetGameServerGroupName(v string) *GameServerGroup {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerProtectionPolicy sets the GameServerProtectionPolicy field's value.
+func (s *GameServerGroup) SetGameServerProtectionPolicy(v string) *GameServerGroup {
+ s.GameServerProtectionPolicy = &v
+ return s
+}
+
+// SetInstanceDefinitions sets the InstanceDefinitions field's value.
+func (s *GameServerGroup) SetInstanceDefinitions(v []*InstanceDefinition) *GameServerGroup {
+ s.InstanceDefinitions = v
+ return s
+}
+
+// SetLastUpdatedTime sets the LastUpdatedTime field's value.
+func (s *GameServerGroup) SetLastUpdatedTime(v time.Time) *GameServerGroup {
+ s.LastUpdatedTime = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *GameServerGroup) SetRoleArn(v string) *GameServerGroup {
+ s.RoleArn = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *GameServerGroup) SetStatus(v string) *GameServerGroup {
+ s.Status = &v
+ return s
+}
+
+// SetStatusReason sets the StatusReason field's value.
+func (s *GameServerGroup) SetStatusReason(v string) *GameServerGroup {
+ s.StatusReason = &v
+ return s
+}
+
+// SetSuspendedActions sets the SuspendedActions field's value.
+func (s *GameServerGroup) SetSuspendedActions(v []*string) *GameServerGroup {
+ s.SuspendedActions = v
+ return s
+}
+
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// Configuration settings for intelligent autoscaling that uses target tracking.
+// An autoscaling policy can be specified when a new game server group is created
+// with CreateGameServerGroup. If a group has an autoscaling policy, the Auto
+// Scaling group takes action based on this policy, in addition to (and potentially
+// in conflict with) any other autoscaling policies that are separately applied
+// to the Auto Scaling group.
+type GameServerGroupAutoScalingPolicy struct {
+ _ struct{} `type:"structure"`
+
+ // Length of time, in seconds, it takes for a new instance to start new game
+ // server processes and register with GameLift FleetIQ. Specifying a warm-up
+ // time can be useful, particularly with game servers that take a long time
+ // to start up, because it avoids prematurely starting new instances
+ EstimatedInstanceWarmup *int64 `min:"1" type:"integer"`
+
+ // Settings for a target-based scaling policy applied to Auto Scaling group.
+ // These settings are used to create a target-based policy that tracks the GameLift
+ // FleetIQ metric "PercentUtilizedGameServers" and specifies a target value
+ // for the metric. As player usage changes, the policy triggers to adjust the
+ // game server group capacity so that the metric returns to the target value.
+ //
+ // TargetTrackingConfiguration is a required field
+ TargetTrackingConfiguration *TargetTrackingConfiguration `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s GameServerGroupAutoScalingPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s GameProperty) GoString() string {
+func (s GameServerGroupAutoScalingPolicy) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GameProperty) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GameProperty"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
+func (s *GameServerGroupAutoScalingPolicy) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GameServerGroupAutoScalingPolicy"}
+ if s.EstimatedInstanceWarmup != nil && *s.EstimatedInstanceWarmup < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("EstimatedInstanceWarmup", 1))
}
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
+ if s.TargetTrackingConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("TargetTrackingConfiguration"))
+ }
+ if s.TargetTrackingConfiguration != nil {
+ if err := s.TargetTrackingConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("TargetTrackingConfiguration", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -15228,15 +18050,15 @@ func (s *GameProperty) Validate() error {
return nil
}
-// SetKey sets the Key field's value.
-func (s *GameProperty) SetKey(v string) *GameProperty {
- s.Key = &v
+// SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value.
+func (s *GameServerGroupAutoScalingPolicy) SetEstimatedInstanceWarmup(v int64) *GameServerGroupAutoScalingPolicy {
+ s.EstimatedInstanceWarmup = &v
return s
}
-// SetValue sets the Value field's value.
-func (s *GameProperty) SetValue(v string) *GameProperty {
- s.Value = &v
+// SetTargetTrackingConfiguration sets the TargetTrackingConfiguration field's value.
+func (s *GameServerGroupAutoScalingPolicy) SetTargetTrackingConfiguration(v *TargetTrackingConfiguration) *GameServerGroupAutoScalingPolicy {
+ s.TargetTrackingConfiguration = v
return s
}
@@ -15292,7 +18114,7 @@ type GameSession struct {
// The Amazon Resource Name (ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html))
// associated with the GameLift fleet that this game session is running on.
- FleetArn *string `min:"1" type:"string"`
+ FleetArn *string `type:"string"`
// A unique identifier for a fleet that the game session is running on.
FleetId *string `type:"string"`
@@ -15595,8 +18417,8 @@ func (s *GameSessionDetail) SetProtectionPolicy(v string) *GameSessionDetail {
// The game instance is currently full and cannot allow the requested player(s)
// to join. Clients can retry such requests immediately or after a waiting period.
type GameSessionFullException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -15613,17 +18435,17 @@ func (s GameSessionFullException) GoString() string {
func newErrorGameSessionFullException(v protocol.ResponseMetadata) error {
return &GameSessionFullException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GameSessionFullException) Code() string {
+func (s *GameSessionFullException) Code() string {
return "GameSessionFullException"
}
// Message returns the exception's message.
-func (s GameSessionFullException) Message() string {
+func (s *GameSessionFullException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15631,22 +18453,22 @@ func (s GameSessionFullException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GameSessionFullException) OrigErr() error {
+func (s *GameSessionFullException) OrigErr() error {
return nil
}
-func (s GameSessionFullException) Error() string {
+func (s *GameSessionFullException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GameSessionFullException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GameSessionFullException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GameSessionFullException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GameSessionFullException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Object that describes a StartGameSessionPlacement request. This object includes
@@ -16192,8 +19014,8 @@ func (s *GetInstanceAccessOutput) SetInstanceAccess(v *InstanceAccess) *GetInsta
// A game session with this custom ID string already exists in this fleet. Resolve
// this conflict before retrying this request.
type IdempotentParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16210,17 +19032,17 @@ func (s IdempotentParameterMismatchException) GoString() string {
func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatchException) Code() string {
+func (s *IdempotentParameterMismatchException) Code() string {
return "IdempotentParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatchException) Message() string {
+func (s *IdempotentParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16228,22 +19050,22 @@ func (s IdempotentParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatchException) OrigErr() error {
+func (s *IdempotentParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatchException) Error() string {
+func (s *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Properties that describe an instance of a virtual computing resource that
@@ -16454,12 +19276,73 @@ func (s *InstanceCredentials) SetUserName(v string) *InstanceCredentials {
return s
}
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// An allowed instance type for your game server group. GameLift FleetIQ periodically
+// evaluates each defined instance type for viability. It then updates the Auto
+// Scaling group with the list of viable instance types.
+type InstanceDefinition struct {
+ _ struct{} `type:"structure"`
+
+ // An EC2 instance type designation.
+ //
+ // InstanceType is a required field
+ InstanceType *string `type:"string" required:"true" enum:"GameServerGroupInstanceType"`
+
+ // Instance weighting that indicates how much this instance type contributes
+ // to the total capacity of a game server group. Instance weights are used by
+ // GameLift FleetIQ to calculate the instance type's cost per unit hour and
+ // better identify the most cost-effective options. For detailed information
+ // on weighting instance capacity, see Instance Weighting (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html)
+ // in the Amazon EC2 Auto Scaling User Guide. Default value is "1".
+ WeightedCapacity *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s InstanceDefinition) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s InstanceDefinition) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *InstanceDefinition) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "InstanceDefinition"}
+ if s.InstanceType == nil {
+ invalidParams.Add(request.NewErrParamRequired("InstanceType"))
+ }
+ if s.WeightedCapacity != nil && len(*s.WeightedCapacity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("WeightedCapacity", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetInstanceType sets the InstanceType field's value.
+func (s *InstanceDefinition) SetInstanceType(v string) *InstanceDefinition {
+ s.InstanceType = &v
+ return s
+}
+
+// SetWeightedCapacity sets the WeightedCapacity field's value.
+func (s *InstanceDefinition) SetWeightedCapacity(v string) *InstanceDefinition {
+ s.WeightedCapacity = &v
+ return s
+}
+
// The service encountered an unrecoverable internal failure while processing
// the request. Clients can retry such requests immediately or after a waiting
// period.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16476,17 +19359,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16494,30 +19377,30 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation would cause a conflict with the current state of
// a resource associated with the request and/or the fleet. Resolve the conflict
// before retrying.
type InvalidFleetStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16534,17 +19417,17 @@ func (s InvalidFleetStatusException) GoString() string {
func newErrorInvalidFleetStatusException(v protocol.ResponseMetadata) error {
return &InvalidFleetStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFleetStatusException) Code() string {
+func (s *InvalidFleetStatusException) Code() string {
return "InvalidFleetStatusException"
}
// Message returns the exception's message.
-func (s InvalidFleetStatusException) Message() string {
+func (s *InvalidFleetStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16552,30 +19435,30 @@ func (s InvalidFleetStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFleetStatusException) OrigErr() error {
+func (s *InvalidFleetStatusException) OrigErr() error {
return nil
}
-func (s InvalidFleetStatusException) Error() string {
+func (s *InvalidFleetStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFleetStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFleetStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFleetStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFleetStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation would cause a conflict with the current state of
// a resource associated with the request and/or the game instance. Resolve
// the conflict before retrying.
type InvalidGameSessionStatusException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16592,17 +19475,17 @@ func (s InvalidGameSessionStatusException) GoString() string {
func newErrorInvalidGameSessionStatusException(v protocol.ResponseMetadata) error {
return &InvalidGameSessionStatusException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGameSessionStatusException) Code() string {
+func (s *InvalidGameSessionStatusException) Code() string {
return "InvalidGameSessionStatusException"
}
// Message returns the exception's message.
-func (s InvalidGameSessionStatusException) Message() string {
+func (s *InvalidGameSessionStatusException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16610,29 +19493,29 @@ func (s InvalidGameSessionStatusException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGameSessionStatusException) OrigErr() error {
+func (s *InvalidGameSessionStatusException) OrigErr() error {
return nil
}
-func (s InvalidGameSessionStatusException) Error() string {
+func (s *InvalidGameSessionStatusException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGameSessionStatusException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGameSessionStatusException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGameSessionStatusException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGameSessionStatusException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameter values in the request are invalid. Correct the invalid
// parameter values before retrying.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16649,17 +19532,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16667,22 +19550,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A range of IP addresses and port settings that allow inbound traffic to connect
@@ -16781,11 +19664,78 @@ func (s *IpPermission) SetToPort(v int64) *IpPermission {
return s
}
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// An EC2 launch template that contains configuration settings and game server
+// code to be deployed to all instances in a game server group.
+type LaunchTemplateSpecification struct {
+ _ struct{} `type:"structure"`
+
+ // A unique identifier for an existing EC2 launch template.
+ LaunchTemplateId *string `min:"1" type:"string"`
+
+ // A readable identifier for an existing EC2 launch template.
+ LaunchTemplateName *string `min:"3" type:"string"`
+
+ // The version of the EC2 launch template to use. If no version is specified,
+ // the default version will be used. EC2 allows you to specify a default version
+ // for a launch template, if none is set, the default is the first version created.
+ Version *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s LaunchTemplateSpecification) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LaunchTemplateSpecification) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LaunchTemplateSpecification) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateSpecification"}
+ if s.LaunchTemplateId != nil && len(*s.LaunchTemplateId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateId", 1))
+ }
+ if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
+ }
+ if s.Version != nil && len(*s.Version) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Version", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLaunchTemplateId sets the LaunchTemplateId field's value.
+func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification {
+ s.LaunchTemplateId = &v
+ return s
+}
+
+// SetLaunchTemplateName sets the LaunchTemplateName field's value.
+func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification {
+ s.LaunchTemplateName = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification {
+ s.Version = &v
+ return s
+}
+
// The requested operation would cause the resource to exceed the allowed service
// limit. Resolve the issue before retrying.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -16802,17 +19752,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16820,22 +19770,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input for a request action.
@@ -17037,7 +19987,7 @@ func (s *ListBuildsInput) SetStatus(v string) *ListBuildsInput {
type ListBuildsOutput struct {
_ struct{} `type:"structure"`
- // A collection of build records that match the request.
+ // A collection of build resources that match the request.
Builds []*Build `type:"list"`
// Token that indicates where to resume retrieving results on the next call
@@ -17073,8 +20023,9 @@ type ListFleetsInput struct {
_ struct{} `type:"structure"`
// A unique identifier for a build to return fleets for. Use this parameter
- // to return only fleets using the specified build. Use either the build ID
- // or ARN value.To retrieve all fleets, leave this parameter empty.
+ // to return only fleets using a specified build. Use either the build ID or
+ // ARN value. To retrieve all fleets, do not include either a BuildId and ScriptID
+ // parameter.
BuildId *string `type:"string"`
// The maximum number of results to return. Use this parameter with NextToken
@@ -17087,8 +20038,8 @@ type ListFleetsInput struct {
NextToken *string `min:"1" type:"string"`
// A unique identifier for a Realtime script to return fleets for. Use this
- // parameter to return only fleets using the specified script. Use either the
- // script ID or ARN value.To retrieve all fleets, leave this parameter empty.
+ // parameter to return only fleets using a specified script. Use either the
+ // script ID or ARN value. To retrieve all fleets, leave this parameter empty.
ScriptId *string `type:"string"`
}
@@ -17118,63 +20069,262 @@ func (s *ListFleetsInput) Validate() error {
return nil
}
-// SetBuildId sets the BuildId field's value.
-func (s *ListFleetsInput) SetBuildId(v string) *ListFleetsInput {
- s.BuildId = &v
+// SetBuildId sets the BuildId field's value.
+func (s *ListFleetsInput) SetBuildId(v string) *ListFleetsInput {
+ s.BuildId = &v
+ return s
+}
+
+// SetLimit sets the Limit field's value.
+func (s *ListFleetsInput) SetLimit(v int64) *ListFleetsInput {
+ s.Limit = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetScriptId sets the ScriptId field's value.
+func (s *ListFleetsInput) SetScriptId(v string) *ListFleetsInput {
+ s.ScriptId = &v
+ return s
+}
+
+// Represents the returned data in response to a request action.
+type ListFleetsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Set of fleet IDs matching the list request. You can retrieve additional information
+ // about all returned fleets by passing this result set to a call to DescribeFleetAttributes,
+ // DescribeFleetCapacity, or DescribeFleetUtilization.
+ FleetIds []*string `min:"1" type:"list"`
+
+ // Token that indicates where to resume retrieving results on the next call
+ // to this action. If no token is returned, these results represent the end
+ // of the list.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListFleetsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListFleetsOutput) GoString() string {
+ return s.String()
+}
+
+// SetFleetIds sets the FleetIds field's value.
+func (s *ListFleetsOutput) SetFleetIds(v []*string) *ListFleetsOutput {
+ s.FleetIds = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListGameServerGroupsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return. Use this parameter with NextToken
+ // to get results as a set of sequential pages.
+ Limit *int64 `min:"1" type:"integer"`
+
+ // A token that indicates the start of the next sequential page of results.
+ // Use the token that is returned with a previous call to this action. To start
+ // at the beginning of the result set, do not specify a value.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListGameServerGroupsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListGameServerGroupsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListGameServerGroupsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListGameServerGroupsInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLimit sets the Limit field's value.
+func (s *ListGameServerGroupsInput) SetLimit(v int64) *ListGameServerGroupsInput {
+ s.Limit = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListGameServerGroupsInput) SetNextToken(v string) *ListGameServerGroupsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListGameServerGroupsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A collection of game server group objects that match the request.
+ GameServerGroups []*GameServerGroup `type:"list"`
+
+ // A token that indicates where to resume retrieving results on the next call
+ // to this action. If no token is returned, these results represent the end
+ // of the list.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListGameServerGroupsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListGameServerGroupsOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServerGroups sets the GameServerGroups field's value.
+func (s *ListGameServerGroupsOutput) SetGameServerGroups(v []*GameServerGroup) *ListGameServerGroupsOutput {
+ s.GameServerGroups = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListGameServerGroupsOutput) SetNextToken(v string) *ListGameServerGroupsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListGameServersInput struct {
+ _ struct{} `type:"structure"`
+
+ // An identifier for the game server group for the game server you want to list.
+ // Use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // The maximum number of results to return. Use this parameter with NextToken
+ // to get results as a set of sequential pages.
+ Limit *int64 `min:"1" type:"integer"`
+
+ // A token that indicates the start of the next sequential page of results.
+ // Use the token that is returned with a previous call to this action. To start
+ // at the beginning of the result set, do not specify a value.
+ NextToken *string `min:"1" type:"string"`
+
+ // Indicates how to sort the returned data based on the game servers' custom
+ // key sort value. If this parameter is left empty, the list of game servers
+ // is returned in no particular order.
+ SortOrder *string `type:"string" enum:"SortOrder"`
+}
+
+// String returns the string representation
+func (s ListGameServersInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListGameServersInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListGameServersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListGameServersInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *ListGameServersInput) SetGameServerGroupName(v string) *ListGameServersInput {
+ s.GameServerGroupName = &v
return s
}
// SetLimit sets the Limit field's value.
-func (s *ListFleetsInput) SetLimit(v int64) *ListFleetsInput {
+func (s *ListGameServersInput) SetLimit(v int64) *ListGameServersInput {
s.Limit = &v
return s
}
// SetNextToken sets the NextToken field's value.
-func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput {
+func (s *ListGameServersInput) SetNextToken(v string) *ListGameServersInput {
s.NextToken = &v
return s
}
-// SetScriptId sets the ScriptId field's value.
-func (s *ListFleetsInput) SetScriptId(v string) *ListFleetsInput {
- s.ScriptId = &v
+// SetSortOrder sets the SortOrder field's value.
+func (s *ListGameServersInput) SetSortOrder(v string) *ListGameServersInput {
+ s.SortOrder = &v
return s
}
-// Represents the returned data in response to a request action.
-type ListFleetsOutput struct {
+type ListGameServersOutput struct {
_ struct{} `type:"structure"`
- // Set of fleet IDs matching the list request. You can retrieve additional information
- // about all returned fleets by passing this result set to a call to DescribeFleetAttributes,
- // DescribeFleetCapacity, or DescribeFleetUtilization.
- FleetIds []*string `min:"1" type:"list"`
+ // A collection of game server objects that match the request.
+ GameServers []*GameServer `type:"list"`
- // Token that indicates where to resume retrieving results on the next call
+ // A token that indicates where to resume retrieving results on the next call
// to this action. If no token is returned, these results represent the end
// of the list.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
-func (s ListFleetsOutput) String() string {
+func (s ListGameServersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s ListFleetsOutput) GoString() string {
+func (s ListGameServersOutput) GoString() string {
return s.String()
}
-// SetFleetIds sets the FleetIds field's value.
-func (s *ListFleetsOutput) SetFleetIds(v []*string) *ListFleetsOutput {
- s.FleetIds = v
+// SetGameServers sets the GameServers field's value.
+func (s *ListGameServersOutput) SetGameServers(v []*GameServer) *ListGameServersOutput {
+ s.GameServers = v
return s
}
// SetNextToken sets the NextToken field's value.
-func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput {
+func (s *ListGameServersOutput) SetNextToken(v string) *ListGameServersOutput {
s.NextToken = &v
return s
}
@@ -17817,8 +20967,8 @@ func (s *MatchmakingTicket) SetTicketId(v string) *MatchmakingTicket {
// A service resource associated with the request could not be found. Clients
// should not retry such requests.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -17835,17 +20985,75 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *NotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *NotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The specified game server group has no available game servers to fulfill
+// a ClaimGameServer request. Clients can retry such requests immediately or
+// after a waiting period.
+type OutOfCapacityException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s OutOfCapacityException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s OutOfCapacityException) GoString() string {
+ return s.String()
+}
+
+func newErrorOutOfCapacityException(v protocol.ResponseMetadata) error {
+ return &OutOfCapacityException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *OutOfCapacityException) Code() string {
+ return "OutOfCapacityException"
+}
+
+// Message returns the exception's message.
+func (s *OutOfCapacityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17853,22 +21061,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *OutOfCapacityException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *OutOfCapacityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OutOfCapacityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OutOfCapacityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a player session that was created as part of a StartGameSessionPlacement
@@ -18161,7 +21369,7 @@ type PlayerSession struct {
// The Amazon Resource Name (ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html))
// associated with the GameLift fleet that the player's game session is running
// on.
- FleetArn *string `min:"1" type:"string"`
+ FleetArn *string `type:"string"`
// A unique identifier for a fleet that the player's game session is running
// on.
@@ -18514,6 +21722,175 @@ func (s *PutScalingPolicyOutput) SetName(v string) *PutScalingPolicyOutput {
return s
}
+type RegisterGameServerInput struct {
+ _ struct{} `type:"structure"`
+
+ // Information needed to make inbound client connections to the game server.
+ // This might include IP address and port, DNS name, etc.
+ ConnectionInfo *string `min:"1" type:"string"`
+
+ // A game server tag that can be used to request sorted lists of game servers
+ // using ListGameServers. Custom sort keys are developer-defined based on how
+ // you want to organize the retrieved game server information.
+ CustomSortKey *string `min:"1" type:"string"`
+
+ // A set of custom game server properties, formatted as a single string value.
+ // This data is passed to a game client or service when it requests information
+ // on a game servers using ListGameServers or ClaimGameServer.
+ GameServerData *string `min:"1" type:"string"`
+
+ // An identifier for the game server group where the game server is running.
+ // You can use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // A custom string that uniquely identifies the new game server. Game server
+ // IDs are developer-defined and must be unique across all game server groups
+ // in your AWS account.
+ //
+ // GameServerId is a required field
+ GameServerId *string `min:"3" type:"string" required:"true"`
+
+ // The unique identifier for the instance where the game server is running.
+ // This ID is available in the instance metadata.
+ //
+ // InstanceId is a required field
+ InstanceId *string `min:"19" type:"string" required:"true"`
+
+ // A list of labels to assign to the new game server resource. Tags are developer-defined
+ // key-value pairs. Tagging AWS resources are useful for resource management,
+ // access management, and cost allocation. For more information, see Tagging
+ // AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
+ // in the AWS General Reference. Once the resource is created, you can use TagResource,
+ // UntagResource, and ListTagsForResource to add, remove, and view tags. The
+ // maximum tag limit may be lower than stated. See the AWS General Reference
+ // for actual tagging limits.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation
+func (s RegisterGameServerInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterGameServerInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RegisterGameServerInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RegisterGameServerInput"}
+ if s.ConnectionInfo != nil && len(*s.ConnectionInfo) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConnectionInfo", 1))
+ }
+ if s.CustomSortKey != nil && len(*s.CustomSortKey) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("CustomSortKey", 1))
+ }
+ if s.GameServerData != nil && len(*s.GameServerData) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerData", 1))
+ }
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.GameServerId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerId"))
+ }
+ if s.GameServerId != nil && len(*s.GameServerId) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerId", 3))
+ }
+ if s.InstanceId == nil {
+ invalidParams.Add(request.NewErrParamRequired("InstanceId"))
+ }
+ if s.InstanceId != nil && len(*s.InstanceId) < 19 {
+ invalidParams.Add(request.NewErrParamMinLen("InstanceId", 19))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConnectionInfo sets the ConnectionInfo field's value.
+func (s *RegisterGameServerInput) SetConnectionInfo(v string) *RegisterGameServerInput {
+ s.ConnectionInfo = &v
+ return s
+}
+
+// SetCustomSortKey sets the CustomSortKey field's value.
+func (s *RegisterGameServerInput) SetCustomSortKey(v string) *RegisterGameServerInput {
+ s.CustomSortKey = &v
+ return s
+}
+
+// SetGameServerData sets the GameServerData field's value.
+func (s *RegisterGameServerInput) SetGameServerData(v string) *RegisterGameServerInput {
+ s.GameServerData = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *RegisterGameServerInput) SetGameServerGroupName(v string) *RegisterGameServerInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerId sets the GameServerId field's value.
+func (s *RegisterGameServerInput) SetGameServerId(v string) *RegisterGameServerInput {
+ s.GameServerId = &v
+ return s
+}
+
+// SetInstanceId sets the InstanceId field's value.
+func (s *RegisterGameServerInput) SetInstanceId(v string) *RegisterGameServerInput {
+ s.InstanceId = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *RegisterGameServerInput) SetTags(v []*Tag) *RegisterGameServerInput {
+ s.Tags = v
+ return s
+}
+
+type RegisterGameServerOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Object that describes the newly created game server resource.
+ GameServer *GameServer `type:"structure"`
+}
+
+// String returns the string representation
+func (s RegisterGameServerOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterGameServerOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServer sets the GameServer field's value.
+func (s *RegisterGameServerOutput) SetGameServer(v *GameServer) *RegisterGameServerOutput {
+ s.GameServer = v
+ return s
+}
+
// Represents the input for a request action.
type RequestUploadCredentialsInput struct {
_ struct{} `type:"structure"`
@@ -18635,7 +22012,7 @@ type ResolveAliasOutput struct {
// The Amazon Resource Name (ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html))
// associated with the GameLift fleet resource that this alias points to.
- FleetArn *string `min:"1" type:"string"`
+ FleetArn *string `type:"string"`
// The fleet identifier that the alias is pointing to.
FleetId *string `type:"string"`
@@ -18707,6 +22084,89 @@ func (s *ResourceCreationLimitPolicy) SetPolicyPeriodInMinutes(v int64) *Resourc
return s
}
+type ResumeGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier of the game server group to resume activity on. Use
+ // either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // The action to resume for this game server group.
+ //
+ // ResumeActions is a required field
+ ResumeActions []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s ResumeGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResumeGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ResumeGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ResumeGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.ResumeActions == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResumeActions"))
+ }
+ if s.ResumeActions != nil && len(s.ResumeActions) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResumeActions", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *ResumeGameServerGroupInput) SetGameServerGroupName(v string) *ResumeGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetResumeActions sets the ResumeActions field's value.
+func (s *ResumeGameServerGroupInput) SetResumeActions(v []*string) *ResumeGameServerGroupInput {
+ s.ResumeActions = v
+ return s
+}
+
+type ResumeGameServerGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An object that describes the game server group resource, with the SuspendedActions
+ // property updated to reflect the resumed activity.
+ GameServerGroup *GameServerGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s ResumeGameServerGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResumeGameServerGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *ResumeGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *ResumeGameServerGroupOutput {
+ s.GameServerGroup = v
+ return s
+}
+
// The routing configuration for a fleet alias.
//
// * CreateAlias
@@ -18796,7 +22256,7 @@ func (s *RoutingStrategy) SetType(v string) *RoutingStrategy {
//
// * UpdateFleetAttributes
//
-// * Manage fleet actions: StartFleetActions StopFleetActions
+// * StartFleetActions or StopFleetActions
type RuntimeConfiguration struct {
_ struct{} `type:"structure"`
@@ -18872,13 +22332,13 @@ func (s *RuntimeConfiguration) SetServerProcesses(v []*ServerProcess) *RuntimeCo
return s
}
-// The location in Amazon S3 where build or script files are stored for access
-// by Amazon GameLift. This location is specified in CreateBuild, CreateScript,
-// and UpdateScript requests.
+// The location in S3 where build or script files are stored for access by Amazon
+// GameLift. This location is specified in CreateBuild, CreateScript, and UpdateScript
+// requests.
type S3Location struct {
_ struct{} `type:"structure"`
- // An Amazon S3 bucket identifier. This is the name of the S3 bucket.
+ // An S3 bucket identifier. This is the name of the S3 bucket.
Bucket *string `min:"1" type:"string"`
// The name of the zip file that contains the build files or script files.
@@ -19185,9 +22645,9 @@ type Script struct {
// are uploaded from an S3 location, this value remains at "0".
SizeOnDisk *int64 `min:"1" type:"long"`
- // The location in Amazon S3 where build or script files are stored for access
- // by Amazon GameLift. This location is specified in CreateBuild, CreateScript,
- // and UpdateScript requests.
+ // The location in S3 where build or script files are stored for access by Amazon
+ // GameLift. This location is specified in CreateBuild, CreateScript, and UpdateScript
+ // requests.
StorageLocation *S3Location `type:"structure"`
// The version that is associated with a build or script. Version strings do
@@ -19609,7 +23069,7 @@ type StartGameSessionPlacementInput struct {
GameSessionName *string `min:"1" type:"string"`
// Name of the queue to use to place the new game session. You can use either
- // the qieue name or ARN value.
+ // the queue name or ARN value.
//
// GameSessionQueueName is a required field
GameSessionQueueName *string `min:"1" type:"string" required:"true"`
@@ -20198,20 +23658,103 @@ func (s *StopMatchmakingInput) SetTicketId(v string) *StopMatchmakingInput {
return s
}
-type StopMatchmakingOutput struct {
+type StopMatchmakingOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s StopMatchmakingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s StopMatchmakingOutput) GoString() string {
+ return s.String()
+}
+
+type SuspendGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier of the game server group to stop activity on. Use either
+ // the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // The action to suspend for this game server group.
+ //
+ // SuspendActions is a required field
+ SuspendActions []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s SuspendGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SuspendGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SuspendGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SuspendGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.SuspendActions == nil {
+ invalidParams.Add(request.NewErrParamRequired("SuspendActions"))
+ }
+ if s.SuspendActions != nil && len(s.SuspendActions) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SuspendActions", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *SuspendGameServerGroupInput) SetGameServerGroupName(v string) *SuspendGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetSuspendActions sets the SuspendActions field's value.
+func (s *SuspendGameServerGroupInput) SetSuspendActions(v []*string) *SuspendGameServerGroupInput {
+ s.SuspendActions = v
+ return s
+}
+
+type SuspendGameServerGroupOutput struct {
_ struct{} `type:"structure"`
+
+ // An object that describes the game server group resource, with the SuspendedActions
+ // property updated to reflect the suspended activity.
+ GameServerGroup *GameServerGroup `type:"structure"`
}
// String returns the string representation
-func (s StopMatchmakingOutput) String() string {
+func (s SuspendGameServerGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s StopMatchmakingOutput) GoString() string {
+func (s SuspendGameServerGroupOutput) GoString() string {
return s.String()
}
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *SuspendGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *SuspendGameServerGroupOutput {
+ s.GameServerGroup = v
+ return s
+}
+
// A label that can be assigned to a GameLift resource.
//
// Learn more
@@ -20373,8 +23916,8 @@ func (s TagResourceOutput) GoString() string {
// tag format or the maximum tag limit may have been exceeded. Resolve the issue
// before retrying.
type TaggingFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -20391,17 +23934,17 @@ func (s TaggingFailedException) GoString() string {
func newErrorTaggingFailedException(v protocol.ResponseMetadata) error {
return &TaggingFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaggingFailedException) Code() string {
+func (s *TaggingFailedException) Code() string {
return "TaggingFailedException"
}
// Message returns the exception's message.
-func (s TaggingFailedException) Message() string {
+func (s *TaggingFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20409,22 +23952,22 @@ func (s TaggingFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaggingFailedException) OrigErr() error {
+func (s *TaggingFailedException) OrigErr() error {
return nil
}
-func (s TaggingFailedException) Error() string {
+func (s *TaggingFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaggingFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaggingFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaggingFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaggingFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Settings for a target-based scaling policy (see ScalingPolicy. A target-based
@@ -20486,14 +24029,60 @@ func (s *TargetConfiguration) SetTargetValue(v float64) *TargetConfiguration {
return s
}
+// This data type is part of Amazon GameLift FleetIQ with game server groups,
+// which is in preview release and is subject to change.
+//
+// Settings for a target-based scaling policy applied to Auto Scaling group.
+// These settings are used to create a target-based policy that tracks the GameLift
+// FleetIQ metric "PercentUtilizedGameServers" and specifies a target value
+// for the metric. As player usage changes, the policy triggers to adjust the
+// game server group capacity so that the metric returns to the target value.
+type TargetTrackingConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Desired value to use with a game server group target-based scaling policy.
+ //
+ // TargetValue is a required field
+ TargetValue *float64 `type:"double" required:"true"`
+}
+
+// String returns the string representation
+func (s TargetTrackingConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TargetTrackingConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TargetTrackingConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TargetTrackingConfiguration"}
+ if s.TargetValue == nil {
+ invalidParams.Add(request.NewErrParamRequired("TargetValue"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTargetValue sets the TargetValue field's value.
+func (s *TargetTrackingConfiguration) SetTargetValue(v float64) *TargetTrackingConfiguration {
+ s.TargetValue = &v
+ return s
+}
+
// The service is unable to resolve the routing for a particular alias because
// it has a terminal RoutingStrategy associated with it. The message returned
// in this exception is the message defined in the routing strategy itself.
// Such requests should only be retried if the routing strategy for the specified
// alias is modified.
type TerminalRoutingStrategyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -20510,17 +24099,17 @@ func (s TerminalRoutingStrategyException) GoString() string {
func newErrorTerminalRoutingStrategyException(v protocol.ResponseMetadata) error {
return &TerminalRoutingStrategyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TerminalRoutingStrategyException) Code() string {
+func (s *TerminalRoutingStrategyException) Code() string {
return "TerminalRoutingStrategyException"
}
// Message returns the exception's message.
-func (s TerminalRoutingStrategyException) Message() string {
+func (s *TerminalRoutingStrategyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20528,28 +24117,28 @@ func (s TerminalRoutingStrategyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TerminalRoutingStrategyException) OrigErr() error {
+func (s *TerminalRoutingStrategyException) OrigErr() error {
return nil
}
-func (s TerminalRoutingStrategyException) Error() string {
+func (s *TerminalRoutingStrategyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TerminalRoutingStrategyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TerminalRoutingStrategyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TerminalRoutingStrategyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TerminalRoutingStrategyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The client failed authentication. Clients should not retry such requests.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -20566,17 +24155,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20584,28 +24173,28 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation is not supported in the Region specified.
type UnsupportedRegionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -20622,17 +24211,17 @@ func (s UnsupportedRegionException) GoString() string {
func newErrorUnsupportedRegionException(v protocol.ResponseMetadata) error {
return &UnsupportedRegionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedRegionException) Code() string {
+func (s *UnsupportedRegionException) Code() string {
return "UnsupportedRegionException"
}
// Message returns the exception's message.
-func (s UnsupportedRegionException) Message() string {
+func (s *UnsupportedRegionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20640,22 +24229,22 @@ func (s UnsupportedRegionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedRegionException) OrigErr() error {
+func (s *UnsupportedRegionException) OrigErr() error {
return nil
}
-func (s UnsupportedRegionException) Error() string {
+func (s *UnsupportedRegionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedRegionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedRegionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedRegionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedRegionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -20670,8 +24259,9 @@ type UntagResourceInput struct {
// ResourceARN is a required field
ResourceARN *string `min:"1" type:"string" required:"true"`
- // A list of one or more tags to remove from the specified GameLift resource.
- // Tags are developer-defined and structured as key-value pairs.
+ // A list of one or more tag keys to remove from the specified GameLift resource.
+ // An AWS resource can have only one tag with a specific tag key, so specifying
+ // the tag key identifies which tag to remove.
//
// TagKeys is a required field
TagKeys []*string `type:"list" required:"true"`
@@ -20901,7 +24491,7 @@ func (s *UpdateBuildInput) SetVersion(v string) *UpdateBuildInput {
type UpdateBuildOutput struct {
_ struct{} `type:"structure"`
- // The updated build record.
+ // The updated build resource.
Build *Build `type:"structure"`
}
@@ -21154,10 +24744,10 @@ type UpdateFleetPortSettingsInput struct {
// FleetId is a required field
FleetId *string `type:"string" required:"true"`
- // A collection of port settings to be added to the fleet record.
+ // A collection of port settings to be added to the fleet resource.
InboundPermissionAuthorizations []*IpPermission `type:"list"`
- // A collection of port settings to be removed from the fleet record.
+ // A collection of port settings to be removed from the fleet resource.
InboundPermissionRevocations []*IpPermission `type:"list"`
}
@@ -21246,6 +24836,280 @@ func (s *UpdateFleetPortSettingsOutput) SetFleetId(v string) *UpdateFleetPortSet
return s
}
+type UpdateGameServerGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The fallback balancing method to use for the game server group when Spot
+ // instances in a Region become unavailable or are not viable for game hosting.
+ // Once triggered, this method remains active until Spot instances can once
+ // again be used. Method options include:
+ //
+ // * SPOT_ONLY -- If Spot instances are unavailable, the game server group
+ // provides no hosting capacity. No new instances are started, and the existing
+ // nonviable Spot instances are terminated (once current gameplay ends) and
+ // not replaced.
+ //
+ // * SPOT_PREFERRED -- If Spot instances are unavailable, the game server
+ // group continues to provide hosting capacity by using On-Demand instances.
+ // Existing nonviable Spot instances are terminated (once current gameplay
+ // ends) and replaced with new On-Demand instances.
+ BalancingStrategy *string `type:"string" enum:"BalancingStrategy"`
+
+ // The unique identifier of the game server group to update. Use either the
+ // GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // A flag that indicates whether instances in the game server group are protected
+ // from early termination. Unprotected instances that have active game servers
+ // running may by terminated during a scale-down event, causing players to be
+ // dropped from the game. Protected instances cannot be terminated while there
+ // are active game servers running. An exception to this is Spot Instances,
+ // which may be terminated by AWS regardless of protection status. This property
+ // is set to NO_PROTECTION by default.
+ GameServerProtectionPolicy *string `type:"string" enum:"GameServerProtectionPolicy"`
+
+ // An updated list of EC2 instance types to use when creating instances in the
+ // group. The instance definition must specify instance types that are supported
+ // by GameLift FleetIQ, and must include at least two instance types. This updated
+ // list replaces the entire current list of instance definitions for the game
+ // server group. For more information on instance types, see EC2 Instance Types
+ // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
+ // in the Amazon EC2 User Guide..
+ InstanceDefinitions []*InstanceDefinition `min:"2" type:"list"`
+
+ // The Amazon Resource Name (ARN (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html))
+ // for an IAM role that allows Amazon GameLift to access your EC2 Auto Scaling
+ // groups. The submitted role is validated to ensure that it contains the necessary
+ // permissions for game server groups.
+ RoleArn *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s UpdateGameServerGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateGameServerGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateGameServerGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateGameServerGroupInput"}
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.InstanceDefinitions != nil && len(s.InstanceDefinitions) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("InstanceDefinitions", 2))
+ }
+ if s.RoleArn != nil && len(*s.RoleArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
+ }
+ if s.InstanceDefinitions != nil {
+ for i, v := range s.InstanceDefinitions {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceDefinitions", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetBalancingStrategy sets the BalancingStrategy field's value.
+func (s *UpdateGameServerGroupInput) SetBalancingStrategy(v string) *UpdateGameServerGroupInput {
+ s.BalancingStrategy = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *UpdateGameServerGroupInput) SetGameServerGroupName(v string) *UpdateGameServerGroupInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerProtectionPolicy sets the GameServerProtectionPolicy field's value.
+func (s *UpdateGameServerGroupInput) SetGameServerProtectionPolicy(v string) *UpdateGameServerGroupInput {
+ s.GameServerProtectionPolicy = &v
+ return s
+}
+
+// SetInstanceDefinitions sets the InstanceDefinitions field's value.
+func (s *UpdateGameServerGroupInput) SetInstanceDefinitions(v []*InstanceDefinition) *UpdateGameServerGroupInput {
+ s.InstanceDefinitions = v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *UpdateGameServerGroupInput) SetRoleArn(v string) *UpdateGameServerGroupInput {
+ s.RoleArn = &v
+ return s
+}
+
+type UpdateGameServerGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An object that describes the game server group resource with updated properties.
+ GameServerGroup *GameServerGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateGameServerGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateGameServerGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServerGroup sets the GameServerGroup field's value.
+func (s *UpdateGameServerGroupOutput) SetGameServerGroup(v *GameServerGroup) *UpdateGameServerGroupOutput {
+ s.GameServerGroup = v
+ return s
+}
+
+type UpdateGameServerInput struct {
+ _ struct{} `type:"structure"`
+
+ // A game server tag that can be used to request sorted lists of game servers
+ // using ListGameServers. Custom sort keys are developer-defined based on how
+ // you want to organize the retrieved game server information.
+ CustomSortKey *string `min:"1" type:"string"`
+
+ // A set of custom game server properties, formatted as a single string value.
+ // This data is passed to a game client or service when it requests information
+ // on a game servers using DescribeGameServer or ClaimGameServer.
+ GameServerData *string `min:"1" type:"string"`
+
+ // An identifier for the game server group where the game server is running.
+ // Use either the GameServerGroup name or ARN value.
+ //
+ // GameServerGroupName is a required field
+ GameServerGroupName *string `min:"1" type:"string" required:"true"`
+
+ // The identifier for the game server to be updated.
+ //
+ // GameServerId is a required field
+ GameServerId *string `min:"3" type:"string" required:"true"`
+
+ // Indicates health status of the game server. An update that explicitly includes
+ // this parameter updates the game server's LastHealthCheckTime time stamp.
+ HealthCheck *string `type:"string" enum:"GameServerHealthCheck"`
+
+ // Indicates whether the game server is available or is currently hosting gameplay.
+ UtilizationStatus *string `type:"string" enum:"GameServerUtilizationStatus"`
+}
+
+// String returns the string representation
+func (s UpdateGameServerInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateGameServerInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateGameServerInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateGameServerInput"}
+ if s.CustomSortKey != nil && len(*s.CustomSortKey) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("CustomSortKey", 1))
+ }
+ if s.GameServerData != nil && len(*s.GameServerData) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerData", 1))
+ }
+ if s.GameServerGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerGroupName"))
+ }
+ if s.GameServerGroupName != nil && len(*s.GameServerGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerGroupName", 1))
+ }
+ if s.GameServerId == nil {
+ invalidParams.Add(request.NewErrParamRequired("GameServerId"))
+ }
+ if s.GameServerId != nil && len(*s.GameServerId) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("GameServerId", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCustomSortKey sets the CustomSortKey field's value.
+func (s *UpdateGameServerInput) SetCustomSortKey(v string) *UpdateGameServerInput {
+ s.CustomSortKey = &v
+ return s
+}
+
+// SetGameServerData sets the GameServerData field's value.
+func (s *UpdateGameServerInput) SetGameServerData(v string) *UpdateGameServerInput {
+ s.GameServerData = &v
+ return s
+}
+
+// SetGameServerGroupName sets the GameServerGroupName field's value.
+func (s *UpdateGameServerInput) SetGameServerGroupName(v string) *UpdateGameServerInput {
+ s.GameServerGroupName = &v
+ return s
+}
+
+// SetGameServerId sets the GameServerId field's value.
+func (s *UpdateGameServerInput) SetGameServerId(v string) *UpdateGameServerInput {
+ s.GameServerId = &v
+ return s
+}
+
+// SetHealthCheck sets the HealthCheck field's value.
+func (s *UpdateGameServerInput) SetHealthCheck(v string) *UpdateGameServerInput {
+ s.HealthCheck = &v
+ return s
+}
+
+// SetUtilizationStatus sets the UtilizationStatus field's value.
+func (s *UpdateGameServerInput) SetUtilizationStatus(v string) *UpdateGameServerInput {
+ s.UtilizationStatus = &v
+ return s
+}
+
+type UpdateGameServerOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Object that describes the newly updated game server resource.
+ GameServer *GameServer `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateGameServerOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateGameServerOutput) GoString() string {
+ return s.String()
+}
+
+// SetGameServer sets the GameServer field's value.
+func (s *UpdateGameServerOutput) SetGameServer(v *GameServer) *UpdateGameServerOutput {
+ s.GameServer = v
+ return s
+}
+
// Represents the input for a request action.
type UpdateGameSessionInput struct {
_ struct{} `type:"structure"`
@@ -22095,7 +25959,7 @@ type VpcPeeringConnection struct {
// The Amazon Resource Name (ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html))
// associated with the GameLift fleet resource for this connection.
- FleetArn *string `min:"1" type:"string"`
+ FleetArn *string `type:"string"`
// A unique identifier for a fleet. This ID determines the ID of the Amazon
// GameLift VPC for your fleet.
@@ -22232,6 +26096,14 @@ const (
BackfillModeManual = "MANUAL"
)
+const (
+ // BalancingStrategySpotOnly is a BalancingStrategy enum value
+ BalancingStrategySpotOnly = "SPOT_ONLY"
+
+ // BalancingStrategySpotPreferred is a BalancingStrategy enum value
+ BalancingStrategySpotPreferred = "SPOT_PREFERRED"
+)
+
const (
// BuildStatusInitialized is a BuildStatus enum value
BuildStatusInitialized = "INITIALIZED"
@@ -22584,6 +26456,193 @@ const (
FleetTypeSpot = "SPOT"
)
+const (
+ // GameServerClaimStatusClaimed is a GameServerClaimStatus enum value
+ GameServerClaimStatusClaimed = "CLAIMED"
+)
+
+const (
+ // GameServerGroupActionReplaceInstanceTypes is a GameServerGroupAction enum value
+ GameServerGroupActionReplaceInstanceTypes = "REPLACE_INSTANCE_TYPES"
+)
+
+const (
+ // GameServerGroupDeleteOptionSafeDelete is a GameServerGroupDeleteOption enum value
+ GameServerGroupDeleteOptionSafeDelete = "SAFE_DELETE"
+
+ // GameServerGroupDeleteOptionForceDelete is a GameServerGroupDeleteOption enum value
+ GameServerGroupDeleteOptionForceDelete = "FORCE_DELETE"
+
+ // GameServerGroupDeleteOptionRetain is a GameServerGroupDeleteOption enum value
+ GameServerGroupDeleteOptionRetain = "RETAIN"
+)
+
+const (
+ // GameServerGroupInstanceTypeC4Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC4Large = "c4.large"
+
+ // GameServerGroupInstanceTypeC4Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC4Xlarge = "c4.xlarge"
+
+ // GameServerGroupInstanceTypeC42xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC42xlarge = "c4.2xlarge"
+
+ // GameServerGroupInstanceTypeC44xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC44xlarge = "c4.4xlarge"
+
+ // GameServerGroupInstanceTypeC48xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC48xlarge = "c4.8xlarge"
+
+ // GameServerGroupInstanceTypeC5Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC5Large = "c5.large"
+
+ // GameServerGroupInstanceTypeC5Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC5Xlarge = "c5.xlarge"
+
+ // GameServerGroupInstanceTypeC52xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC52xlarge = "c5.2xlarge"
+
+ // GameServerGroupInstanceTypeC54xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC54xlarge = "c5.4xlarge"
+
+ // GameServerGroupInstanceTypeC59xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC59xlarge = "c5.9xlarge"
+
+ // GameServerGroupInstanceTypeC512xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC512xlarge = "c5.12xlarge"
+
+ // GameServerGroupInstanceTypeC518xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC518xlarge = "c5.18xlarge"
+
+ // GameServerGroupInstanceTypeC524xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeC524xlarge = "c5.24xlarge"
+
+ // GameServerGroupInstanceTypeR4Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR4Large = "r4.large"
+
+ // GameServerGroupInstanceTypeR4Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR4Xlarge = "r4.xlarge"
+
+ // GameServerGroupInstanceTypeR42xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR42xlarge = "r4.2xlarge"
+
+ // GameServerGroupInstanceTypeR44xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR44xlarge = "r4.4xlarge"
+
+ // GameServerGroupInstanceTypeR48xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR48xlarge = "r4.8xlarge"
+
+ // GameServerGroupInstanceTypeR416xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR416xlarge = "r4.16xlarge"
+
+ // GameServerGroupInstanceTypeR5Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR5Large = "r5.large"
+
+ // GameServerGroupInstanceTypeR5Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR5Xlarge = "r5.xlarge"
+
+ // GameServerGroupInstanceTypeR52xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR52xlarge = "r5.2xlarge"
+
+ // GameServerGroupInstanceTypeR54xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR54xlarge = "r5.4xlarge"
+
+ // GameServerGroupInstanceTypeR58xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR58xlarge = "r5.8xlarge"
+
+ // GameServerGroupInstanceTypeR512xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR512xlarge = "r5.12xlarge"
+
+ // GameServerGroupInstanceTypeR516xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR516xlarge = "r5.16xlarge"
+
+ // GameServerGroupInstanceTypeR524xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeR524xlarge = "r5.24xlarge"
+
+ // GameServerGroupInstanceTypeM4Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM4Large = "m4.large"
+
+ // GameServerGroupInstanceTypeM4Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM4Xlarge = "m4.xlarge"
+
+ // GameServerGroupInstanceTypeM42xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM42xlarge = "m4.2xlarge"
+
+ // GameServerGroupInstanceTypeM44xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM44xlarge = "m4.4xlarge"
+
+ // GameServerGroupInstanceTypeM410xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM410xlarge = "m4.10xlarge"
+
+ // GameServerGroupInstanceTypeM5Large is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM5Large = "m5.large"
+
+ // GameServerGroupInstanceTypeM5Xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM5Xlarge = "m5.xlarge"
+
+ // GameServerGroupInstanceTypeM52xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM52xlarge = "m5.2xlarge"
+
+ // GameServerGroupInstanceTypeM54xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM54xlarge = "m5.4xlarge"
+
+ // GameServerGroupInstanceTypeM58xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM58xlarge = "m5.8xlarge"
+
+ // GameServerGroupInstanceTypeM512xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM512xlarge = "m5.12xlarge"
+
+ // GameServerGroupInstanceTypeM516xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM516xlarge = "m5.16xlarge"
+
+ // GameServerGroupInstanceTypeM524xlarge is a GameServerGroupInstanceType enum value
+ GameServerGroupInstanceTypeM524xlarge = "m5.24xlarge"
+)
+
+const (
+ // GameServerGroupStatusNew is a GameServerGroupStatus enum value
+ GameServerGroupStatusNew = "NEW"
+
+ // GameServerGroupStatusActivating is a GameServerGroupStatus enum value
+ GameServerGroupStatusActivating = "ACTIVATING"
+
+ // GameServerGroupStatusActive is a GameServerGroupStatus enum value
+ GameServerGroupStatusActive = "ACTIVE"
+
+ // GameServerGroupStatusDeleteScheduled is a GameServerGroupStatus enum value
+ GameServerGroupStatusDeleteScheduled = "DELETE_SCHEDULED"
+
+ // GameServerGroupStatusDeleting is a GameServerGroupStatus enum value
+ GameServerGroupStatusDeleting = "DELETING"
+
+ // GameServerGroupStatusDeleted is a GameServerGroupStatus enum value
+ GameServerGroupStatusDeleted = "DELETED"
+
+ // GameServerGroupStatusError is a GameServerGroupStatus enum value
+ GameServerGroupStatusError = "ERROR"
+)
+
+const (
+ // GameServerHealthCheckHealthy is a GameServerHealthCheck enum value
+ GameServerHealthCheckHealthy = "HEALTHY"
+)
+
+const (
+ // GameServerProtectionPolicyNoProtection is a GameServerProtectionPolicy enum value
+ GameServerProtectionPolicyNoProtection = "NO_PROTECTION"
+
+ // GameServerProtectionPolicyFullProtection is a GameServerProtectionPolicy enum value
+ GameServerProtectionPolicyFullProtection = "FULL_PROTECTION"
+)
+
+const (
+ // GameServerUtilizationStatusAvailable is a GameServerUtilizationStatus enum value
+ GameServerUtilizationStatusAvailable = "AVAILABLE"
+
+ // GameServerUtilizationStatusUtilized is a GameServerUtilizationStatus enum value
+ GameServerUtilizationStatusUtilized = "UTILIZED"
+)
+
const (
// GameSessionPlacementStatePending is a GameSessionPlacementState enum value
GameSessionPlacementStatePending = "PENDING"
@@ -22793,3 +26852,11 @@ const (
// ScalingStatusTypeError is a ScalingStatusType enum value
ScalingStatusTypeError = "ERROR"
)
+
+const (
+ // SortOrderAscending is a SortOrder enum value
+ SortOrderAscending = "ASCENDING"
+
+ // SortOrderDescending is a SortOrder enum value
+ SortOrderDescending = "DESCENDING"
+)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/doc.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/doc.go
index 9c054334111..b1cfaa1b4b6 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/doc.go
@@ -3,17 +3,32 @@
// Package gamelift provides the client and types for making API
// requests to Amazon GameLift.
//
-// Amazon GameLift is a managed service for developers who need a scalable,
-// dedicated server solution for their multiplayer games. Use Amazon GameLift
-// for these tasks: (1) set up computing resources and deploy your game servers,
-// (2) run game sessions and get players into games, (3) automatically scale
-// your resources to meet player demand and manage costs, and (4) track in-depth
-// metrics on game server performance and player usage.
-//
-// When setting up hosting resources, you can deploy your custom game server
-// or use the Amazon GameLift Realtime Servers. Realtime Servers gives you the
-// ability to quickly stand up lightweight, efficient game servers with the
-// core Amazon GameLift infrastructure already built in.
+// Amazon GameLift provides a range of multiplayer game hosting solutions. As
+// a fully managed service, GameLift helps you:
+//
+// * Set up EC2-based computing resources and use GameLift FleetIQ to and
+// deploy your game servers on low-cost, reliable Spot instances.
+//
+// * Track game server availability and route players into game sessions
+// to minimize latency.
+//
+// * Automatically scale your resources to meet player demand and manage
+// costs
+//
+// * Optionally add FlexMatch matchmaking.
+//
+// With GameLift as a managed service, you have the option to deploy your custom
+// game server or use Amazon GameLift Realtime Servers to quickly stand up lightweight
+// game servers for your game. Realtime Servers provides an efficient game server
+// framework with core Amazon GameLift infrastructure already built in.
+//
+// Now in Public Preview:
+//
+// Use GameLift FleetIQ as a standalone feature with EC2 instances and Auto
+// Scaling groups. GameLift FleetIQ provides optimizations that make low-cost
+// Spot instances viable for game hosting. This extension of GameLift FleetIQ
+// gives you access to these optimizations while managing your EC2 instances
+// and Auto Scaling groups within your own AWS account.
//
// Get Amazon GameLift Tools and Resources
//
diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go
index f9794d64250..ef6de30dc6d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/gamelift/errors.go
@@ -82,6 +82,14 @@ const (
// should not retry such requests.
ErrCodeNotFoundException = "NotFoundException"
+ // ErrCodeOutOfCapacityException for service response error code
+ // "OutOfCapacityException".
+ //
+ // The specified game server group has no available game servers to fulfill
+ // a ClaimGameServer request. Clients can retry such requests immediately or
+ // after a waiting period.
+ ErrCodeOutOfCapacityException = "OutOfCapacityException"
+
// ErrCodeTaggingFailedException for service response error code
// "TaggingFailedException".
//
@@ -124,6 +132,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"InvalidRequestException": newErrorInvalidRequestException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
+ "OutOfCapacityException": newErrorOutOfCapacityException,
"TaggingFailedException": newErrorTaggingFailedException,
"TerminalRoutingStrategyException": newErrorTerminalRoutingStrategyException,
"UnauthorizedException": newErrorUnauthorizedException,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go
index 32e021c8728..4ddaba08c45 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go
@@ -6179,8 +6179,8 @@ func (s *InputSerialization) SetCsv(v *CSVInput) *InputSerialization {
// This error only applies to expedited retrievals and not to standard or bulk
// retrievals.
type InsufficientCapacityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -6201,17 +6201,17 @@ func (s InsufficientCapacityException) GoString() string {
func newErrorInsufficientCapacityException(v protocol.ResponseMetadata) error {
return &InsufficientCapacityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InsufficientCapacityException) Code() string {
+func (s *InsufficientCapacityException) Code() string {
return "InsufficientCapacityException"
}
// Message returns the exception's message.
-func (s InsufficientCapacityException) Message() string {
+func (s *InsufficientCapacityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6219,28 +6219,28 @@ func (s InsufficientCapacityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InsufficientCapacityException) OrigErr() error {
+func (s *InsufficientCapacityException) OrigErr() error {
return nil
}
-func (s InsufficientCapacityException) Error() string {
+func (s *InsufficientCapacityException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InsufficientCapacityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InsufficientCapacityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InsufficientCapacityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InsufficientCapacityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if a parameter of the request is incorrectly specified.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 400 Bad Request
Code_ *string `locationName:"code" type:"string"`
@@ -6264,17 +6264,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6282,22 +6282,22 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the options for a range inventory retrieval job.
@@ -6815,8 +6815,8 @@ func (s *JobParameters) SetType(v string) *JobParameters {
// Returned if the request results in a vault or account limit being exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 400 Bad Request
Code_ *string `locationName:"code" type:"string"`
@@ -6840,17 +6840,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6858,22 +6858,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides options for retrieving a job list for an Amazon S3 Glacier vault.
@@ -7588,8 +7588,8 @@ func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOut
// Returned if a required header or parameter is missing from the request.
type MissingParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 400 Bad Request
Code_ *string `locationName:"code" type:"string"`
@@ -7613,17 +7613,17 @@ func (s MissingParameterValueException) GoString() string {
func newErrorMissingParameterValueException(v protocol.ResponseMetadata) error {
return &MissingParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingParameterValueException) Code() string {
+func (s *MissingParameterValueException) Code() string {
return "MissingParameterValueException"
}
// Message returns the exception's message.
-func (s MissingParameterValueException) Message() string {
+func (s *MissingParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7631,22 +7631,22 @@ func (s MissingParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingParameterValueException) OrigErr() error {
+func (s *MissingParameterValueException) OrigErr() error {
return nil
}
-func (s MissingParameterValueException) Error() string {
+func (s *MissingParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about the location where the select job results are
@@ -7750,8 +7750,8 @@ func (s *PartListElement) SetSHA256TreeHash(v string) *PartListElement {
// Returned if a retrieval job would exceed the current data policy's retrieval
// rate limit. For more information about data retrieval policies,
type PolicyEnforcedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// PolicyEnforcedException
Code_ *string `locationName:"code" type:"string"`
@@ -7775,17 +7775,17 @@ func (s PolicyEnforcedException) GoString() string {
func newErrorPolicyEnforcedException(v protocol.ResponseMetadata) error {
return &PolicyEnforcedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyEnforcedException) Code() string {
+func (s *PolicyEnforcedException) Code() string {
return "PolicyEnforcedException"
}
// Message returns the exception's message.
-func (s PolicyEnforcedException) Message() string {
+func (s *PolicyEnforcedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7793,22 +7793,22 @@ func (s PolicyEnforcedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyEnforcedException) OrigErr() error {
+func (s *PolicyEnforcedException) OrigErr() error {
return nil
}
-func (s PolicyEnforcedException) Error() string {
+func (s *PolicyEnforcedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyEnforcedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyEnforcedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyEnforcedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyEnforcedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The definition for a provisioned capacity unit.
@@ -8012,8 +8012,8 @@ func (s RemoveTagsFromVaultOutput) GoString() string {
// Returned if, when uploading an archive, Amazon S3 Glacier times out while
// receiving the upload.
type RequestTimeoutException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 408 Request Timeout
Code_ *string `locationName:"code" type:"string"`
@@ -8038,17 +8038,17 @@ func (s RequestTimeoutException) GoString() string {
func newErrorRequestTimeoutException(v protocol.ResponseMetadata) error {
return &RequestTimeoutException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestTimeoutException) Code() string {
+func (s *RequestTimeoutException) Code() string {
return "RequestTimeoutException"
}
// Message returns the exception's message.
-func (s RequestTimeoutException) Message() string {
+func (s *RequestTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8056,29 +8056,29 @@ func (s RequestTimeoutException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestTimeoutException) OrigErr() error {
+func (s *RequestTimeoutException) OrigErr() error {
return nil
}
-func (s RequestTimeoutException) Error() string {
+func (s *RequestTimeoutException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestTimeoutException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestTimeoutException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestTimeoutException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestTimeoutException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the specified resource (such as a vault, upload ID, or job ID)
// doesn't exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 404 Not Found
Code_ *string `locationName:"code" type:"string"`
@@ -8103,17 +8103,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8121,22 +8121,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about the location in Amazon S3 where the select job
@@ -8301,8 +8301,8 @@ func (s *SelectParameters) SetOutputSerialization(v *OutputSerialization) *Selec
// Returned if the service cannot complete the request.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 500 Internal Server Error
Code_ *string `locationName:"code" type:"string"`
@@ -8326,17 +8326,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8344,22 +8344,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// SetDataRetrievalPolicy input.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go
index 1470135e8ab..4f7f98e02e0 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go
@@ -1013,7 +1013,8 @@ func (c *GlobalAccelerator) DescribeEndpointGroupRequest(input *DescribeEndpoint
// DescribeEndpointGroup API operation for AWS Global Accelerator.
//
-// Describe an endpoint group.
+// Describe an endpoint group. To see an AWS CLI example of describing an endpoint
+// group, scroll down to Example.
//
// 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
@@ -1271,7 +1272,8 @@ func (c *GlobalAccelerator) ListByoipCidrsRequest(input *ListByoipCidrsInput) (r
// ListByoipCidrs API operation for AWS Global Accelerator.
//
// Lists the IP address ranges that were specified in calls to ProvisionByoipCidr
-// (https://docs.aws.amazon.com/global-accelerator/latest/api/ProvisionByoipCidr.html).
+// (https://docs.aws.amazon.com/global-accelerator/latest/api/ProvisionByoipCidr.html),
+// including the current state and a history of state changes.
//
// To see an AWS CLI example of listing BYOIP CIDR addresses, scroll down to
// Example.
@@ -2505,8 +2507,8 @@ func (s *AcceleratorAttributes) SetFlowLogsS3Prefix(v string) *AcceleratorAttrib
// The accelerator that you specified could not be disabled.
type AcceleratorNotDisabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2523,17 +2525,17 @@ func (s AcceleratorNotDisabledException) GoString() string {
func newErrorAcceleratorNotDisabledException(v protocol.ResponseMetadata) error {
return &AcceleratorNotDisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AcceleratorNotDisabledException) Code() string {
+func (s *AcceleratorNotDisabledException) Code() string {
return "AcceleratorNotDisabledException"
}
// Message returns the exception's message.
-func (s AcceleratorNotDisabledException) Message() string {
+func (s *AcceleratorNotDisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2541,28 +2543,28 @@ func (s AcceleratorNotDisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AcceleratorNotDisabledException) OrigErr() error {
+func (s *AcceleratorNotDisabledException) OrigErr() error {
return nil
}
-func (s AcceleratorNotDisabledException) Error() string {
+func (s *AcceleratorNotDisabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AcceleratorNotDisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AcceleratorNotDisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AcceleratorNotDisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AcceleratorNotDisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The accelerator that you specified doesn't exist.
type AcceleratorNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2579,17 +2581,17 @@ func (s AcceleratorNotFoundException) GoString() string {
func newErrorAcceleratorNotFoundException(v protocol.ResponseMetadata) error {
return &AcceleratorNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AcceleratorNotFoundException) Code() string {
+func (s *AcceleratorNotFoundException) Code() string {
return "AcceleratorNotFoundException"
}
// Message returns the exception's message.
-func (s AcceleratorNotFoundException) Message() string {
+func (s *AcceleratorNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2597,28 +2599,28 @@ func (s AcceleratorNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AcceleratorNotFoundException) OrigErr() error {
+func (s *AcceleratorNotFoundException) OrigErr() error {
return nil
}
-func (s AcceleratorNotFoundException) Error() string {
+func (s *AcceleratorNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AcceleratorNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AcceleratorNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AcceleratorNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AcceleratorNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You don't have access permission.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2635,17 +2637,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2653,22 +2655,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AdvertiseByoipCidrInput struct {
@@ -2737,8 +2739,8 @@ func (s *AdvertiseByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *AdvertiseByoipCid
// You must remove all dependent resources from a listener before you can delete
// it.
type AssociatedEndpointGroupFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2755,17 +2757,17 @@ func (s AssociatedEndpointGroupFoundException) GoString() string {
func newErrorAssociatedEndpointGroupFoundException(v protocol.ResponseMetadata) error {
return &AssociatedEndpointGroupFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociatedEndpointGroupFoundException) Code() string {
+func (s *AssociatedEndpointGroupFoundException) Code() string {
return "AssociatedEndpointGroupFoundException"
}
// Message returns the exception's message.
-func (s AssociatedEndpointGroupFoundException) Message() string {
+func (s *AssociatedEndpointGroupFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2773,30 +2775,30 @@ func (s AssociatedEndpointGroupFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociatedEndpointGroupFoundException) OrigErr() error {
+func (s *AssociatedEndpointGroupFoundException) OrigErr() error {
return nil
}
-func (s AssociatedEndpointGroupFoundException) Error() string {
+func (s *AssociatedEndpointGroupFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociatedEndpointGroupFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociatedEndpointGroupFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociatedEndpointGroupFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociatedEndpointGroupFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The accelerator that you specified has a listener associated with it. You
// must remove all dependent resources from an accelerator before you can delete
// it.
type AssociatedListenerFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2813,17 +2815,17 @@ func (s AssociatedListenerFoundException) GoString() string {
func newErrorAssociatedListenerFoundException(v protocol.ResponseMetadata) error {
return &AssociatedListenerFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociatedListenerFoundException) Code() string {
+func (s *AssociatedListenerFoundException) Code() string {
return "AssociatedListenerFoundException"
}
// Message returns the exception's message.
-func (s AssociatedListenerFoundException) Message() string {
+func (s *AssociatedListenerFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2831,26 +2833,26 @@ func (s AssociatedListenerFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociatedListenerFoundException) OrigErr() error {
+func (s *AssociatedListenerFoundException) OrigErr() error {
return nil
}
-func (s AssociatedListenerFoundException) Error() string {
+func (s *AssociatedListenerFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociatedListenerFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociatedListenerFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociatedListenerFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociatedListenerFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an IP address range that is provisioned for use with your
-// AWS resources through bring your own IP addresses (BYOIP).
+// AWS resources through bring your own IP address (BYOIP).
//
// The following describes each BYOIP State that your IP address range can be
// in.
@@ -2902,6 +2904,10 @@ type ByoipCidr struct {
// The address range, in CIDR notation.
Cidr *string `type:"string"`
+ // A history of status changes for an IP address range that that you bring to
+ // AWS Global Accelerator through bring your own IP address (BYOIP).
+ Events []*ByoipCidrEvent `type:"list"`
+
// The state of the address pool.
State *string `type:"string" enum:"ByoipCidrState"`
}
@@ -2922,16 +2928,60 @@ func (s *ByoipCidr) SetCidr(v string) *ByoipCidr {
return s
}
+// SetEvents sets the Events field's value.
+func (s *ByoipCidr) SetEvents(v []*ByoipCidrEvent) *ByoipCidr {
+ s.Events = v
+ return s
+}
+
// SetState sets the State field's value.
func (s *ByoipCidr) SetState(v string) *ByoipCidr {
s.State = &v
return s
}
+// A complex type that contains a Message and a Timestamp value for changes
+// that you make in the status an IP address range that you bring to AWS Global
+// Accelerator through bring your own IP address (BYOIP).
+type ByoipCidrEvent struct {
+ _ struct{} `type:"structure"`
+
+ // A string that contains an Event message describing changes that you make
+ // in the status of an IP address range that you bring to AWS Global Accelerator
+ // through bring your own IP address (BYOIP).
+ Message *string `type:"string"`
+
+ // A timestamp when you make a status change for an IP address range that you
+ // bring to AWS Global Accelerator through bring your own IP address (BYOIP).
+ Timestamp *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation
+func (s ByoipCidrEvent) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ByoipCidrEvent) GoString() string {
+ return s.String()
+}
+
+// SetMessage sets the Message field's value.
+func (s *ByoipCidrEvent) SetMessage(v string) *ByoipCidrEvent {
+ s.Message = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *ByoipCidrEvent) SetTimestamp(v time.Time) *ByoipCidrEvent {
+ s.Timestamp = &v
+ return s
+}
+
// The CIDR that you specified was not found or is incorrect.
type ByoipCidrNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2948,17 +2998,17 @@ func (s ByoipCidrNotFoundException) GoString() string {
func newErrorByoipCidrNotFoundException(v protocol.ResponseMetadata) error {
return &ByoipCidrNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ByoipCidrNotFoundException) Code() string {
+func (s *ByoipCidrNotFoundException) Code() string {
return "ByoipCidrNotFoundException"
}
// Message returns the exception's message.
-func (s ByoipCidrNotFoundException) Message() string {
+func (s *ByoipCidrNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2966,22 +3016,22 @@ func (s ByoipCidrNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ByoipCidrNotFoundException) OrigErr() error {
+func (s *ByoipCidrNotFoundException) OrigErr() error {
return nil
}
-func (s ByoipCidrNotFoundException) Error() string {
+func (s *ByoipCidrNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ByoipCidrNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ByoipCidrNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ByoipCidrNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ByoipCidrNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides authorization for Amazon to bring a specific IP address range to
@@ -3966,8 +4016,8 @@ type EndpointConfiguration struct {
// X-Forwarded-For request header as traffic travels to applications on the
// Application Load Balancer endpoint fronted by the accelerator.
//
- // For more information, see Viewing Client IP Addresses in AWS Global Accelerator
- // (https://docs.aws.amazon.com/global-accelerator/latest/dg/introduction-how-it-works-client-ip.html)
+ // For more information, see Preserve Client IP Addresses in AWS Global Accelerator
+ // (https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.html)
// in the AWS Global Accelerator Developer Guide.
ClientIPPreservationEnabled *bool `type:"boolean"`
@@ -4237,8 +4287,8 @@ func (s *EndpointGroup) SetTrafficDialPercentage(v float64) *EndpointGroup {
// The endpoint group that you specified already exists.
type EndpointGroupAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4255,17 +4305,17 @@ func (s EndpointGroupAlreadyExistsException) GoString() string {
func newErrorEndpointGroupAlreadyExistsException(v protocol.ResponseMetadata) error {
return &EndpointGroupAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EndpointGroupAlreadyExistsException) Code() string {
+func (s *EndpointGroupAlreadyExistsException) Code() string {
return "EndpointGroupAlreadyExistsException"
}
// Message returns the exception's message.
-func (s EndpointGroupAlreadyExistsException) Message() string {
+func (s *EndpointGroupAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4273,28 +4323,28 @@ func (s EndpointGroupAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EndpointGroupAlreadyExistsException) OrigErr() error {
+func (s *EndpointGroupAlreadyExistsException) OrigErr() error {
return nil
}
-func (s EndpointGroupAlreadyExistsException) Error() string {
+func (s *EndpointGroupAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EndpointGroupAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EndpointGroupAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EndpointGroupAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EndpointGroupAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The endpoint group that you specified doesn't exist.
type EndpointGroupNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4311,17 +4361,17 @@ func (s EndpointGroupNotFoundException) GoString() string {
func newErrorEndpointGroupNotFoundException(v protocol.ResponseMetadata) error {
return &EndpointGroupNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EndpointGroupNotFoundException) Code() string {
+func (s *EndpointGroupNotFoundException) Code() string {
return "EndpointGroupNotFoundException"
}
// Message returns the exception's message.
-func (s EndpointGroupNotFoundException) Message() string {
+func (s *EndpointGroupNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4329,29 +4379,29 @@ func (s EndpointGroupNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EndpointGroupNotFoundException) OrigErr() error {
+func (s *EndpointGroupNotFoundException) OrigErr() error {
return nil
}
-func (s EndpointGroupNotFoundException) Error() string {
+func (s *EndpointGroupNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EndpointGroupNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EndpointGroupNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EndpointGroupNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EndpointGroupNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The CIDR that you specified is not valid for this action. For example, the
// state of the CIDR might be incorrect for this action.
type IncorrectCidrStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4368,17 +4418,17 @@ func (s IncorrectCidrStateException) GoString() string {
func newErrorIncorrectCidrStateException(v protocol.ResponseMetadata) error {
return &IncorrectCidrStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectCidrStateException) Code() string {
+func (s *IncorrectCidrStateException) Code() string {
return "IncorrectCidrStateException"
}
// Message returns the exception's message.
-func (s IncorrectCidrStateException) Message() string {
+func (s *IncorrectCidrStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4386,28 +4436,28 @@ func (s IncorrectCidrStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectCidrStateException) OrigErr() error {
+func (s *IncorrectCidrStateException) OrigErr() error {
return nil
}
-func (s IncorrectCidrStateException) Error() string {
+func (s *IncorrectCidrStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectCidrStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectCidrStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectCidrStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectCidrStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There was an internal error for AWS Global Accelerator.
type InternalServiceErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4424,17 +4474,17 @@ func (s InternalServiceErrorException) GoString() string {
func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error {
return &InternalServiceErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceErrorException) Code() string {
+func (s *InternalServiceErrorException) Code() string {
return "InternalServiceErrorException"
}
// Message returns the exception's message.
-func (s InternalServiceErrorException) Message() string {
+func (s *InternalServiceErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4442,28 +4492,28 @@ func (s InternalServiceErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceErrorException) OrigErr() error {
+func (s *InternalServiceErrorException) OrigErr() error {
return nil
}
-func (s InternalServiceErrorException) Error() string {
+func (s *InternalServiceErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An argument that you specified is invalid.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4480,17 +4530,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4498,28 +4548,28 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There isn't another item to return.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4536,17 +4586,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4554,29 +4604,29 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The port numbers that you specified are not valid numbers or are not unique
// for this accelerator.
type InvalidPortRangeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4593,17 +4643,17 @@ func (s InvalidPortRangeException) GoString() string {
func newErrorInvalidPortRangeException(v protocol.ResponseMetadata) error {
return &InvalidPortRangeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPortRangeException) Code() string {
+func (s *InvalidPortRangeException) Code() string {
return "InvalidPortRangeException"
}
// Message returns the exception's message.
-func (s InvalidPortRangeException) Message() string {
+func (s *InvalidPortRangeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4611,22 +4661,22 @@ func (s InvalidPortRangeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPortRangeException) OrigErr() error {
+func (s *InvalidPortRangeException) OrigErr() error {
return nil
}
-func (s InvalidPortRangeException) Error() string {
+func (s *InvalidPortRangeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPortRangeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPortRangeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPortRangeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPortRangeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type for the set of IP addresses for an accelerator.
@@ -4666,8 +4716,8 @@ func (s *IpSet) SetIpFamily(v string) *IpSet {
// Processing your request would cause you to exceed an AWS Global Accelerator
// limit.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4684,17 +4734,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4702,22 +4752,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAcceleratorsInput struct {
@@ -5204,8 +5254,8 @@ func (s *Listener) SetProtocol(v string) *Listener {
// The listener that you specified doesn't exist.
type ListenerNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5222,17 +5272,17 @@ func (s ListenerNotFoundException) GoString() string {
func newErrorListenerNotFoundException(v protocol.ResponseMetadata) error {
return &ListenerNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ListenerNotFoundException) Code() string {
+func (s *ListenerNotFoundException) Code() string {
return "ListenerNotFoundException"
}
// Message returns the exception's message.
-func (s ListenerNotFoundException) Message() string {
+func (s *ListenerNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5240,22 +5290,22 @@ func (s ListenerNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ListenerNotFoundException) OrigErr() error {
+func (s *ListenerNotFoundException) OrigErr() error {
return nil
}
-func (s ListenerNotFoundException) Error() string {
+func (s *ListenerNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ListenerNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ListenerNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ListenerNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ListenerNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type for a range of ports for a listener.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/glue/api.go b/vendor/github.com/aws/aws-sdk-go/service/glue/api.go
index b6f7683ddd5..965e0382e61 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/glue/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/glue/api.go
@@ -12663,8 +12663,8 @@ func (c *Glue) UpdateWorkflowWithContext(ctx aws.Context, input *UpdateWorkflowI
// Access to a resource was denied.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -12682,17 +12682,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12700,22 +12700,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Defines an action to be initiated by a trigger.
@@ -12831,8 +12831,8 @@ func (s *Action) SetTimeout(v int64) *Action {
// A resource to be created or added already exists.
type AlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -12850,17 +12850,17 @@ func (s AlreadyExistsException) GoString() string {
func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error {
return &AlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyExistsException) Code() string {
+func (s *AlreadyExistsException) Code() string {
return "AlreadyExistsException"
}
// Message returns the exception's message.
-func (s AlreadyExistsException) Message() string {
+func (s *AlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12868,22 +12868,22 @@ func (s AlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyExistsException) OrigErr() error {
+func (s *AlreadyExistsException) OrigErr() error {
return nil
}
-func (s AlreadyExistsException) Error() string {
+func (s *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type BatchCreatePartitionInput struct {
@@ -14714,8 +14714,8 @@ func (s *Column) SetType(v string) *Column {
// Two processes are trying to modify a resource simultaneously.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -14733,17 +14733,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14751,28 +14751,28 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Too many jobs are being run concurrently.
type ConcurrentRunsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -14790,17 +14790,17 @@ func (s ConcurrentRunsExceededException) GoString() string {
func newErrorConcurrentRunsExceededException(v protocol.ResponseMetadata) error {
return &ConcurrentRunsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentRunsExceededException) Code() string {
+func (s *ConcurrentRunsExceededException) Code() string {
return "ConcurrentRunsExceededException"
}
// Message returns the exception's message.
-func (s ConcurrentRunsExceededException) Message() string {
+func (s *ConcurrentRunsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14808,22 +14808,22 @@ func (s ConcurrentRunsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentRunsExceededException) OrigErr() error {
+func (s *ConcurrentRunsExceededException) OrigErr() error {
return nil
}
-func (s ConcurrentRunsExceededException) Error() string {
+func (s *ConcurrentRunsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentRunsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentRunsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentRunsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentRunsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Defines a condition under which a trigger fires.
@@ -14906,8 +14906,8 @@ func (s *Condition) SetState(v string) *Condition {
// A specified condition was not satisfied.
type ConditionCheckFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -14925,17 +14925,17 @@ func (s ConditionCheckFailureException) GoString() string {
func newErrorConditionCheckFailureException(v protocol.ResponseMetadata) error {
return &ConditionCheckFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConditionCheckFailureException) Code() string {
+func (s *ConditionCheckFailureException) Code() string {
return "ConditionCheckFailureException"
}
// Message returns the exception's message.
-func (s ConditionCheckFailureException) Message() string {
+func (s *ConditionCheckFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14943,22 +14943,22 @@ func (s ConditionCheckFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConditionCheckFailureException) OrigErr() error {
+func (s *ConditionCheckFailureException) OrigErr() error {
return nil
}
-func (s ConditionCheckFailureException) Error() string {
+func (s *ConditionCheckFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConditionCheckFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConditionCheckFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConditionCheckFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConditionCheckFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The confusion matrix shows you what your transform is predicting accurately
@@ -15054,7 +15054,7 @@ type Connection struct {
//
// * INSTANCE_ID - The instance ID to use.
//
- // * JDBC_CONNECTION_URL - The URL for the JDBC connection.
+ // * JDBC_CONNECTION_URL - The URL for connecting to a JDBC data source.
//
// * JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether
// Secure Sockets Layer (SSL) with hostname matching is enforced for the
@@ -15078,6 +15078,13 @@ type Connection struct {
// used for domain match or distinguished name match to prevent a man-in-the-middle
// attack. In Oracle database, this is used as the SSL_SERVER_CERT_DN; in
// Microsoft SQL Server, this is used as the hostNameInCertificate.
+ //
+ // * CONNECTION_URL - The URL for connecting to a general (non-JDBC) data
+ // source.
+ //
+ // * KAFKA_BOOTSTRAP_SERVERS - A comma-separated list of host and port pairs
+ // that are the addresses of the Apache Kafka brokers in a Kafka cluster
+ // to which a Kafka client will connect to and bootstrap itself.
ConnectionProperties map[string]*string `type:"map"`
// The type of the connection. Currently, only JDBC is supported; SFTP is not
@@ -15180,8 +15187,16 @@ type ConnectionInput struct {
// ConnectionProperties is a required field
ConnectionProperties map[string]*string `type:"map" required:"true"`
- // The type of the connection. Currently, only JDBC is supported; SFTP is not
- // supported.
+ // The type of the connection. Currently, these types are supported:
+ //
+ // * JDBC - Designates a connection to a database through Java Database Connectivity
+ // (JDBC).
+ //
+ // * KAFKA - Designates a connection to an Apache Kafka streaming platform.
+ //
+ // * MONGODB - Designates a connection to a MongoDB document database.
+ //
+ // SFTP is not supported.
//
// ConnectionType is a required field
ConnectionType *string `type:"string" required:"true" enum:"ConnectionType"`
@@ -15730,8 +15745,8 @@ func (s *CrawlerNodeDetails) SetCrawls(v []*Crawl) *CrawlerNodeDetails {
// The specified crawler is not running.
type CrawlerNotRunningException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -15749,17 +15764,17 @@ func (s CrawlerNotRunningException) GoString() string {
func newErrorCrawlerNotRunningException(v protocol.ResponseMetadata) error {
return &CrawlerNotRunningException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CrawlerNotRunningException) Code() string {
+func (s *CrawlerNotRunningException) Code() string {
return "CrawlerNotRunningException"
}
// Message returns the exception's message.
-func (s CrawlerNotRunningException) Message() string {
+func (s *CrawlerNotRunningException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15767,28 +15782,28 @@ func (s CrawlerNotRunningException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CrawlerNotRunningException) OrigErr() error {
+func (s *CrawlerNotRunningException) OrigErr() error {
return nil
}
-func (s CrawlerNotRunningException) Error() string {
+func (s *CrawlerNotRunningException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CrawlerNotRunningException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CrawlerNotRunningException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CrawlerNotRunningException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CrawlerNotRunningException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation cannot be performed because the crawler is already running.
type CrawlerRunningException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -15806,17 +15821,17 @@ func (s CrawlerRunningException) GoString() string {
func newErrorCrawlerRunningException(v protocol.ResponseMetadata) error {
return &CrawlerRunningException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CrawlerRunningException) Code() string {
+func (s *CrawlerRunningException) Code() string {
return "CrawlerRunningException"
}
// Message returns the exception's message.
-func (s CrawlerRunningException) Message() string {
+func (s *CrawlerRunningException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15824,28 +15839,28 @@ func (s CrawlerRunningException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CrawlerRunningException) OrigErr() error {
+func (s *CrawlerRunningException) OrigErr() error {
return nil
}
-func (s CrawlerRunningException) Error() string {
+func (s *CrawlerRunningException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CrawlerRunningException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CrawlerRunningException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CrawlerRunningException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CrawlerRunningException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified crawler is stopping.
type CrawlerStoppingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -15863,17 +15878,17 @@ func (s CrawlerStoppingException) GoString() string {
func newErrorCrawlerStoppingException(v protocol.ResponseMetadata) error {
return &CrawlerStoppingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CrawlerStoppingException) Code() string {
+func (s *CrawlerStoppingException) Code() string {
return "CrawlerStoppingException"
}
// Message returns the exception's message.
-func (s CrawlerStoppingException) Message() string {
+func (s *CrawlerStoppingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15881,22 +15896,22 @@ func (s CrawlerStoppingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CrawlerStoppingException) OrigErr() error {
+func (s *CrawlerStoppingException) OrigErr() error {
return nil
}
-func (s CrawlerStoppingException) Error() string {
+func (s *CrawlerStoppingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CrawlerStoppingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CrawlerStoppingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CrawlerStoppingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CrawlerStoppingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies data stores to crawl.
@@ -20351,8 +20366,8 @@ func (s *EncryptionConfiguration) SetS3Encryption(v []*S3Encryption) *Encryption
// An encryption operation failed.
type EncryptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -20370,17 +20385,17 @@ func (s EncryptionException) GoString() string {
func newErrorEncryptionException(v protocol.ResponseMetadata) error {
return &EncryptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionException) Code() string {
+func (s *EncryptionException) Code() string {
return "GlueEncryptionException"
}
// Message returns the exception's message.
-func (s EncryptionException) Message() string {
+func (s *EncryptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20388,28 +20403,28 @@ func (s EncryptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionException) OrigErr() error {
+func (s *EncryptionException) OrigErr() error {
return nil
}
-func (s EncryptionException) Error() string {
+func (s *EncryptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A specified entity does not exist
type EntityNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -20427,17 +20442,17 @@ func (s EntityNotFoundException) GoString() string {
func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error {
return &EntityNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityNotFoundException) Code() string {
+func (s *EntityNotFoundException) Code() string {
return "EntityNotFoundException"
}
// Message returns the exception's message.
-func (s EntityNotFoundException) Message() string {
+func (s *EntityNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20445,22 +20460,22 @@ func (s EntityNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityNotFoundException) OrigErr() error {
+func (s *EntityNotFoundException) OrigErr() error {
return nil
}
-func (s EntityNotFoundException) Error() string {
+func (s *EntityNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an error.
@@ -24475,9 +24490,7 @@ type GetUserDefinedFunctionsInput struct {
CatalogId *string `min:"1" type:"string"`
// The name of the catalog database where the functions are located.
- //
- // DatabaseName is a required field
- DatabaseName *string `min:"1" type:"string" required:"true"`
+ DatabaseName *string `min:"1" type:"string"`
// The maximum number of functions to return in one response.
MaxResults *int64 `min:"1" type:"integer"`
@@ -24508,9 +24521,6 @@ func (s *GetUserDefinedFunctionsInput) Validate() error {
if s.CatalogId != nil && len(*s.CatalogId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CatalogId", 1))
}
- if s.DatabaseName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
- }
if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
}
@@ -25030,8 +25040,8 @@ func (s *GrokClassifier) SetVersion(v int64) *GrokClassifier {
// The same unique identifier was associated with two different records.
type IdempotentParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -25049,17 +25059,17 @@ func (s IdempotentParameterMismatchException) GoString() string {
func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatchException) Code() string {
+func (s *IdempotentParameterMismatchException) Code() string {
return "IdempotentParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatchException) Message() string {
+func (s *IdempotentParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25067,22 +25077,22 @@ func (s IdempotentParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatchException) OrigErr() error {
+func (s *IdempotentParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatchException) Error() string {
+func (s *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ImportCatalogToGlueInput struct {
@@ -25172,8 +25182,8 @@ func (s *ImportLabelsTaskRunProperties) SetReplace(v bool) *ImportLabelsTaskRunP
// An internal service error occurred.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -25191,17 +25201,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25209,28 +25219,28 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The input provided was not valid.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -25248,17 +25258,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25266,22 +25276,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies a JDBC data store to crawl.
@@ -27348,8 +27358,8 @@ func (s *MLTransform) SetWorkerType(v string) *MLTransform {
// The machine learning transform is not ready to run.
type MLTransformNotReadyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -27367,17 +27377,17 @@ func (s MLTransformNotReadyException) GoString() string {
func newErrorMLTransformNotReadyException(v protocol.ResponseMetadata) error {
return &MLTransformNotReadyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MLTransformNotReadyException) Code() string {
+func (s *MLTransformNotReadyException) Code() string {
return "MLTransformNotReadyException"
}
// Message returns the exception's message.
-func (s MLTransformNotReadyException) Message() string {
+func (s *MLTransformNotReadyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27385,22 +27395,22 @@ func (s MLTransformNotReadyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MLTransformNotReadyException) OrigErr() error {
+func (s *MLTransformNotReadyException) OrigErr() error {
return nil
}
-func (s MLTransformNotReadyException) Error() string {
+func (s *MLTransformNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MLTransformNotReadyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MLTransformNotReadyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MLTransformNotReadyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MLTransformNotReadyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Defines a mapping.
@@ -27474,8 +27484,8 @@ func (s *MappingEntry) SetTargetType(v string) *MappingEntry {
// There is no applicable schedule.
type NoScheduleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -27493,17 +27503,17 @@ func (s NoScheduleException) GoString() string {
func newErrorNoScheduleException(v protocol.ResponseMetadata) error {
return &NoScheduleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoScheduleException) Code() string {
+func (s *NoScheduleException) Code() string {
return "NoScheduleException"
}
// Message returns the exception's message.
-func (s NoScheduleException) Message() string {
+func (s *NoScheduleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27511,22 +27521,22 @@ func (s NoScheduleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoScheduleException) OrigErr() error {
+func (s *NoScheduleException) OrigErr() error {
return nil
}
-func (s NoScheduleException) Error() string {
+func (s *NoScheduleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoScheduleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoScheduleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoScheduleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoScheduleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A node represents an AWS Glue component like Trigger, Job etc. which is part
@@ -27639,8 +27649,8 @@ func (s *NotificationProperty) SetNotifyDelayAfter(v int64) *NotificationPropert
// The operation timed out.
type OperationTimeoutException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -27658,17 +27668,17 @@ func (s OperationTimeoutException) GoString() string {
func newErrorOperationTimeoutException(v protocol.ResponseMetadata) error {
return &OperationTimeoutException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationTimeoutException) Code() string {
+func (s *OperationTimeoutException) Code() string {
return "OperationTimeoutException"
}
// Message returns the exception's message.
-func (s OperationTimeoutException) Message() string {
+func (s *OperationTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27676,22 +27686,22 @@ func (s OperationTimeoutException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationTimeoutException) OrigErr() error {
+func (s *OperationTimeoutException) OrigErr() error {
return nil
}
-func (s OperationTimeoutException) Error() string {
+func (s *OperationTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationTimeoutException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationTimeoutException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationTimeoutException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationTimeoutException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the sort order of a sorted column.
@@ -28547,8 +28557,8 @@ func (s *ResetJobBookmarkOutput) SetJobBookmarkEntry(v *JobBookmarkEntry) *Reset
// A resource numerical limit was exceeded.
type ResourceNumberLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -28566,17 +28576,17 @@ func (s ResourceNumberLimitExceededException) GoString() string {
func newErrorResourceNumberLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceNumberLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNumberLimitExceededException) Code() string {
+func (s *ResourceNumberLimitExceededException) Code() string {
return "ResourceNumberLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceNumberLimitExceededException) Message() string {
+func (s *ResourceNumberLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28584,22 +28594,22 @@ func (s ResourceNumberLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNumberLimitExceededException) OrigErr() error {
+func (s *ResourceNumberLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceNumberLimitExceededException) Error() string {
+func (s *ResourceNumberLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNumberLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNumberLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNumberLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNumberLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The URIs for function resources.
@@ -28753,8 +28763,8 @@ func (s *Schedule) SetState(v string) *Schedule {
// The specified scheduler is not running.
type SchedulerNotRunningException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -28772,17 +28782,17 @@ func (s SchedulerNotRunningException) GoString() string {
func newErrorSchedulerNotRunningException(v protocol.ResponseMetadata) error {
return &SchedulerNotRunningException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SchedulerNotRunningException) Code() string {
+func (s *SchedulerNotRunningException) Code() string {
return "SchedulerNotRunningException"
}
// Message returns the exception's message.
-func (s SchedulerNotRunningException) Message() string {
+func (s *SchedulerNotRunningException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28790,28 +28800,28 @@ func (s SchedulerNotRunningException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SchedulerNotRunningException) OrigErr() error {
+func (s *SchedulerNotRunningException) OrigErr() error {
return nil
}
-func (s SchedulerNotRunningException) Error() string {
+func (s *SchedulerNotRunningException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SchedulerNotRunningException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SchedulerNotRunningException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SchedulerNotRunningException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SchedulerNotRunningException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified scheduler is already running.
type SchedulerRunningException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -28829,17 +28839,17 @@ func (s SchedulerRunningException) GoString() string {
func newErrorSchedulerRunningException(v protocol.ResponseMetadata) error {
return &SchedulerRunningException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SchedulerRunningException) Code() string {
+func (s *SchedulerRunningException) Code() string {
return "SchedulerRunningException"
}
// Message returns the exception's message.
-func (s SchedulerRunningException) Message() string {
+func (s *SchedulerRunningException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28847,28 +28857,28 @@ func (s SchedulerRunningException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SchedulerRunningException) OrigErr() error {
+func (s *SchedulerRunningException) OrigErr() error {
return nil
}
-func (s SchedulerRunningException) Error() string {
+func (s *SchedulerRunningException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SchedulerRunningException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SchedulerRunningException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SchedulerRunningException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SchedulerRunningException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified scheduler is transitioning.
type SchedulerTransitioningException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -28886,17 +28896,17 @@ func (s SchedulerTransitioningException) GoString() string {
func newErrorSchedulerTransitioningException(v protocol.ResponseMetadata) error {
return &SchedulerTransitioningException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SchedulerTransitioningException) Code() string {
+func (s *SchedulerTransitioningException) Code() string {
return "SchedulerTransitioningException"
}
// Message returns the exception's message.
-func (s SchedulerTransitioningException) Message() string {
+func (s *SchedulerTransitioningException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28904,22 +28914,22 @@ func (s SchedulerTransitioningException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SchedulerTransitioningException) OrigErr() error {
+func (s *SchedulerTransitioningException) OrigErr() error {
return nil
}
-func (s SchedulerTransitioningException) Error() string {
+func (s *SchedulerTransitioningException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SchedulerTransitioningException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SchedulerTransitioningException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SchedulerTransitioningException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SchedulerTransitioningException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A policy that specifies update and deletion behaviors for the crawler.
@@ -33711,8 +33721,8 @@ func (s *UserDefinedFunctionInput) SetResourceUris(v []*ResourceUri) *UserDefine
// A value could not be validated.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -33730,17 +33740,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -33748,28 +33758,28 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There was a version conflict.
type VersionMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -33787,17 +33797,17 @@ func (s VersionMismatchException) GoString() string {
func newErrorVersionMismatchException(v protocol.ResponseMetadata) error {
return &VersionMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s VersionMismatchException) Code() string {
+func (s *VersionMismatchException) Code() string {
return "VersionMismatchException"
}
// Message returns the exception's message.
-func (s VersionMismatchException) Message() string {
+func (s *VersionMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -33805,22 +33815,22 @@ func (s VersionMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s VersionMismatchException) OrigErr() error {
+func (s *VersionMismatchException) OrigErr() error {
return nil
}
-func (s VersionMismatchException) Error() string {
+func (s *VersionMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s VersionMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *VersionMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s VersionMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *VersionMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A workflow represents a flow in which AWS Glue components should be executed
@@ -34255,6 +34265,12 @@ const (
// ConnectionPropertyKeyCustomJdbcCertString is a ConnectionPropertyKey enum value
ConnectionPropertyKeyCustomJdbcCertString = "CUSTOM_JDBC_CERT_STRING"
+
+ // ConnectionPropertyKeyConnectionUrl is a ConnectionPropertyKey enum value
+ ConnectionPropertyKeyConnectionUrl = "CONNECTION_URL"
+
+ // ConnectionPropertyKeyKafkaBootstrapServers is a ConnectionPropertyKey enum value
+ ConnectionPropertyKeyKafkaBootstrapServers = "KAFKA_BOOTSTRAP_SERVERS"
)
const (
@@ -34263,6 +34279,12 @@ const (
// ConnectionTypeSftp is a ConnectionType enum value
ConnectionTypeSftp = "SFTP"
+
+ // ConnectionTypeMongodb is a ConnectionType enum value
+ ConnectionTypeMongodb = "MONGODB"
+
+ // ConnectionTypeKafka is a ConnectionType enum value
+ ConnectionTypeKafka = "KAFKA"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go b/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go
index 1f62bf81a43..e67104de93f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go
@@ -7328,8 +7328,8 @@ func (s *AssociateServiceRoleToAccountOutput) SetAssociatedAt(v string) *Associa
// General error information.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A list of error details.
ErrorDetails []*ErrorDetail `type:"list"`
@@ -7349,17 +7349,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7367,22 +7367,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a bulk deployment. You cannot start a new bulk deployment
@@ -14206,8 +14206,8 @@ func (s *GroupVersion) SetSubscriptionDefinitionVersionArn(v string) *GroupVersi
// General error information.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A list of error details.
ErrorDetails []*ErrorDetail `type:"list"`
@@ -14227,17 +14227,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14245,22 +14245,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListBulkDeploymentDetailedReportsInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go b/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go
index e6778de6480..b1e8e563acc 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go
@@ -68,10 +68,10 @@ func (c *GuardDuty) AcceptInvitationRequest(input *AcceptInvitationInput) (req *
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptInvitation
func (c *GuardDuty) AcceptInvitation(input *AcceptInvitationInput) (*AcceptInvitationOutput, error) {
@@ -140,9 +140,9 @@ func (c *GuardDuty) ArchiveFindingsRequest(input *ArchiveFindingsInput) (req *re
// ArchiveFindings API operation for Amazon GuardDuty.
//
-// Archives GuardDuty findings specified by the list of finding IDs.
+// Archives GuardDuty findings that are specified by the list of finding IDs.
//
-// Only the master account can archive findings. Member accounts do not have
+// Only the master account can archive findings. Member accounts don't have
// permission to archive findings from their accounts.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -154,10 +154,10 @@ func (c *GuardDuty) ArchiveFindingsRequest(input *ArchiveFindingsInput) (req *re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ArchiveFindings
func (c *GuardDuty) ArchiveFindings(input *ArchiveFindingsInput) (*ArchiveFindingsOutput, error) {
@@ -227,8 +227,8 @@ func (c *GuardDuty) CreateDetectorRequest(input *CreateDetectorInput) (req *requ
//
// Creates a single Amazon GuardDuty detector. A detector is a resource that
// represents the GuardDuty service. To start using GuardDuty, you must create
-// a detector in each region that you enable the service. You can have only
-// one detector per account per region.
+// a detector in each Region where you enable the service. You can have only
+// one detector per account per Region.
//
// 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
@@ -239,10 +239,10 @@ func (c *GuardDuty) CreateDetectorRequest(input *CreateDetectorInput) (req *requ
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetector
func (c *GuardDuty) CreateDetector(input *CreateDetectorInput) (*CreateDetectorOutput, error) {
@@ -321,10 +321,10 @@ func (c *GuardDuty) CreateFilterRequest(input *CreateFilterInput) (req *request.
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateFilter
func (c *GuardDuty) CreateFilter(input *CreateFilterInput) (*CreateFilterOutput, error) {
@@ -392,11 +392,11 @@ func (c *GuardDuty) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Re
// CreateIPSet API operation for Amazon GuardDuty.
//
-// Creates a new IPSet, called Trusted IP list in the consoler user interface.
-// An IPSet is a list IP addresses trusted for secure communication with AWS
-// infrastructure and applications. GuardDuty does not generate findings for
-// IP addresses included in IPSets. Only users from the master account can use
-// this operation.
+// Creates a new IPSet, which is called a trusted IP list in the console user
+// interface. An IPSet is a list of IP addresses that are trusted for secure
+// communication with AWS infrastructure and applications. GuardDuty doesn't
+// generate findings for IP addresses that are included in IPSets. Only users
+// from the master account can use this operation.
//
// 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
@@ -407,10 +407,10 @@ func (c *GuardDuty) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateIPSet
func (c *GuardDuty) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) {
@@ -491,10 +491,10 @@ func (c *GuardDuty) CreateMembersRequest(input *CreateMembersInput) (req *reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateMembers
func (c *GuardDuty) CreateMembers(input *CreateMembersInput) (*CreateMembersOutput, error) {
@@ -562,7 +562,7 @@ func (c *GuardDuty) CreatePublishingDestinationRequest(input *CreatePublishingDe
// CreatePublishingDestination API operation for Amazon GuardDuty.
//
-// Creates a publishing destination to send findings to. The resource to send
+// Creates a publishing destination to export findings to. The resource to export
// findings to must exist before you use this operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -574,10 +574,10 @@ func (c *GuardDuty) CreatePublishingDestinationRequest(input *CreatePublishingDe
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreatePublishingDestination
func (c *GuardDuty) CreatePublishingDestination(input *CreatePublishingDestinationInput) (*CreatePublishingDestinationOutput, error) {
@@ -659,10 +659,10 @@ func (c *GuardDuty) CreateSampleFindingsRequest(input *CreateSampleFindingsInput
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateSampleFindings
func (c *GuardDuty) CreateSampleFindings(input *CreateSampleFindingsInput) (*CreateSampleFindingsOutput, error) {
@@ -730,9 +730,9 @@ func (c *GuardDuty) CreateThreatIntelSetRequest(input *CreateThreatIntelSetInput
// CreateThreatIntelSet API operation for Amazon GuardDuty.
//
-// Create a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP
-// addresses. GuardDuty generates findings based on ThreatIntelSets. Only users
-// of the master account can use this operation.
+// Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious
+// IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only
+// users of the master account can use this operation.
//
// 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
@@ -743,10 +743,10 @@ func (c *GuardDuty) CreateThreatIntelSetRequest(input *CreateThreatIntelSetInput
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatIntelSet
func (c *GuardDuty) CreateThreatIntelSet(input *CreateThreatIntelSetInput) (*CreateThreatIntelSetOutput, error) {
@@ -814,7 +814,7 @@ func (c *GuardDuty) DeclineInvitationsRequest(input *DeclineInvitationsInput) (r
// DeclineInvitations API operation for Amazon GuardDuty.
//
-// Declines invitations sent to the current member account by AWS account specified
+// Declines invitations sent to the current member account by AWS accounts specified
// by their account IDs.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -826,10 +826,10 @@ func (c *GuardDuty) DeclineInvitationsRequest(input *DeclineInvitationsInput) (r
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeclineInvitations
func (c *GuardDuty) DeclineInvitations(input *DeclineInvitationsInput) (*DeclineInvitationsOutput, error) {
@@ -898,7 +898,7 @@ func (c *GuardDuty) DeleteDetectorRequest(input *DeleteDetectorInput) (req *requ
// DeleteDetector API operation for Amazon GuardDuty.
//
-// Deletes a Amazon GuardDuty detector specified by the detector ID.
+// Deletes an Amazon GuardDuty detector that is specified by the detector ID.
//
// 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
@@ -909,10 +909,10 @@ func (c *GuardDuty) DeleteDetectorRequest(input *DeleteDetectorInput) (req *requ
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteDetector
func (c *GuardDuty) DeleteDetector(input *DeleteDetectorInput) (*DeleteDetectorOutput, error) {
@@ -992,10 +992,10 @@ func (c *GuardDuty) DeleteFilterRequest(input *DeleteFilterInput) (req *request.
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteFilter
func (c *GuardDuty) DeleteFilter(input *DeleteFilterInput) (*DeleteFilterOutput, error) {
@@ -1064,7 +1064,7 @@ func (c *GuardDuty) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Re
// DeleteIPSet API operation for Amazon GuardDuty.
//
-// Deletes the IPSet specified by the ipSetId. IPSets are called Trusted IP
+// Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP
// lists in the console user interface.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -1076,10 +1076,10 @@ func (c *GuardDuty) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteIPSet
func (c *GuardDuty) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) {
@@ -1159,10 +1159,10 @@ func (c *GuardDuty) DeleteInvitationsRequest(input *DeleteInvitationsInput) (req
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteInvitations
func (c *GuardDuty) DeleteInvitations(input *DeleteInvitationsInput) (*DeleteInvitationsOutput, error) {
@@ -1242,10 +1242,10 @@ func (c *GuardDuty) DeleteMembersRequest(input *DeleteMembersInput) (req *reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteMembers
func (c *GuardDuty) DeleteMembers(input *DeleteMembersInput) (*DeleteMembersOutput, error) {
@@ -1325,10 +1325,10 @@ func (c *GuardDuty) DeletePublishingDestinationRequest(input *DeletePublishingDe
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeletePublishingDestination
func (c *GuardDuty) DeletePublishingDestination(input *DeletePublishingDestinationInput) (*DeletePublishingDestinationOutput, error) {
@@ -1397,7 +1397,7 @@ func (c *GuardDuty) DeleteThreatIntelSetRequest(input *DeleteThreatIntelSetInput
// DeleteThreatIntelSet API operation for Amazon GuardDuty.
//
-// Deletes ThreatIntelSet specified by the ThreatIntelSet ID.
+// Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.
//
// 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
@@ -1408,10 +1408,10 @@ func (c *GuardDuty) DeleteThreatIntelSetRequest(input *DeleteThreatIntelSetInput
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteThreatIntelSet
func (c *GuardDuty) DeleteThreatIntelSet(input *DeleteThreatIntelSetInput) (*DeleteThreatIntelSetOutput, error) {
@@ -1435,6 +1435,89 @@ func (c *GuardDuty) DeleteThreatIntelSetWithContext(ctx aws.Context, input *Dele
return out, req.Send()
}
+const opDescribeOrganizationConfiguration = "DescribeOrganizationConfiguration"
+
+// DescribeOrganizationConfigurationRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeOrganizationConfiguration operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeOrganizationConfiguration for more information on using the DescribeOrganizationConfiguration
+// 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 DescribeOrganizationConfigurationRequest method.
+// req, resp := client.DescribeOrganizationConfigurationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribeOrganizationConfiguration
+func (c *GuardDuty) DescribeOrganizationConfigurationRequest(input *DescribeOrganizationConfigurationInput) (req *request.Request, output *DescribeOrganizationConfigurationOutput) {
+ op := &request.Operation{
+ Name: opDescribeOrganizationConfiguration,
+ HTTPMethod: "GET",
+ HTTPPath: "/detector/{detectorId}/admin",
+ }
+
+ if input == nil {
+ input = &DescribeOrganizationConfigurationInput{}
+ }
+
+ output = &DescribeOrganizationConfigurationOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeOrganizationConfiguration API operation for Amazon GuardDuty.
+//
+// Returns information about the account selected as the delegated administrator
+// for GuardDuty.
+//
+// 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 GuardDuty's
+// API operation DescribeOrganizationConfiguration for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// A bad request exception object.
+//
+// * InternalServerErrorException
+// An internal server error exception object.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribeOrganizationConfiguration
+func (c *GuardDuty) DescribeOrganizationConfiguration(input *DescribeOrganizationConfigurationInput) (*DescribeOrganizationConfigurationOutput, error) {
+ req, out := c.DescribeOrganizationConfigurationRequest(input)
+ return out, req.Send()
+}
+
+// DescribeOrganizationConfigurationWithContext is the same as DescribeOrganizationConfiguration with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeOrganizationConfiguration 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 *GuardDuty) DescribeOrganizationConfigurationWithContext(ctx aws.Context, input *DescribeOrganizationConfigurationInput, opts ...request.Option) (*DescribeOrganizationConfigurationOutput, error) {
+ req, out := c.DescribeOrganizationConfigurationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribePublishingDestination = "DescribePublishingDestination"
// DescribePublishingDestinationRequest generates a "aws/request.Request" representing the
@@ -1491,10 +1574,10 @@ func (c *GuardDuty) DescribePublishingDestinationRequest(input *DescribePublishi
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribePublishingDestination
func (c *GuardDuty) DescribePublishingDestination(input *DescribePublishingDestinationInput) (*DescribePublishingDestinationOutput, error) {
@@ -1518,6 +1601,90 @@ func (c *GuardDuty) DescribePublishingDestinationWithContext(ctx aws.Context, in
return out, req.Send()
}
+const opDisableOrganizationAdminAccount = "DisableOrganizationAdminAccount"
+
+// DisableOrganizationAdminAccountRequest generates a "aws/request.Request" representing the
+// client's request for the DisableOrganizationAdminAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisableOrganizationAdminAccount for more information on using the DisableOrganizationAdminAccount
+// 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 DisableOrganizationAdminAccountRequest method.
+// req, resp := client.DisableOrganizationAdminAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisableOrganizationAdminAccount
+func (c *GuardDuty) DisableOrganizationAdminAccountRequest(input *DisableOrganizationAdminAccountInput) (req *request.Request, output *DisableOrganizationAdminAccountOutput) {
+ op := &request.Operation{
+ Name: opDisableOrganizationAdminAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/admin/disable",
+ }
+
+ if input == nil {
+ input = &DisableOrganizationAdminAccountInput{}
+ }
+
+ output = &DisableOrganizationAdminAccountOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DisableOrganizationAdminAccount API operation for Amazon GuardDuty.
+//
+// Disables GuardDuty administrator permissions for an AWS account within the
+// Organization.
+//
+// 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 GuardDuty's
+// API operation DisableOrganizationAdminAccount for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// A bad request exception object.
+//
+// * InternalServerErrorException
+// An internal server error exception object.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisableOrganizationAdminAccount
+func (c *GuardDuty) DisableOrganizationAdminAccount(input *DisableOrganizationAdminAccountInput) (*DisableOrganizationAdminAccountOutput, error) {
+ req, out := c.DisableOrganizationAdminAccountRequest(input)
+ return out, req.Send()
+}
+
+// DisableOrganizationAdminAccountWithContext is the same as DisableOrganizationAdminAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisableOrganizationAdminAccount 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 *GuardDuty) DisableOrganizationAdminAccountWithContext(ctx aws.Context, input *DisableOrganizationAdminAccountInput, opts ...request.Option) (*DisableOrganizationAdminAccountOutput, error) {
+ req, out := c.DisableOrganizationAdminAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDisassociateFromMasterAccount = "DisassociateFromMasterAccount"
// DisassociateFromMasterAccountRequest generates a "aws/request.Request" representing the
@@ -1574,10 +1741,10 @@ func (c *GuardDuty) DisassociateFromMasterAccountRequest(input *DisassociateFrom
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromMasterAccount
func (c *GuardDuty) DisassociateFromMasterAccount(input *DisassociateFromMasterAccountInput) (*DisassociateFromMasterAccountOutput, error) {
@@ -1657,10 +1824,10 @@ func (c *GuardDuty) DisassociateMembersRequest(input *DisassociateMembersInput)
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateMembers
func (c *GuardDuty) DisassociateMembers(input *DisassociateMembersInput) (*DisassociateMembersOutput, error) {
@@ -1684,6 +1851,90 @@ func (c *GuardDuty) DisassociateMembersWithContext(ctx aws.Context, input *Disas
return out, req.Send()
}
+const opEnableOrganizationAdminAccount = "EnableOrganizationAdminAccount"
+
+// EnableOrganizationAdminAccountRequest generates a "aws/request.Request" representing the
+// client's request for the EnableOrganizationAdminAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See EnableOrganizationAdminAccount for more information on using the EnableOrganizationAdminAccount
+// 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 EnableOrganizationAdminAccountRequest method.
+// req, resp := client.EnableOrganizationAdminAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/EnableOrganizationAdminAccount
+func (c *GuardDuty) EnableOrganizationAdminAccountRequest(input *EnableOrganizationAdminAccountInput) (req *request.Request, output *EnableOrganizationAdminAccountOutput) {
+ op := &request.Operation{
+ Name: opEnableOrganizationAdminAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/admin/enable",
+ }
+
+ if input == nil {
+ input = &EnableOrganizationAdminAccountInput{}
+ }
+
+ output = &EnableOrganizationAdminAccountOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// EnableOrganizationAdminAccount API operation for Amazon GuardDuty.
+//
+// Enables GuardDuty administrator permissions for an AWS account within the
+// organization.
+//
+// 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 GuardDuty's
+// API operation EnableOrganizationAdminAccount for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// A bad request exception object.
+//
+// * InternalServerErrorException
+// An internal server error exception object.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/EnableOrganizationAdminAccount
+func (c *GuardDuty) EnableOrganizationAdminAccount(input *EnableOrganizationAdminAccountInput) (*EnableOrganizationAdminAccountOutput, error) {
+ req, out := c.EnableOrganizationAdminAccountRequest(input)
+ return out, req.Send()
+}
+
+// EnableOrganizationAdminAccountWithContext is the same as EnableOrganizationAdminAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See EnableOrganizationAdminAccount 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 *GuardDuty) EnableOrganizationAdminAccountWithContext(ctx aws.Context, input *EnableOrganizationAdminAccountInput, opts ...request.Option) (*EnableOrganizationAdminAccountOutput, error) {
+ req, out := c.EnableOrganizationAdminAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetDetector = "GetDetector"
// GetDetectorRequest generates a "aws/request.Request" representing the
@@ -1739,10 +1990,10 @@ func (c *GuardDuty) GetDetectorRequest(input *GetDetectorInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetector
func (c *GuardDuty) GetDetector(input *GetDetectorInput) (*GetDetectorOutput, error) {
@@ -1821,10 +2072,10 @@ func (c *GuardDuty) GetFilterRequest(input *GetFilterInput) (req *request.Reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFilter
func (c *GuardDuty) GetFilter(input *GetFilterInput) (*GetFilterOutput, error) {
@@ -1903,10 +2154,10 @@ func (c *GuardDuty) GetFindingsRequest(input *GetFindingsInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindings
func (c *GuardDuty) GetFindings(input *GetFindingsInput) (*GetFindingsOutput, error) {
@@ -1974,7 +2225,7 @@ func (c *GuardDuty) GetFindingsStatisticsRequest(input *GetFindingsStatisticsInp
// GetFindingsStatistics API operation for Amazon GuardDuty.
//
-// Lists Amazon GuardDuty findings' statistics for the specified detector ID.
+// Lists Amazon GuardDuty findings statistics for the specified detector ID.
//
// 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
@@ -1985,10 +2236,10 @@ func (c *GuardDuty) GetFindingsStatisticsRequest(input *GetFindingsStatisticsInp
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatistics
func (c *GuardDuty) GetFindingsStatistics(input *GetFindingsStatisticsInput) (*GetFindingsStatisticsOutput, error) {
@@ -2067,10 +2318,10 @@ func (c *GuardDuty) GetIPSetRequest(input *GetIPSetInput) (req *request.Request,
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSet
func (c *GuardDuty) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) {
@@ -2150,10 +2401,10 @@ func (c *GuardDuty) GetInvitationsCountRequest(input *GetInvitationsCountInput)
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetInvitationsCount
func (c *GuardDuty) GetInvitationsCount(input *GetInvitationsCountInput) (*GetInvitationsCountOutput, error) {
@@ -2233,10 +2484,10 @@ func (c *GuardDuty) GetMasterAccountRequest(input *GetMasterAccountInput) (req *
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMasterAccount
func (c *GuardDuty) GetMasterAccount(input *GetMasterAccountInput) (*GetMasterAccountOutput, error) {
@@ -2316,10 +2567,10 @@ func (c *GuardDuty) GetMembersRequest(input *GetMembersInput) (req *request.Requ
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMembers
func (c *GuardDuty) GetMembers(input *GetMembersInput) (*GetMembersOutput, error) {
@@ -2398,10 +2649,10 @@ func (c *GuardDuty) GetThreatIntelSetRequest(input *GetThreatIntelSetInput) (req
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatIntelSet
func (c *GuardDuty) GetThreatIntelSet(input *GetThreatIntelSetInput) (*GetThreatIntelSetOutput, error) {
@@ -2470,9 +2721,9 @@ func (c *GuardDuty) InviteMembersRequest(input *InviteMembersInput) (req *reques
// InviteMembers API operation for Amazon GuardDuty.
//
// Invites other AWS accounts (created as members of the current AWS account
-// by CreateMembers) to enable GuardDuty and allow the current AWS account to
-// view and manage these accounts' GuardDuty findings on their behalf as the
-// master account.
+// by CreateMembers) to enable GuardDuty, and allow the current AWS account
+// to view and manage these accounts' GuardDuty findings on their behalf as
+// the master account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -2483,10 +2734,10 @@ func (c *GuardDuty) InviteMembersRequest(input *InviteMembersInput) (req *reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/InviteMembers
func (c *GuardDuty) InviteMembers(input *InviteMembersInput) (*InviteMembersOutput, error) {
@@ -2571,10 +2822,10 @@ func (c *GuardDuty) ListDetectorsRequest(input *ListDetectorsInput) (req *reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListDetectors
func (c *GuardDuty) ListDetectors(input *ListDetectorsInput) (*ListDetectorsOutput, error) {
@@ -2711,10 +2962,10 @@ func (c *GuardDuty) ListFiltersRequest(input *ListFiltersInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFilters
func (c *GuardDuty) ListFilters(input *ListFiltersInput) (*ListFiltersOutput, error) {
@@ -2851,10 +3102,10 @@ func (c *GuardDuty) ListFindingsRequest(input *ListFindingsInput) (req *request.
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFindings
func (c *GuardDuty) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) {
@@ -2993,10 +3244,10 @@ func (c *GuardDuty) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Requ
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListIPSets
func (c *GuardDuty) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) {
@@ -3134,10 +3385,10 @@ func (c *GuardDuty) ListInvitationsRequest(input *ListInvitationsInput) (req *re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListInvitations
func (c *GuardDuty) ListInvitations(input *ListInvitationsInput) (*ListInvitationsOutput, error) {
@@ -3263,8 +3514,8 @@ func (c *GuardDuty) ListMembersRequest(input *ListMembersInput) (req *request.Re
// ListMembers API operation for Amazon GuardDuty.
//
-// Lists details about all member accounts for the current GuardDuty master
-// account.
+// Lists details about associated member accounts for the current GuardDuty
+// master account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -3275,10 +3526,10 @@ func (c *GuardDuty) ListMembersRequest(input *ListMembersInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListMembers
func (c *GuardDuty) ListMembers(input *ListMembersInput) (*ListMembersOutput, error) {
@@ -3306,39 +3557,179 @@ func (c *GuardDuty) ListMembersWithContext(ctx aws.Context, input *ListMembersIn
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See ListMembers method for more information on how to use this operation.
+// See ListMembers 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 ListMembers operation.
+// pageNum := 0
+// err := client.ListMembersPages(params,
+// func(page *guardduty.ListMembersOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *GuardDuty) ListMembersPages(input *ListMembersInput, fn func(*ListMembersOutput, bool) bool) error {
+ return c.ListMembersPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListMembersPagesWithContext same as ListMembersPages 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 *GuardDuty) ListMembersPagesWithContext(ctx aws.Context, input *ListMembersInput, fn func(*ListMembersOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListMembersInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListMembersRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListMembersOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListOrganizationAdminAccounts = "ListOrganizationAdminAccounts"
+
+// ListOrganizationAdminAccountsRequest generates a "aws/request.Request" representing the
+// client's request for the ListOrganizationAdminAccounts operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListOrganizationAdminAccounts for more information on using the ListOrganizationAdminAccounts
+// 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 ListOrganizationAdminAccountsRequest method.
+// req, resp := client.ListOrganizationAdminAccountsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListOrganizationAdminAccounts
+func (c *GuardDuty) ListOrganizationAdminAccountsRequest(input *ListOrganizationAdminAccountsInput) (req *request.Request, output *ListOrganizationAdminAccountsOutput) {
+ op := &request.Operation{
+ Name: opListOrganizationAdminAccounts,
+ HTTPMethod: "GET",
+ HTTPPath: "/admin",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListOrganizationAdminAccountsInput{}
+ }
+
+ output = &ListOrganizationAdminAccountsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListOrganizationAdminAccounts API operation for Amazon GuardDuty.
+//
+// Lists the accounts configured as AWS Organization delegated administrators.
+//
+// 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 GuardDuty's
+// API operation ListOrganizationAdminAccounts for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// A bad request exception object.
+//
+// * InternalServerErrorException
+// An internal server error exception object.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListOrganizationAdminAccounts
+func (c *GuardDuty) ListOrganizationAdminAccounts(input *ListOrganizationAdminAccountsInput) (*ListOrganizationAdminAccountsOutput, error) {
+ req, out := c.ListOrganizationAdminAccountsRequest(input)
+ return out, req.Send()
+}
+
+// ListOrganizationAdminAccountsWithContext is the same as ListOrganizationAdminAccounts with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListOrganizationAdminAccounts 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 *GuardDuty) ListOrganizationAdminAccountsWithContext(ctx aws.Context, input *ListOrganizationAdminAccountsInput, opts ...request.Option) (*ListOrganizationAdminAccountsOutput, error) {
+ req, out := c.ListOrganizationAdminAccountsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListOrganizationAdminAccountsPages iterates over the pages of a ListOrganizationAdminAccounts operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListOrganizationAdminAccounts 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 ListMembers operation.
+// // Example iterating over at most 3 pages of a ListOrganizationAdminAccounts operation.
// pageNum := 0
-// err := client.ListMembersPages(params,
-// func(page *guardduty.ListMembersOutput, lastPage bool) bool {
+// err := client.ListOrganizationAdminAccountsPages(params,
+// func(page *guardduty.ListOrganizationAdminAccountsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
-func (c *GuardDuty) ListMembersPages(input *ListMembersInput, fn func(*ListMembersOutput, bool) bool) error {
- return c.ListMembersPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *GuardDuty) ListOrganizationAdminAccountsPages(input *ListOrganizationAdminAccountsInput, fn func(*ListOrganizationAdminAccountsOutput, bool) bool) error {
+ return c.ListOrganizationAdminAccountsPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// ListMembersPagesWithContext same as ListMembersPages except
+// ListOrganizationAdminAccountsPagesWithContext same as ListOrganizationAdminAccountsPages 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 *GuardDuty) ListMembersPagesWithContext(ctx aws.Context, input *ListMembersInput, fn func(*ListMembersOutput, bool) bool, opts ...request.Option) error {
+func (c *GuardDuty) ListOrganizationAdminAccountsPagesWithContext(ctx aws.Context, input *ListOrganizationAdminAccountsInput, fn func(*ListOrganizationAdminAccountsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
- var inCpy *ListMembersInput
+ var inCpy *ListOrganizationAdminAccountsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.ListMembersRequest(inCpy)
+ req, _ := c.ListOrganizationAdminAccountsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -3346,7 +3737,7 @@ func (c *GuardDuty) ListMembersPagesWithContext(ctx aws.Context, input *ListMemb
}
for p.Next() {
- if !fn(p.Page().(*ListMembersOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*ListOrganizationAdminAccountsOutput), !p.HasNextPage()) {
break
}
}
@@ -3415,10 +3806,10 @@ func (c *GuardDuty) ListPublishingDestinationsRequest(input *ListPublishingDesti
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListPublishingDestinations
func (c *GuardDuty) ListPublishingDestinations(input *ListPublishingDestinationsInput) (*ListPublishingDestinationsOutput, error) {
@@ -3539,9 +3930,9 @@ func (c *GuardDuty) ListTagsForResourceRequest(input *ListTagsForResourceInput)
// ListTagsForResource API operation for Amazon GuardDuty.
//
// Lists tags for a resource. Tagging is currently supported for detectors,
-// finding filters, IP sets, and Threat Intel sets, with a limit of 50 tags
+// finding filters, IP sets, and threat intel sets, with a limit of 50 tags
// per resource. When invoked, this operation returns all assigned tags for
-// a given resource..
+// a given resource.
//
// 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
@@ -3552,10 +3943,10 @@ func (c *GuardDuty) ListTagsForResourceRequest(input *ListTagsForResourceInput)
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTagsForResource
func (c *GuardDuty) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
@@ -3642,10 +4033,10 @@ func (c *GuardDuty) ListThreatIntelSetsRequest(input *ListThreatIntelSetsInput)
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListThreatIntelSets
func (c *GuardDuty) ListThreatIntelSets(input *ListThreatIntelSetsInput) (*ListThreatIntelSetsOutput, error) {
@@ -3778,10 +4169,10 @@ func (c *GuardDuty) StartMonitoringMembersRequest(input *StartMonitoringMembersI
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StartMonitoringMembers
func (c *GuardDuty) StartMonitoringMembers(input *StartMonitoringMembersInput) (*StartMonitoringMembersOutput, error) {
@@ -3849,8 +4240,8 @@ func (c *GuardDuty) StopMonitoringMembersRequest(input *StopMonitoringMembersInp
// StopMonitoringMembers API operation for Amazon GuardDuty.
//
-// Stops GuardDuty monitoring for the specified member accounnts. Use the StartMonitoringMembers
-// to restart monitoring for those accounts.
+// Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers
+// operation to restart monitoring for those accounts.
//
// 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
@@ -3861,10 +4252,10 @@ func (c *GuardDuty) StopMonitoringMembersRequest(input *StopMonitoringMembersInp
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StopMonitoringMembers
func (c *GuardDuty) StopMonitoringMembers(input *StopMonitoringMembersInput) (*StopMonitoringMembersOutput, error) {
@@ -3944,10 +4335,10 @@ func (c *GuardDuty) TagResourceRequest(input *TagResourceInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResource
func (c *GuardDuty) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
@@ -4027,10 +4418,10 @@ func (c *GuardDuty) UnarchiveFindingsRequest(input *UnarchiveFindingsInput) (req
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UnarchiveFindings
func (c *GuardDuty) UnarchiveFindings(input *UnarchiveFindingsInput) (*UnarchiveFindingsOutput, error) {
@@ -4110,10 +4501,10 @@ func (c *GuardDuty) UntagResourceRequest(input *UntagResourceInput) (req *reques
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UntagResource
func (c *GuardDuty) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
@@ -4193,10 +4584,10 @@ func (c *GuardDuty) UpdateDetectorRequest(input *UpdateDetectorInput) (req *requ
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateDetector
func (c *GuardDuty) UpdateDetector(input *UpdateDetectorInput) (*UpdateDetectorOutput, error) {
@@ -4275,10 +4666,10 @@ func (c *GuardDuty) UpdateFilterRequest(input *UpdateFilterInput) (req *request.
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFilter
func (c *GuardDuty) UpdateFilter(input *UpdateFilterInput) (*UpdateFilterOutput, error) {
@@ -4358,10 +4749,10 @@ func (c *GuardDuty) UpdateFindingsFeedbackRequest(input *UpdateFindingsFeedbackI
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFindingsFeedback
func (c *GuardDuty) UpdateFindingsFeedback(input *UpdateFindingsFeedbackInput) (*UpdateFindingsFeedbackOutput, error) {
@@ -4441,10 +4832,10 @@ func (c *GuardDuty) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Re
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateIPSet
func (c *GuardDuty) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) {
@@ -4468,6 +4859,89 @@ func (c *GuardDuty) UpdateIPSetWithContext(ctx aws.Context, input *UpdateIPSetIn
return out, req.Send()
}
+const opUpdateOrganizationConfiguration = "UpdateOrganizationConfiguration"
+
+// UpdateOrganizationConfigurationRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateOrganizationConfiguration operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateOrganizationConfiguration for more information on using the UpdateOrganizationConfiguration
+// 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 UpdateOrganizationConfigurationRequest method.
+// req, resp := client.UpdateOrganizationConfigurationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateOrganizationConfiguration
+func (c *GuardDuty) UpdateOrganizationConfigurationRequest(input *UpdateOrganizationConfigurationInput) (req *request.Request, output *UpdateOrganizationConfigurationOutput) {
+ op := &request.Operation{
+ Name: opUpdateOrganizationConfiguration,
+ HTTPMethod: "POST",
+ HTTPPath: "/detector/{detectorId}/admin",
+ }
+
+ if input == nil {
+ input = &UpdateOrganizationConfigurationInput{}
+ }
+
+ output = &UpdateOrganizationConfigurationOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UpdateOrganizationConfiguration API operation for Amazon GuardDuty.
+//
+// Updates the delegated administrator account with the values provided.
+//
+// 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 GuardDuty's
+// API operation UpdateOrganizationConfiguration for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// A bad request exception object.
+//
+// * InternalServerErrorException
+// An internal server error exception object.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateOrganizationConfiguration
+func (c *GuardDuty) UpdateOrganizationConfiguration(input *UpdateOrganizationConfigurationInput) (*UpdateOrganizationConfigurationOutput, error) {
+ req, out := c.UpdateOrganizationConfigurationRequest(input)
+ return out, req.Send()
+}
+
+// UpdateOrganizationConfigurationWithContext is the same as UpdateOrganizationConfiguration with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateOrganizationConfiguration 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 *GuardDuty) UpdateOrganizationConfigurationWithContext(ctx aws.Context, input *UpdateOrganizationConfigurationInput, opts ...request.Option) (*UpdateOrganizationConfigurationOutput, error) {
+ req, out := c.UpdateOrganizationConfigurationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdatePublishingDestination = "UpdatePublishingDestination"
// UpdatePublishingDestinationRequest generates a "aws/request.Request" representing the
@@ -4524,10 +4998,10 @@ func (c *GuardDuty) UpdatePublishingDestinationRequest(input *UpdatePublishingDe
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdatePublishingDestination
func (c *GuardDuty) UpdatePublishingDestination(input *UpdatePublishingDestinationInput) (*UpdatePublishingDestinationOutput, error) {
@@ -4596,7 +5070,7 @@ func (c *GuardDuty) UpdateThreatIntelSetRequest(input *UpdateThreatIntelSetInput
// UpdateThreatIntelSet API operation for Amazon GuardDuty.
//
-// Updates the ThreatIntelSet specified by ThreatIntelSet ID.
+// Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
//
// 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
@@ -4607,10 +5081,10 @@ func (c *GuardDuty) UpdateThreatIntelSetRequest(input *UpdateThreatIntelSetInput
//
// Returned Error Types:
// * BadRequestException
-// Bad request exception object.
+// A bad request exception object.
//
// * InternalServerErrorException
-// Internal server error exception object.
+// An internal server error exception object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateThreatIntelSet
func (c *GuardDuty) UpdateThreatIntelSet(input *UpdateThreatIntelSetInput) (*UpdateThreatIntelSetOutput, error) {
@@ -4642,7 +5116,7 @@ type AcceptInvitationInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // This value is used to validate the master account to the member account.
+ // The value that is used to validate the master account to the member account.
//
// InvitationId is a required field
InvitationId *string `locationName:"invitationId" type:"string" required:"true"`
@@ -4721,7 +5195,7 @@ func (s AcceptInvitationOutput) GoString() string {
type AccessKeyDetails struct {
_ struct{} `type:"structure"`
- // Access key ID of the user.
+ // The access key ID of the user.
AccessKeyId *string `locationName:"accessKeyId" type:"string"`
// The principal ID of the user.
@@ -4772,12 +5246,12 @@ func (s *AccessKeyDetails) SetUserType(v string) *AccessKeyDetails {
type AccountDetail struct {
_ struct{} `type:"structure"`
- // Member account ID.
+ // The member account ID.
//
// AccountId is a required field
AccountId *string `locationName:"accountId" min:"12" type:"string" required:"true"`
- // Member account's email address.
+ // The email address of the member account.
//
// Email is a required field
Email *string `locationName:"email" min:"1" type:"string" required:"true"`
@@ -4827,11 +5301,11 @@ func (s *AccountDetail) SetEmail(v string) *AccountDetail {
return s
}
-// Contains information about action.
+// Contains information about actions.
type Action struct {
_ struct{} `type:"structure"`
- // GuardDuty Finding activity type.
+ // The GuardDuty finding activity type.
ActionType *string `locationName:"actionType" type:"string"`
// Information about the AWS_API_CALL action described in this finding.
@@ -4887,6 +5361,40 @@ func (s *Action) SetPortProbeAction(v *PortProbeAction) *Action {
return s
}
+// The account within the organization specified as the GuardDuty delegated
+// administrator.
+type AdminAccount struct {
+ _ struct{} `type:"structure"`
+
+ // The AWS account ID for the account.
+ AdminAccountId *string `locationName:"adminAccountId" type:"string"`
+
+ // Indicates whether the account is enabled as the delegated administrator.
+ AdminStatus *string `locationName:"adminStatus" min:"1" type:"string" enum:"AdminStatus"`
+}
+
+// String returns the string representation
+func (s AdminAccount) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AdminAccount) GoString() string {
+ return s.String()
+}
+
+// SetAdminAccountId sets the AdminAccountId field's value.
+func (s *AdminAccount) SetAdminAccountId(v string) *AdminAccount {
+ s.AdminAccountId = &v
+ return s
+}
+
+// SetAdminStatus sets the AdminStatus field's value.
+func (s *AdminAccount) SetAdminStatus(v string) *AdminAccount {
+ s.AdminStatus = &v
+ return s
+}
+
type ArchiveFindingsInput struct {
_ struct{} `type:"structure"`
@@ -4896,7 +5404,7 @@ type ArchiveFindingsInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // IDs of the findings that you want to archive.
+ // The IDs of the findings that you want to archive.
//
// FindingIds is a required field
FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
@@ -4961,19 +5469,19 @@ func (s ArchiveFindingsOutput) GoString() string {
type AwsApiCallAction struct {
_ struct{} `type:"structure"`
- // AWS API name.
+ // The AWS API name.
Api *string `locationName:"api" type:"string"`
- // AWS API caller type.
+ // The AWS API caller type.
CallerType *string `locationName:"callerType" type:"string"`
- // Domain information for the AWS API call.
+ // The domain information for the AWS API call.
DomainDetails *DomainDetails `locationName:"domainDetails" type:"structure"`
- // Remote IP information of the connection.
+ // The remote IP information of the connection.
RemoteIpDetails *RemoteIpDetails `locationName:"remoteIpDetails" type:"structure"`
- // AWS service name whose API was invoked.
+ // The AWS service name whose API was invoked.
ServiceName *string `locationName:"serviceName" type:"string"`
}
@@ -5017,10 +5525,10 @@ func (s *AwsApiCallAction) SetServiceName(v string) *AwsApiCallAction {
return s
}
-// Bad request exception object.
+// A bad request exception object.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message.
Message_ *string `locationName:"message" type:"string"`
@@ -5041,17 +5549,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5059,29 +5567,29 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about the city associated with the IP address.
type City struct {
_ struct{} `type:"structure"`
- // City name of the remote IP address.
+ // The city name of the remote IP address.
CityName *string `locationName:"cityName" type:"string"`
}
@@ -5119,7 +5627,7 @@ type Condition struct {
// querying for findings.
GreaterThan *int64 `locationName:"greaterThan" type:"long"`
- // Represents a greater than equal condition to be applied to a single field
+ // Represents a greater than or equal condition to be applied to a single field
// when querying for findings.
GreaterThanOrEqual *int64 `locationName:"greaterThanOrEqual" type:"long"`
@@ -5129,7 +5637,7 @@ type Condition struct {
// Deprecated: Gt has been deprecated
Gt *int64 `locationName:"gt" deprecated:"true" type:"integer"`
- // Represents a greater than equal condition to be applied to a single field
+ // Represents a greater than or equal condition to be applied to a single field
// when querying for findings.
//
// Deprecated: Gte has been deprecated
@@ -5139,8 +5647,8 @@ type Condition struct {
// for findings.
LessThan *int64 `locationName:"lessThan" type:"long"`
- // Represents a less than equal condition to be applied to a single field when
- // querying for findings.
+ // Represents a less than or equal condition to be applied to a single field
+ // when querying for findings.
LessThanOrEqual *int64 `locationName:"lessThanOrEqual" type:"long"`
// Represents a less than condition to be applied to a single field when querying
@@ -5149,8 +5657,8 @@ type Condition struct {
// Deprecated: Lt has been deprecated
Lt *int64 `locationName:"lt" deprecated:"true" type:"integer"`
- // Represents a less than equal condition to be applied to a single field when
- // querying for findings.
+ // Represents a less than or equal condition to be applied to a single field
+ // when querying for findings.
//
// Deprecated: Lte has been deprecated
Lte *int64 `locationName:"lte" deprecated:"true" type:"integer"`
@@ -5161,7 +5669,7 @@ type Condition struct {
// Deprecated: Neq has been deprecated
Neq []*string `locationName:"neq" deprecated:"true" type:"list"`
- // Represents an not equal condition to be applied to a single field when querying
+ // Represents a not equal condition to be applied to a single field when querying
// for findings.
NotEquals []*string `locationName:"notEquals" type:"list"`
}
@@ -5248,15 +5756,14 @@ func (s *Condition) SetNotEquals(v []*string) *Condition {
return s
}
-// Contains information about the country in which the remote IP address is
-// located.
+// Contains information about the country where the remote IP address is located.
type Country struct {
_ struct{} `type:"structure"`
- // Country code of the remote IP address.
+ // The country code of the remote IP address.
CountryCode *string `locationName:"countryCode" type:"string"`
- // Country name of the remote IP address.
+ // The country name of the remote IP address.
CountryName *string `locationName:"countryName" type:"string"`
}
@@ -5288,12 +5795,12 @@ type CreateDetectorInput struct {
// The idempotency token for the create request.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
- // A boolean value that specifies whether the detector is to be enabled.
+ // A Boolean value that specifies whether the detector is to be enabled.
//
// Enable is a required field
Enable *bool `locationName:"enable" type:"boolean" required:"true"`
- // A enum value that specifies how frequently customer got Finding updates published.
+ // An enum value that specifies how frequently updated findings are exported.
FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"`
// The tags to be added to a new detector resource.
@@ -5386,14 +5893,117 @@ type CreateFilterInput struct {
// The description of the filter.
Description *string `locationName:"description" type:"string"`
- // The unique ID of the detector of the GuardDuty account for which you want
- // to create a filter.
+ // The unique ID of the detector of the GuardDuty account that you want to create
+ // a filter for.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
// Represents the criteria to be used in the filter for querying findings.
//
+ // You can only use the following attributes to query findings:
+ //
+ // * accountId
+ //
+ // * region
+ //
+ // * confidence
+ //
+ // * id
+ //
+ // * resource.accessKeyDetails.accessKeyId
+ //
+ // * resource.accessKeyDetails.principalId
+ //
+ // * resource.accessKeyDetails.userName
+ //
+ // * resource.accessKeyDetails.userType
+ //
+ // * resource.instanceDetails.iamInstanceProfile.id
+ //
+ // * resource.instanceDetails.imageId
+ //
+ // * resource.instanceDetails.instanceId
+ //
+ // * resource.instanceDetails.outpostArn
+ //
+ // * resource.instanceDetails.networkInterfaces.ipv6Addresses
+ //
+ // * resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress
+ //
+ // * resource.instanceDetails.networkInterfaces.publicDnsName
+ //
+ // * resource.instanceDetails.networkInterfaces.publicIp
+ //
+ // * resource.instanceDetails.networkInterfaces.securityGroups.groupId
+ //
+ // * resource.instanceDetails.networkInterfaces.securityGroups.groupName
+ //
+ // * resource.instanceDetails.networkInterfaces.subnetId
+ //
+ // * resource.instanceDetails.networkInterfaces.vpcId
+ //
+ // * resource.instanceDetails.tags.key
+ //
+ // * resource.instanceDetails.tags.value
+ //
+ // * resource.resourceType
+ //
+ // * service.action.actionType
+ //
+ // * service.action.awsApiCallAction.api
+ //
+ // * service.action.awsApiCallAction.callerType
+ //
+ // * service.action.awsApiCallAction.remoteIpDetails.city.cityName
+ //
+ // * service.action.awsApiCallAction.remoteIpDetails.country.countryName
+ //
+ // * service.action.awsApiCallAction.remoteIpDetails.ipAddressV4
+ //
+ // * service.action.awsApiCallAction.remoteIpDetails.organization.asn
+ //
+ // * service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg
+ //
+ // * service.action.awsApiCallAction.serviceName
+ //
+ // * service.action.dnsRequestAction.domain
+ //
+ // * service.action.networkConnectionAction.blocked
+ //
+ // * service.action.networkConnectionAction.connectionDirection
+ //
+ // * service.action.networkConnectionAction.localPortDetails.port
+ //
+ // * service.action.networkConnectionAction.protocol
+ //
+ // * service.action.networkConnectionAction.remoteIpDetails.city.cityName
+ //
+ // * service.action.networkConnectionAction.remoteIpDetails.country.countryName
+ //
+ // * service.action.networkConnectionAction.remoteIpDetails.ipAddressV4
+ //
+ // * service.action.networkConnectionAction.remoteIpDetails.organization.asn
+ //
+ // * service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg
+ //
+ // * service.action.networkConnectionAction.remotePortDetails.port
+ //
+ // * service.additionalInfo.threatListName
+ //
+ // * service.archived When this attribute is set to TRUE, only archived findings
+ // are listed. When it's set to FALSE, only unarchived findings are listed.
+ // When this attribute is not set, all existing findings are listed.
+ //
+ // * service.resourceRole
+ //
+ // * severity
+ //
+ // * type
+ //
+ // * updatedAt Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or
+ // YYYY-MM-DDTHH:MM:SSZ depending on whether the value contains milliseconds.
+ //
// FindingCriteria is a required field
FindingCriteria *FindingCriteria `locationName:"findingCriteria" type:"structure" required:"true"`
@@ -5530,7 +6140,7 @@ func (s *CreateFilterOutput) SetName(v string) *CreateFilterOutput {
type CreateIPSetInput struct {
_ struct{} `type:"structure"`
- // A boolean value that indicates whether GuardDuty is to start using the uploaded
+ // A Boolean value that indicates whether GuardDuty is to start using the uploaded
// IPSet.
//
// Activate is a required field
@@ -5539,8 +6149,8 @@ type CreateIPSetInput struct {
// The idempotency token for the create request.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
- // The unique ID of the detector of the GuardDuty account for which you want
- // to create an IPSet.
+ // The unique ID of the detector of the GuardDuty account that you want to create
+ // an IPSet for.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -5550,14 +6160,15 @@ type CreateIPSetInput struct {
// Format is a required field
Format *string `locationName:"format" min:"1" type:"string" required:"true" enum:"IpSetFormat"`
- // The URI of the file that contains the IPSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key)
+ // The URI of the file that contains the IPSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
//
// Location is a required field
Location *string `locationName:"location" min:"1" type:"string" required:"true"`
- // The user friendly name to identify the IPSet. This name is displayed in all
- // findings that are triggered by activity that involves IP addresses included
- // in this IPSet.
+ // The user-friendly name to identify the IPSet.
+ //
+ // Allowed characters are alphanumerics, spaces, hyphens (-), and underscores
+ // (_).
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
@@ -5692,8 +6303,8 @@ type CreateMembersInput struct {
// AccountDetails is a required field
AccountDetails []*AccountDetail `locationName:"accountDetails" min:"1" type:"list" required:"true"`
- // The unique ID of the detector of the GuardDuty account with which you want
- // to associate member accounts.
+ // The unique ID of the detector of the GuardDuty account that you want to associate
+ // member accounts with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -5756,8 +6367,8 @@ func (s *CreateMembersInput) SetDetectorId(v string) *CreateMembersInput {
type CreateMembersOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that include the accountIds of the unprocessed accounts
+ // and a result string that explains why each was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -5785,14 +6396,14 @@ type CreatePublishingDestinationInput struct {
// The idempotency token for the request.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
- // Properties of the publishing destination, including the ARNs for the destination
- // and the KMS key used for encryption.
+ // The properties of the publishing destination, including the ARNs for the
+ // destination and the KMS key used for encryption.
//
// DestinationProperties is a required field
DestinationProperties *DestinationProperties `locationName:"destinationProperties" type:"structure" required:"true"`
- // The type of resource for the publishing destination. Currently only S3 is
- // supported.
+ // The type of resource for the publishing destination. Currently only Amazon
+ // S3 buckets are supported.
//
// DestinationType is a required field
DestinationType *string `locationName:"destinationType" min:"1" type:"string" required:"true" enum:"DestinationType"`
@@ -5865,7 +6476,7 @@ func (s *CreatePublishingDestinationInput) SetDetectorId(v string) *CreatePublis
type CreatePublishingDestinationOutput struct {
_ struct{} `type:"structure"`
- // The ID of the publishing destination created.
+ // The ID of the publishing destination that is created.
//
// DestinationId is a required field
DestinationId *string `locationName:"destinationId" type:"string" required:"true"`
@@ -5895,7 +6506,7 @@ type CreateSampleFindingsInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // Types of sample findings to generate.
+ // The types of sample findings to generate.
FindingTypes []*string `locationName:"findingTypes" type:"list"`
}
@@ -5954,7 +6565,7 @@ func (s CreateSampleFindingsOutput) GoString() string {
type CreateThreatIntelSetInput struct {
_ struct{} `type:"structure"`
- // A boolean value that indicates whether GuardDuty is to start using the uploaded
+ // A Boolean value that indicates whether GuardDuty is to start using the uploaded
// ThreatIntelSet.
//
// Activate is a required field
@@ -5963,8 +6574,8 @@ type CreateThreatIntelSetInput struct {
// The idempotency token for the create request.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
- // The unique ID of the detector of the GuardDuty account for which you want
- // to create a threatIntelSet.
+ // The unique ID of the detector of the GuardDuty account that you want to create
+ // a threatIntelSet for.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -5974,18 +6585,18 @@ type CreateThreatIntelSetInput struct {
// Format is a required field
Format *string `locationName:"format" min:"1" type:"string" required:"true" enum:"ThreatIntelSetFormat"`
- // The URI of the file that contains the ThreatIntelSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key).
+ // The URI of the file that contains the ThreatIntelSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
//
// Location is a required field
Location *string `locationName:"location" min:"1" type:"string" required:"true"`
- // A user-friendly ThreatIntelSet name that is displayed in all finding generated
+ // A user-friendly ThreatIntelSet name displayed in all findings that are generated
// by activity that involves IP addresses included in this ThreatIntelSet.
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The tags to be added to a new Threat List resource.
+ // The tags to be added to a new threat list resource.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
@@ -6151,8 +6762,8 @@ func (s *DeclineInvitationsInput) SetAccountIds(v []*string) *DeclineInvitations
type DeclineInvitationsOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -6232,12 +6843,12 @@ func (s DeleteDetectorOutput) GoString() string {
type DeleteFilterInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the filter is associated with.
+ // The unique ID of the detector that the filter is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // The name of the filter you want to delete.
+ // The name of the filter that you want to delete.
//
// FilterName is a required field
FilterName *string `location:"uri" locationName:"filterName" type:"string" required:"true"`
@@ -6418,8 +7029,8 @@ func (s *DeleteInvitationsInput) SetAccountIds(v []*string) *DeleteInvitationsIn
type DeleteInvitationsOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -6579,64 +7190,126 @@ func (s *DeletePublishingDestinationInput) SetDestinationId(v string) *DeletePub
}
// SetDetectorId sets the DetectorId field's value.
-func (s *DeletePublishingDestinationInput) SetDetectorId(v string) *DeletePublishingDestinationInput {
+func (s *DeletePublishingDestinationInput) SetDetectorId(v string) *DeletePublishingDestinationInput {
+ s.DetectorId = &v
+ return s
+}
+
+type DeletePublishingDestinationOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeletePublishingDestinationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePublishingDestinationOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteThreatIntelSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique ID of the detector that the threatIntelSet is associated with.
+ //
+ // DetectorId is a required field
+ DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
+
+ // The unique ID of the threatIntelSet that you want to delete.
+ //
+ // ThreatIntelSetId is a required field
+ ThreatIntelSetId *string `location:"uri" locationName:"threatIntelSetId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteThreatIntelSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteThreatIntelSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteThreatIntelSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteThreatIntelSetInput"}
+ if s.DetectorId == nil {
+ invalidParams.Add(request.NewErrParamRequired("DetectorId"))
+ }
+ if s.DetectorId != nil && len(*s.DetectorId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1))
+ }
+ if s.ThreatIntelSetId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId"))
+ }
+ if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDetectorId sets the DetectorId field's value.
+func (s *DeleteThreatIntelSetInput) SetDetectorId(v string) *DeleteThreatIntelSetInput {
s.DetectorId = &v
return s
}
-type DeletePublishingDestinationOutput struct {
+// SetThreatIntelSetId sets the ThreatIntelSetId field's value.
+func (s *DeleteThreatIntelSetInput) SetThreatIntelSetId(v string) *DeleteThreatIntelSetInput {
+ s.ThreatIntelSetId = &v
+ return s
+}
+
+type DeleteThreatIntelSetOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
-func (s DeletePublishingDestinationOutput) String() string {
+func (s DeleteThreatIntelSetOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeletePublishingDestinationOutput) GoString() string {
+func (s DeleteThreatIntelSetOutput) GoString() string {
return s.String()
}
-type DeleteThreatIntelSetInput struct {
+type DescribeOrganizationConfigurationInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the threatIntelSet is associated with.
+ // The ID of the detector to retrieve information about the delegated administrator
+ // from.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
-
- // The unique ID of the threatIntelSet you want to delete.
- //
- // ThreatIntelSetId is a required field
- ThreatIntelSetId *string `location:"uri" locationName:"threatIntelSetId" type:"string" required:"true"`
}
// String returns the string representation
-func (s DeleteThreatIntelSetInput) String() string {
+func (s DescribeOrganizationConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteThreatIntelSetInput) GoString() string {
+func (s DescribeOrganizationConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteThreatIntelSetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteThreatIntelSetInput"}
+func (s *DescribeOrganizationConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeOrganizationConfigurationInput"}
if s.DetectorId == nil {
invalidParams.Add(request.NewErrParamRequired("DetectorId"))
}
if s.DetectorId != nil && len(*s.DetectorId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1))
}
- if s.ThreatIntelSetId == nil {
- invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId"))
- }
- if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -6645,31 +7318,49 @@ func (s *DeleteThreatIntelSetInput) Validate() error {
}
// SetDetectorId sets the DetectorId field's value.
-func (s *DeleteThreatIntelSetInput) SetDetectorId(v string) *DeleteThreatIntelSetInput {
+func (s *DescribeOrganizationConfigurationInput) SetDetectorId(v string) *DescribeOrganizationConfigurationInput {
s.DetectorId = &v
return s
}
-// SetThreatIntelSetId sets the ThreatIntelSetId field's value.
-func (s *DeleteThreatIntelSetInput) SetThreatIntelSetId(v string) *DeleteThreatIntelSetInput {
- s.ThreatIntelSetId = &v
- return s
-}
-
-type DeleteThreatIntelSetOutput struct {
+type DescribeOrganizationConfigurationOutput struct {
_ struct{} `type:"structure"`
+
+ // Indicates whether GuardDuty is automatically enabled for accounts added to
+ // the organization.
+ //
+ // AutoEnable is a required field
+ AutoEnable *bool `locationName:"autoEnable" type:"boolean" required:"true"`
+
+ // Indicates whether the maximum number of allowed member accounts are already
+ // associated with the delegated administrator master account.
+ //
+ // MemberAccountLimitReached is a required field
+ MemberAccountLimitReached *bool `locationName:"memberAccountLimitReached" type:"boolean" required:"true"`
}
// String returns the string representation
-func (s DeleteThreatIntelSetOutput) String() string {
+func (s DescribeOrganizationConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteThreatIntelSetOutput) GoString() string {
+func (s DescribeOrganizationConfigurationOutput) GoString() string {
return s.String()
}
+// SetAutoEnable sets the AutoEnable field's value.
+func (s *DescribeOrganizationConfigurationOutput) SetAutoEnable(v bool) *DescribeOrganizationConfigurationOutput {
+ s.AutoEnable = &v
+ return s
+}
+
+// SetMemberAccountLimitReached sets the MemberAccountLimitReached field's value.
+func (s *DescribeOrganizationConfigurationOutput) SetMemberAccountLimitReached(v bool) *DescribeOrganizationConfigurationOutput {
+ s.MemberAccountLimitReached = &v
+ return s
+}
+
type DescribePublishingDestinationInput struct {
_ struct{} `type:"structure"`
@@ -6743,7 +7434,8 @@ type DescribePublishingDestinationOutput struct {
// DestinationProperties is a required field
DestinationProperties *DestinationProperties `locationName:"destinationProperties" type:"structure" required:"true"`
- // The type of the publishing destination. Currently, only S3 is supported.
+ // The type of publishing destination. Currently, only Amazon S3 buckets are
+ // supported.
//
// DestinationType is a required field
DestinationType *string `locationName:"destinationType" min:"1" type:"string" required:"true" enum:"DestinationType"`
@@ -6800,8 +7492,8 @@ func (s *DescribePublishingDestinationOutput) SetStatus(v string) *DescribePubli
return s
}
-// Contains information about a publishing destination, including the ID, type,
-// and status.
+// Contains information about the publishing destination, including the ID,
+// type, and status.
type Destination struct {
_ struct{} `type:"structure"`
@@ -6811,7 +7503,7 @@ type Destination struct {
DestinationId *string `locationName:"destinationId" type:"string" required:"true"`
// The type of resource used for the publishing destination. Currently, only
- // S3 is supported.
+ // Amazon S3 buckets are supported.
//
// DestinationType is a required field
DestinationType *string `locationName:"destinationType" min:"1" type:"string" required:"true" enum:"DestinationType"`
@@ -6850,8 +7542,8 @@ func (s *Destination) SetStatus(v string) *Destination {
return s
}
-// Contains the ARN of the resource to publish to, such as an S3 bucket, and
-// the ARN of the KMS key to use to encrypt published findings.
+// Contains the Amazon Resource Name (ARN) of the resource to publish to, such
+// as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
type DestinationProperties struct {
_ struct{} `type:"structure"`
@@ -6884,6 +7576,59 @@ func (s *DestinationProperties) SetKmsKeyArn(v string) *DestinationProperties {
return s
}
+type DisableOrganizationAdminAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The AWS Account ID for the Organizations account to be disabled as a GuardDuty
+ // delegated administrator.
+ //
+ // AdminAccountId is a required field
+ AdminAccountId *string `locationName:"adminAccountId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DisableOrganizationAdminAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableOrganizationAdminAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisableOrganizationAdminAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisableOrganizationAdminAccountInput"}
+ if s.AdminAccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AdminAccountId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminAccountId sets the AdminAccountId field's value.
+func (s *DisableOrganizationAdminAccountInput) SetAdminAccountId(v string) *DisableOrganizationAdminAccountInput {
+ s.AdminAccountId = &v
+ return s
+}
+
+type DisableOrganizationAdminAccountOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DisableOrganizationAdminAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableOrganizationAdminAccountOutput) GoString() string {
+ return s.String()
+}
+
type DisassociateFromMasterAccountInput struct {
_ struct{} `type:"structure"`
@@ -6943,13 +7688,13 @@ type DisassociateMembersInput struct {
_ struct{} `type:"structure"`
// A list of account IDs of the GuardDuty member accounts that you want to disassociate
- // from master.
+ // from the master account.
//
// AccountIds is a required field
AccountIds []*string `locationName:"accountIds" min:"1" type:"list" required:"true"`
// The unique ID of the detector of the GuardDuty account whose members you
- // want to disassociate from master.
+ // want to disassociate from the master account.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -7002,8 +7747,8 @@ func (s *DisassociateMembersInput) SetDetectorId(v string) *DisassociateMembersI
type DisassociateMembersOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -7029,7 +7774,7 @@ func (s *DisassociateMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAccou
type DnsRequestAction struct {
_ struct{} `type:"structure"`
- // Domain information for the API request.
+ // The domain information for the API request.
Domain *string `locationName:"domain" type:"string"`
}
@@ -7053,7 +7798,7 @@ func (s *DnsRequestAction) SetDomain(v string) *DnsRequestAction {
type DomainDetails struct {
_ struct{} `type:"structure"`
- // Domain information for the AWS API call.
+ // The domain information for the AWS API call.
Domain *string `locationName:"domain" type:"string"`
}
@@ -7073,6 +7818,59 @@ func (s *DomainDetails) SetDomain(v string) *DomainDetails {
return s
}
+type EnableOrganizationAdminAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The AWS Account ID for the Organizations account to be enabled as a GuardDuty
+ // delegated administrator.
+ //
+ // AdminAccountId is a required field
+ AdminAccountId *string `locationName:"adminAccountId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s EnableOrganizationAdminAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableOrganizationAdminAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *EnableOrganizationAdminAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "EnableOrganizationAdminAccountInput"}
+ if s.AdminAccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AdminAccountId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminAccountId sets the AdminAccountId field's value.
+func (s *EnableOrganizationAdminAccountInput) SetAdminAccountId(v string) *EnableOrganizationAdminAccountInput {
+ s.AdminAccountId = &v
+ return s
+}
+
+type EnableOrganizationAdminAccountOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s EnableOrganizationAdminAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableOrganizationAdminAccountOutput) GoString() string {
+ return s.String()
+}
+
// Contains information about the reason that the finding was generated.
type Evidence struct {
_ struct{} `type:"structure"`
@@ -7107,7 +7905,7 @@ type Finding struct {
// AccountId is a required field
AccountId *string `locationName:"accountId" type:"string" required:"true"`
- // The ARN for the finding.
+ // The ARN of the finding.
//
// Arn is a required field
Arn *string `locationName:"arn" type:"string" required:"true"`
@@ -7115,7 +7913,7 @@ type Finding struct {
// The confidence score for the finding.
Confidence *float64 `locationName:"confidence" type:"double"`
- // The time and date at which the finding was created.
+ // The time and date when the finding was created.
//
// CreatedAt is a required field
CreatedAt *string `locationName:"createdAt" type:"string" required:"true"`
@@ -7131,7 +7929,7 @@ type Finding struct {
// The partition associated with the finding.
Partition *string `locationName:"partition" type:"string"`
- // The Region in which the finding was generated.
+ // The Region where the finding was generated.
//
// Region is a required field
Region *string `locationName:"region" type:"string" required:"true"`
@@ -7155,15 +7953,15 @@ type Finding struct {
// Severity is a required field
Severity *float64 `locationName:"severity" type:"double" required:"true"`
- // The title for the finding.
+ // The title of the finding.
Title *string `locationName:"title" type:"string"`
- // The type of the finding.
+ // The type of finding.
//
// Type is a required field
Type *string `locationName:"type" min:"1" type:"string" required:"true"`
- // The time and date at which the finding was laste updated.
+ // The time and date when the finding was last updated.
//
// UpdatedAt is a required field
UpdatedAt *string `locationName:"updatedAt" type:"string" required:"true"`
@@ -7298,7 +8096,7 @@ func (s *FindingCriteria) SetCriterion(v map[string]*Condition) *FindingCriteria
type FindingStatistics struct {
_ struct{} `type:"structure"`
- // Represents a map of severity to count statistic for a set of findings
+ // Represents a map of severity to count statistics for a set of findings.
CountBySeverity map[string]*int64 `locationName:"countBySeverity" type:"map"`
}
@@ -7322,10 +8120,10 @@ func (s *FindingStatistics) SetCountBySeverity(v map[string]*int64) *FindingStat
type GeoLocation struct {
_ struct{} `type:"structure"`
- // Latitude information of remote IP address.
+ // The latitude information of the remote IP address.
Lat *float64 `locationName:"lat" type:"double"`
- // Longitude information of remote IP address.
+ // The longitude information of the remote IP address.
Lon *float64 `locationName:"lon" type:"double"`
}
@@ -7395,10 +8193,10 @@ func (s *GetDetectorInput) SetDetectorId(v string) *GetDetectorInput {
type GetDetectorOutput struct {
_ struct{} `type:"structure"`
- // Detector creation timestamp.
+ // The timestamp of when the detector was created.
CreatedAt *string `locationName:"createdAt" type:"string"`
- // Finding publishing frequency.
+ // The publishing frequency of the finding.
FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"`
// The GuardDuty service role.
@@ -7414,7 +8212,7 @@ type GetDetectorOutput struct {
// The tags of the detector resource.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
- // Detector last update timestamp.
+ // The last-updated timestamp for the detector.
UpdatedAt *string `locationName:"updatedAt" type:"string"`
}
@@ -7467,7 +8265,7 @@ func (s *GetDetectorOutput) SetUpdatedAt(v string) *GetDetectorOutput {
type GetFilterInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the filter is associated with.
+ // The unique ID of the detector that the filter is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -7607,7 +8405,7 @@ type GetFindingsInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // IDs of the findings that you want to retrieve.
+ // The IDs of the findings that you want to retrieve.
//
// FindingIds is a required field
FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
@@ -7697,10 +8495,10 @@ type GetFindingsStatisticsInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // Represents the criteria used for querying findings.
+ // Represents the criteria that is used for querying findings.
FindingCriteria *FindingCriteria `locationName:"findingCriteria" type:"structure"`
- // Types of finding statistics to retrieve.
+ // The types of finding statistics to retrieve.
//
// FindingStatisticTypes is a required field
FindingStatisticTypes []*string `locationName:"findingStatisticTypes" type:"list" required:"true"`
@@ -7756,7 +8554,7 @@ func (s *GetFindingsStatisticsInput) SetFindingStatisticTypes(v []*string) *GetF
type GetFindingsStatisticsOutput struct {
_ struct{} `type:"structure"`
- // Finding statistics object.
+ // The finding statistics object.
//
// FindingStatistics is a required field
FindingStatistics *FindingStatistics `locationName:"findingStatistics" type:"structure" required:"true"`
@@ -7781,7 +8579,7 @@ func (s *GetFindingsStatisticsOutput) SetFindingStatistics(v *FindingStatistics)
type GetIPSetInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the ipSet is associated with.
+ // The unique ID of the detector that the IPSet is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -7844,22 +8642,22 @@ type GetIPSetOutput struct {
// Format is a required field
Format *string `locationName:"format" min:"1" type:"string" required:"true" enum:"IpSetFormat"`
- // The URI of the file that contains the IPSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key)
+ // The URI of the file that contains the IPSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
//
// Location is a required field
Location *string `locationName:"location" min:"1" type:"string" required:"true"`
- // The user friendly name for the IPSet.
+ // The user-friendly name for the IPSet.
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The status of ipSet file uploaded.
+ // The status of IPSet file that was uploaded.
//
// Status is a required field
Status *string `locationName:"status" min:"1" type:"string" required:"true" enum:"IpSetStatus"`
- // The tags of the IP set resource.
+ // The tags of the IPSet resource.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
@@ -7984,7 +8782,7 @@ func (s *GetMasterAccountInput) SetDetectorId(v string) *GetMasterAccountInput {
type GetMasterAccountOutput struct {
_ struct{} `type:"structure"`
- // Master account details.
+ // The master account details.
//
// Master is a required field
Master *Master `locationName:"master" type:"structure" required:"true"`
@@ -8073,8 +8871,8 @@ type GetMembersOutput struct {
// Members is a required field
Members []*Member `locationName:"members" type:"list" required:"true"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -8105,12 +8903,12 @@ func (s *GetMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAccount) *GetM
type GetThreatIntelSetInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the threatIntelSet is associated with.
+ // The unique ID of the detector that the threatIntelSet is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // The unique ID of the threatIntelSet you want to get.
+ // The unique ID of the threatIntelSet that you want to get.
//
// ThreatIntelSetId is a required field
ThreatIntelSetId *string `location:"uri" locationName:"threatIntelSetId" type:"string" required:"true"`
@@ -8168,12 +8966,12 @@ type GetThreatIntelSetOutput struct {
// Format is a required field
Format *string `locationName:"format" min:"1" type:"string" required:"true" enum:"ThreatIntelSetFormat"`
- // The URI of the file that contains the ThreatIntelSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key).
+ // The URI of the file that contains the ThreatIntelSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
//
// Location is a required field
Location *string `locationName:"location" min:"1" type:"string" required:"true"`
- // A user-friendly ThreatIntelSet name that is displayed in all finding generated
+ // A user-friendly ThreatIntelSet name displayed in all findings that are generated
// by activity that involves IP addresses included in this ThreatIntelSet.
//
// Name is a required field
@@ -8184,7 +8982,7 @@ type GetThreatIntelSetOutput struct {
// Status is a required field
Status *string `locationName:"status" min:"1" type:"string" required:"true" enum:"ThreatIntelSetStatus"`
- // The tags of the Threat List resource.
+ // The tags of the threat list resource.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
@@ -8232,10 +9030,10 @@ func (s *GetThreatIntelSetOutput) SetTags(v map[string]*string) *GetThreatIntelS
type IamInstanceProfile struct {
_ struct{} `type:"structure"`
- // AWS EC2 instance profile ARN.
+ // The profile ARN of the EC2 instance.
Arn *string `locationName:"arn" type:"string"`
- // AWS EC2 instance profile ID.
+ // The profile ID of the EC2 instance.
Id *string `locationName:"id" type:"string"`
}
@@ -8265,7 +9063,7 @@ func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
type InstanceDetails struct {
_ struct{} `type:"structure"`
- // The availability zone of the EC2 instance.
+ // The Availability Zone of the EC2 instance.
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The profile information of the EC2 instance.
@@ -8289,7 +9087,7 @@ type InstanceDetails struct {
// The launch time of the EC2 instance.
LaunchTime *string `locationName:"launchTime" type:"string"`
- // The network interface information of the EC2 instance.
+ // The elastic network interface information of the EC2 instance.
NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"`
// The Amazon Resource Name (ARN) of the AWS Outpost. Only applicable to AWS
@@ -8394,10 +9192,10 @@ func (s *InstanceDetails) SetTags(v []*Tag) *InstanceDetails {
return s
}
-// Internal server error exception object.
+// An internal server error exception object.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The error message.
Message_ *string `locationName:"message" type:"string"`
@@ -8418,17 +9216,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8436,36 +9234,36 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about the invitation to become a member account.
type Invitation struct {
_ struct{} `type:"structure"`
- // The ID of the account from which the invitations was sent.
+ // The ID of the account that the invitation was sent from.
AccountId *string `locationName:"accountId" min:"12" type:"string"`
// The ID of the invitation. This value is used to validate the inviter account
// to the member account.
InvitationId *string `locationName:"invitationId" type:"string"`
- // Timestamp at which the invitation was sent.
+ // The timestamp when the invitation was sent.
InvitedAt *string `locationName:"invitedAt" type:"string"`
// The status of the relationship between the inviter and invitee accounts.
@@ -8515,13 +9313,13 @@ type InviteMembersInput struct {
// AccountIds is a required field
AccountIds []*string `locationName:"accountIds" min:"1" type:"list" required:"true"`
- // The unique ID of the detector of the GuardDuty account with which you want
- // to invite members.
+ // The unique ID of the detector of the GuardDuty account that you want to invite
+ // members with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // A boolean value that specifies whether you want to disable email notification
+ // A Boolean value that specifies whether you want to disable email notification
// to the accounts that you’re inviting to GuardDuty as members.
DisableEmailNotification *bool `locationName:"disableEmailNotification" type:"boolean"`
@@ -8589,8 +9387,8 @@ func (s *InviteMembersInput) SetMessage(v string) *InviteMembersInput {
type InviteMembersOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -8615,14 +9413,14 @@ func (s *InviteMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAccount) *I
type ListDetectorsInput struct {
_ struct{} `type:"structure"`
- // You can use this parameter to indicate the maximum number of items you want
- // in the response. The default value is 50. The maximum value is 50.
+ // You can use this parameter to indicate the maximum number of items that you
+ // want in the response. The default value is 50. The maximum value is 50.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -8664,13 +9462,13 @@ func (s *ListDetectorsInput) SetNextToken(v string) *ListDetectorsInput {
type ListDetectorsOutput struct {
_ struct{} `type:"structure"`
- // A list of detector Ids.
+ // A list of detector IDs.
//
// DetectorIds is a required field
DetectorIds []*string `locationName:"detectorIds" type:"list" required:"true"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -8699,19 +9497,19 @@ func (s *ListDetectorsOutput) SetNextToken(v string) *ListDetectorsOutput {
type ListFiltersInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the filter is associated with.
+ // The unique ID of the detector that the filter is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // You can use this parameter to indicate the maximum number of items you want
- // in the response. The default value is 50. The maximum value is 50.
+ // You can use this parameter to indicate the maximum number of items that you
+ // want in the response. The default value is 50. The maximum value is 50.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -8765,13 +9563,13 @@ func (s *ListFiltersInput) SetNextToken(v string) *ListFiltersInput {
type ListFiltersOutput struct {
_ struct{} `type:"structure"`
- // A list of filter names
+ // A list of filter names.
//
// FilterNames is a required field
FilterNames []*string `locationName:"filterNames" type:"list" required:"true"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -8832,8 +9630,6 @@ type ListFindingsInput struct {
//
// * resource.instanceDetails.instanceId
//
- // * resource.instanceDetails.outpostArn
- //
// * resource.instanceDetails.networkInterfaces.ipv6Addresses
//
// * resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress
@@ -8884,8 +9680,6 @@ type ListFindingsInput struct {
//
// * service.action.networkConnectionAction.protocol
//
- // * service.action.networkConnectionAction.localIpDetails.ipAddressV4
- //
// * service.action.networkConnectionAction.remoteIpDetails.city.cityName
//
// * service.action.networkConnectionAction.remoteIpDetails.country.countryName
@@ -8920,8 +9714,8 @@ type ListFindingsInput struct {
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `locationName:"nextToken" type:"string"`
// Represents the criteria used for sorting findings.
@@ -8990,13 +9784,13 @@ func (s *ListFindingsInput) SetSortCriteria(v *SortCriteria) *ListFindingsInput
type ListFindingsOutput struct {
_ struct{} `type:"structure"`
- // The IDs of the findings you are listing.
+ // The IDs of the findings that you're listing.
//
// FindingIds is a required field
FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -9025,7 +9819,7 @@ func (s *ListFindingsOutput) SetNextToken(v string) *ListFindingsOutput {
type ListIPSetsInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the ipSet is associated with.
+ // The unique ID of the detector that the IPSet is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -9036,8 +9830,8 @@ type ListIPSetsInput struct {
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -9096,8 +9890,8 @@ type ListIPSetsOutput struct {
// IpSetIds is a required field
IpSetIds []*string `locationName:"ipSetIds" type:"list" required:"true"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -9126,14 +9920,14 @@ func (s *ListIPSetsOutput) SetNextToken(v string) *ListIPSetsOutput {
type ListInvitationsInput struct {
_ struct{} `type:"structure"`
- // You can use this parameter to indicate the maximum number of items you want
- // in the response. The default value is 50. The maximum value is 50.
+ // You can use this parameter to indicate the maximum number of items that you
+ // want in the response. The default value is 50. The maximum value is 50.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -9178,8 +9972,8 @@ type ListInvitationsOutput struct {
// A list of invitation descriptions.
Invitations []*Invitation `locationName:"invitations" type:"list"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -9219,12 +10013,14 @@ type ListMembersInput struct {
// You can use this parameter when paginating results. Set the value of this
// parameter to null on your first call to the list action. For subsequent calls
- // to the action fill nextToken in the request with the value of NextToken from
- // the previous response to continue listing data.
+ // to the action, fill nextToken in the request with the value of NextToken
+ // from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // Specifies whether to only return associated members or to return all members
- // (including members which haven't been invited yet or have been disassociated).
+ // Specifies what member accounts the response includes based on their relationship
+ // status with the master account. The default value is "true". If set to "false"
+ // the response includes all existing member accounts (including members who
+ // haven't been invited yet or have been disassociated).
OnlyAssociated *string `location:"querystring" locationName:"onlyAssociated" type:"string"`
}
@@ -9287,8 +10083,8 @@ type ListMembersOutput struct {
// A list of members.
Members []*Member `locationName:"members" type:"list"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -9314,6 +10110,88 @@ func (s *ListMembersOutput) SetNextToken(v string) *ListMembersOutput {
return s
}
+type ListOrganizationAdminAccountsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return in the response.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
+
+ // A token to use for paginating results that are returned in the response.
+ // Set the value of this parameter to null for the first request to a list action.
+ // For subsequent calls, use the NextToken value returned from the previous
+ // request to continue listing results after the first page.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListOrganizationAdminAccountsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListOrganizationAdminAccountsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListOrganizationAdminAccountsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListOrganizationAdminAccountsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListOrganizationAdminAccountsInput) SetMaxResults(v int64) *ListOrganizationAdminAccountsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListOrganizationAdminAccountsInput) SetNextToken(v string) *ListOrganizationAdminAccountsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListOrganizationAdminAccountsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An AdminAccounts object that includes a list of accounts configured as GuardDuty
+ // delegated administrators.
+ AdminAccounts []*AdminAccount `locationName:"adminAccounts" type:"list"`
+
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
+ NextToken *string `locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListOrganizationAdminAccountsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListOrganizationAdminAccountsOutput) GoString() string {
+ return s.String()
+}
+
+// SetAdminAccounts sets the AdminAccounts field's value.
+func (s *ListOrganizationAdminAccountsOutput) SetAdminAccounts(v []*AdminAccount) *ListOrganizationAdminAccountsOutput {
+ s.AdminAccounts = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListOrganizationAdminAccountsOutput) SetNextToken(v string) *ListOrganizationAdminAccountsOutput {
+ s.NextToken = &v
+ return s
+}
+
type ListPublishingDestinationsInput struct {
_ struct{} `type:"structure"`
@@ -9325,10 +10203,10 @@ type ListPublishingDestinationsInput struct {
// The maximum number of results to return in the response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // A token to use for paginating results returned in the repsonse. Set the value
- // of this parameter to null for the first request to a list action. For subsequent
- // calls, use the NextToken value returned from the previous request to continue
- // listing results after the first page.
+ // A token to use for paginating results that are returned in the response.
+ // Set the value of this parameter to null for the first request to a list action.
+ // For subsequent calls, use the NextToken value returned from the previous
+ // request to continue listing results after the first page.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -9382,16 +10260,16 @@ func (s *ListPublishingDestinationsInput) SetNextToken(v string) *ListPublishing
type ListPublishingDestinationsOutput struct {
_ struct{} `type:"structure"`
- // A Destinations obect that includes information about each publishing destination
+ // A Destinations object that includes information about each publishing destination
// returned.
//
// Destinations is a required field
Destinations []*Destination `locationName:"destinations" type:"list" required:"true"`
- // A token to use for paginating results returned in the repsonse. Set the value
- // of this parameter to null for the first request to a list action. For subsequent
- // calls, use the NextToken value returned from the previous request to continue
- // listing results after the first page.
+ // A token to use for paginating results that are returned in the response.
+ // Set the value of this parameter to null for the first request to a list action.
+ // For subsequent calls, use the NextToken value returned from the previous
+ // request to continue listing results after the first page.
NextToken *string `locationName:"nextToken" type:"string"`
}
@@ -9420,7 +10298,7 @@ func (s *ListPublishingDestinationsOutput) SetNextToken(v string) *ListPublishin
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the given GuardDuty resource
+ // The Amazon Resource Name (ARN) for the given GuardDuty resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
@@ -9484,18 +10362,18 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe
type ListThreatIntelSetsInput struct {
_ struct{} `type:"structure"`
- // The unique ID of the detector the threatIntelSet is associated with.
+ // The unique ID of the detector that the threatIntelSet is associated with.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // You can use this parameter to indicate the maximum number of items you want
- // in the response. The default value is 50. The maximum value is 50.
+ // You can use this parameter to indicate the maximum number of items that you
+ // want in the response. The default value is 50. The maximum value is 50.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// You can use this parameter to paginate results in the response. Set the value
// of this parameter to null on your first call to the list action. For subsequent
- // calls to the action fill nextToken in the request with the value of NextToken
+ // calls to the action, fill nextToken in the request with the value of NextToken
// from the previous response to continue listing data.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
@@ -9550,8 +10428,8 @@ func (s *ListThreatIntelSetsInput) SetNextToken(v string) *ListThreatIntelSetsIn
type ListThreatIntelSetsOutput struct {
_ struct{} `type:"structure"`
- // Pagination parameter to be used on the next list operation to retrieve more
- // items.
+ // The pagination parameter to be used on the next list operation to retrieve
+ // more items.
NextToken *string `locationName:"nextToken" type:"string"`
// The IDs of the ThreatIntelSet resources.
@@ -9586,7 +10464,7 @@ func (s *ListThreatIntelSetsOutput) SetThreatIntelSetIds(v []*string) *ListThrea
type LocalIpDetails struct {
_ struct{} `type:"structure"`
- // IPV4 remote address of the connection.
+ // The IPv4 local address of the connection.
IpAddressV4 *string `locationName:"ipAddressV4" type:"string"`
}
@@ -9610,10 +10488,10 @@ func (s *LocalIpDetails) SetIpAddressV4(v string) *LocalIpDetails {
type LocalPortDetails struct {
_ struct{} `type:"structure"`
- // Port number of the local connection.
+ // The port number of the local connection.
Port *int64 `locationName:"port" type:"integer"`
- // Port name of the local connection.
+ // The port name of the local connection.
PortName *string `locationName:"portName" type:"string"`
}
@@ -9639,17 +10517,17 @@ func (s *LocalPortDetails) SetPortName(v string) *LocalPortDetails {
return s
}
-// Contains information about the Master account and invitation.
+// Contains information about the master account and invitation.
type Master struct {
_ struct{} `type:"structure"`
- // The ID of the account used as the Master account.
+ // The ID of the account used as the master account.
AccountId *string `locationName:"accountId" min:"12" type:"string"`
- // This value is used to validate the master account to the member account.
+ // The value used to validate the master account to the member account.
InvitationId *string `locationName:"invitationId" type:"string"`
- // Timestamp at which the invitation was sent.
+ // The timestamp when the invitation was sent.
InvitedAt *string `locationName:"invitedAt" type:"string"`
// The status of the relationship between the master and member accounts.
@@ -9690,27 +10568,27 @@ func (s *Master) SetRelationshipStatus(v string) *Master {
return s
}
-// Continas information about the member account
+// Contains information about the member account.
type Member struct {
_ struct{} `type:"structure"`
- // Member account ID.
+ // The ID of the member account.
//
// AccountId is a required field
AccountId *string `locationName:"accountId" min:"12" type:"string" required:"true"`
- // Member account's detector ID.
+ // The detector ID of the member account.
DetectorId *string `locationName:"detectorId" min:"1" type:"string"`
- // Member account's email address.
+ // The email address of the member account.
//
// Email is a required field
Email *string `locationName:"email" min:"1" type:"string" required:"true"`
- // Timestamp at which the invitation was sent
+ // The timestamp when the invitation was sent.
InvitedAt *string `locationName:"invitedAt" type:"string"`
- // Master account ID.
+ // The master account ID.
//
// MasterId is a required field
MasterId *string `locationName:"masterId" type:"string" required:"true"`
@@ -9720,7 +10598,7 @@ type Member struct {
// RelationshipStatus is a required field
RelationshipStatus *string `locationName:"relationshipStatus" type:"string" required:"true"`
- // Member last updated timestamp.
+ // The last-updated timestamp of the member.
//
// UpdatedAt is a required field
UpdatedAt *string `locationName:"updatedAt" type:"string" required:"true"`
@@ -9783,25 +10661,25 @@ func (s *Member) SetUpdatedAt(v string) *Member {
type NetworkConnectionAction struct {
_ struct{} `type:"structure"`
- // Network connection blocked information.
+ // Indicates whether EC2 blocked the network connection to your instance.
Blocked *bool `locationName:"blocked" type:"boolean"`
- // Network connection direction.
+ // The network connection direction.
ConnectionDirection *string `locationName:"connectionDirection" type:"string"`
- // Local IP information of the connection.
+ // The local IP information of the connection.
LocalIpDetails *LocalIpDetails `locationName:"localIpDetails" type:"structure"`
- // Local port information of the connection.
+ // The local port information of the connection.
LocalPortDetails *LocalPortDetails `locationName:"localPortDetails" type:"structure"`
- // Network connection protocol.
+ // The network connection protocol.
Protocol *string `locationName:"protocol" type:"string"`
- // Remote IP information of the connection.
+ // The remote IP information of the connection.
RemoteIpDetails *RemoteIpDetails `locationName:"remoteIpDetails" type:"structure"`
- // Remote port information of the connection.
+ // The remote port information of the connection.
RemotePortDetails *RemotePortDetails `locationName:"remotePortDetails" type:"structure"`
}
@@ -9857,32 +10735,32 @@ func (s *NetworkConnectionAction) SetRemotePortDetails(v *RemotePortDetails) *Ne
return s
}
-// Contains information about the network interface of the Ec2 instance.
+// Contains information about the elastic network interface of the EC2 instance.
type NetworkInterface struct {
_ struct{} `type:"structure"`
- // A list of EC2 instance IPv6 address information.
+ // A list of IPv6 addresses for the EC2 instance.
Ipv6Addresses []*string `locationName:"ipv6Addresses" type:"list"`
- // The ID of the network interface
+ // The ID of the network interface.
NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
- // Private DNS name of the EC2 instance.
+ // The private DNS name of the EC2 instance.
PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
- // Private IP address of the EC2 instance.
+ // The private IP address of the EC2 instance.
PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
// Other private IP address information of the EC2 instance.
PrivateIpAddresses []*PrivateIpAddressDetails `locationName:"privateIpAddresses" type:"list"`
- // Public DNS name of the EC2 instance.
+ // The public DNS name of the EC2 instance.
PublicDnsName *string `locationName:"publicDnsName" type:"string"`
- // Public IP address of the EC2 instance.
+ // The public IP address of the EC2 instance.
PublicIp *string `locationName:"publicIp" type:"string"`
- // Security groups associated with the EC2 instance.
+ // The security groups associated with the EC2 instance.
SecurityGroups []*SecurityGroup `locationName:"securityGroups" type:"list"`
// The subnet ID of the EC2 instance.
@@ -9962,20 +10840,21 @@ func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
return s
}
-// Continas information about the ISP organization of the remote IP address.
+// Contains information about the ISP organization of the remote IP address.
type Organization struct {
_ struct{} `type:"structure"`
- // Autonomous system number of the internet provider of the remote IP address.
+ // The Autonomous System Number (ASN) of the internet provider of the remote
+ // IP address.
Asn *string `locationName:"asn" type:"string"`
- // Organization that registered this ASN.
+ // The organization that registered this ASN.
AsnOrg *string `locationName:"asnOrg" type:"string"`
- // ISP information for the internet provider.
+ // The ISP information for the internet provider.
Isp *string `locationName:"isp" type:"string"`
- // Name of the internet provider.
+ // The name of the internet provider.
Org *string `locationName:"org" type:"string"`
}
@@ -10017,10 +10896,11 @@ func (s *Organization) SetOrg(v string) *Organization {
type PortProbeAction struct {
_ struct{} `type:"structure"`
- // Port probe blocked information.
+ // Indicates whether EC2 blocked the port probe to the instance, such as with
+ // an ACL.
Blocked *bool `locationName:"blocked" type:"boolean"`
- // A list of port probe details objects.
+ // A list of objects related to port probe details.
PortProbeDetails []*PortProbeDetail `locationName:"portProbeDetails" type:"list"`
}
@@ -10050,13 +10930,13 @@ func (s *PortProbeAction) SetPortProbeDetails(v []*PortProbeDetail) *PortProbeAc
type PortProbeDetail struct {
_ struct{} `type:"structure"`
- // Local IP information of the connection.
+ // The local IP information of the connection.
LocalIpDetails *LocalIpDetails `locationName:"localIpDetails" type:"structure"`
- // Local port information of the connection.
+ // The local port information of the connection.
LocalPortDetails *LocalPortDetails `locationName:"localPortDetails" type:"structure"`
- // Remote IP information of the connection.
+ // The remote IP information of the connection.
RemoteIpDetails *RemoteIpDetails `locationName:"remoteIpDetails" type:"structure"`
}
@@ -10092,10 +10972,10 @@ func (s *PortProbeDetail) SetRemoteIpDetails(v *RemoteIpDetails) *PortProbeDetai
type PrivateIpAddressDetails struct {
_ struct{} `type:"structure"`
- // Private DNS name of the EC2 instance.
+ // The private DNS name of the EC2 instance.
PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
- // Private IP address of the EC2 instance.
+ // The private IP address of the EC2 instance.
PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
}
@@ -10121,14 +11001,14 @@ func (s *PrivateIpAddressDetails) SetPrivateIpAddress(v string) *PrivateIpAddres
return s
}
-// Contains information about the product code for the Ec2 instance.
+// Contains information about the product code for the EC2 instance.
type ProductCode struct {
_ struct{} `type:"structure"`
- // Product code information.
+ // The product code information.
Code *string `locationName:"code" type:"string"`
- // Product code type.
+ // The product code type.
ProductType *string `locationName:"productType" type:"string"`
}
@@ -10154,23 +11034,23 @@ func (s *ProductCode) SetProductType(v string) *ProductCode {
return s
}
-// Continas information about the remote IP address of the connection.
+// Contains information about the remote IP address of the connection.
type RemoteIpDetails struct {
_ struct{} `type:"structure"`
- // City information of the remote IP address.
+ // The city information of the remote IP address.
City *City `locationName:"city" type:"structure"`
- // Country code of the remote IP address.
+ // The country code of the remote IP address.
Country *Country `locationName:"country" type:"structure"`
- // Location information of the remote IP address.
+ // The location information of the remote IP address.
GeoLocation *GeoLocation `locationName:"geoLocation" type:"structure"`
- // IPV4 remote address of the connection.
+ // The IPv4 remote address of the connection.
IpAddressV4 *string `locationName:"ipAddressV4" type:"string"`
- // ISP Organization information of the remote IP address.
+ // The ISP organization information of the remote IP address.
Organization *Organization `locationName:"organization" type:"structure"`
}
@@ -10218,10 +11098,10 @@ func (s *RemoteIpDetails) SetOrganization(v *Organization) *RemoteIpDetails {
type RemotePortDetails struct {
_ struct{} `type:"structure"`
- // Port number of the remote connection.
+ // The port number of the remote connection.
Port *int64 `locationName:"port" type:"integer"`
- // Port name of the remote connection.
+ // The port name of the remote connection.
PortName *string `locationName:"portName" type:"string"`
}
@@ -10260,7 +11140,7 @@ type Resource struct {
// prompted GuardDuty to generate a finding.
InstanceDetails *InstanceDetails `locationName:"instanceDetails" type:"structure"`
- // The type of the AWS resource.
+ // The type of AWS resource.
ResourceType *string `locationName:"resourceType" type:"string"`
}
@@ -10296,10 +11176,10 @@ func (s *Resource) SetResourceType(v string) *Resource {
type SecurityGroup struct {
_ struct{} `type:"structure"`
- // EC2 instance's security group ID.
+ // The security group ID of the EC2 instance.
GroupId *string `locationName:"groupId" type:"string"`
- // EC2 instance's security group name.
+ // The security group name of the EC2 instance.
GroupName *string `locationName:"groupName" type:"string"`
}
@@ -10329,36 +11209,36 @@ func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
type Service struct {
_ struct{} `type:"structure"`
- // Information about the activity described in a finding.
+ // Information about the activity that is described in a finding.
Action *Action `locationName:"action" type:"structure"`
// Indicates whether this finding is archived.
Archived *bool `locationName:"archived" type:"boolean"`
- // Total count of the occurrences of this finding type.
+ // The total count of the occurrences of this finding type.
Count *int64 `locationName:"count" type:"integer"`
- // Detector ID for the GuardDuty service.
+ // The detector ID for the GuardDuty service.
DetectorId *string `locationName:"detectorId" min:"1" type:"string"`
- // First seen timestamp of the activity that prompted GuardDuty to generate
+ // The first-seen timestamp of the activity that prompted GuardDuty to generate
// this finding.
EventFirstSeen *string `locationName:"eventFirstSeen" type:"string"`
- // Last seen timestamp of the activity that prompted GuardDuty to generate this
- // finding.
+ // The last-seen timestamp of the activity that prompted GuardDuty to generate
+ // this finding.
EventLastSeen *string `locationName:"eventLastSeen" type:"string"`
// An evidence object associated with the service.
Evidence *Evidence `locationName:"evidence" type:"structure"`
- // Resource role information for this finding.
+ // The resource role information for this finding.
ResourceRole *string `locationName:"resourceRole" type:"string"`
// The name of the AWS service (GuardDuty) that generated a finding.
ServiceName *string `locationName:"serviceName" type:"string"`
- // Feedback left about the finding.
+ // Feedback that was submitted about the finding.
UserFeedback *string `locationName:"userFeedback" type:"string"`
}
@@ -10436,11 +11316,11 @@ func (s *Service) SetUserFeedback(v string) *Service {
type SortCriteria struct {
_ struct{} `type:"structure"`
- // Represents the finding attribute (for example, accountId) by which to sort
- // findings.
+ // Represents the finding attribute (for example, accountId) to sort findings
+ // by.
AttributeName *string `locationName:"attributeName" type:"string"`
- // Order by which the sorted findings are to be displayed.
+ // The order by which the sorted findings are to be displayed.
OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"`
}
@@ -10528,8 +11408,8 @@ func (s *StartMonitoringMembersInput) SetDetectorId(v string) *StartMonitoringMe
type StartMonitoringMembersOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain the unprocessed account and a result string
+ // that explains why it was unprocessed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -10554,14 +11434,13 @@ func (s *StartMonitoringMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAc
type StopMonitoringMembersInput struct {
_ struct{} `type:"structure"`
- // A list of account IDs of the GuardDuty member accounts whose findings you
- // want the master account to stop monitoring.
+ // A list of account IDs for the member accounts to stop monitoring.
//
// AccountIds is a required field
AccountIds []*string `locationName:"accountIds" min:"1" type:"list" required:"true"`
- // The unique ID of the detector of the GuardDuty account that you want to stop
- // from monitor members' findings.
+ // The unique ID of the detector associated with the GuardDuty master account
+ // that is monitoring member accounts.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -10614,8 +11493,9 @@ func (s *StopMonitoringMembersInput) SetDetectorId(v string) *StopMonitoringMemb
type StopMonitoringMembersOutput struct {
_ struct{} `type:"structure"`
- // A list of objects containing the unprocessed account and a result string
- // explaining why it was unprocessed.
+ // A list of objects that contain an accountId for each account that could not
+ // be processed, and a result string that indicates why the account was not
+ // processed.
//
// UnprocessedAccounts is a required field
UnprocessedAccounts []*UnprocessedAccount `locationName:"unprocessedAccounts" type:"list" required:"true"`
@@ -10637,14 +11517,14 @@ func (s *StopMonitoringMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAcc
return s
}
-// Contains information about a tag associated with the Ec2 instance.
+// Contains information about a tag associated with the EC2 instance.
type Tag struct {
_ struct{} `type:"structure"`
- // EC2 instance tag key.
+ // The EC2 instance tag key.
Key *string `locationName:"key" type:"string"`
- // EC2 instance tag value.
+ // The EC2 instance tag value.
Value *string `locationName:"value" type:"string"`
}
@@ -10786,7 +11666,7 @@ type UnarchiveFindingsInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // IDs of the findings to unarchive.
+ // The IDs of the findings to unarchive.
//
// FindingIds is a required field
FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
@@ -10847,11 +11727,11 @@ func (s UnarchiveFindingsOutput) GoString() string {
return s.String()
}
-// Contains information about the accounts that were not processed.
+// Contains information about the accounts that weren't processed.
type UnprocessedAccount struct {
_ struct{} `type:"structure"`
- // AWS Account ID.
+ // The AWS account ID.
//
// AccountId is a required field
AccountId *string `locationName:"accountId" min:"12" type:"string" required:"true"`
@@ -10967,7 +11847,7 @@ type UpdateDetectorInput struct {
// Specifies whether the detector is enabled or not enabled.
Enable *bool `locationName:"enable" type:"boolean"`
- // A enum value that specifies how frequently findings are exported, such as
+ // An enum value that specifies how frequently findings are exported, such as
// to CloudWatch Events.
FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"`
}
@@ -11174,7 +12054,7 @@ type UpdateFindingsFeedbackInput struct {
// Feedback is a required field
Feedback *string `locationName:"feedback" type:"string" required:"true" enum:"Feedback"`
- // IDs of the findings that you want to mark as useful or not useful.
+ // The IDs of the findings that you want to mark as useful or not useful.
//
// FindingIds is a required field
FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
@@ -11253,7 +12133,7 @@ func (s UpdateFindingsFeedbackOutput) GoString() string {
type UpdateIPSetInput struct {
_ struct{} `type:"structure"`
- // The updated boolean value that specifies whether the IPSet is active or not.
+ // The updated Boolean value that specifies whether the IPSet is active or not.
Activate *bool `locationName:"activate" type:"boolean"`
// The detectorID that specifies the GuardDuty service whose IPSet you want
@@ -11267,7 +12147,7 @@ type UpdateIPSetInput struct {
// IpSetId is a required field
IpSetId *string `location:"uri" locationName:"ipSetId" type:"string" required:"true"`
- // The updated URI of the file that contains the IPSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key).
+ // The updated URI of the file that contains the IPSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
Location *string `locationName:"location" min:"1" type:"string"`
// The unique ID that specifies the IPSet that you want to update.
@@ -11356,10 +12236,79 @@ func (s UpdateIPSetOutput) GoString() string {
return s.String()
}
+type UpdateOrganizationConfigurationInput struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether to automatically enable member accounts in the organization.
+ //
+ // AutoEnable is a required field
+ AutoEnable *bool `locationName:"autoEnable" type:"boolean" required:"true"`
+
+ // The ID of the detector to update the delegated administrator for.
+ //
+ // DetectorId is a required field
+ DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateOrganizationConfigurationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateOrganizationConfigurationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateOrganizationConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateOrganizationConfigurationInput"}
+ if s.AutoEnable == nil {
+ invalidParams.Add(request.NewErrParamRequired("AutoEnable"))
+ }
+ if s.DetectorId == nil {
+ invalidParams.Add(request.NewErrParamRequired("DetectorId"))
+ }
+ if s.DetectorId != nil && len(*s.DetectorId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAutoEnable sets the AutoEnable field's value.
+func (s *UpdateOrganizationConfigurationInput) SetAutoEnable(v bool) *UpdateOrganizationConfigurationInput {
+ s.AutoEnable = &v
+ return s
+}
+
+// SetDetectorId sets the DetectorId field's value.
+func (s *UpdateOrganizationConfigurationInput) SetDetectorId(v string) *UpdateOrganizationConfigurationInput {
+ s.DetectorId = &v
+ return s
+}
+
+type UpdateOrganizationConfigurationOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateOrganizationConfigurationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateOrganizationConfigurationOutput) GoString() string {
+ return s.String()
+}
+
type UpdatePublishingDestinationInput struct {
_ struct{} `type:"structure"`
- // The ID of the detector associated with the publishing destinations to update.
+ // The ID of the publishing destination to update.
//
// DestinationId is a required field
DestinationId *string `location:"uri" locationName:"destinationId" type:"string" required:"true"`
@@ -11368,7 +12317,7 @@ type UpdatePublishingDestinationInput struct {
// of the publishing destination.
DestinationProperties *DestinationProperties `locationName:"destinationProperties" type:"structure"`
- // The ID of the
+ // The ID of the detector associated with the publishing destinations to update.
//
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
@@ -11441,7 +12390,7 @@ func (s UpdatePublishingDestinationOutput) GoString() string {
type UpdateThreatIntelSetInput struct {
_ struct{} `type:"structure"`
- // The updated boolean value that specifies whether the ThreateIntelSet is active
+ // The updated Boolean value that specifies whether the ThreateIntelSet is active
// or not.
Activate *bool `locationName:"activate" type:"boolean"`
@@ -11451,8 +12400,8 @@ type UpdateThreatIntelSetInput struct {
// DetectorId is a required field
DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"`
- // The updated URI of the file that contains the ThreateIntelSet. For example
- // (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key)
+ // The updated URI of the file that contains the ThreateIntelSet. For example:
+ // https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.
Location *string `locationName:"location" min:"1" type:"string"`
// The unique ID that specifies the ThreatIntelSet that you want to update.
@@ -11546,6 +12495,14 @@ func (s UpdateThreatIntelSetOutput) GoString() string {
return s.String()
}
+const (
+ // AdminStatusEnabled is a AdminStatus enum value
+ AdminStatusEnabled = "ENABLED"
+
+ // AdminStatusDisableInProgress is a AdminStatus enum value
+ AdminStatusDisableInProgress = "DISABLE_IN_PROGRESS"
+)
+
const (
// DestinationTypeS3 is a DestinationType enum value
DestinationTypeS3 = "S3"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/guardduty/doc.go b/vendor/github.com/aws/aws-sdk-go/service/guardduty/doc.go
index fcc8098dfda..c14c9641279 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/guardduty/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/guardduty/doc.go
@@ -5,19 +5,22 @@
//
// Amazon GuardDuty is a continuous security monitoring service that analyzes
// and processes the following data sources: VPC Flow Logs, AWS CloudTrail event
-// logs, and DNS logs. It uses threat intelligence feeds, such as lists of malicious
-// IPs and domains, and machine learning to identify unexpected and potentially
-// unauthorized and malicious activity within your AWS environment. This can
+// logs, and DNS logs. It uses threat intelligence feeds (such as lists of malicious
+// IPs and domains) and machine learning to identify unexpected, potentially
+// unauthorized, and malicious activity within your AWS environment. This can
// include issues like escalations of privileges, uses of exposed credentials,
// or communication with malicious IPs, URLs, or domains. For example, GuardDuty
-// can detect compromised EC2 instances serving malware or mining bitcoin. It
-// also monitors AWS account access behavior for signs of compromise, such as
-// unauthorized infrastructure deployments, like instances deployed in a region
-// that has never been used, or unusual API calls, like a password policy change
-// to reduce password strength. GuardDuty informs you of the status of your
-// AWS environment by producing security findings that you can view in the GuardDuty
-// console or through Amazon CloudWatch events. For more information, see Amazon
-// GuardDuty User Guide (https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html).
+// can detect compromised EC2 instances that serve malware or mine bitcoin.
+//
+// GuardDuty also monitors AWS account access behavior for signs of compromise.
+// Some examples of this are unauthorized infrastructure deployments such as
+// EC2 instances deployed in a Region that has never been used, or unusual API
+// calls like a password policy change to reduce password strength.
+//
+// GuardDuty informs you of the status of your AWS environment by producing
+// security findings that you can view in the GuardDuty console or through Amazon
+// CloudWatch events. For more information, see the Amazon GuardDuty User Guide
+// (https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html) .
//
// See https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28 for more information on this service.
//
diff --git a/vendor/github.com/aws/aws-sdk-go/service/guardduty/errors.go b/vendor/github.com/aws/aws-sdk-go/service/guardduty/errors.go
index 63b0c1f7db7..8a4f92d1b3f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/guardduty/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/guardduty/errors.go
@@ -11,13 +11,13 @@ const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
- // Bad request exception object.
+ // A bad request exception object.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
- // Internal server error exception object.
+ // An internal server error exception object.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go
index a17131ac18f..eb606e83573 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go
@@ -5302,7 +5302,9 @@ func (c *IAM) GenerateServiceLastAccessedDetailsRequest(input *GenerateServiceLa
// * GetServiceLastAccessedDetails – Use this operation for users, groups,
// roles, or policies to list every AWS service that the resource could access
// using permissions policies. For each service, the response includes information
-// about the most recent access attempt.
+// about the most recent access attempt. The JobId returned by GenerateServiceLastAccessedDetail
+// must be used by the same role within a session, or by the same user when
+// used to call GetServiceLastAccessedDetail.
//
// * GetServiceLastAccessedDetailsWithEntities – Use this operation for
// groups and policies to list information about the associated entities
@@ -16341,7 +16343,7 @@ func (s ChangePasswordOutput) GoString() string {
// evaluating the Condition elements of the input policies.
//
// This data type is used as an input parameter to SimulateCustomPolicy and
-// SimulatePrincipalPolicy .
+// SimulatePrincipalPolicy.
type ContextEntry struct {
_ struct{} `type:"structure"`
@@ -20381,8 +20383,10 @@ func (s *GenerateServiceLastAccessedDetailsInput) SetArn(v string) *GenerateServ
type GenerateServiceLastAccessedDetailsOutput struct {
_ struct{} `type:"structure"`
- // The job ID that you can use in the GetServiceLastAccessedDetails or GetServiceLastAccessedDetailsWithEntities
- // operations.
+ // The JobId that you can use in the GetServiceLastAccessedDetails or GetServiceLastAccessedDetailsWithEntities
+ // operations. The JobId returned by GenerateServiceLastAccessedDetail must
+ // be used by the same role within a session, or by the same user when used
+ // to call GetServiceLastAccessedDetail.
JobId *string `min:"36" type:"string"`
}
@@ -22245,7 +22249,9 @@ type GetServiceLastAccessedDetailsInput struct {
_ struct{} `type:"structure"`
// The ID of the request generated by the GenerateServiceLastAccessedDetails
- // operation.
+ // operation. The JobId returned by GenerateServiceLastAccessedDetail must be
+ // used by the same role within a session, or by the same user when used to
+ // call GetServiceLastAccessedDetail.
//
// JobId is a required field
JobId *string `min:"36" type:"string" required:"true"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/imagebuilder/api.go b/vendor/github.com/aws/aws-sdk-go/service/imagebuilder/api.go
index 02e78844c4a..10a6d1a9a06 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/imagebuilder/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/imagebuilder/api.go
@@ -3888,7 +3888,12 @@ func (c *Imagebuilder) PutComponentPolicyRequest(input *PutComponentPolicyInput)
// PutComponentPolicy API operation for EC2 Image Builder.
//
-// Applies a policy to a component.
+// Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare
+// (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html)
+// to share resources. If you call the Image Builder API PutComponentPolicy,
+// you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html)
+// in order for the resource to be visible to all principals with whom the resource
+// is shared.
//
// 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
@@ -3990,7 +3995,12 @@ func (c *Imagebuilder) PutImagePolicyRequest(input *PutImagePolicyInput) (req *r
// PutImagePolicy API operation for EC2 Image Builder.
//
-// Applies a policy to an image.
+// Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare
+// (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html)
+// to share resources. If you call the Image Builder API PutImagePolicy, you
+// must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html)
+// in order for the resource to be visible to all principals with whom the resource
+// is shared.
//
// 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
@@ -4092,7 +4102,12 @@ func (c *Imagebuilder) PutImageRecipePolicyRequest(input *PutImageRecipePolicyIn
// PutImageRecipePolicy API operation for EC2 Image Builder.
//
-// Applies a policy to an image recipe.
+// Applies a policy to an image recipe. We recommend that you call the RAM API
+// CreateResourceShare (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html)
+// to share resources. If you call the Image Builder API PutImageRecipePolicy,
+// you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html)
+// in order for the resource to be visible to all principals with whom the resource
+// is shared.
//
// 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
@@ -4883,8 +4898,8 @@ func (s *AmiDistributionConfiguration) SetName(v string) *AmiDistributionConfigu
// You have exceeded the permitted request rate for the specific operation.
type CallRateLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4901,17 +4916,17 @@ func (s CallRateLimitExceededException) GoString() string {
func newErrorCallRateLimitExceededException(v protocol.ResponseMetadata) error {
return &CallRateLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CallRateLimitExceededException) Code() string {
+func (s *CallRateLimitExceededException) Code() string {
return "CallRateLimitExceededException"
}
// Message returns the exception's message.
-func (s CallRateLimitExceededException) Message() string {
+func (s *CallRateLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4919,22 +4934,22 @@ func (s CallRateLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CallRateLimitExceededException) OrigErr() error {
+func (s *CallRateLimitExceededException) OrigErr() error {
return nil
}
-func (s CallRateLimitExceededException) Error() string {
+func (s *CallRateLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CallRateLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CallRateLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CallRateLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CallRateLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CancelImageCreationInput struct {
@@ -5032,8 +5047,8 @@ func (s *CancelImageCreationOutput) SetRequestId(v string) *CancelImageCreationO
// or resource on behalf of a user that doesn't have permissions to use the
// action or resource, or specifying an invalid resource identifier.
type ClientException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5050,17 +5065,17 @@ func (s ClientException) GoString() string {
func newErrorClientException(v protocol.ResponseMetadata) error {
return &ClientException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientException) Code() string {
+func (s *ClientException) Code() string {
return "ClientException"
}
// Message returns the exception's message.
-func (s ClientException) Message() string {
+func (s *ClientException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5068,22 +5083,22 @@ func (s ClientException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientException) OrigErr() error {
+func (s *ClientException) OrigErr() error {
return nil
}
-func (s ClientException) Error() string {
+func (s *ClientException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A detailed view of a component.
@@ -5799,6 +5814,12 @@ type CreateImageInput struct {
// and configures the outputs of your pipeline.
DistributionConfigurationArn *string `locationName:"distributionConfigurationArn" type:"string"`
+ // Collects additional information about the image being created, including
+ // the operating system (OS) version and package list. This information is used
+ // to enhance the overall experience of using EC2 Image Builder. Enabled by
+ // default.
+ EnhancedImageMetadataEnabled *bool `locationName:"enhancedImageMetadataEnabled" type:"boolean"`
+
// The Amazon Resource Name (ARN) of the image recipe that defines how images
// are configured, tested, and assessed.
//
@@ -5867,6 +5888,12 @@ func (s *CreateImageInput) SetDistributionConfigurationArn(v string) *CreateImag
return s
}
+// SetEnhancedImageMetadataEnabled sets the EnhancedImageMetadataEnabled field's value.
+func (s *CreateImageInput) SetEnhancedImageMetadataEnabled(v bool) *CreateImageInput {
+ s.EnhancedImageMetadataEnabled = &v
+ return s
+}
+
// SetImageRecipeArn sets the ImageRecipeArn field's value.
func (s *CreateImageInput) SetImageRecipeArn(v string) *CreateImageInput {
s.ImageRecipeArn = &v
@@ -5945,6 +5972,12 @@ type CreateImagePipelineInput struct {
// be used to configure and distribute images created by this image pipeline.
DistributionConfigurationArn *string `locationName:"distributionConfigurationArn" type:"string"`
+ // Collects additional information about the image being created, including
+ // the operating system (OS) version and package list. This information is used
+ // to enhance the overall experience of using EC2 Image Builder. Enabled by
+ // default.
+ EnhancedImageMetadataEnabled *bool `locationName:"enhancedImageMetadataEnabled" type:"boolean"`
+
// The Amazon Resource Name (ARN) of the image recipe that will be used to configure
// images created by this image pipeline.
//
@@ -6041,6 +6074,12 @@ func (s *CreateImagePipelineInput) SetDistributionConfigurationArn(v string) *Cr
return s
}
+// SetEnhancedImageMetadataEnabled sets the EnhancedImageMetadataEnabled field's value.
+func (s *CreateImagePipelineInput) SetEnhancedImageMetadataEnabled(v bool) *CreateImagePipelineInput {
+ s.EnhancedImageMetadataEnabled = &v
+ return s
+}
+
// SetImageRecipeArn sets the ImageRecipeArn field's value.
func (s *CreateImagePipelineInput) SetImageRecipeArn(v string) *CreateImagePipelineInput {
s.ImageRecipeArn = &v
@@ -6147,7 +6186,15 @@ type CreateImageRecipeInput struct {
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
- // The parent image of the image recipe.
+ // The parent image of the image recipe. The value of the string can be the
+ // ARN of the parent image or an AMI ID. The format for the ARN follows this
+ // example: arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x.
+ // The ARN ends with /20xx.x.x, which communicates to EC2 Image Builder that
+ // you want to use the latest AMI created in 20xx (year). You can provide the
+ // specific version that you want to use, or you can use a wildcard in all of
+ // the fields. If you enter an AMI ID for the string value, you must have access
+ // to the AMI, and the AMI must be in the same Region in which you are using
+ // Image Builder.
//
// ParentImage is a required field
ParentImage *string `locationName:"parentImage" min:"1" type:"string" required:"true"`
@@ -7328,8 +7375,8 @@ func (s *Filter) SetValues(v []*string) *Filter {
// You are not authorized to perform the requested operation.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7346,17 +7393,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7364,22 +7411,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetComponentInput struct {
@@ -8022,8 +8069,8 @@ func (s *GetInfrastructureConfigurationOutput) SetRequestId(v string) *GetInfras
// You have specified a client token for an operation using parameter values
// that differ from a previous request that used the same client token.
type IdempotentParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8040,17 +8087,17 @@ func (s IdempotentParameterMismatchException) GoString() string {
func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatchException) Code() string {
+func (s *IdempotentParameterMismatchException) Code() string {
return "IdempotentParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatchException) Message() string {
+func (s *IdempotentParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8058,22 +8105,22 @@ func (s IdempotentParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatchException) OrigErr() error {
+func (s *IdempotentParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatchException) Error() string {
+func (s *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An image build version.
@@ -8089,6 +8136,12 @@ type Image struct {
// The distribution configuration used when creating this image.
DistributionConfiguration *DistributionConfiguration `locationName:"distributionConfiguration" type:"structure"`
+ // Collects additional information about the image being created, including
+ // the operating system (OS) version and package list. This information is used
+ // to enhance the overall experience of using EC2 Image Builder. Enabled by
+ // default.
+ EnhancedImageMetadataEnabled *bool `locationName:"enhancedImageMetadataEnabled" type:"boolean"`
+
// The image recipe used when creating the image.
ImageRecipe *ImageRecipe `locationName:"imageRecipe" type:"structure"`
@@ -8101,6 +8154,10 @@ type Image struct {
// The name of the image.
Name *string `locationName:"name" type:"string"`
+ // The operating system version of the instance. For example, Amazon Linux 2,
+ // Ubuntu 18, or Microsoft Windows Server 2019.
+ OsVersion *string `locationName:"osVersion" min:"1" type:"string"`
+
// The output resources produced when creating this image.
OutputResources *OutputResources `locationName:"outputResources" type:"structure"`
@@ -8151,6 +8208,12 @@ func (s *Image) SetDistributionConfiguration(v *DistributionConfiguration) *Imag
return s
}
+// SetEnhancedImageMetadataEnabled sets the EnhancedImageMetadataEnabled field's value.
+func (s *Image) SetEnhancedImageMetadataEnabled(v bool) *Image {
+ s.EnhancedImageMetadataEnabled = &v
+ return s
+}
+
// SetImageRecipe sets the ImageRecipe field's value.
func (s *Image) SetImageRecipe(v *ImageRecipe) *Image {
s.ImageRecipe = v
@@ -8175,6 +8238,12 @@ func (s *Image) SetName(v string) *Image {
return s
}
+// SetOsVersion sets the OsVersion field's value.
+func (s *Image) SetOsVersion(v string) *Image {
+ s.OsVersion = &v
+ return s
+}
+
// SetOutputResources sets the OutputResources field's value.
func (s *Image) SetOutputResources(v *OutputResources) *Image {
s.OutputResources = v
@@ -8243,6 +8312,12 @@ type ImagePipeline struct {
// with this image pipeline.
DistributionConfigurationArn *string `locationName:"distributionConfigurationArn" type:"string"`
+ // Collects additional information about the image being created, including
+ // the operating system (OS) version and package list. This information is used
+ // to enhance the overall experience of using EC2 Image Builder. Enabled by
+ // default.
+ EnhancedImageMetadataEnabled *bool `locationName:"enhancedImageMetadataEnabled" type:"boolean"`
+
// The Amazon Resource Name (ARN) of the image recipe associated with this image
// pipeline.
ImageRecipeArn *string `locationName:"imageRecipeArn" type:"string"`
@@ -8322,6 +8397,12 @@ func (s *ImagePipeline) SetDistributionConfigurationArn(v string) *ImagePipeline
return s
}
+// SetEnhancedImageMetadataEnabled sets the EnhancedImageMetadataEnabled field's value.
+func (s *ImagePipeline) SetEnhancedImageMetadataEnabled(v bool) *ImagePipeline {
+ s.EnhancedImageMetadataEnabled = &v
+ return s
+}
+
// SetImageRecipeArn sets the ImageRecipeArn field's value.
func (s *ImagePipeline) SetImageRecipeArn(v string) *ImagePipeline {
s.ImageRecipeArn = &v
@@ -8608,6 +8689,10 @@ type ImageSummary struct {
// The name of the image.
Name *string `locationName:"name" type:"string"`
+ // The operating system version of the instance. For example, Amazon Linux 2,
+ // Ubuntu 18, or Microsoft Windows Server 2019.
+ OsVersion *string `locationName:"osVersion" min:"1" type:"string"`
+
// The output resources produced when creating this image.
OutputResources *OutputResources `locationName:"outputResources" type:"structure"`
@@ -8655,6 +8740,12 @@ func (s *ImageSummary) SetName(v string) *ImageSummary {
return s
}
+// SetOsVersion sets the OsVersion field's value.
+func (s *ImageSummary) SetOsVersion(v string) *ImageSummary {
+ s.OsVersion = &v
+ return s
+}
+
// SetOutputResources sets the OutputResources field's value.
func (s *ImageSummary) SetOutputResources(v *OutputResources) *ImageSummary {
s.OutputResources = v
@@ -8750,6 +8841,10 @@ type ImageVersion struct {
// The name of the image semantic version.
Name *string `locationName:"name" type:"string"`
+ // The operating system version of the instance. For example, Amazon Linux 2,
+ // Ubuntu 18, or Microsoft Windows Server 2019.
+ OsVersion *string `locationName:"osVersion" min:"1" type:"string"`
+
// The owner of the image semantic version.
Owner *string `locationName:"owner" min:"1" type:"string"`
@@ -8788,6 +8883,12 @@ func (s *ImageVersion) SetName(v string) *ImageVersion {
return s
}
+// SetOsVersion sets the OsVersion field's value.
+func (s *ImageVersion) SetOsVersion(v string) *ImageVersion {
+ s.OsVersion = &v
+ return s
+}
+
// SetOwner sets the Owner field's value.
func (s *ImageVersion) SetOwner(v string) *ImageVersion {
s.Owner = &v
@@ -9315,8 +9416,8 @@ func (s *InstanceBlockDeviceMapping) SetVirtualName(v string) *InstanceBlockDevi
// You have provided an invalid pagination token in your request.
type InvalidPaginationTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9333,17 +9434,17 @@ func (s InvalidPaginationTokenException) GoString() string {
func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error {
return &InvalidPaginationTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPaginationTokenException) Code() string {
+func (s *InvalidPaginationTokenException) Code() string {
return "InvalidPaginationTokenException"
}
// Message returns the exception's message.
-func (s InvalidPaginationTokenException) Message() string {
+func (s *InvalidPaginationTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9351,29 +9452,29 @@ func (s InvalidPaginationTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPaginationTokenException) OrigErr() error {
+func (s *InvalidPaginationTokenException) OrigErr() error {
return nil
}
-func (s InvalidPaginationTokenException) Error() string {
+func (s *InvalidPaginationTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPaginationTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPaginationTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPaginationTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPaginationTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have specified two or more mutually exclusive parameters. Review the
// error message for details.
type InvalidParameterCombinationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9390,17 +9491,17 @@ func (s InvalidParameterCombinationException) GoString() string {
func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error {
return &InvalidParameterCombinationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterCombinationException) Code() string {
+func (s *InvalidParameterCombinationException) Code() string {
return "InvalidParameterCombinationException"
}
// Message returns the exception's message.
-func (s InvalidParameterCombinationException) Message() string {
+func (s *InvalidParameterCombinationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9408,29 +9509,29 @@ func (s InvalidParameterCombinationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterCombinationException) OrigErr() error {
+func (s *InvalidParameterCombinationException) OrigErr() error {
return nil
}
-func (s InvalidParameterCombinationException) Error() string {
+func (s *InvalidParameterCombinationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterCombinationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterCombinationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterCombinationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterCombinationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified parameter is invalid. Review the available parameters for the
// API request.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9447,17 +9548,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9465,28 +9566,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value that you provided for the specified parameter is invalid.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9503,17 +9604,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9521,28 +9622,28 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have made a request for an action that is not supported by the service.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9559,17 +9660,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9577,28 +9678,28 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your version number is out of bounds or does not follow the required syntax.
type InvalidVersionNumberException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9615,17 +9716,17 @@ func (s InvalidVersionNumberException) GoString() string {
func newErrorInvalidVersionNumberException(v protocol.ResponseMetadata) error {
return &InvalidVersionNumberException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidVersionNumberException) Code() string {
+func (s *InvalidVersionNumberException) Code() string {
return "InvalidVersionNumberException"
}
// Message returns the exception's message.
-func (s InvalidVersionNumberException) Message() string {
+func (s *InvalidVersionNumberException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9633,22 +9734,22 @@ func (s InvalidVersionNumberException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidVersionNumberException) OrigErr() error {
+func (s *InvalidVersionNumberException) OrigErr() error {
return nil
}
-func (s InvalidVersionNumberException) Error() string {
+func (s *InvalidVersionNumberException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidVersionNumberException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidVersionNumberException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidVersionNumberException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidVersionNumberException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the configuration for a launch permission. The launch permission
@@ -11168,8 +11269,8 @@ func (s *PutImageRecipePolicyOutput) SetRequestId(v string) *PutImageRecipePolic
// The resource that you are trying to create already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11186,17 +11287,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11204,29 +11305,29 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have attempted to mutate or delete a resource with a dependency that
// prohibits this action. See the error message for more details.
type ResourceDependencyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11243,17 +11344,17 @@ func (s ResourceDependencyException) GoString() string {
func newErrorResourceDependencyException(v protocol.ResponseMetadata) error {
return &ResourceDependencyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDependencyException) Code() string {
+func (s *ResourceDependencyException) Code() string {
return "ResourceDependencyException"
}
// Message returns the exception's message.
-func (s ResourceDependencyException) Message() string {
+func (s *ResourceDependencyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11261,29 +11362,29 @@ func (s ResourceDependencyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDependencyException) OrigErr() error {
+func (s *ResourceDependencyException) OrigErr() error {
return nil
}
-func (s ResourceDependencyException) Error() string {
+func (s *ResourceDependencyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDependencyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDependencyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDependencyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDependencyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource that you are trying to operate on is currently in use. Review
// the message details and retry later.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11300,17 +11401,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11318,28 +11419,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// At least one of the resources referenced by your request does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11356,17 +11457,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11374,22 +11475,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Amazon S3 logging configuration.
@@ -11494,8 +11595,8 @@ func (s *Schedule) SetScheduleExpression(v string) *Schedule {
// This exception is thrown when the service encounters an unrecoverable exception.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11512,17 +11613,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11530,28 +11631,28 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The service is unable to process your request at this time.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11568,17 +11669,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11586,22 +11687,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartImagePipelineExecutionInput struct {
@@ -11982,6 +12083,12 @@ type UpdateImagePipelineInput struct {
// be used to configure and distribute images updated by this image pipeline.
DistributionConfigurationArn *string `locationName:"distributionConfigurationArn" type:"string"`
+ // Collects additional information about the image being created, including
+ // the operating system (OS) version and package list. This information is used
+ // to enhance the overall experience of using EC2 Image Builder. Enabled by
+ // default.
+ EnhancedImageMetadataEnabled *bool `locationName:"enhancedImageMetadataEnabled" type:"boolean"`
+
// The Amazon Resource Name (ARN) of the image pipeline that you want to update.
//
// ImagePipelineArn is a required field
@@ -12072,6 +12179,12 @@ func (s *UpdateImagePipelineInput) SetDistributionConfigurationArn(v string) *Up
return s
}
+// SetEnhancedImageMetadataEnabled sets the EnhancedImageMetadataEnabled field's value.
+func (s *UpdateImagePipelineInput) SetEnhancedImageMetadataEnabled(v bool) *UpdateImagePipelineInput {
+ s.EnhancedImageMetadataEnabled = &v
+ return s
+}
+
// SetImagePipelineArn sets the ImagePipelineArn field's value.
func (s *UpdateImagePipelineInput) SetImagePipelineArn(v string) *UpdateImagePipelineInput {
s.ImagePipelineArn = &v
diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go
index 14961577ca9..f7e27d35cc4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go
@@ -4027,8 +4027,8 @@ func (c *Inspector) UpdateAssessmentTargetWithContext(ctx aws.Context, input *Up
// You do not have required permissions to access the requested resource.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -4056,17 +4056,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4074,22 +4074,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AddAttributesToFindingsInput struct {
@@ -4373,8 +4373,8 @@ func (s *AgentPreview) SetOperatingSystem(v string) *AgentPreview {
// You started an assessment run, but one of the instances is already participating
// in another assessment run.
type AgentsAlreadyRunningAssessmentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Agents is a required field
Agents []*AgentAlreadyRunningAssessment `locationName:"agents" min:"1" type:"list" required:"true"`
@@ -4403,17 +4403,17 @@ func (s AgentsAlreadyRunningAssessmentException) GoString() string {
func newErrorAgentsAlreadyRunningAssessmentException(v protocol.ResponseMetadata) error {
return &AgentsAlreadyRunningAssessmentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AgentsAlreadyRunningAssessmentException) Code() string {
+func (s *AgentsAlreadyRunningAssessmentException) Code() string {
return "AgentsAlreadyRunningAssessmentException"
}
// Message returns the exception's message.
-func (s AgentsAlreadyRunningAssessmentException) Message() string {
+func (s *AgentsAlreadyRunningAssessmentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4421,22 +4421,22 @@ func (s AgentsAlreadyRunningAssessmentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AgentsAlreadyRunningAssessmentException) OrigErr() error {
+func (s *AgentsAlreadyRunningAssessmentException) OrigErr() error {
return nil
}
-func (s AgentsAlreadyRunningAssessmentException) Error() string {
+func (s *AgentsAlreadyRunningAssessmentException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AgentsAlreadyRunningAssessmentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AgentsAlreadyRunningAssessmentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AgentsAlreadyRunningAssessmentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AgentsAlreadyRunningAssessmentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A snapshot of an Amazon Inspector assessment run that contains the findings
@@ -4827,8 +4827,8 @@ func (s *AssessmentRunFilter) SetStates(v []*string) *AssessmentRunFilter {
// You cannot perform a specified action if an assessment run is currently in
// progress.
type AssessmentRunInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The ARNs of the assessment runs that are currently in progress.
//
@@ -4862,17 +4862,17 @@ func (s AssessmentRunInProgressException) GoString() string {
func newErrorAssessmentRunInProgressException(v protocol.ResponseMetadata) error {
return &AssessmentRunInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssessmentRunInProgressException) Code() string {
+func (s *AssessmentRunInProgressException) Code() string {
return "AssessmentRunInProgressException"
}
// Message returns the exception's message.
-func (s AssessmentRunInProgressException) Message() string {
+func (s *AssessmentRunInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4880,22 +4880,22 @@ func (s AssessmentRunInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssessmentRunInProgressException) OrigErr() error {
+func (s *AssessmentRunInProgressException) OrigErr() error {
return nil
}
-func (s AssessmentRunInProgressException) Error() string {
+func (s *AssessmentRunInProgressException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssessmentRunInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssessmentRunInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssessmentRunInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssessmentRunInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Used as one of the elements of the AssessmentRun data type.
@@ -7529,8 +7529,8 @@ func (s *GetTelemetryMetadataOutput) SetTelemetryMetadata(v []*TelemetryMetadata
// Internal server error.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -7553,17 +7553,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7571,29 +7571,29 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Amazon Inspector cannot assume the cross-account role that it needs to list
// your EC2 instances during the assessment run.
type InvalidCrossAccountRoleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -7621,17 +7621,17 @@ func (s InvalidCrossAccountRoleException) GoString() string {
func newErrorInvalidCrossAccountRoleException(v protocol.ResponseMetadata) error {
return &InvalidCrossAccountRoleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCrossAccountRoleException) Code() string {
+func (s *InvalidCrossAccountRoleException) Code() string {
return "InvalidCrossAccountRoleException"
}
// Message returns the exception's message.
-func (s InvalidCrossAccountRoleException) Message() string {
+func (s *InvalidCrossAccountRoleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7639,29 +7639,29 @@ func (s InvalidCrossAccountRoleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCrossAccountRoleException) OrigErr() error {
+func (s *InvalidCrossAccountRoleException) OrigErr() error {
return nil
}
-func (s InvalidCrossAccountRoleException) Error() string {
+func (s *InvalidCrossAccountRoleException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCrossAccountRoleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCrossAccountRoleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCrossAccountRoleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCrossAccountRoleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -7689,17 +7689,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7707,29 +7707,29 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because it attempted to create resources beyond
// the current AWS account limits. The error code describes the limit exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -7757,17 +7757,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7775,22 +7775,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAssessmentRunAgentsInput struct {
@@ -8834,8 +8834,8 @@ func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
// The request was rejected because it referenced an entity that does not exist.
// The error code describes the entity.
type NoSuchEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can immediately retry your request.
//
@@ -8863,17 +8863,17 @@ func (s NoSuchEntityException) GoString() string {
func newErrorNoSuchEntityException(v protocol.ResponseMetadata) error {
return &NoSuchEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchEntityException) Code() string {
+func (s *NoSuchEntityException) Code() string {
return "NoSuchEntityException"
}
// Message returns the exception's message.
-func (s NoSuchEntityException) Message() string {
+func (s *NoSuchEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8881,22 +8881,22 @@ func (s NoSuchEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchEntityException) OrigErr() error {
+func (s *NoSuchEntityException) OrigErr() error {
return nil
}
-func (s NoSuchEntityException) Error() string {
+func (s *NoSuchEntityException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PreviewAgentsInput struct {
@@ -9005,8 +9005,8 @@ func (s *PreviewAgentsOutput) SetNextToken(v string) *PreviewAgentsOutput {
// The request is rejected. The specified assessment template is currently generating
// an exclusions preview.
type PreviewGenerationInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9023,17 +9023,17 @@ func (s PreviewGenerationInProgressException) GoString() string {
func newErrorPreviewGenerationInProgressException(v protocol.ResponseMetadata) error {
return &PreviewGenerationInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreviewGenerationInProgressException) Code() string {
+func (s *PreviewGenerationInProgressException) Code() string {
return "PreviewGenerationInProgressException"
}
// Message returns the exception's message.
-func (s PreviewGenerationInProgressException) Message() string {
+func (s *PreviewGenerationInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9041,22 +9041,22 @@ func (s PreviewGenerationInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreviewGenerationInProgressException) OrigErr() error {
+func (s *PreviewGenerationInProgressException) OrigErr() error {
return nil
}
-func (s PreviewGenerationInProgressException) Error() string {
+func (s *PreviewGenerationInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreviewGenerationInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreviewGenerationInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreviewGenerationInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreviewGenerationInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a private IP address associated with a network
@@ -9520,8 +9520,8 @@ func (s *ServiceAttributes) SetSchemaVersion(v int64) *ServiceAttributes {
// The serice is temporary unavailable.
type ServiceTemporarilyUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// You can wait and then retry your request.
//
@@ -9544,17 +9544,17 @@ func (s ServiceTemporarilyUnavailableException) GoString() string {
func newErrorServiceTemporarilyUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceTemporarilyUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceTemporarilyUnavailableException) Code() string {
+func (s *ServiceTemporarilyUnavailableException) Code() string {
return "ServiceTemporarilyUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceTemporarilyUnavailableException) Message() string {
+func (s *ServiceTemporarilyUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9562,22 +9562,22 @@ func (s ServiceTemporarilyUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceTemporarilyUnavailableException) OrigErr() error {
+func (s *ServiceTemporarilyUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceTemporarilyUnavailableException) Error() string {
+func (s *ServiceTemporarilyUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceTemporarilyUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceTemporarilyUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceTemporarilyUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceTemporarilyUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SetTagsForResourceInput struct {
@@ -10171,8 +10171,8 @@ func (s UnsubscribeFromEventOutput) GoString() string {
// runs that took place or will take place after generating reports in Amazon
// Inspector became available.
type UnsupportedFeatureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// CanRetry is a required field
CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"`
@@ -10192,17 +10192,17 @@ func (s UnsupportedFeatureException) GoString() string {
func newErrorUnsupportedFeatureException(v protocol.ResponseMetadata) error {
return &UnsupportedFeatureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedFeatureException) Code() string {
+func (s *UnsupportedFeatureException) Code() string {
return "UnsupportedFeatureException"
}
// Message returns the exception's message.
-func (s UnsupportedFeatureException) Message() string {
+func (s *UnsupportedFeatureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10210,22 +10210,22 @@ func (s UnsupportedFeatureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedFeatureException) OrigErr() error {
+func (s *UnsupportedFeatureException) OrigErr() error {
return nil
}
-func (s UnsupportedFeatureException) Error() string {
+func (s *UnsupportedFeatureException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedFeatureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedFeatureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedFeatureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedFeatureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateAssessmentTargetInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go b/vendor/github.com/aws/aws-sdk-go/service/iot/api.go
index 24d353e1765..411f5635027 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iot/api.go
@@ -1725,6 +1725,97 @@ func (c *IoT) CreateCertificateFromCsrWithContext(ctx aws.Context, input *Create
return out, req.Send()
}
+const opCreateDimension = "CreateDimension"
+
+// CreateDimensionRequest generates a "aws/request.Request" representing the
+// client's request for the CreateDimension operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateDimension for more information on using the CreateDimension
+// 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 CreateDimensionRequest method.
+// req, resp := client.CreateDimensionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *IoT) CreateDimensionRequest(input *CreateDimensionInput) (req *request.Request, output *CreateDimensionOutput) {
+ op := &request.Operation{
+ Name: opCreateDimension,
+ HTTPMethod: "POST",
+ HTTPPath: "/dimensions/{name}",
+ }
+
+ if input == nil {
+ input = &CreateDimensionInput{}
+ }
+
+ output = &CreateDimensionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateDimension API operation for AWS IoT.
+//
+// Create a dimension that you can use to limit the scope of a metric used in
+// a security profile for AWS IoT Device Defender. For example, using a TOPIC_FILTER
+// dimension, you can narrow down the scope of the metric only to MQTT topics
+// whose name match the pattern specified in the dimension.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT's
+// API operation CreateDimension for usage and error information.
+//
+// Returned Error Types:
+// * InternalFailureException
+// An unexpected error has occurred.
+//
+// * InvalidRequestException
+// The request is not valid.
+//
+// * LimitExceededException
+// A limit has been exceeded.
+//
+// * ResourceAlreadyExistsException
+// The resource already exists.
+//
+// * ThrottlingException
+// The rate exceeds the limit.
+//
+func (c *IoT) CreateDimension(input *CreateDimensionInput) (*CreateDimensionOutput, error) {
+ req, out := c.CreateDimensionRequest(input)
+ return out, req.Send()
+}
+
+// CreateDimensionWithContext is the same as CreateDimension with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateDimension 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 *IoT) CreateDimensionWithContext(ctx aws.Context, input *CreateDimensionInput, opts ...request.Option) (*CreateDimensionOutput, error) {
+ req, out := c.CreateDimensionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateDomainConfiguration = "CreateDomainConfiguration"
// CreateDomainConfigurationRequest generates a "aws/request.Request" representing the
@@ -4065,6 +4156,89 @@ func (c *IoT) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertifi
return out, req.Send()
}
+const opDeleteDimension = "DeleteDimension"
+
+// DeleteDimensionRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDimension operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteDimension for more information on using the DeleteDimension
+// 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 DeleteDimensionRequest method.
+// req, resp := client.DeleteDimensionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *IoT) DeleteDimensionRequest(input *DeleteDimensionInput) (req *request.Request, output *DeleteDimensionOutput) {
+ op := &request.Operation{
+ Name: opDeleteDimension,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/dimensions/{name}",
+ }
+
+ if input == nil {
+ input = &DeleteDimensionInput{}
+ }
+
+ output = &DeleteDimensionOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteDimension API operation for AWS IoT.
+//
+// Removes the specified dimension from your AWS account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT's
+// API operation DeleteDimension for usage and error information.
+//
+// Returned Error Types:
+// * InternalFailureException
+// An unexpected error has occurred.
+//
+// * InvalidRequestException
+// The request is not valid.
+//
+// * ThrottlingException
+// The rate exceeds the limit.
+//
+func (c *IoT) DeleteDimension(input *DeleteDimensionInput) (*DeleteDimensionOutput, error) {
+ req, out := c.DeleteDimensionRequest(input)
+ return out, req.Send()
+}
+
+// DeleteDimensionWithContext is the same as DeleteDimension with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteDimension 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 *IoT) DeleteDimensionWithContext(ctx aws.Context, input *DeleteDimensionInput, opts ...request.Option) (*DeleteDimensionOutput, error) {
+ req, out := c.DeleteDimensionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteDomainConfiguration = "DeleteDomainConfiguration"
// DeleteDomainConfigurationRequest generates a "aws/request.Request" representing the
@@ -6884,6 +7058,91 @@ func (c *IoT) DescribeDefaultAuthorizerWithContext(ctx aws.Context, input *Descr
return out, req.Send()
}
+const opDescribeDimension = "DescribeDimension"
+
+// DescribeDimensionRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDimension operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeDimension for more information on using the DescribeDimension
+// 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 DescribeDimensionRequest method.
+// req, resp := client.DescribeDimensionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *IoT) DescribeDimensionRequest(input *DescribeDimensionInput) (req *request.Request, output *DescribeDimensionOutput) {
+ op := &request.Operation{
+ Name: opDescribeDimension,
+ HTTPMethod: "GET",
+ HTTPPath: "/dimensions/{name}",
+ }
+
+ if input == nil {
+ input = &DescribeDimensionInput{}
+ }
+
+ output = &DescribeDimensionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeDimension API operation for AWS IoT.
+//
+// Provides details about a dimension that is defined in your AWS account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT's
+// API operation DescribeDimension for usage and error information.
+//
+// Returned Error Types:
+// * InternalFailureException
+// An unexpected error has occurred.
+//
+// * InvalidRequestException
+// The request is not valid.
+//
+// * ResourceNotFoundException
+// The specified resource does not exist.
+//
+// * ThrottlingException
+// The rate exceeds the limit.
+//
+func (c *IoT) DescribeDimension(input *DescribeDimensionInput) (*DescribeDimensionOutput, error) {
+ req, out := c.DescribeDimensionRequest(input)
+ return out, req.Send()
+}
+
+// DescribeDimensionWithContext is the same as DescribeDimension with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeDimension 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 *IoT) DescribeDimensionWithContext(ctx aws.Context, input *DescribeDimensionInput, opts ...request.Option) (*DescribeDimensionOutput, error) {
+ req, out := c.DescribeDimensionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeDomainConfiguration = "DescribeDomainConfiguration"
// DescribeDomainConfigurationRequest generates a "aws/request.Request" representing the
@@ -11156,6 +11415,88 @@ func (c *IoT) ListCertificatesByCAWithContext(ctx aws.Context, input *ListCertif
return out, req.Send()
}
+const opListDimensions = "ListDimensions"
+
+// ListDimensionsRequest generates a "aws/request.Request" representing the
+// client's request for the ListDimensions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListDimensions for more information on using the ListDimensions
+// 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 ListDimensionsRequest method.
+// req, resp := client.ListDimensionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *IoT) ListDimensionsRequest(input *ListDimensionsInput) (req *request.Request, output *ListDimensionsOutput) {
+ op := &request.Operation{
+ Name: opListDimensions,
+ HTTPMethod: "GET",
+ HTTPPath: "/dimensions",
+ }
+
+ if input == nil {
+ input = &ListDimensionsInput{}
+ }
+
+ output = &ListDimensionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListDimensions API operation for AWS IoT.
+//
+// List the set of dimensions that are defined for your AWS account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT's
+// API operation ListDimensions for usage and error information.
+//
+// Returned Error Types:
+// * InternalFailureException
+// An unexpected error has occurred.
+//
+// * InvalidRequestException
+// The request is not valid.
+//
+// * ThrottlingException
+// The rate exceeds the limit.
+//
+func (c *IoT) ListDimensions(input *ListDimensionsInput) (*ListDimensionsOutput, error) {
+ req, out := c.ListDimensionsRequest(input)
+ return out, req.Send()
+}
+
+// ListDimensionsWithContext is the same as ListDimensions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListDimensions 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 *IoT) ListDimensionsWithContext(ctx aws.Context, input *ListDimensionsInput, opts ...request.Option) (*ListDimensionsOutput, error) {
+ req, out := c.ListDimensionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListDomainConfigurations = "ListDomainConfigurations"
// ListDomainConfigurationsRequest generates a "aws/request.Request" representing the
@@ -12731,6 +13072,9 @@ func (c *IoT) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req
// * InternalFailureException
// An unexpected error has occurred.
//
+// * ResourceNotFoundException
+// The specified resource does not exist.
+//
func (c *IoT) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) {
req, out := c.ListSecurityProfilesRequest(input)
return out, req.Send()
@@ -15416,6 +15760,9 @@ func (c *IoT) SetV2LoggingLevelRequest(input *SetV2LoggingLevelInput) (req *requ
// * ServiceUnavailableException
// The service is temporarily unavailable.
//
+// * LimitExceededException
+// A limit has been exceeded.
+//
func (c *IoT) SetV2LoggingLevel(input *SetV2LoggingLevelInput) (*SetV2LoggingLevelOutput, error) {
req, out := c.SetV2LoggingLevelRequest(input)
return out, req.Send()
@@ -16806,6 +17153,92 @@ func (c *IoT) UpdateCertificateWithContext(ctx aws.Context, input *UpdateCertifi
return out, req.Send()
}
+const opUpdateDimension = "UpdateDimension"
+
+// UpdateDimensionRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateDimension operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateDimension for more information on using the UpdateDimension
+// 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 UpdateDimensionRequest method.
+// req, resp := client.UpdateDimensionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *IoT) UpdateDimensionRequest(input *UpdateDimensionInput) (req *request.Request, output *UpdateDimensionOutput) {
+ op := &request.Operation{
+ Name: opUpdateDimension,
+ HTTPMethod: "PATCH",
+ HTTPPath: "/dimensions/{name}",
+ }
+
+ if input == nil {
+ input = &UpdateDimensionInput{}
+ }
+
+ output = &UpdateDimensionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateDimension API operation for AWS IoT.
+//
+// Updates the definition for a dimension. You cannot change the type of a dimension
+// after it is created (you can delete it and re-create it).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT's
+// API operation UpdateDimension for usage and error information.
+//
+// Returned Error Types:
+// * InternalFailureException
+// An unexpected error has occurred.
+//
+// * InvalidRequestException
+// The request is not valid.
+//
+// * ResourceNotFoundException
+// The specified resource does not exist.
+//
+// * ThrottlingException
+// The rate exceeds the limit.
+//
+func (c *IoT) UpdateDimension(input *UpdateDimensionInput) (*UpdateDimensionOutput, error) {
+ req, out := c.UpdateDimensionRequest(input)
+ return out, req.Send()
+}
+
+// UpdateDimensionWithContext is the same as UpdateDimension with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateDimension 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 *IoT) UpdateDimensionWithContext(ctx aws.Context, input *UpdateDimensionInput, opts ...request.Option) (*UpdateDimensionOutput, error) {
+ req, out := c.UpdateDimensionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdateDomainConfiguration = "UpdateDomainConfiguration"
// UpdateDomainConfigurationRequest generates a "aws/request.Request" representing the
@@ -18442,7 +18875,7 @@ type Action struct {
// Change the state of a CloudWatch alarm.
CloudwatchAlarm *CloudwatchAlarmAction `locationName:"cloudwatchAlarm" type:"structure"`
- // Send data to CloudWatch logs.
+ // Send data to CloudWatch Logs.
CloudwatchLogs *CloudwatchLogsAction `locationName:"cloudwatchLogs" type:"structure"`
// Capture a CloudWatch metric.
@@ -20585,6 +21018,11 @@ type Behavior struct {
// What is measured by the behavior.
Metric *string `locationName:"metric" type:"string"`
+ // The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
+ // dimension, you can narrow down the scope of the metric only to MQTT topics
+ // whose name match the pattern specified in the dimension.
+ MetricDimension *MetricDimension `locationName:"metricDimension" type:"structure"`
+
// The name you have given to the behavior.
//
// Name is a required field
@@ -20615,6 +21053,11 @@ func (s *Behavior) Validate() error {
invalidParams.AddNested("Criteria", err.(request.ErrInvalidParams))
}
}
+ if s.MetricDimension != nil {
+ if err := s.MetricDimension.Validate(); err != nil {
+ invalidParams.AddNested("MetricDimension", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -20634,6 +21077,12 @@ func (s *Behavior) SetMetric(v string) *Behavior {
return s
}
+// SetMetricDimension sets the MetricDimension field's value.
+func (s *Behavior) SetMetricDimension(v *MetricDimension) *Behavior {
+ s.MetricDimension = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *Behavior) SetName(v string) *Behavior {
s.Name = &v
@@ -21408,8 +21857,8 @@ func (s *Certificate) SetStatus(v string) *Certificate {
// are attempting to register. This is happens when you have registered more
// than one CA certificate that has the same subject field and public key.
type CertificateConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -21427,17 +21876,17 @@ func (s CertificateConflictException) GoString() string {
func newErrorCertificateConflictException(v protocol.ResponseMetadata) error {
return &CertificateConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateConflictException) Code() string {
+func (s *CertificateConflictException) Code() string {
return "CertificateConflictException"
}
// Message returns the exception's message.
-func (s CertificateConflictException) Message() string {
+func (s *CertificateConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21445,22 +21894,22 @@ func (s CertificateConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateConflictException) OrigErr() error {
+func (s *CertificateConflictException) OrigErr() error {
return nil
}
-func (s CertificateConflictException) Error() string {
+func (s *CertificateConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a certificate.
@@ -21597,8 +22046,8 @@ func (s *CertificateDescription) SetValidity(v *CertificateValidity) *Certificat
// The certificate operation is not allowed.
type CertificateStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -21616,17 +22065,17 @@ func (s CertificateStateException) GoString() string {
func newErrorCertificateStateException(v protocol.ResponseMetadata) error {
return &CertificateStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateStateException) Code() string {
+func (s *CertificateStateException) Code() string {
return "CertificateStateException"
}
// Message returns the exception's message.
-func (s CertificateStateException) Message() string {
+func (s *CertificateStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21634,28 +22083,28 @@ func (s CertificateStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateStateException) OrigErr() error {
+func (s *CertificateStateException) OrigErr() error {
return nil
}
-func (s CertificateStateException) Error() string {
+func (s *CertificateStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The certificate is invalid.
type CertificateValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -21673,17 +22122,17 @@ func (s CertificateValidationException) GoString() string {
func newErrorCertificateValidationException(v protocol.ResponseMetadata) error {
return &CertificateValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CertificateValidationException) Code() string {
+func (s *CertificateValidationException) Code() string {
return "CertificateValidationException"
}
// Message returns the exception's message.
-func (s CertificateValidationException) Message() string {
+func (s *CertificateValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21691,22 +22140,22 @@ func (s CertificateValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CertificateValidationException) OrigErr() error {
+func (s *CertificateValidationException) OrigErr() error {
return nil
}
-func (s CertificateValidationException) Error() string {
+func (s *CertificateValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CertificateValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CertificateValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CertificateValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CertificateValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// When the certificate is valid.
@@ -21851,7 +22300,7 @@ func (s *CloudwatchAlarmAction) SetStateValue(v string) *CloudwatchAlarmAction {
return s
}
-// Describes an action that sends data to CloudWatch logs.
+// Describes an action that sends data to CloudWatch Logs.
type CloudwatchLogsAction struct {
_ struct{} `type:"structure"`
@@ -22208,8 +22657,8 @@ func (s ConfirmTopicRuleDestinationOutput) GoString() string {
// A conflicting resource update exception. This exception is thrown when two
// pending updates cause a conflict.
type ConflictingResourceUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -22227,17 +22676,17 @@ func (s ConflictingResourceUpdateException) GoString() string {
func newErrorConflictingResourceUpdateException(v protocol.ResponseMetadata) error {
return &ConflictingResourceUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictingResourceUpdateException) Code() string {
+func (s *ConflictingResourceUpdateException) Code() string {
return "ConflictingResourceUpdateException"
}
// Message returns the exception's message.
-func (s ConflictingResourceUpdateException) Message() string {
+func (s *ConflictingResourceUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22245,22 +22694,22 @@ func (s ConflictingResourceUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictingResourceUpdateException) OrigErr() error {
+func (s *ConflictingResourceUpdateException) OrigErr() error {
return nil
}
-func (s ConflictingResourceUpdateException) Error() string {
+func (s *ConflictingResourceUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictingResourceUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictingResourceUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictingResourceUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictingResourceUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateAuthorizerInput struct {
@@ -22586,6 +23035,137 @@ func (s *CreateCertificateFromCsrOutput) SetCertificatePem(v string) *CreateCert
return s
}
+type CreateDimensionInput struct {
+ _ struct{} `type:"structure"`
+
+ // Each dimension must have a unique client request token. If you try to create
+ // a new dimension with the same token as a dimension that already exists, an
+ // exception occurs. If you omit this value, AWS SDKs will automatically generate
+ // a unique client request.
+ ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`
+
+ // A unique identifier for the dimension. Choose something that describes the
+ // type and value to make it easy to remember what it does.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
+
+ // Specifies the value or list of values for the dimension. For TOPIC_FILTER
+ // dimensions, this is a pattern used to match the MQTT topic (for example,
+ // "admin/#").
+ //
+ // StringValues is a required field
+ StringValues []*string `locationName:"stringValues" min:"1" type:"list" required:"true"`
+
+ // Metadata that can be used to manage the dimension.
+ Tags []*Tag `locationName:"tags" type:"list"`
+
+ // Specifies the type of dimension. Supported types: TOPIC_FILTER.
+ //
+ // Type is a required field
+ Type *string `locationName:"type" type:"string" required:"true" enum:"DimensionType"`
+}
+
+// String returns the string representation
+func (s CreateDimensionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateDimensionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateDimensionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateDimensionInput"}
+ if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.StringValues == nil {
+ invalidParams.Add(request.NewErrParamRequired("StringValues"))
+ }
+ if s.StringValues != nil && len(s.StringValues) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("StringValues", 1))
+ }
+ if s.Type == nil {
+ invalidParams.Add(request.NewErrParamRequired("Type"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *CreateDimensionInput) SetClientRequestToken(v string) *CreateDimensionInput {
+ s.ClientRequestToken = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *CreateDimensionInput) SetName(v string) *CreateDimensionInput {
+ s.Name = &v
+ return s
+}
+
+// SetStringValues sets the StringValues field's value.
+func (s *CreateDimensionInput) SetStringValues(v []*string) *CreateDimensionInput {
+ s.StringValues = v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateDimensionInput) SetTags(v []*Tag) *CreateDimensionInput {
+ s.Tags = v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *CreateDimensionInput) SetType(v string) *CreateDimensionInput {
+ s.Type = &v
+ return s
+}
+
+type CreateDimensionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN (Amazon resource name) of the created dimension.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // A unique identifier for the dimension.
+ Name *string `locationName:"name" min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s CreateDimensionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateDimensionOutput) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *CreateDimensionOutput) SetArn(v string) *CreateDimensionOutput {
+ s.Arn = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *CreateDimensionOutput) SetName(v string) *CreateDimensionOutput {
+ s.Name = &v
+ return s
+}
+
type CreateDomainConfigurationInput struct {
_ struct{} `type:"structure"`
@@ -24361,7 +24941,17 @@ type CreateSecurityProfileInput struct {
// A list of metrics whose data is retained (stored). By default, data is retained
// for any metric used in the profile's behaviors, but it is also retained for
// any metric specified here.
- AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" type:"list"`
+ //
+ // Note: This API field is deprecated. Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2
+ // instead.
+ //
+ // Deprecated: Use additionalMetricsToRetainV2.
+ AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" deprecated:"true" type:"list"`
+
+ // A list of metrics whose data is retained (stored). By default, data is retained
+ // for any metric used in the profile's behaviors, but it is also retained for
+ // any metric specified here.
+ AdditionalMetricsToRetainV2 []*MetricToRetain `locationName:"additionalMetricsToRetainV2" type:"list"`
// Specifies the destinations to which alerts are sent. (Alerts are always sent
// to the console.) Alerts are generated when a device (thing) violates a behavior.
@@ -24402,6 +24992,16 @@ func (s *CreateSecurityProfileInput) Validate() error {
if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
}
+ if s.AdditionalMetricsToRetainV2 != nil {
+ for i, v := range s.AdditionalMetricsToRetainV2 {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalMetricsToRetainV2", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if s.AlertTargets != nil {
for i, v := range s.AlertTargets {
if v == nil {
@@ -24435,6 +25035,12 @@ func (s *CreateSecurityProfileInput) SetAdditionalMetricsToRetain(v []*string) *
return s
}
+// SetAdditionalMetricsToRetainV2 sets the AdditionalMetricsToRetainV2 field's value.
+func (s *CreateSecurityProfileInput) SetAdditionalMetricsToRetainV2(v []*MetricToRetain) *CreateSecurityProfileInput {
+ s.AdditionalMetricsToRetainV2 = v
+ return s
+}
+
// SetAlertTargets sets the AlertTargets field's value.
func (s *CreateSecurityProfileInput) SetAlertTargets(v map[string]*AlertTarget) *CreateSecurityProfileInput {
s.AlertTargets = v
@@ -25479,8 +26085,8 @@ func (s DeleteCertificateOutput) GoString() string {
// You can't delete the resource because it is attached to one or more resources.
type DeleteConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -25498,17 +26104,17 @@ func (s DeleteConflictException) GoString() string {
func newErrorDeleteConflictException(v protocol.ResponseMetadata) error {
return &DeleteConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeleteConflictException) Code() string {
+func (s *DeleteConflictException) Code() string {
return "DeleteConflictException"
}
// Message returns the exception's message.
-func (s DeleteConflictException) Message() string {
+func (s *DeleteConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -25516,22 +26122,77 @@ func (s DeleteConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeleteConflictException) OrigErr() error {
+func (s *DeleteConflictException) OrigErr() error {
return nil
}
-func (s DeleteConflictException) Error() string {
+func (s *DeleteConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeleteConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeleteConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeleteConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeleteConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type DeleteDimensionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier for the dimension that you want to delete.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteDimensionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDimensionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDimensionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDimensionInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *DeleteDimensionInput) SetName(v string) *DeleteDimensionInput {
+ s.Name = &v
+ return s
+}
+
+type DeleteDimensionOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteDimensionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDimensionOutput) GoString() string {
+ return s.String()
}
type DeleteDomainConfigurationInput struct {
@@ -27655,6 +28316,116 @@ func (s *DescribeDefaultAuthorizerOutput) SetAuthorizerDescription(v *Authorizer
return s
}
+type DescribeDimensionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier for the dimension.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DescribeDimensionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeDimensionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeDimensionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDimensionInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *DescribeDimensionInput) SetName(v string) *DescribeDimensionInput {
+ s.Name = &v
+ return s
+}
+
+type DescribeDimensionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN (Amazon resource name) for the dimension.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // The date the dimension was created.
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
+
+ // The date the dimension was last modified.
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
+
+ // The unique identifier for the dimension.
+ Name *string `locationName:"name" min:"1" type:"string"`
+
+ // The value or list of values used to scope the dimension. For example, for
+ // topic filters, this is the pattern used to match the MQTT topic name.
+ StringValues []*string `locationName:"stringValues" min:"1" type:"list"`
+
+ // The type of the dimension.
+ Type *string `locationName:"type" type:"string" enum:"DimensionType"`
+}
+
+// String returns the string representation
+func (s DescribeDimensionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeDimensionOutput) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *DescribeDimensionOutput) SetArn(v string) *DescribeDimensionOutput {
+ s.Arn = &v
+ return s
+}
+
+// SetCreationDate sets the CreationDate field's value.
+func (s *DescribeDimensionOutput) SetCreationDate(v time.Time) *DescribeDimensionOutput {
+ s.CreationDate = &v
+ return s
+}
+
+// SetLastModifiedDate sets the LastModifiedDate field's value.
+func (s *DescribeDimensionOutput) SetLastModifiedDate(v time.Time) *DescribeDimensionOutput {
+ s.LastModifiedDate = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *DescribeDimensionOutput) SetName(v string) *DescribeDimensionOutput {
+ s.Name = &v
+ return s
+}
+
+// SetStringValues sets the StringValues field's value.
+func (s *DescribeDimensionOutput) SetStringValues(v []*string) *DescribeDimensionOutput {
+ s.StringValues = v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *DescribeDimensionOutput) SetType(v string) *DescribeDimensionOutput {
+ s.Type = &v
+ return s
+}
+
type DescribeDomainConfigurationInput struct {
_ struct{} `type:"structure"`
@@ -28754,7 +29525,17 @@ type DescribeSecurityProfileOutput struct {
// A list of metrics whose data is retained (stored). By default, data is retained
// for any metric used in the profile's behaviors, but it is also retained for
// any metric specified here.
- AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" type:"list"`
+ //
+ // Note: This API field is deprecated. Please use DescribeSecurityProfileResponse$additionalMetricsToRetainV2
+ // instead.
+ //
+ // Deprecated: Use additionalMetricsToRetainV2.
+ AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" deprecated:"true" type:"list"`
+
+ // A list of metrics whose data is retained (stored). By default, data is retained
+ // for any metric used in the profile's behaviors, but it is also retained for
+ // any metric specified here.
+ AdditionalMetricsToRetainV2 []*MetricToRetain `locationName:"additionalMetricsToRetainV2" type:"list"`
// Where the alerts are sent. (Alerts are always sent to the console.)
AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
@@ -28800,6 +29581,12 @@ func (s *DescribeSecurityProfileOutput) SetAdditionalMetricsToRetain(v []*string
return s
}
+// SetAdditionalMetricsToRetainV2 sets the AdditionalMetricsToRetainV2 field's value.
+func (s *DescribeSecurityProfileOutput) SetAdditionalMetricsToRetainV2(v []*MetricToRetain) *DescribeSecurityProfileOutput {
+ s.AdditionalMetricsToRetainV2 = v
+ return s
+}
+
// SetAlertTargets sets the AlertTargets field's value.
func (s *DescribeSecurityProfileOutput) SetAlertTargets(v map[string]*AlertTarget) *DescribeSecurityProfileOutput {
s.AlertTargets = v
@@ -31794,7 +32581,7 @@ type HttpAction struct {
// URL must be a prefix of the endpoint URL. If you do not specify a confirmation
// URL AWS IoT uses the endpoint URL as the confirmation URL. If you use substitution
// templates in the confirmationUrl, you must create and enable topic rule destinations
- // that match each possible value of the substituion template before traffic
+ // that match each possible value of the substitution template before traffic
// is allowed to your endpoint URL.
ConfirmationUrl *string `locationName:"confirmationUrl" type:"string"`
@@ -32130,8 +32917,8 @@ func (s *ImplicitDeny) SetPolicies(v []*Policy) *ImplicitDeny {
// The index is not ready.
type IndexNotReadyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32149,17 +32936,17 @@ func (s IndexNotReadyException) GoString() string {
func newErrorIndexNotReadyException(v protocol.ResponseMetadata) error {
return &IndexNotReadyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IndexNotReadyException) Code() string {
+func (s *IndexNotReadyException) Code() string {
return "IndexNotReadyException"
}
// Message returns the exception's message.
-func (s IndexNotReadyException) Message() string {
+func (s *IndexNotReadyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32167,28 +32954,28 @@ func (s IndexNotReadyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IndexNotReadyException) OrigErr() error {
+func (s *IndexNotReadyException) OrigErr() error {
return nil
}
-func (s IndexNotReadyException) Error() string {
+func (s *IndexNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IndexNotReadyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IndexNotReadyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IndexNotReadyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IndexNotReadyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An unexpected error has occurred.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32206,17 +32993,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32224,28 +33011,28 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An unexpected error has occurred.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32263,17 +33050,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32281,28 +33068,28 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The aggregation is invalid.
type InvalidAggregationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -32319,17 +33106,17 @@ func (s InvalidAggregationException) GoString() string {
func newErrorInvalidAggregationException(v protocol.ResponseMetadata) error {
return &InvalidAggregationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAggregationException) Code() string {
+func (s *InvalidAggregationException) Code() string {
return "InvalidAggregationException"
}
// Message returns the exception's message.
-func (s InvalidAggregationException) Message() string {
+func (s *InvalidAggregationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32337,28 +33124,28 @@ func (s InvalidAggregationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAggregationException) OrigErr() error {
+func (s *InvalidAggregationException) OrigErr() error {
return nil
}
-func (s InvalidAggregationException) Error() string {
+func (s *InvalidAggregationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAggregationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAggregationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAggregationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAggregationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The query is invalid.
type InvalidQueryException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32376,17 +33163,17 @@ func (s InvalidQueryException) GoString() string {
func newErrorInvalidQueryException(v protocol.ResponseMetadata) error {
return &InvalidQueryException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidQueryException) Code() string {
+func (s *InvalidQueryException) Code() string {
return "InvalidQueryException"
}
// Message returns the exception's message.
-func (s InvalidQueryException) Message() string {
+func (s *InvalidQueryException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32394,28 +33181,28 @@ func (s InvalidQueryException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidQueryException) OrigErr() error {
+func (s *InvalidQueryException) OrigErr() error {
return nil
}
-func (s InvalidQueryException) Error() string {
+func (s *InvalidQueryException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidQueryException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidQueryException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidQueryException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidQueryException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is not valid.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32433,17 +33220,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32451,28 +33238,28 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The response is invalid.
type InvalidResponseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32490,17 +33277,17 @@ func (s InvalidResponseException) GoString() string {
func newErrorInvalidResponseException(v protocol.ResponseMetadata) error {
return &InvalidResponseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResponseException) Code() string {
+func (s *InvalidResponseException) Code() string {
return "InvalidResponseException"
}
// Message returns the exception's message.
-func (s InvalidResponseException) Message() string {
+func (s *InvalidResponseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32508,30 +33295,30 @@ func (s InvalidResponseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResponseException) OrigErr() error {
+func (s *InvalidResponseException) OrigErr() error {
return nil
}
-func (s InvalidResponseException) Error() string {
+func (s *InvalidResponseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResponseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResponseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResponseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResponseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An attempt was made to change to an invalid state, for example by deleting
// a job or a job execution which is "IN_PROGRESS" without setting the force
// parameter.
type InvalidStateTransitionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -32549,17 +33336,17 @@ func (s InvalidStateTransitionException) GoString() string {
func newErrorInvalidStateTransitionException(v protocol.ResponseMetadata) error {
return &InvalidStateTransitionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateTransitionException) Code() string {
+func (s *InvalidStateTransitionException) Code() string {
return "InvalidStateTransitionException"
}
// Message returns the exception's message.
-func (s InvalidStateTransitionException) Message() string {
+func (s *InvalidStateTransitionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -32567,22 +33354,22 @@ func (s InvalidStateTransitionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateTransitionException) OrigErr() error {
+func (s *InvalidStateTransitionException) OrigErr() error {
return nil
}
-func (s InvalidStateTransitionException) Error() string {
+func (s *InvalidStateTransitionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateTransitionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateTransitionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateTransitionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateTransitionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Sends message data to an AWS IoT Analytics channel.
@@ -33600,8 +34387,8 @@ func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction {
// A limit has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -33619,17 +34406,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -33637,22 +34424,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListActiveViolationsInput struct {
@@ -34860,6 +35647,85 @@ func (s *ListCertificatesOutput) SetNextMarker(v string) *ListCertificatesOutput
return s
}
+type ListDimensionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to retrieve at one time.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
+
+ // The token for the next set of results.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListDimensionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDimensionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListDimensionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListDimensionsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListDimensionsInput) SetMaxResults(v int64) *ListDimensionsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDimensionsInput) SetNextToken(v string) *ListDimensionsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListDimensionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of the names of the defined dimensions. Use DescribeDimension to get
+ // details for a dimension.
+ DimensionNames []*string `locationName:"dimensionNames" type:"list"`
+
+ // A token that can be used to retrieve the next set of results, or null if
+ // there are no additional results.
+ NextToken *string `locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListDimensionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDimensionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetDimensionNames sets the DimensionNames field's value.
+func (s *ListDimensionsOutput) SetDimensionNames(v []*string) *ListDimensionsOutput {
+ s.DimensionNames = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDimensionsOutput) SetNextToken(v string) *ListDimensionsOutput {
+ s.NextToken = &v
+ return s
+}
+
type ListDomainConfigurationsInput struct {
_ struct{} `type:"structure"`
@@ -36524,6 +37390,9 @@ func (s *ListSecurityProfilesForTargetOutput) SetSecurityProfileTargetMappings(v
type ListSecurityProfilesInput struct {
_ struct{} `type:"structure"`
+ // A filter to limit results to the security profiles that use the defined dimension.
+ DimensionName *string `location:"querystring" locationName:"dimensionName" min:"1" type:"string"`
+
// The maximum number of results to return at one time.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
@@ -36544,6 +37413,9 @@ func (s ListSecurityProfilesInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListSecurityProfilesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListSecurityProfilesInput"}
+ if s.DimensionName != nil && len(*s.DimensionName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DimensionName", 1))
+ }
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
@@ -36554,6 +37426,12 @@ func (s *ListSecurityProfilesInput) Validate() error {
return nil
}
+// SetDimensionName sets the DimensionName field's value.
+func (s *ListSecurityProfilesInput) SetDimensionName(v string) *ListSecurityProfilesInput {
+ s.DimensionName = &v
+ return s
+}
+
// SetMaxResults sets the MaxResults field's value.
func (s *ListSecurityProfilesInput) SetMaxResults(v int64) *ListSecurityProfilesInput {
s.MaxResults = &v
@@ -38358,8 +39236,8 @@ func (s *LoggingOptionsPayload) SetRoleArn(v string) *LoggingOptionsPayload {
// The policy documentation is not valid.
type MalformedPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -38377,17 +39255,17 @@ func (s MalformedPolicyException) GoString() string {
func newErrorMalformedPolicyException(v protocol.ResponseMetadata) error {
return &MalformedPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedPolicyException) Code() string {
+func (s *MalformedPolicyException) Code() string {
return "MalformedPolicyException"
}
// Message returns the exception's message.
-func (s MalformedPolicyException) Message() string {
+func (s *MalformedPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -38395,22 +39273,131 @@ func (s MalformedPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedPolicyException) OrigErr() error {
+func (s *MalformedPolicyException) OrigErr() error {
return nil
}
-func (s MalformedPolicyException) Error() string {
+func (s *MalformedPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The dimension of a metric.
+type MetricDimension struct {
+ _ struct{} `type:"structure"`
+
+ // A unique identifier for the dimension.
+ //
+ // DimensionName is a required field
+ DimensionName *string `locationName:"dimensionName" min:"1" type:"string" required:"true"`
+
+ // Defines how the dimensionValues of a dimension are interpreted. For example,
+ // for DimensionType TOPIC_FILTER, with IN operator, a message will be counted
+ // only if its topic matches one of the topic filters. With NOT_IN Operator,
+ // a message will be counted only if it doesn't match any of the topic filters.
+ // The operator is optional: if it's not provided (is null), it will be interpreted
+ // as IN.
+ Operator *string `locationName:"operator" type:"string" enum:"DimensionValueOperator"`
+}
+
+// String returns the string representation
+func (s MetricDimension) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricDimension) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricDimension) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricDimension"}
+ if s.DimensionName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DimensionName"))
+ }
+ if s.DimensionName != nil && len(*s.DimensionName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DimensionName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDimensionName sets the DimensionName field's value.
+func (s *MetricDimension) SetDimensionName(v string) *MetricDimension {
+ s.DimensionName = &v
+ return s
+}
+
+// SetOperator sets the Operator field's value.
+func (s *MetricDimension) SetOperator(v string) *MetricDimension {
+ s.Operator = &v
+ return s
+}
+
+// The metric you want to retain. Dimensions are optional.
+type MetricToRetain struct {
+ _ struct{} `type:"structure"`
+
+ // What is measured by the behavior.
+ //
+ // Metric is a required field
+ Metric *string `locationName:"metric" type:"string" required:"true"`
+
+ // The dimension of a metric.
+ MetricDimension *MetricDimension `locationName:"metricDimension" type:"structure"`
+}
+
+// String returns the string representation
+func (s MetricToRetain) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricToRetain) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricToRetain) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricToRetain"}
+ if s.Metric == nil {
+ invalidParams.Add(request.NewErrParamRequired("Metric"))
+ }
+ if s.MetricDimension != nil {
+ if err := s.MetricDimension.Validate(); err != nil {
+ invalidParams.AddNested("MetricDimension", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMetric sets the Metric field's value.
+func (s *MetricToRetain) SetMetric(v string) *MetricToRetain {
+ s.Metric = &v
+ return s
+}
+
+// SetMetricDimension sets the MetricDimension field's value.
+func (s *MetricToRetain) SetMetricDimension(v *MetricDimension) *MetricToRetain {
+ s.MetricDimension = v
+ return s
}
// The value to be compared with the metric.
@@ -38778,8 +39765,8 @@ func (s *NonCompliantResource) SetResourceType(v string) *NonCompliantResource {
// The resource is not configured.
type NotConfiguredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -38797,17 +39784,17 @@ func (s NotConfiguredException) GoString() string {
func newErrorNotConfiguredException(v protocol.ResponseMetadata) error {
return &NotConfiguredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotConfiguredException) Code() string {
+func (s *NotConfiguredException) Code() string {
return "NotConfiguredException"
}
// Message returns the exception's message.
-func (s NotConfiguredException) Message() string {
+func (s *NotConfiguredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -38815,22 +39802,22 @@ func (s NotConfiguredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotConfiguredException) OrigErr() error {
+func (s *NotConfiguredException) OrigErr() error {
return nil
}
-func (s NotConfiguredException) Error() string {
+func (s *NotConfiguredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotConfiguredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotConfiguredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotConfiguredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotConfiguredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a file to be associated with an OTA update.
@@ -40056,8 +41043,8 @@ func (s *RegisterThingOutput) SetResourceArns(v map[string]*string) *RegisterThi
// The registration code is invalid.
type RegistrationCodeValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Additional information about the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -40075,17 +41062,17 @@ func (s RegistrationCodeValidationException) GoString() string {
func newErrorRegistrationCodeValidationException(v protocol.ResponseMetadata) error {
return &RegistrationCodeValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RegistrationCodeValidationException) Code() string {
+func (s *RegistrationCodeValidationException) Code() string {
return "RegistrationCodeValidationException"
}
// Message returns the exception's message.
-func (s RegistrationCodeValidationException) Message() string {
+func (s *RegistrationCodeValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -40093,22 +41080,22 @@ func (s RegistrationCodeValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RegistrationCodeValidationException) OrigErr() error {
+func (s *RegistrationCodeValidationException) OrigErr() error {
return nil
}
-func (s RegistrationCodeValidationException) Error() string {
+func (s *RegistrationCodeValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RegistrationCodeValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RegistrationCodeValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RegistrationCodeValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RegistrationCodeValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The registration configuration.
@@ -40605,8 +41592,8 @@ func (s *RepublishAction) SetTopic(v string) *RepublishAction {
// The resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -40630,17 +41617,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -40648,22 +41635,22 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information that identifies the noncompliant resource.
@@ -40785,8 +41772,8 @@ func (s *ResourceIdentifier) SetRoleAliasArn(v string) *ResourceIdentifier {
// The specified resource does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -40804,17 +41791,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -40822,28 +41809,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource registration failed.
type ResourceRegistrationFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -40861,17 +41848,17 @@ func (s ResourceRegistrationFailureException) GoString() string {
func newErrorResourceRegistrationFailureException(v protocol.ResponseMetadata) error {
return &ResourceRegistrationFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceRegistrationFailureException) Code() string {
+func (s *ResourceRegistrationFailureException) Code() string {
return "ResourceRegistrationFailureException"
}
// Message returns the exception's message.
-func (s ResourceRegistrationFailureException) Message() string {
+func (s *ResourceRegistrationFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -40879,22 +41866,22 @@ func (s ResourceRegistrationFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceRegistrationFailureException) OrigErr() error {
+func (s *ResourceRegistrationFailureException) OrigErr() error {
return nil
}
-func (s ResourceRegistrationFailureException) Error() string {
+func (s *ResourceRegistrationFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceRegistrationFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceRegistrationFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceRegistrationFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceRegistrationFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Role alias description.
@@ -41544,8 +42531,8 @@ func (s *ServerCertificateSummary) SetServerCertificateStatusDetail(v string) *S
// The service is temporarily unavailable.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -41563,17 +42550,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -41581,22 +42568,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SetDefaultAuthorizerInput struct {
@@ -42107,8 +43094,8 @@ func (s *SnsAction) SetTargetArn(v string) *SnsAction {
// The Rule-SQL expression can't be parsed correctly.
type SqlParseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -42126,17 +43113,17 @@ func (s SqlParseException) GoString() string {
func newErrorSqlParseException(v protocol.ResponseMetadata) error {
return &SqlParseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SqlParseException) Code() string {
+func (s *SqlParseException) Code() string {
return "SqlParseException"
}
// Message returns the exception's message.
-func (s SqlParseException) Message() string {
+func (s *SqlParseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42144,22 +43131,22 @@ func (s SqlParseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SqlParseException) OrigErr() error {
+func (s *SqlParseException) OrigErr() error {
return nil
}
-func (s SqlParseException) Error() string {
+func (s *SqlParseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SqlParseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SqlParseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SqlParseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SqlParseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an action to publish data to an Amazon SQS queue.
@@ -43150,8 +44137,8 @@ func (s TagResourceOutput) GoString() string {
// This exception occurs if you attempt to start a task with the same task-id
// as an existing task but with a different clientRequestToken.
type TaskAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -43168,17 +44155,17 @@ func (s TaskAlreadyExistsException) GoString() string {
func newErrorTaskAlreadyExistsException(v protocol.ResponseMetadata) error {
return &TaskAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaskAlreadyExistsException) Code() string {
+func (s *TaskAlreadyExistsException) Code() string {
return "TaskAlreadyExistsException"
}
// Message returns the exception's message.
-func (s TaskAlreadyExistsException) Message() string {
+func (s *TaskAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -43186,22 +44173,22 @@ func (s TaskAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaskAlreadyExistsException) OrigErr() error {
+func (s *TaskAlreadyExistsException) OrigErr() error {
return nil
}
-func (s TaskAlreadyExistsException) Error() string {
+func (s *TaskAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaskAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaskAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaskAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaskAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Statistics for the checks performed during the audit.
@@ -44210,8 +45197,8 @@ func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProper
// The rate exceeds the limit.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -44229,17 +45216,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -44247,22 +45234,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the amount of time each device has to finish its execution of the
@@ -44783,8 +45770,8 @@ func (s *TopicRulePayload) SetSql(v string) *TopicRulePayload {
// You can't revert the certificate transfer because the transfer is already
// complete.
type TransferAlreadyCompletedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -44802,17 +45789,17 @@ func (s TransferAlreadyCompletedException) GoString() string {
func newErrorTransferAlreadyCompletedException(v protocol.ResponseMetadata) error {
return &TransferAlreadyCompletedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TransferAlreadyCompletedException) Code() string {
+func (s *TransferAlreadyCompletedException) Code() string {
return "TransferAlreadyCompletedException"
}
// Message returns the exception's message.
-func (s TransferAlreadyCompletedException) Message() string {
+func (s *TransferAlreadyCompletedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -44820,22 +45807,22 @@ func (s TransferAlreadyCompletedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TransferAlreadyCompletedException) OrigErr() error {
+func (s *TransferAlreadyCompletedException) OrigErr() error {
return nil
}
-func (s TransferAlreadyCompletedException) Error() string {
+func (s *TransferAlreadyCompletedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TransferAlreadyCompletedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TransferAlreadyCompletedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TransferAlreadyCompletedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TransferAlreadyCompletedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The input for the TransferCertificate operation.
@@ -44934,8 +45921,8 @@ func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *Tran
// You can't transfer the certificate because authorization policies are still
// attached.
type TransferConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -44953,17 +45940,17 @@ func (s TransferConflictException) GoString() string {
func newErrorTransferConflictException(v protocol.ResponseMetadata) error {
return &TransferConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TransferConflictException) Code() string {
+func (s *TransferConflictException) Code() string {
return "TransferConflictException"
}
// Message returns the exception's message.
-func (s TransferConflictException) Message() string {
+func (s *TransferConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -44971,22 +45958,22 @@ func (s TransferConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TransferConflictException) OrigErr() error {
+func (s *TransferConflictException) OrigErr() error {
return nil
}
-func (s TransferConflictException) Error() string {
+func (s *TransferConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TransferConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TransferConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TransferConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TransferConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Data used to transfer a certificate to an AWS account.
@@ -45051,8 +46038,8 @@ func (s *TransferData) SetTransferMessage(v string) *TransferData {
// You are not authorized to perform this operation.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -45070,17 +46057,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -45088,22 +46075,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -45728,6 +46715,138 @@ func (s *UpdateDeviceCertificateParams) SetAction(v string) *UpdateDeviceCertifi
return s
}
+type UpdateDimensionInput struct {
+ _ struct{} `type:"structure"`
+
+ // A unique identifier for the dimension. Choose something that describes the
+ // type and value to make it easy to remember what it does.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
+
+ // Specifies the value or list of values for the dimension. For TOPIC_FILTER
+ // dimensions, this is a pattern used to match the MQTT topic (for example,
+ // "admin/#").
+ //
+ // StringValues is a required field
+ StringValues []*string `locationName:"stringValues" min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDimensionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDimensionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateDimensionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateDimensionInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.StringValues == nil {
+ invalidParams.Add(request.NewErrParamRequired("StringValues"))
+ }
+ if s.StringValues != nil && len(s.StringValues) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("StringValues", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *UpdateDimensionInput) SetName(v string) *UpdateDimensionInput {
+ s.Name = &v
+ return s
+}
+
+// SetStringValues sets the StringValues field's value.
+func (s *UpdateDimensionInput) SetStringValues(v []*string) *UpdateDimensionInput {
+ s.StringValues = v
+ return s
+}
+
+type UpdateDimensionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN (Amazon resource name) of the created dimension.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // The date and time, in milliseconds since epoch, when the dimension was initially
+ // created.
+ CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
+
+ // The date and time, in milliseconds since epoch, when the dimension was most
+ // recently updated.
+ LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
+
+ // A unique identifier for the dimension.
+ Name *string `locationName:"name" min:"1" type:"string"`
+
+ // The value or list of values used to scope the dimension. For example, for
+ // topic filters, this is the pattern used to match the MQTT topic name.
+ StringValues []*string `locationName:"stringValues" min:"1" type:"list"`
+
+ // The type of the dimension.
+ Type *string `locationName:"type" type:"string" enum:"DimensionType"`
+}
+
+// String returns the string representation
+func (s UpdateDimensionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDimensionOutput) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *UpdateDimensionOutput) SetArn(v string) *UpdateDimensionOutput {
+ s.Arn = &v
+ return s
+}
+
+// SetCreationDate sets the CreationDate field's value.
+func (s *UpdateDimensionOutput) SetCreationDate(v time.Time) *UpdateDimensionOutput {
+ s.CreationDate = &v
+ return s
+}
+
+// SetLastModifiedDate sets the LastModifiedDate field's value.
+func (s *UpdateDimensionOutput) SetLastModifiedDate(v time.Time) *UpdateDimensionOutput {
+ s.LastModifiedDate = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *UpdateDimensionOutput) SetName(v string) *UpdateDimensionOutput {
+ s.Name = &v
+ return s
+}
+
+// SetStringValues sets the StringValues field's value.
+func (s *UpdateDimensionOutput) SetStringValues(v []*string) *UpdateDimensionOutput {
+ s.StringValues = v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *UpdateDimensionOutput) SetType(v string) *UpdateDimensionOutput {
+ s.Type = &v
+ return s
+}
+
type UpdateDomainConfigurationInput struct {
_ struct{} `type:"structure"`
@@ -46588,7 +47707,17 @@ type UpdateSecurityProfileInput struct {
// A list of metrics whose data is retained (stored). By default, data is retained
// for any metric used in the profile's behaviors, but it is also retained for
// any metric specified here.
- AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" type:"list"`
+ //
+ // Note: This API field is deprecated. Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2
+ // instead.
+ //
+ // Deprecated: Use additionalMetricsToRetainV2.
+ AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" deprecated:"true" type:"list"`
+
+ // A list of metrics whose data is retained (stored). By default, data is retained
+ // for any metric used in the profile's behaviors, but it is also retained for
+ // any metric specified here.
+ AdditionalMetricsToRetainV2 []*MetricToRetain `locationName:"additionalMetricsToRetainV2" type:"list"`
// Where the alerts are sent. (Alerts are always sent to the console.)
AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
@@ -46643,6 +47772,16 @@ func (s *UpdateSecurityProfileInput) Validate() error {
if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1))
}
+ if s.AdditionalMetricsToRetainV2 != nil {
+ for i, v := range s.AdditionalMetricsToRetainV2 {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalMetricsToRetainV2", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if s.AlertTargets != nil {
for i, v := range s.AlertTargets {
if v == nil {
@@ -46676,6 +47815,12 @@ func (s *UpdateSecurityProfileInput) SetAdditionalMetricsToRetain(v []*string) *
return s
}
+// SetAdditionalMetricsToRetainV2 sets the AdditionalMetricsToRetainV2 field's value.
+func (s *UpdateSecurityProfileInput) SetAdditionalMetricsToRetainV2(v []*MetricToRetain) *UpdateSecurityProfileInput {
+ s.AdditionalMetricsToRetainV2 = v
+ return s
+}
+
// SetAlertTargets sets the AlertTargets field's value.
func (s *UpdateSecurityProfileInput) SetAlertTargets(v map[string]*AlertTarget) *UpdateSecurityProfileInput {
s.AlertTargets = v
@@ -46730,7 +47875,17 @@ type UpdateSecurityProfileOutput struct {
// A list of metrics whose data is retained (stored). By default, data is retained
// for any metric used in the security profile's behaviors, but it is also retained
// for any metric specified here.
- AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" type:"list"`
+ //
+ // Note: This API field is deprecated. Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2
+ // instead.
+ //
+ // Deprecated: Use additionalMetricsToRetainV2.
+ AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" deprecated:"true" type:"list"`
+
+ // A list of metrics whose data is retained (stored). By default, data is retained
+ // for any metric used in the profile's behaviors, but it is also retained for
+ // any metric specified here.
+ AdditionalMetricsToRetainV2 []*MetricToRetain `locationName:"additionalMetricsToRetainV2" type:"list"`
// Where the alerts are sent. (Alerts are always sent to the console.)
AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"`
@@ -46774,6 +47929,12 @@ func (s *UpdateSecurityProfileOutput) SetAdditionalMetricsToRetain(v []*string)
return s
}
+// SetAdditionalMetricsToRetainV2 sets the AdditionalMetricsToRetainV2 field's value.
+func (s *UpdateSecurityProfileOutput) SetAdditionalMetricsToRetainV2(v []*MetricToRetain) *UpdateSecurityProfileOutput {
+ s.AdditionalMetricsToRetainV2 = v
+ return s
+}
+
// SetAlertTargets sets the AlertTargets field's value.
func (s *UpdateSecurityProfileOutput) SetAlertTargets(v map[string]*AlertTarget) *UpdateSecurityProfileOutput {
s.AlertTargets = v
@@ -47427,8 +48588,8 @@ func (s *ValidationError) SetErrorMessage(v string) *ValidationError {
// An exception thrown when the version of an entity specified with the expectedVersion
// parameter does not match the latest version in the system.
type VersionConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -47446,17 +48607,17 @@ func (s VersionConflictException) GoString() string {
func newErrorVersionConflictException(v protocol.ResponseMetadata) error {
return &VersionConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s VersionConflictException) Code() string {
+func (s *VersionConflictException) Code() string {
return "VersionConflictException"
}
// Message returns the exception's message.
-func (s VersionConflictException) Message() string {
+func (s *VersionConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -47464,28 +48625,28 @@ func (s VersionConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s VersionConflictException) OrigErr() error {
+func (s *VersionConflictException) OrigErr() error {
return nil
}
-func (s VersionConflictException) Error() string {
+func (s *VersionConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s VersionConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *VersionConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s VersionConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *VersionConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of policy versions exceeds the limit.
type VersionsLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -47503,17 +48664,17 @@ func (s VersionsLimitExceededException) GoString() string {
func newErrorVersionsLimitExceededException(v protocol.ResponseMetadata) error {
return &VersionsLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s VersionsLimitExceededException) Code() string {
+func (s *VersionsLimitExceededException) Code() string {
return "VersionsLimitExceededException"
}
// Message returns the exception's message.
-func (s VersionsLimitExceededException) Message() string {
+func (s *VersionsLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -47521,22 +48682,22 @@ func (s VersionsLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s VersionsLimitExceededException) OrigErr() error {
+func (s *VersionsLimitExceededException) OrigErr() error {
return nil
}
-func (s VersionsLimitExceededException) Error() string {
+func (s *VersionsLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s VersionsLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *VersionsLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s VersionsLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *VersionsLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a Device Defender security profile behavior violation.
@@ -47891,6 +49052,19 @@ const (
DeviceCertificateUpdateActionDeactivate = "DEACTIVATE"
)
+const (
+ // DimensionTypeTopicFilter is a DimensionType enum value
+ DimensionTypeTopicFilter = "TOPIC_FILTER"
+)
+
+const (
+ // DimensionValueOperatorIn is a DimensionValueOperator enum value
+ DimensionValueOperatorIn = "IN"
+
+ // DimensionValueOperatorNotIn is a DimensionValueOperator enum value
+ DimensionValueOperatorNotIn = "NOT_IN"
+)
+
const (
// DomainConfigurationStatusEnabled is a DomainConfigurationStatus enum value
DomainConfigurationStatusEnabled = "ENABLED"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/doc.go b/vendor/github.com/aws/aws-sdk-go/service/iot/doc.go
index 7c5721e3fb8..74e040ef68f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iot/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iot/doc.go
@@ -10,6 +10,14 @@
// organize resources associated with each device (Registry), configure logging,
// and create and manage policies and credentials to authenticate devices.
//
+// The service endpoints that expose this API are listed in AWS IoT Core Endpoints
+// and Quotas (https://docs.aws.amazon.com/general/latest/gr/iot-core.html).
+// You must use the endpoint for the region that has the resources you want
+// to access.
+//
+// The service name used by AWS Signature Version 4 (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)
+// to sign the request is: execute-api.
+//
// For more information about how AWS IoT works, see the Developer Guide (https://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html).
//
// For information about how to use the credentials provider for AWS IoT, see
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go
index b101fafeb1a..02cec6c4758 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go
@@ -7191,8 +7191,8 @@ func (s *GlueConfiguration) SetTableName(v string) *GlueConfiguration {
// There was an internal failure.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7209,17 +7209,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7227,28 +7227,28 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was not valid.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7265,17 +7265,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7283,22 +7283,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Configuration information for delivery of data set contents to AWS IoT Events.
@@ -7454,8 +7454,8 @@ func (s *LambdaActivity) SetNext(v string) *LambdaActivity {
// The command caused an internal limit to be exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7472,17 +7472,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7490,22 +7490,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListChannelsInput struct {
@@ -8770,8 +8770,8 @@ func (s *ReprocessingSummary) SetStatus(v string) *ReprocessingSummary {
// A resource with the same name already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -8794,17 +8794,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8812,22 +8812,22 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration of the resource used to execute the "containerAction".
@@ -8890,8 +8890,8 @@ func (s *ResourceConfiguration) SetVolumeSizeInGB(v int64) *ResourceConfiguratio
// A resource with the specified name could not be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8908,17 +8908,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8926,22 +8926,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// How long, in days, message data is kept.
@@ -9447,8 +9447,8 @@ func (s ServiceManagedDatastoreS3StorageSummary) GoString() string {
// The service is temporarily unavailable.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9465,17 +9465,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9483,22 +9483,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The SQL query to modify the message.
@@ -9784,8 +9784,8 @@ func (s TagResourceOutput) GoString() string {
// The request was denied due to request throttling.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9802,17 +9802,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9820,22 +9820,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the data set whose content generation triggers the new
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotevents/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotevents/api.go
index 24481d95d5a..9343edba7c2 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iotevents/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iotevents/api.go
@@ -1506,6 +1506,92 @@ func (c *IoTEvents) UpdateInputWithContext(ctx aws.Context, input *UpdateInputIn
return out, req.Send()
}
+const opVerifyResourcesExistForTagris = "VerifyResourcesExistForTagris"
+
+// VerifyResourcesExistForTagrisRequest generates a "aws/request.Request" representing the
+// client's request for the VerifyResourcesExistForTagris operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See VerifyResourcesExistForTagris for more information on using the VerifyResourcesExistForTagris
+// 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 VerifyResourcesExistForTagrisRequest method.
+// req, resp := client.VerifyResourcesExistForTagrisRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/VerifyResourcesExistForTagris
+func (c *IoTEvents) VerifyResourcesExistForTagrisRequest(input *VerifyResourcesExistForTagrisInput) (req *request.Request, output *VerifyResourcesExistForTagrisOutput) {
+ op := &request.Operation{
+ Name: opVerifyResourcesExistForTagris,
+ HTTPMethod: "GET",
+ HTTPPath: "/internal/tags/resource-status",
+ }
+
+ if input == nil {
+ input = &VerifyResourcesExistForTagrisInput{}
+ }
+
+ output = &VerifyResourcesExistForTagrisOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// VerifyResourcesExistForTagris API operation for AWS IoT Events.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS IoT Events's
+// API operation VerifyResourcesExistForTagris for usage and error information.
+//
+// Returned Error Types:
+// * TagrisAccessDeniedException
+//
+// * TagrisInternalServiceException
+//
+// * TagrisInvalidArnException
+//
+// * TagrisInvalidParameterException
+//
+// * TagrisPartialResourcesExistResultsException
+//
+// * TagrisThrottledException
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/VerifyResourcesExistForTagris
+func (c *IoTEvents) VerifyResourcesExistForTagris(input *VerifyResourcesExistForTagrisInput) (*VerifyResourcesExistForTagrisOutput, error) {
+ req, out := c.VerifyResourcesExistForTagrisRequest(input)
+ return out, req.Send()
+}
+
+// VerifyResourcesExistForTagrisWithContext is the same as VerifyResourcesExistForTagris with the addition of
+// the ability to pass a context and additional request options.
+//
+// See VerifyResourcesExistForTagris 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 *IoTEvents) VerifyResourcesExistForTagrisWithContext(ctx aws.Context, input *VerifyResourcesExistForTagrisInput, opts ...request.Option) (*VerifyResourcesExistForTagrisOutput, error) {
+ req, out := c.VerifyResourcesExistForTagrisRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
// Sends an AWS IoT Events input, passing in information about the detector
// model instance and the event that triggered the action.
type Action struct {
@@ -1515,6 +1601,10 @@ type Action struct {
//
// InputName is a required field
InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"`
+
+ // You can configure the action payload when you send a message to an AWS IoT
+ // Events input.
+ Payload *Payload `locationName:"payload" type:"structure"`
}
// String returns the string representation
@@ -1536,6 +1626,11 @@ func (s *Action) Validate() error {
if s.InputName != nil && len(*s.InputName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("InputName", 1))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -1549,6 +1644,12 @@ func (s *Action) SetInputName(v string) *Action {
return s
}
+// SetPayload sets the Payload field's value.
+func (s *Action) SetPayload(v *Payload) *Action {
+ s.Payload = v
+ return s
+}
+
// An action to be performed when the condition is TRUE.
type ActionData struct {
_ struct{} `type:"structure"`
@@ -1556,14 +1657,36 @@ type ActionData struct {
// Information needed to clear the timer.
ClearTimer *ClearTimerAction `locationName:"clearTimer" type:"structure"`
+ // Writes to the DynamoDB table that you created. The default action payload
+ // contains all attribute-value pairs that have the information about the detector
+ // model instance and the event that triggered the action. You can also customize
+ // the payload (https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html).
+ // One column of the DynamoDB table receives all attribute-value pairs in the
+ // payload that you specify. For more information, see Actions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html)
+ // in AWS IoT Events Developer Guide.
+ DynamoDB *DynamoDBAction `locationName:"dynamoDB" type:"structure"`
+
+ // Writes to the DynamoDB table that you created. The default action payload
+ // contains all attribute-value pairs that have the information about the detector
+ // model instance and the event that triggered the action. You can also customize
+ // the payload (https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html).
+ // A separate column of the DynamoDB table receives one attribute-value pair
+ // in the payload that you specify. For more information, see Actions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html)
+ // in AWS IoT Events Developer Guide.
+ DynamoDBv2 *DynamoDBv2Action `locationName:"dynamoDBv2" type:"structure"`
+
// Sends information about the detector model instance and the event that triggered
// the action to an Amazon Kinesis Data Firehose delivery stream.
Firehose *FirehoseAction `locationName:"firehose" type:"structure"`
- // Sends an AWS IoT Events input, passing in information about the detector
- // model instance and the event that triggered the action.
+ // Sends AWS IoT Events input, which passes information about the detector model
+ // instance and the event that triggered the action.
IotEvents *Action `locationName:"iotEvents" type:"structure"`
+ // Sends information about the detector model instance and the event that triggered
+ // the action to an AWS IoT SiteWise asset property.
+ IotSiteWise *IotSiteWiseAction `locationName:"iotSiteWise" type:"structure"`
+
// Publishes an MQTT message with the given topic to the AWS IoT message broker.
IotTopicPublish *IotTopicPublishAction `locationName:"iotTopicPublish" type:"structure"`
@@ -1606,6 +1729,16 @@ func (s *ActionData) Validate() error {
invalidParams.AddNested("ClearTimer", err.(request.ErrInvalidParams))
}
}
+ if s.DynamoDB != nil {
+ if err := s.DynamoDB.Validate(); err != nil {
+ invalidParams.AddNested("DynamoDB", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DynamoDBv2 != nil {
+ if err := s.DynamoDBv2.Validate(); err != nil {
+ invalidParams.AddNested("DynamoDBv2", err.(request.ErrInvalidParams))
+ }
+ }
if s.Firehose != nil {
if err := s.Firehose.Validate(); err != nil {
invalidParams.AddNested("Firehose", err.(request.ErrInvalidParams))
@@ -1616,6 +1749,11 @@ func (s *ActionData) Validate() error {
invalidParams.AddNested("IotEvents", err.(request.ErrInvalidParams))
}
}
+ if s.IotSiteWise != nil {
+ if err := s.IotSiteWise.Validate(); err != nil {
+ invalidParams.AddNested("IotSiteWise", err.(request.ErrInvalidParams))
+ }
+ }
if s.IotTopicPublish != nil {
if err := s.IotTopicPublish.Validate(); err != nil {
invalidParams.AddNested("IotTopicPublish", err.(request.ErrInvalidParams))
@@ -1664,6 +1802,18 @@ func (s *ActionData) SetClearTimer(v *ClearTimerAction) *ActionData {
return s
}
+// SetDynamoDB sets the DynamoDB field's value.
+func (s *ActionData) SetDynamoDB(v *DynamoDBAction) *ActionData {
+ s.DynamoDB = v
+ return s
+}
+
+// SetDynamoDBv2 sets the DynamoDBv2 field's value.
+func (s *ActionData) SetDynamoDBv2(v *DynamoDBv2Action) *ActionData {
+ s.DynamoDBv2 = v
+ return s
+}
+
// SetFirehose sets the Firehose field's value.
func (s *ActionData) SetFirehose(v *FirehoseAction) *ActionData {
s.Firehose = v
@@ -1676,6 +1826,12 @@ func (s *ActionData) SetIotEvents(v *Action) *ActionData {
return s
}
+// SetIotSiteWise sets the IotSiteWise field's value.
+func (s *ActionData) SetIotSiteWise(v *IotSiteWiseAction) *ActionData {
+ s.IotSiteWise = v
+ return s
+}
+
// SetIotTopicPublish sets the IotTopicPublish field's value.
func (s *ActionData) SetIotTopicPublish(v *IotTopicPublishAction) *ActionData {
s.IotTopicPublish = v
@@ -1718,6 +1874,211 @@ func (s *ActionData) SetSqs(v *SqsAction) *ActionData {
return s
}
+// A structure that contains timestamp information. For more information, see
+// TimeInNanos (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html)
+// in the AWS IoT SiteWise API Reference.
+//
+// For parameters that are string data type, you can specify the following options:
+//
+// * Use a string. For example, the timeInSeconds value can be '1586400675'.
+//
+// * Use an expression. For example, the timeInSeconds value can be '${$input.TemperatureInput.sensorData.timestamp/1000}'.
+// For more information, see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+type AssetPropertyTimestamp struct {
+ _ struct{} `type:"structure"`
+
+ // The nanosecond offset converted from timeInSeconds. The valid range is between
+ // 0-999999999. You can also specify an expression.
+ OffsetInNanos *string `locationName:"offsetInNanos" type:"string"`
+
+ // The timestamp, in seconds, in the Unix epoch format. The valid range is between
+ // 1-31556889864403199. You can also specify an expression.
+ //
+ // TimeInSeconds is a required field
+ TimeInSeconds *string `locationName:"timeInSeconds" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AssetPropertyTimestamp) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssetPropertyTimestamp) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssetPropertyTimestamp) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssetPropertyTimestamp"}
+ if s.TimeInSeconds == nil {
+ invalidParams.Add(request.NewErrParamRequired("TimeInSeconds"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOffsetInNanos sets the OffsetInNanos field's value.
+func (s *AssetPropertyTimestamp) SetOffsetInNanos(v string) *AssetPropertyTimestamp {
+ s.OffsetInNanos = &v
+ return s
+}
+
+// SetTimeInSeconds sets the TimeInSeconds field's value.
+func (s *AssetPropertyTimestamp) SetTimeInSeconds(v string) *AssetPropertyTimestamp {
+ s.TimeInSeconds = &v
+ return s
+}
+
+// A structure that contains value information. For more information, see AssetPropertyValue
+// (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html)
+// in the AWS IoT SiteWise API Reference.
+//
+// For parameters that are string data type, you can specify the following options:
+//
+// * Use a string. For example, the quality value can be 'GOOD'.
+//
+// * Use an expression. For example, the quality value can be $input.TemperatureInput.sensorData.quality
+// . For more information, see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+type AssetPropertyValue struct {
+ _ struct{} `type:"structure"`
+
+ // The quality of the asset property value. The value must be GOOD, BAD, or
+ // UNCERTAIN. You can also specify an expression.
+ Quality *string `locationName:"quality" type:"string"`
+
+ // The timestamp associated with the asset property value. The default is the
+ // current event time.
+ Timestamp *AssetPropertyTimestamp `locationName:"timestamp" type:"structure"`
+
+ // The value to send to an asset property.
+ //
+ // Value is a required field
+ Value *AssetPropertyVariant `locationName:"value" type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s AssetPropertyValue) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssetPropertyValue) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssetPropertyValue) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssetPropertyValue"}
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+ if s.Timestamp != nil {
+ if err := s.Timestamp.Validate(); err != nil {
+ invalidParams.AddNested("Timestamp", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetQuality sets the Quality field's value.
+func (s *AssetPropertyValue) SetQuality(v string) *AssetPropertyValue {
+ s.Quality = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *AssetPropertyValue) SetTimestamp(v *AssetPropertyTimestamp) *AssetPropertyValue {
+ s.Timestamp = v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *AssetPropertyValue) SetValue(v *AssetPropertyVariant) *AssetPropertyValue {
+ s.Value = v
+ return s
+}
+
+// A structure that contains an asset property value. For more information,
+// see Variant (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html)
+// in the AWS IoT SiteWise API Reference.
+//
+// You must specify one of the following value types, depending on the dataType
+// of the specified asset property. For more information, see AssetProperty
+// (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html)
+// in the AWS IoT SiteWise API Reference.
+//
+// For parameters that are string data type, you can specify the following options:
+//
+// * Use a string. For example, the doubleValue value can be '47.9'.
+//
+// * Use an expression. For example, the doubleValue value can be $input.TemperatureInput.sensorData.temperature.
+// For more information, see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+type AssetPropertyVariant struct {
+ _ struct{} `type:"structure"`
+
+ // The asset property value is a Boolean value that must be TRUE or FALSE. You
+ // can also specify an expression. If you use an expression, the evaluated result
+ // should be a Boolean value.
+ BooleanValue *string `locationName:"booleanValue" type:"string"`
+
+ // The asset property value is a double. You can also specify an expression.
+ // If you use an expression, the evaluated result should be a double.
+ DoubleValue *string `locationName:"doubleValue" type:"string"`
+
+ // The asset property value is an integer. You can also specify an expression.
+ // If you use an expression, the evaluated result should be an integer.
+ IntegerValue *string `locationName:"integerValue" type:"string"`
+
+ // The asset property value is a string. You can also specify an expression.
+ // If you use an expression, the evaluated result should be a string.
+ StringValue *string `locationName:"stringValue" type:"string"`
+}
+
+// String returns the string representation
+func (s AssetPropertyVariant) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssetPropertyVariant) GoString() string {
+ return s.String()
+}
+
+// SetBooleanValue sets the BooleanValue field's value.
+func (s *AssetPropertyVariant) SetBooleanValue(v string) *AssetPropertyVariant {
+ s.BooleanValue = &v
+ return s
+}
+
+// SetDoubleValue sets the DoubleValue field's value.
+func (s *AssetPropertyVariant) SetDoubleValue(v string) *AssetPropertyVariant {
+ s.DoubleValue = &v
+ return s
+}
+
+// SetIntegerValue sets the IntegerValue field's value.
+func (s *AssetPropertyVariant) SetIntegerValue(v string) *AssetPropertyVariant {
+ s.IntegerValue = &v
+ return s
+}
+
+// SetStringValue sets the StringValue field's value.
+func (s *AssetPropertyVariant) SetStringValue(v string) *AssetPropertyVariant {
+ s.StringValue = &v
+ return s
+}
+
// The attributes from the JSON payload that are made available by the input.
// Inputs are derived from messages sent to the AWS IoT Events system using
// BatchPutMessage. Each such message contains a JSON payload. Those attributes
@@ -2478,11 +2839,15 @@ type DetectorModelConfiguration struct {
// are executed.
EvaluationMethod *string `locationName:"evaluationMethod" type:"string" enum:"EvaluationMethod"`
- // The input attribute key used to identify a device or system to create a detector
- // (an instance of the detector model) and then to route each input received
- // to the appropriate detector (instance). This parameter uses a JSON-path expression
- // in the message payload of each input to specify the attribute-value pair
- // that is used to identify the device associated with the input.
+ // The value used to identify a detector instance. When a device or system sends
+ // input, a new detector instance with a unique key value is created. AWS IoT
+ // Events can continue to route input to its corresponding detector instance
+ // based on this identifying information.
+ //
+ // This parameter uses a JSON-path expression to select the attribute-value
+ // pair in the message payload that is used for identification. To route the
+ // message to the correct detector instance, the device must send a message
+ // payload that contains the same attribute-value.
Key *string `locationName:"key" min:"1" type:"string"`
// The time the detector model was last updated.
@@ -2766,48 +3131,129 @@ func (s *DetectorModelVersionSummary) SetStatus(v string) *DetectorModelVersionS
return s
}
-// Specifies the actions to be performed when the condition evaluates to TRUE.
-type Event struct {
+// Defines an action to write to the Amazon DynamoDB table that you created.
+// The standard action payload contains all attribute-value pairs that have
+// the information about the detector model instance and the event that triggered
+// the action. You can also customize the payload (https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html).
+// One column of the DynamoDB table receives all attribute-value pairs in the
+// payload that you specify.
+//
+// The tableName and hashKeyField values must match the table name and the partition
+// key of the DynamoDB table.
+//
+// If the DynamoDB table also has a sort key, you must specify rangeKeyField.
+// The rangeKeyField value must match the sort key.
+//
+// The hashKeyValue and rangeKeyValue use substitution templates. These templates
+// provide data at runtime. The syntax is ${sql-expression}.
+//
+// You can use expressions for parameters that are string data type. For more
+// information, see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+//
+// If the defined payload type is a string, DynamoDBAction writes non-JSON data
+// to the DynamoDB table as binary data. The DynamoDB console displays the data
+// as Base64-encoded text. The payloadField is _raw.
+type DynamoDBAction struct {
_ struct{} `type:"structure"`
- // The actions to be performed.
- Actions []*ActionData `locationName:"actions" type:"list"`
+ // The name of the hash key (also called the partition key).
+ //
+ // HashKeyField is a required field
+ HashKeyField *string `locationName:"hashKeyField" type:"string" required:"true"`
- // Optional. The Boolean expression that, when TRUE, causes the actions to be
- // performed. If not present, the actions are performed (=TRUE). If the expression
- // result is not a Boolean value, the actions are not performed (=FALSE).
- Condition *string `locationName:"condition" type:"string"`
+ // The data type for the hash key (also called the partition key). You can specify
+ // the following values:
+ //
+ // * STRING - The hash key is a string.
+ //
+ // * NUMBER - The hash key is a number.
+ //
+ // If you don't specify hashKeyType, the default value is STRING.
+ HashKeyType *string `locationName:"hashKeyType" type:"string"`
- // The name of the event.
+ // The value of the hash key (also called the partition key).
//
- // EventName is a required field
- EventName *string `locationName:"eventName" type:"string" required:"true"`
+ // HashKeyValue is a required field
+ HashKeyValue *string `locationName:"hashKeyValue" type:"string" required:"true"`
+
+ // The type of operation to perform. You can specify the following values:
+ //
+ // * INSERT - Insert data as a new item into the DynamoDB table. This item
+ // uses the specified hash key as a partition key. If you specified a range
+ // key, the item uses the range key as a sort key.
+ //
+ // * UPDATE - Update an existing item of the DynamoDB table with new data.
+ // This item's partition key must match the specified hash key. If you specified
+ // a range key, the range key must match the item's sort key.
+ //
+ // * DELETE - Delete an existing item of the DynamoDB table. This item's
+ // partition key must match the specified hash key. If you specified a range
+ // key, the range key must match the item's sort key.
+ //
+ // If you don't specify this parameter, AWS IoT Events triggers the INSERT operation.
+ Operation *string `locationName:"operation" type:"string"`
+
+ // Information needed to configure the payload.
+ //
+ // By default, AWS IoT Events generates a standard payload in JSON for any action.
+ // This action payload contains all attribute-value pairs that have the information
+ // about the detector model instance and the event triggered the action. To
+ // configure the action payload, you can use contentExpression.
+ Payload *Payload `locationName:"payload" type:"structure"`
+
+ // The name of the DynamoDB column that receives the action payload.
+ //
+ // If you don't specify this parameter, the name of the DynamoDB column is payload.
+ PayloadField *string `locationName:"payloadField" type:"string"`
+
+ // The name of the range key (also called the sort key).
+ RangeKeyField *string `locationName:"rangeKeyField" type:"string"`
+
+ // The data type for the range key (also called the sort key), You can specify
+ // the following values:
+ //
+ // * STRING - The range key is a string.
+ //
+ // * NUMBER - The range key is number.
+ //
+ // If you don't specify rangeKeyField, the default value is STRING.
+ RangeKeyType *string `locationName:"rangeKeyType" type:"string"`
+
+ // The value of the range key (also called the sort key).
+ RangeKeyValue *string `locationName:"rangeKeyValue" type:"string"`
+
+ // The name of the DynamoDB table.
+ //
+ // TableName is a required field
+ TableName *string `locationName:"tableName" type:"string" required:"true"`
}
// String returns the string representation
-func (s Event) String() string {
+func (s DynamoDBAction) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s Event) GoString() string {
+func (s DynamoDBAction) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *Event) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Event"}
- if s.EventName == nil {
- invalidParams.Add(request.NewErrParamRequired("EventName"))
+func (s *DynamoDBAction) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DynamoDBAction"}
+ if s.HashKeyField == nil {
+ invalidParams.Add(request.NewErrParamRequired("HashKeyField"))
}
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
+ if s.HashKeyValue == nil {
+ invalidParams.Add(request.NewErrParamRequired("HashKeyValue"))
+ }
+ if s.TableName == nil {
+ invalidParams.Add(request.NewErrParamRequired("TableName"))
+ }
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
}
}
@@ -2817,20 +3263,200 @@ func (s *Event) Validate() error {
return nil
}
-// SetActions sets the Actions field's value.
-func (s *Event) SetActions(v []*ActionData) *Event {
- s.Actions = v
+// SetHashKeyField sets the HashKeyField field's value.
+func (s *DynamoDBAction) SetHashKeyField(v string) *DynamoDBAction {
+ s.HashKeyField = &v
return s
}
-// SetCondition sets the Condition field's value.
-func (s *Event) SetCondition(v string) *Event {
- s.Condition = &v
+// SetHashKeyType sets the HashKeyType field's value.
+func (s *DynamoDBAction) SetHashKeyType(v string) *DynamoDBAction {
+ s.HashKeyType = &v
return s
}
-// SetEventName sets the EventName field's value.
-func (s *Event) SetEventName(v string) *Event {
+// SetHashKeyValue sets the HashKeyValue field's value.
+func (s *DynamoDBAction) SetHashKeyValue(v string) *DynamoDBAction {
+ s.HashKeyValue = &v
+ return s
+}
+
+// SetOperation sets the Operation field's value.
+func (s *DynamoDBAction) SetOperation(v string) *DynamoDBAction {
+ s.Operation = &v
+ return s
+}
+
+// SetPayload sets the Payload field's value.
+func (s *DynamoDBAction) SetPayload(v *Payload) *DynamoDBAction {
+ s.Payload = v
+ return s
+}
+
+// SetPayloadField sets the PayloadField field's value.
+func (s *DynamoDBAction) SetPayloadField(v string) *DynamoDBAction {
+ s.PayloadField = &v
+ return s
+}
+
+// SetRangeKeyField sets the RangeKeyField field's value.
+func (s *DynamoDBAction) SetRangeKeyField(v string) *DynamoDBAction {
+ s.RangeKeyField = &v
+ return s
+}
+
+// SetRangeKeyType sets the RangeKeyType field's value.
+func (s *DynamoDBAction) SetRangeKeyType(v string) *DynamoDBAction {
+ s.RangeKeyType = &v
+ return s
+}
+
+// SetRangeKeyValue sets the RangeKeyValue field's value.
+func (s *DynamoDBAction) SetRangeKeyValue(v string) *DynamoDBAction {
+ s.RangeKeyValue = &v
+ return s
+}
+
+// SetTableName sets the TableName field's value.
+func (s *DynamoDBAction) SetTableName(v string) *DynamoDBAction {
+ s.TableName = &v
+ return s
+}
+
+// Defines an action to write to the Amazon DynamoDB table that you created.
+// The default action payload contains all attribute-value pairs that have the
+// information about the detector model instance and the event that triggered
+// the action. You can also customize the payload (https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html).
+// A separate column of the DynamoDB table receives one attribute-value pair
+// in the payload that you specify.
+//
+// The type value for Payload must be JSON.
+//
+// You can use expressions for parameters that are strings. For more information,
+// see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+type DynamoDBv2Action struct {
+ _ struct{} `type:"structure"`
+
+ // Information needed to configure the payload.
+ //
+ // By default, AWS IoT Events generates a standard payload in JSON for any action.
+ // This action payload contains all attribute-value pairs that have the information
+ // about the detector model instance and the event triggered the action. To
+ // configure the action payload, you can use contentExpression.
+ Payload *Payload `locationName:"payload" type:"structure"`
+
+ // The name of the DynamoDB table.
+ //
+ // TableName is a required field
+ TableName *string `locationName:"tableName" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DynamoDBv2Action) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DynamoDBv2Action) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DynamoDBv2Action) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DynamoDBv2Action"}
+ if s.TableName == nil {
+ invalidParams.Add(request.NewErrParamRequired("TableName"))
+ }
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPayload sets the Payload field's value.
+func (s *DynamoDBv2Action) SetPayload(v *Payload) *DynamoDBv2Action {
+ s.Payload = v
+ return s
+}
+
+// SetTableName sets the TableName field's value.
+func (s *DynamoDBv2Action) SetTableName(v string) *DynamoDBv2Action {
+ s.TableName = &v
+ return s
+}
+
+// Specifies the actions to be performed when the condition evaluates to TRUE.
+type Event struct {
+ _ struct{} `type:"structure"`
+
+ // The actions to be performed.
+ Actions []*ActionData `locationName:"actions" type:"list"`
+
+ // Optional. The Boolean expression that, when TRUE, causes the actions to be
+ // performed. If not present, the actions are performed (=TRUE). If the expression
+ // result is not a Boolean value, the actions are not performed (=FALSE).
+ Condition *string `locationName:"condition" type:"string"`
+
+ // The name of the event.
+ //
+ // EventName is a required field
+ EventName *string `locationName:"eventName" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s Event) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Event) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Event) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Event"}
+ if s.EventName == nil {
+ invalidParams.Add(request.NewErrParamRequired("EventName"))
+ }
+ if s.Actions != nil {
+ for i, v := range s.Actions {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetActions sets the Actions field's value.
+func (s *Event) SetActions(v []*ActionData) *Event {
+ s.Actions = v
+ return s
+}
+
+// SetCondition sets the Condition field's value.
+func (s *Event) SetCondition(v string) *Event {
+ s.Condition = &v
+ return s
+}
+
+// SetEventName sets the EventName field's value.
+func (s *Event) SetEventName(v string) *Event {
s.EventName = &v
return s
}
@@ -2845,6 +3471,10 @@ type FirehoseAction struct {
// DeliveryStreamName is a required field
DeliveryStreamName *string `locationName:"deliveryStreamName" type:"string" required:"true"`
+ // You can configure the action payload when you send a message to an Amazon
+ // Kinesis Data Firehose delivery stream.
+ Payload *Payload `locationName:"payload" type:"structure"`
+
// A character separator that is used to separate records written to the Kinesis
// Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
// '\r\n' (Windows newline), ',' (comma).
@@ -2867,6 +3497,11 @@ func (s *FirehoseAction) Validate() error {
if s.DeliveryStreamName == nil {
invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName"))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -2880,6 +3515,12 @@ func (s *FirehoseAction) SetDeliveryStreamName(v string) *FirehoseAction {
return s
}
+// SetPayload sets the Payload field's value.
+func (s *FirehoseAction) SetPayload(v *Payload) *FirehoseAction {
+ s.Payload = v
+ return s
+}
+
// SetSeparator sets the Separator field's value.
func (s *FirehoseAction) SetSeparator(v string) *FirehoseAction {
s.Separator = &v
@@ -3125,8 +3766,8 @@ func (s *InputSummary) SetStatus(v string) *InputSummary {
// An internal failure occurred.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -3144,17 +3785,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3162,28 +3803,28 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was invalid.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -3201,17 +3842,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3219,22 +3860,117 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Sends information about the detector model instance and the event that triggered
+// the action to a specified asset property in AWS IoT SiteWise.
+//
+// You must specify either propertyAlias or both assetId and propertyId to identify
+// the target asset property in AWS IoT SiteWise.
+//
+// For parameters that are string data type, you can specify the following options:
+//
+// * Use a string. For example, the propertyAlias value can be '/company/windfarm/3/turbine/7/temperature'.
+//
+// * Use an expression. For example, the propertyAlias value can be 'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/${$input.TemperatureInput.sensorData.turbineID}/temperature'.
+// For more information, see Expressions (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
+// in the AWS IoT Events Developer Guide.
+type IotSiteWiseAction struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the asset that has the specified property. You can specify an expression.
+ AssetId *string `locationName:"assetId" type:"string"`
+
+ // A unique identifier for this entry. You can use the entry ID to track which
+ // data entry causes an error in case of failure. The default is a new unique
+ // identifier. You can also specify an expression.
+ EntryId *string `locationName:"entryId" type:"string"`
+
+ // The alias of the asset property. You can also specify an expression.
+ PropertyAlias *string `locationName:"propertyAlias" type:"string"`
+
+ // The ID of the asset property. You can specify an expression.
+ PropertyId *string `locationName:"propertyId" type:"string"`
+
+ // The value to send to the asset property. This value contains timestamp, quality,
+ // and value (TQV) information.
+ //
+ // PropertyValue is a required field
+ PropertyValue *AssetPropertyValue `locationName:"propertyValue" type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s IotSiteWiseAction) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s IotSiteWiseAction) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *IotSiteWiseAction) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "IotSiteWiseAction"}
+ if s.PropertyValue == nil {
+ invalidParams.Add(request.NewErrParamRequired("PropertyValue"))
+ }
+ if s.PropertyValue != nil {
+ if err := s.PropertyValue.Validate(); err != nil {
+ invalidParams.AddNested("PropertyValue", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAssetId sets the AssetId field's value.
+func (s *IotSiteWiseAction) SetAssetId(v string) *IotSiteWiseAction {
+ s.AssetId = &v
+ return s
+}
+
+// SetEntryId sets the EntryId field's value.
+func (s *IotSiteWiseAction) SetEntryId(v string) *IotSiteWiseAction {
+ s.EntryId = &v
+ return s
+}
+
+// SetPropertyAlias sets the PropertyAlias field's value.
+func (s *IotSiteWiseAction) SetPropertyAlias(v string) *IotSiteWiseAction {
+ s.PropertyAlias = &v
+ return s
+}
+
+// SetPropertyId sets the PropertyId field's value.
+func (s *IotSiteWiseAction) SetPropertyId(v string) *IotSiteWiseAction {
+ s.PropertyId = &v
+ return s
+}
+
+// SetPropertyValue sets the PropertyValue field's value.
+func (s *IotSiteWiseAction) SetPropertyValue(v *AssetPropertyValue) *IotSiteWiseAction {
+ s.PropertyValue = v
+ return s
}
// Information required to publish the MQTT message through the AWS IoT message
@@ -3248,6 +3984,10 @@ type IotTopicPublishAction struct {
//
// MqttTopic is a required field
MqttTopic *string `locationName:"mqttTopic" min:"1" type:"string" required:"true"`
+
+ // You can configure the action payload when you publish a message to an AWS
+ // IoT Core topic.
+ Payload *Payload `locationName:"payload" type:"structure"`
}
// String returns the string representation
@@ -3269,6 +4009,11 @@ func (s *IotTopicPublishAction) Validate() error {
if s.MqttTopic != nil && len(*s.MqttTopic) < 1 {
invalidParams.Add(request.NewErrParamMinLen("MqttTopic", 1))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -3282,6 +4027,12 @@ func (s *IotTopicPublishAction) SetMqttTopic(v string) *IotTopicPublishAction {
return s
}
+// SetPayload sets the Payload field's value.
+func (s *IotTopicPublishAction) SetPayload(v *Payload) *IotTopicPublishAction {
+ s.Payload = v
+ return s
+}
+
// Calls a Lambda function, passing in information about the detector model
// instance and the event that triggered the action.
type LambdaAction struct {
@@ -3291,6 +4042,10 @@ type LambdaAction struct {
//
// FunctionArn is a required field
FunctionArn *string `locationName:"functionArn" min:"1" type:"string" required:"true"`
+
+ // You can configure the action payload when you send a message to a Lambda
+ // function.
+ Payload *Payload `locationName:"payload" type:"structure"`
}
// String returns the string representation
@@ -3312,6 +4067,11 @@ func (s *LambdaAction) Validate() error {
if s.FunctionArn != nil && len(*s.FunctionArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -3325,10 +4085,16 @@ func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction {
return s
}
+// SetPayload sets the Payload field's value.
+func (s *LambdaAction) SetPayload(v *Payload) *LambdaAction {
+ s.Payload = v
+ return s
+}
+
// A limit was exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -3346,17 +4112,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3364,22 +4130,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListDetectorModelVersionsInput struct {
@@ -3945,6 +4711,71 @@ func (s *OnInputLifecycle) SetTransitionEvents(v []*TransitionEvent) *OnInputLif
return s
}
+// Information needed to configure the payload.
+//
+// By default, AWS IoT Events generates a standard payload in JSON for any action.
+// This action payload contains all attribute-value pairs that have the information
+// about the detector model instance and the event triggered the action. To
+// configure the action payload, you can use contentExpression.
+type Payload struct {
+ _ struct{} `type:"structure"`
+
+ // The content of the payload. You can use a string expression that includes
+ // quoted strings (''), variables ($variable.), input
+ // values ($input..), string concatenations, and
+ // quoted strings that contain ${} as the content. The recommended maximum size
+ // of a content expression is 1 KB.
+ //
+ // ContentExpression is a required field
+ ContentExpression *string `locationName:"contentExpression" min:"1" type:"string" required:"true"`
+
+ // The value of the payload type can be either STRING or JSON.
+ //
+ // Type is a required field
+ Type *string `locationName:"type" type:"string" required:"true" enum:"PayloadType"`
+}
+
+// String returns the string representation
+func (s Payload) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Payload) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Payload) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Payload"}
+ if s.ContentExpression == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContentExpression"))
+ }
+ if s.ContentExpression != nil && len(*s.ContentExpression) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentExpression", 1))
+ }
+ if s.Type == nil {
+ invalidParams.Add(request.NewErrParamRequired("Type"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetContentExpression sets the ContentExpression field's value.
+func (s *Payload) SetContentExpression(v string) *Payload {
+ s.ContentExpression = &v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *Payload) SetType(v string) *Payload {
+ s.Type = &v
+ return s
+}
+
type PutLoggingOptionsInput struct {
_ struct{} `type:"structure"`
@@ -4003,7 +4834,8 @@ func (s PutLoggingOptionsOutput) GoString() string {
}
// Information required to reset the timer. The timer is reset to the previously
-// evaluated result of the duration.
+// evaluated result of the duration. The duration expression isn't reevaluated
+// when you reset the timer.
type ResetTimerAction struct {
_ struct{} `type:"structure"`
@@ -4047,8 +4879,8 @@ func (s *ResetTimerAction) SetTimerName(v string) *ResetTimerAction {
// The resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4072,17 +4904,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4090,28 +4922,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource is in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4129,17 +4961,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4147,28 +4979,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4186,17 +5018,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4204,28 +5036,32 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information required to publish the Amazon SNS message.
type SNSTopicPublishAction struct {
_ struct{} `type:"structure"`
+ // You can configure the action payload when you send a message as an Amazon
+ // SNS push notification.
+ Payload *Payload `locationName:"payload" type:"structure"`
+
// The ARN of the Amazon SNS target where the message is sent.
//
// TargetArn is a required field
@@ -4251,6 +5087,11 @@ func (s *SNSTopicPublishAction) Validate() error {
if s.TargetArn != nil && len(*s.TargetArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TargetArn", 1))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -4258,6 +5099,12 @@ func (s *SNSTopicPublishAction) Validate() error {
return nil
}
+// SetPayload sets the Payload field's value.
+func (s *SNSTopicPublishAction) SetPayload(v *Payload) *SNSTopicPublishAction {
+ s.Payload = v
+ return s
+}
+
// SetTargetArn sets the TargetArn field's value.
func (s *SNSTopicPublishAction) SetTargetArn(v string) *SNSTopicPublishAction {
s.TargetArn = &v
@@ -4266,8 +5113,8 @@ func (s *SNSTopicPublishAction) SetTargetArn(v string) *SNSTopicPublishAction {
// The service is currently unavailable.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4285,17 +5132,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4303,22 +5150,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information needed to set the timer.
@@ -4334,7 +5181,7 @@ type SetTimerAction struct {
DurationExpression *string `locationName:"durationExpression" min:"1" type:"string"`
// The number of seconds until the timer expires. The minimum value is 60 seconds
- // to ensure accuracy.
+ // to ensure accuracy. The maximum value is 31622400 seconds.
//
// Deprecated: seconds is deprecated. You can use durationExpression for SetTimerAction. The value of seconds can be used as a string expression for durationExpression.
Seconds *int64 `locationName:"seconds" min:"1" deprecated:"true" type:"integer"`
@@ -4459,13 +5306,17 @@ func (s *SetVariableAction) SetVariableName(v string) *SetVariableAction {
type SqsAction struct {
_ struct{} `type:"structure"`
+ // You can configure the action payload when you send a message to an Amazon
+ // SQS queue.
+ Payload *Payload `locationName:"payload" type:"structure"`
+
// The URL of the SQS queue where the data is written.
//
// QueueUrl is a required field
QueueUrl *string `locationName:"queueUrl" type:"string" required:"true"`
// Set this to TRUE if you want the data to be base-64 encoded before it is
- // written to the queue.
+ // written to the queue. Otherwise, set this to FALSE.
UseBase64 *bool `locationName:"useBase64" type:"boolean"`
}
@@ -4485,6 +5336,11 @@ func (s *SqsAction) Validate() error {
if s.QueueUrl == nil {
invalidParams.Add(request.NewErrParamRequired("QueueUrl"))
}
+ if s.Payload != nil {
+ if err := s.Payload.Validate(); err != nil {
+ invalidParams.AddNested("Payload", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -4492,6 +5348,12 @@ func (s *SqsAction) Validate() error {
return nil
}
+// SetPayload sets the Payload field's value.
+func (s *SqsAction) SetPayload(v *Payload) *SqsAction {
+ s.Payload = v
+ return s
+}
+
// SetQueueUrl sets the QueueUrl field's value.
func (s *SqsAction) SetQueueUrl(v string) *SqsAction {
s.QueueUrl = &v
@@ -4725,38 +5587,36 @@ func (s TagResourceOutput) GoString() string {
return s.String()
}
-// The request could not be completed due to throttling.
-type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+type TagrisAccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- // The message for the exception.
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
-func (s ThrottlingException) String() string {
+func (s TagrisAccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s ThrottlingException) GoString() string {
+func (s TagrisAccessDeniedException) GoString() string {
return s.String()
}
-func newErrorThrottlingException(v protocol.ResponseMetadata) error {
- return &ThrottlingException{
- respMetadata: v,
+func newErrorTagrisAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &TagrisAccessDeniedException{
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
- return "ThrottlingException"
+func (s *TagrisAccessDeniedException) Code() string {
+ return "TagrisAccessDeniedException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *TagrisAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4764,37 +5624,435 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *TagrisAccessDeniedException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *TagrisAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagrisAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagrisAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
-// Specifies the actions performed and the next state entered when a condition
-// evaluates to TRUE.
-type TransitionEvent struct {
- _ struct{} `type:"structure"`
+type TagrisInternalServiceException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- // The actions to be performed.
- Actions []*ActionData `locationName:"actions" type:"list"`
+ Message_ *string `locationName:"message" type:"string"`
+}
- // Required. A Boolean expression that when TRUE causes the actions to be performed
- // and the nextState to be entered.
- //
- // Condition is a required field
- Condition *string `locationName:"condition" type:"string" required:"true"`
+// String returns the string representation
+func (s TagrisInternalServiceException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisInternalServiceException) GoString() string {
+ return s.String()
+}
+
+func newErrorTagrisInternalServiceException(v protocol.ResponseMetadata) error {
+ return &TagrisInternalServiceException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TagrisInternalServiceException) Code() string {
+ return "TagrisInternalServiceException"
+}
+
+// Message returns the exception's message.
+func (s *TagrisInternalServiceException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TagrisInternalServiceException) OrigErr() error {
+ return nil
+}
+
+func (s *TagrisInternalServiceException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TagrisInternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TagrisInternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type TagrisInvalidArnException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ SweepListItem *TagrisSweepListItem `locationName:"sweepListItem" type:"structure"`
+}
+
+// String returns the string representation
+func (s TagrisInvalidArnException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisInvalidArnException) GoString() string {
+ return s.String()
+}
+
+func newErrorTagrisInvalidArnException(v protocol.ResponseMetadata) error {
+ return &TagrisInvalidArnException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TagrisInvalidArnException) Code() string {
+ return "TagrisInvalidArnException"
+}
+
+// Message returns the exception's message.
+func (s *TagrisInvalidArnException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TagrisInvalidArnException) OrigErr() error {
+ return nil
+}
+
+func (s *TagrisInvalidArnException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TagrisInvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TagrisInvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type TagrisInvalidParameterException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s TagrisInvalidParameterException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisInvalidParameterException) GoString() string {
+ return s.String()
+}
+
+func newErrorTagrisInvalidParameterException(v protocol.ResponseMetadata) error {
+ return &TagrisInvalidParameterException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TagrisInvalidParameterException) Code() string {
+ return "TagrisInvalidParameterException"
+}
+
+// Message returns the exception's message.
+func (s *TagrisInvalidParameterException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TagrisInvalidParameterException) OrigErr() error {
+ return nil
+}
+
+func (s *TagrisInvalidParameterException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TagrisInvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TagrisInvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type TagrisPartialResourcesExistResultsException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ ResourceExistenceInformation map[string]*string `locationName:"resourceExistenceInformation" type:"map"`
+}
+
+// String returns the string representation
+func (s TagrisPartialResourcesExistResultsException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisPartialResourcesExistResultsException) GoString() string {
+ return s.String()
+}
+
+func newErrorTagrisPartialResourcesExistResultsException(v protocol.ResponseMetadata) error {
+ return &TagrisPartialResourcesExistResultsException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TagrisPartialResourcesExistResultsException) Code() string {
+ return "TagrisPartialResourcesExistResultsException"
+}
+
+// Message returns the exception's message.
+func (s *TagrisPartialResourcesExistResultsException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TagrisPartialResourcesExistResultsException) OrigErr() error {
+ return nil
+}
+
+func (s *TagrisPartialResourcesExistResultsException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TagrisPartialResourcesExistResultsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TagrisPartialResourcesExistResultsException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type TagrisSweepListItem struct {
+ _ struct{} `type:"structure"`
+
+ TagrisAccountId *string `min:"12" type:"string"`
+
+ TagrisAmazonResourceName *string `min:"1" type:"string"`
+
+ TagrisInternalId *string `type:"string"`
+
+ TagrisVersion *int64 `type:"long"`
+}
+
+// String returns the string representation
+func (s TagrisSweepListItem) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisSweepListItem) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TagrisSweepListItem) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagrisSweepListItem"}
+ if s.TagrisAccountId != nil && len(*s.TagrisAccountId) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("TagrisAccountId", 12))
+ }
+ if s.TagrisAmazonResourceName != nil && len(*s.TagrisAmazonResourceName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TagrisAmazonResourceName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTagrisAccountId sets the TagrisAccountId field's value.
+func (s *TagrisSweepListItem) SetTagrisAccountId(v string) *TagrisSweepListItem {
+ s.TagrisAccountId = &v
+ return s
+}
+
+// SetTagrisAmazonResourceName sets the TagrisAmazonResourceName field's value.
+func (s *TagrisSweepListItem) SetTagrisAmazonResourceName(v string) *TagrisSweepListItem {
+ s.TagrisAmazonResourceName = &v
+ return s
+}
+
+// SetTagrisInternalId sets the TagrisInternalId field's value.
+func (s *TagrisSweepListItem) SetTagrisInternalId(v string) *TagrisSweepListItem {
+ s.TagrisInternalId = &v
+ return s
+}
+
+// SetTagrisVersion sets the TagrisVersion field's value.
+func (s *TagrisSweepListItem) SetTagrisVersion(v int64) *TagrisSweepListItem {
+ s.TagrisVersion = &v
+ return s
+}
+
+type TagrisThrottledException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s TagrisThrottledException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagrisThrottledException) GoString() string {
+ return s.String()
+}
+
+func newErrorTagrisThrottledException(v protocol.ResponseMetadata) error {
+ return &TagrisThrottledException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TagrisThrottledException) Code() string {
+ return "TagrisThrottledException"
+}
+
+// Message returns the exception's message.
+func (s *TagrisThrottledException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TagrisThrottledException) OrigErr() error {
+ return nil
+}
+
+func (s *TagrisThrottledException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TagrisThrottledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TagrisThrottledException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The request could not be completed due to throttling.
+type ThrottlingException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The message for the exception.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s ThrottlingException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ThrottlingException) GoString() string {
+ return s.String()
+}
+
+func newErrorThrottlingException(v protocol.ResponseMetadata) error {
+ return &ThrottlingException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ThrottlingException) Code() string {
+ return "ThrottlingException"
+}
+
+// Message returns the exception's message.
+func (s *ThrottlingException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ThrottlingException) OrigErr() error {
+ return nil
+}
+
+func (s *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Specifies the actions performed and the next state entered when a condition
+// evaluates to TRUE.
+type TransitionEvent struct {
+ _ struct{} `type:"structure"`
+
+ // The actions to be performed.
+ Actions []*ActionData `locationName:"actions" type:"list"`
+
+ // Required. A Boolean expression that when TRUE causes the actions to be performed
+ // and the nextState to be entered.
+ //
+ // Condition is a required field
+ Condition *string `locationName:"condition" type:"string" required:"true"`
// The name of the transition event.
//
@@ -4875,8 +6133,8 @@ func (s *TransitionEvent) SetNextState(v string) *TransitionEvent {
// The requested operation is not supported.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The message for the exception.
Message_ *string `locationName:"message" type:"string"`
@@ -4894,17 +6152,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4912,22 +6170,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -5211,6 +6469,75 @@ func (s *UpdateInputOutput) SetInputConfiguration(v *InputConfiguration) *Update
return s
}
+type VerifyResourcesExistForTagrisInput struct {
+ _ struct{} `type:"structure"`
+
+ // TagrisSweepList is a required field
+ TagrisSweepList []*TagrisSweepListItem `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s VerifyResourcesExistForTagrisInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VerifyResourcesExistForTagrisInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *VerifyResourcesExistForTagrisInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "VerifyResourcesExistForTagrisInput"}
+ if s.TagrisSweepList == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagrisSweepList"))
+ }
+ if s.TagrisSweepList != nil {
+ for i, v := range s.TagrisSweepList {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagrisSweepList", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTagrisSweepList sets the TagrisSweepList field's value.
+func (s *VerifyResourcesExistForTagrisInput) SetTagrisSweepList(v []*TagrisSweepListItem) *VerifyResourcesExistForTagrisInput {
+ s.TagrisSweepList = v
+ return s
+}
+
+type VerifyResourcesExistForTagrisOutput struct {
+ _ struct{} `type:"structure"`
+
+ // TagrisSweepListResult is a required field
+ TagrisSweepListResult map[string]*string `type:"map" required:"true"`
+}
+
+// String returns the string representation
+func (s VerifyResourcesExistForTagrisOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VerifyResourcesExistForTagrisOutput) GoString() string {
+ return s.String()
+}
+
+// SetTagrisSweepListResult sets the TagrisSweepListResult field's value.
+func (s *VerifyResourcesExistForTagrisOutput) SetTagrisSweepListResult(v map[string]*string) *VerifyResourcesExistForTagrisOutput {
+ s.TagrisSweepListResult = v
+ return s
+}
+
const (
// DetectorModelVersionStatusActive is a DetectorModelVersionStatus enum value
DetectorModelVersionStatusActive = "ACTIVE"
@@ -5266,3 +6593,19 @@ const (
// LoggingLevelDebug is a LoggingLevel enum value
LoggingLevelDebug = "DEBUG"
)
+
+const (
+ // PayloadTypeString is a PayloadType enum value
+ PayloadTypeString = "STRING"
+
+ // PayloadTypeJson is a PayloadType enum value
+ PayloadTypeJson = "JSON"
+)
+
+const (
+ // TagrisStatusActive is a TagrisStatus enum value
+ TagrisStatusActive = "ACTIVE"
+
+ // TagrisStatusNotActive is a TagrisStatus enum value
+ TagrisStatusNotActive = "NOT_ACTIVE"
+)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotevents/doc.go b/vendor/github.com/aws/aws-sdk-go/service/iotevents/doc.go
index 96fb49ba7e5..06ec1c6ac40 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iotevents/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iotevents/doc.go
@@ -5,8 +5,8 @@
//
// AWS IoT Events monitors your equipment or device fleets for failures or changes
// in operation, and triggers actions when such events occur. You can use AWS
-// IoT Events API commands to create, read, update, and delete inputs and detector
-// models, and to list their versions.
+// IoT Events API operations to create, read, update, and delete inputs and
+// detector models, and to list their versions.
//
// See https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27 for more information on this service.
//
diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotevents/errors.go b/vendor/github.com/aws/aws-sdk-go/service/iotevents/errors.go
index b7a246810a3..88e17a8103c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/iotevents/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/iotevents/errors.go
@@ -50,6 +50,30 @@ const (
// The service is currently unavailable.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
+ // ErrCodeTagrisAccessDeniedException for service response error code
+ // "TagrisAccessDeniedException".
+ ErrCodeTagrisAccessDeniedException = "TagrisAccessDeniedException"
+
+ // ErrCodeTagrisInternalServiceException for service response error code
+ // "TagrisInternalServiceException".
+ ErrCodeTagrisInternalServiceException = "TagrisInternalServiceException"
+
+ // ErrCodeTagrisInvalidArnException for service response error code
+ // "TagrisInvalidArnException".
+ ErrCodeTagrisInvalidArnException = "TagrisInvalidArnException"
+
+ // ErrCodeTagrisInvalidParameterException for service response error code
+ // "TagrisInvalidParameterException".
+ ErrCodeTagrisInvalidParameterException = "TagrisInvalidParameterException"
+
+ // ErrCodeTagrisPartialResourcesExistResultsException for service response error code
+ // "TagrisPartialResourcesExistResultsException".
+ ErrCodeTagrisPartialResourcesExistResultsException = "TagrisPartialResourcesExistResultsException"
+
+ // ErrCodeTagrisThrottledException for service response error code
+ // "TagrisThrottledException".
+ ErrCodeTagrisThrottledException = "TagrisThrottledException"
+
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
@@ -64,13 +88,19 @@ const (
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
- "InternalFailureException": newErrorInternalFailureException,
- "InvalidRequestException": newErrorInvalidRequestException,
- "LimitExceededException": newErrorLimitExceededException,
- "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
- "ResourceInUseException": newErrorResourceInUseException,
- "ResourceNotFoundException": newErrorResourceNotFoundException,
- "ServiceUnavailableException": newErrorServiceUnavailableException,
- "ThrottlingException": newErrorThrottlingException,
- "UnsupportedOperationException": newErrorUnsupportedOperationException,
+ "InternalFailureException": newErrorInternalFailureException,
+ "InvalidRequestException": newErrorInvalidRequestException,
+ "LimitExceededException": newErrorLimitExceededException,
+ "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
+ "ResourceInUseException": newErrorResourceInUseException,
+ "ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceUnavailableException": newErrorServiceUnavailableException,
+ "TagrisAccessDeniedException": newErrorTagrisAccessDeniedException,
+ "TagrisInternalServiceException": newErrorTagrisInternalServiceException,
+ "TagrisInvalidArnException": newErrorTagrisInvalidArnException,
+ "TagrisInvalidParameterException": newErrorTagrisInvalidParameterException,
+ "TagrisPartialResourcesExistResultsException": newErrorTagrisPartialResourcesExistResultsException,
+ "TagrisThrottledException": newErrorTagrisThrottledException,
+ "ThrottlingException": newErrorThrottlingException,
+ "UnsupportedOperationException": newErrorUnsupportedOperationException,
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go
index 620d2a10c85..07f1aab901f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go
@@ -2275,8 +2275,8 @@ func (c *Kafka) UpdateMonitoringWithContext(ctx aws.Context, input *UpdateMonito
// Returns information about an error.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -2295,17 +2295,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2313,22 +2313,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the EBS volume upgrade information. The broker identifier must
@@ -3193,8 +3193,8 @@ func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision {
// Returns information about an error.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -3213,17 +3213,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3231,22 +3231,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Creates a cluster.
@@ -4286,8 +4286,8 @@ func (s *Firehose) SetEnabled(v bool) *Firehose {
// Returns information about an error.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -4306,17 +4306,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4324,22 +4324,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetBootstrapBrokersInput struct {
@@ -4418,8 +4418,8 @@ func (s *GetBootstrapBrokersOutput) SetBootstrapBrokerStringTls(v string) *GetBo
// Returns information about an error.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -4438,17 +4438,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4456,22 +4456,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Indicates whether you want to enable or disable the JMX Exporter.
@@ -5408,8 +5408,8 @@ func (s *NodeInfo) SetZookeeperNodeInfo(v *ZookeeperNodeInfo) *NodeInfo {
// Returns information about an error.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -5428,17 +5428,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5446,22 +5446,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// JMX and Node monitoring for the MSK cluster.
@@ -5679,8 +5679,8 @@ func (s *S3) SetPrefix(v string) *S3 {
// Returns information about an error.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -5699,17 +5699,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5717,22 +5717,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about storage volumes attached to MSK broker nodes.
@@ -5868,8 +5868,8 @@ func (s *Tls) SetCertificateAuthorityArnList(v []*string) *Tls {
// Returns information about an error.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -5888,17 +5888,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5906,28 +5906,28 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about an error.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
InvalidParameter *string `locationName:"invalidParameter" type:"string"`
@@ -5946,17 +5946,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5964,22 +5964,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go
index 96c089e5897..9ebd449de56 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go
@@ -4603,8 +4603,8 @@ func (s *EnhancedMonitoringOutput) SetStreamName(v string) *EnhancedMonitoringOu
// The provided iterator exceeds the maximum age allowed.
type ExpiredIteratorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -4622,17 +4622,17 @@ func (s ExpiredIteratorException) GoString() string {
func newErrorExpiredIteratorException(v protocol.ResponseMetadata) error {
return &ExpiredIteratorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredIteratorException) Code() string {
+func (s *ExpiredIteratorException) Code() string {
return "ExpiredIteratorException"
}
// Message returns the exception's message.
-func (s ExpiredIteratorException) Message() string {
+func (s *ExpiredIteratorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4640,28 +4640,28 @@ func (s ExpiredIteratorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredIteratorException) OrigErr() error {
+func (s *ExpiredIteratorException) OrigErr() error {
return nil
}
-func (s ExpiredIteratorException) Error() string {
+func (s *ExpiredIteratorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredIteratorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredIteratorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredIteratorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredIteratorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pagination token passed to the operation is expired.
type ExpiredNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4678,17 +4678,17 @@ func (s ExpiredNextTokenException) GoString() string {
func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error {
return &ExpiredNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredNextTokenException) Code() string {
+func (s *ExpiredNextTokenException) Code() string {
return "ExpiredNextTokenException"
}
// Message returns the exception's message.
-func (s ExpiredNextTokenException) Message() string {
+func (s *ExpiredNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4696,22 +4696,22 @@ func (s ExpiredNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredNextTokenException) OrigErr() error {
+func (s *ExpiredNextTokenException) OrigErr() error {
return nil
}
-func (s ExpiredNextTokenException) Error() string {
+func (s *ExpiredNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input for GetRecords.
@@ -5075,8 +5075,8 @@ func (s IncreaseStreamRetentionPeriodOutput) GoString() string {
}
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5120,17 +5120,17 @@ func (s *InternalFailureException) MarshalEvent(pm protocol.PayloadMarshaler) (m
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5138,29 +5138,29 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A specified parameter exceeds its restrictions, is not supported, or can't
// be used. For more information, see the returned message.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5178,17 +5178,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5196,29 +5196,29 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The ciphertext references a key that doesn't exist or that you don't have
// access to.
type KMSAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5263,17 +5263,17 @@ func (s *KMSAccessDeniedException) MarshalEvent(pm protocol.PayloadMarshaler) (m
func newErrorKMSAccessDeniedException(v protocol.ResponseMetadata) error {
return &KMSAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSAccessDeniedException) Code() string {
+func (s *KMSAccessDeniedException) Code() string {
return "KMSAccessDeniedException"
}
// Message returns the exception's message.
-func (s KMSAccessDeniedException) Message() string {
+func (s *KMSAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5281,29 +5281,29 @@ func (s KMSAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSAccessDeniedException) OrigErr() error {
+func (s *KMSAccessDeniedException) OrigErr() error {
return nil
}
-func (s KMSAccessDeniedException) Error() string {
+func (s *KMSAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified customer master key (CMK)
// isn't enabled.
type KMSDisabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5348,17 +5348,17 @@ func (s *KMSDisabledException) MarshalEvent(pm protocol.PayloadMarshaler) (msg e
func newErrorKMSDisabledException(v protocol.ResponseMetadata) error {
return &KMSDisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSDisabledException) Code() string {
+func (s *KMSDisabledException) Code() string {
return "KMSDisabledException"
}
// Message returns the exception's message.
-func (s KMSDisabledException) Message() string {
+func (s *KMSDisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5366,22 +5366,22 @@ func (s KMSDisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSDisabledException) OrigErr() error {
+func (s *KMSDisabledException) OrigErr() error {
return nil
}
-func (s KMSDisabledException) Error() string {
+func (s *KMSDisabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSDisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSDisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSDisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSDisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the state of the specified resource isn't
@@ -5389,8 +5389,8 @@ func (s KMSDisabledException) RequestID() string {
// of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
// in the AWS Key Management Service Developer Guide.
type KMSInvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5435,17 +5435,17 @@ func (s *KMSInvalidStateException) MarshalEvent(pm protocol.PayloadMarshaler) (m
func newErrorKMSInvalidStateException(v protocol.ResponseMetadata) error {
return &KMSInvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSInvalidStateException) Code() string {
+func (s *KMSInvalidStateException) Code() string {
return "KMSInvalidStateException"
}
// Message returns the exception's message.
-func (s KMSInvalidStateException) Message() string {
+func (s *KMSInvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5453,29 +5453,29 @@ func (s KMSInvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSInvalidStateException) OrigErr() error {
+func (s *KMSInvalidStateException) OrigErr() error {
return nil
}
-func (s KMSInvalidStateException) Error() string {
+func (s *KMSInvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSInvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSInvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSInvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSInvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified entity or resource can't be
// found.
type KMSNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5520,17 +5520,17 @@ func (s *KMSNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) (msg e
func newErrorKMSNotFoundException(v protocol.ResponseMetadata) error {
return &KMSNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSNotFoundException) Code() string {
+func (s *KMSNotFoundException) Code() string {
return "KMSNotFoundException"
}
// Message returns the exception's message.
-func (s KMSNotFoundException) Message() string {
+func (s *KMSNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5538,28 +5538,28 @@ func (s KMSNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSNotFoundException) OrigErr() error {
+func (s *KMSNotFoundException) OrigErr() error {
return nil
}
-func (s KMSNotFoundException) Error() string {
+func (s *KMSNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS access key ID needs a subscription for the service.
type KMSOptInRequired struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5604,17 +5604,17 @@ func (s *KMSOptInRequired) MarshalEvent(pm protocol.PayloadMarshaler) (msg event
func newErrorKMSOptInRequired(v protocol.ResponseMetadata) error {
return &KMSOptInRequired{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSOptInRequired) Code() string {
+func (s *KMSOptInRequired) Code() string {
return "KMSOptInRequired"
}
// Message returns the exception's message.
-func (s KMSOptInRequired) Message() string {
+func (s *KMSOptInRequired) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5622,30 +5622,30 @@ func (s KMSOptInRequired) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSOptInRequired) OrigErr() error {
+func (s *KMSOptInRequired) OrigErr() error {
return nil
}
-func (s KMSOptInRequired) Error() string {
+func (s *KMSOptInRequired) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSOptInRequired) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSOptInRequired) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSOptInRequired) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSOptInRequired) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was denied due to request throttling. For more information about
// throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second)
// in the AWS Key Management Service Developer Guide.
type KMSThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5690,17 +5690,17 @@ func (s *KMSThrottlingException) MarshalEvent(pm protocol.PayloadMarshaler) (msg
func newErrorKMSThrottlingException(v protocol.ResponseMetadata) error {
return &KMSThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSThrottlingException) Code() string {
+func (s *KMSThrottlingException) Code() string {
return "KMSThrottlingException"
}
// Message returns the exception's message.
-func (s KMSThrottlingException) Message() string {
+func (s *KMSThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5708,29 +5708,29 @@ func (s KMSThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSThrottlingException) OrigErr() error {
+func (s *KMSThrottlingException) OrigErr() error {
return nil
}
-func (s KMSThrottlingException) Error() string {
+func (s *KMSThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource exceeds the maximum number allowed, or the number
// of concurrent stream requests exceeds the maximum number allowed.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -5748,17 +5748,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5766,22 +5766,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListShardsInput struct {
@@ -6387,8 +6387,8 @@ func (s MergeShardsOutput) GoString() string {
// Exponential Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html)
// in the AWS General Reference.
type ProvisionedThroughputExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -6406,17 +6406,17 @@ func (s ProvisionedThroughputExceededException) GoString() string {
func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error {
return &ProvisionedThroughputExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ProvisionedThroughputExceededException) Code() string {
+func (s *ProvisionedThroughputExceededException) Code() string {
return "ProvisionedThroughputExceededException"
}
// Message returns the exception's message.
-func (s ProvisionedThroughputExceededException) Message() string {
+func (s *ProvisionedThroughputExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6424,22 +6424,22 @@ func (s ProvisionedThroughputExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ProvisionedThroughputExceededException) OrigErr() error {
+func (s *ProvisionedThroughputExceededException) OrigErr() error {
return nil
}
-func (s ProvisionedThroughputExceededException) Error() string {
+func (s *ProvisionedThroughputExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ProvisionedThroughputExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ProvisionedThroughputExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ProvisionedThroughputExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ProvisionedThroughputExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Represents the input for PutRecord.
@@ -7107,8 +7107,8 @@ func (s RemoveTagsFromStreamOutput) GoString() string {
// The resource is not available for this operation. For successful operation,
// the resource must be in the ACTIVE state.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -7153,17 +7153,17 @@ func (s *ResourceInUseException) MarshalEvent(pm protocol.PayloadMarshaler) (msg
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7171,29 +7171,29 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource could not be found. The stream might not be specified
// correctly.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message that provides information about the error.
Message_ *string `locationName:"message" type:"string"`
@@ -7238,17 +7238,17 @@ func (s *ResourceNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) (
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7256,22 +7256,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The range of possible sequence numbers for the shard.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go
index 7e8df003f38..7e877a1927c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/api.go
@@ -3197,8 +3197,8 @@ func (s *CloudWatchLoggingOptionUpdate) SetRoleARNUpdate(v string) *CloudWatchLo
// User-provided application code (query) is invalid. This can be a simple syntax
// error.
type CodeValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Test
Message_ *string `locationName:"message" type:"string"`
@@ -3216,17 +3216,17 @@ func (s CodeValidationException) GoString() string {
func newErrorCodeValidationException(v protocol.ResponseMetadata) error {
return &CodeValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CodeValidationException) Code() string {
+func (s *CodeValidationException) Code() string {
return "CodeValidationException"
}
// Message returns the exception's message.
-func (s CodeValidationException) Message() string {
+func (s *CodeValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3234,30 +3234,30 @@ func (s CodeValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CodeValidationException) OrigErr() error {
+func (s *CodeValidationException) OrigErr() error {
return nil
}
-func (s CodeValidationException) Error() string {
+func (s *CodeValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CodeValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CodeValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CodeValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CodeValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception thrown as a result of concurrent modification to an application.
// For example, two individuals attempting to edit the same application at the
// same time.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3274,17 +3274,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3292,22 +3292,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// TBD
@@ -5125,8 +5125,8 @@ func (s *InputUpdate) SetNamePrefixUpdate(v string) *InputUpdate {
// User-provided application configuration is not valid.
type InvalidApplicationConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// test
Message_ *string `locationName:"message" type:"string"`
@@ -5144,17 +5144,17 @@ func (s InvalidApplicationConfigurationException) GoString() string {
func newErrorInvalidApplicationConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidApplicationConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApplicationConfigurationException) Code() string {
+func (s *InvalidApplicationConfigurationException) Code() string {
return "InvalidApplicationConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidApplicationConfigurationException) Message() string {
+func (s *InvalidApplicationConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5162,28 +5162,28 @@ func (s InvalidApplicationConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApplicationConfigurationException) OrigErr() error {
+func (s *InvalidApplicationConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidApplicationConfigurationException) Error() string {
+func (s *InvalidApplicationConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApplicationConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApplicationConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApplicationConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApplicationConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specified input parameter value is invalid.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5200,17 +5200,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5218,22 +5218,22 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides additional mapping information when JSON is the record format on
@@ -6047,8 +6047,8 @@ func (s *LambdaOutputUpdate) SetRoleARNUpdate(v string) *LambdaOutputUpdate {
// Exceeded the number of applications allowed.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6065,17 +6065,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6083,22 +6083,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListApplicationsInput struct {
@@ -6976,8 +6976,8 @@ func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataS
// Application is not available for this operation.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6994,17 +6994,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7012,28 +7012,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specified application can't be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7050,17 +7050,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7068,22 +7068,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Discovery failed to get a record from the streaming source because of the
@@ -7091,8 +7091,8 @@ func (s ResourceNotFoundException) RequestID() string {
// see GetRecords (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html)
// in the Amazon Kinesis Streams API Reference.
type ResourceProvisionedThroughputExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7109,17 +7109,17 @@ func (s ResourceProvisionedThroughputExceededException) GoString() string {
func newErrorResourceProvisionedThroughputExceededException(v protocol.ResponseMetadata) error {
return &ResourceProvisionedThroughputExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceProvisionedThroughputExceededException) Code() string {
+func (s *ResourceProvisionedThroughputExceededException) Code() string {
return "ResourceProvisionedThroughputExceededException"
}
// Message returns the exception's message.
-func (s ResourceProvisionedThroughputExceededException) Message() string {
+func (s *ResourceProvisionedThroughputExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7127,22 +7127,22 @@ func (s ResourceProvisionedThroughputExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceProvisionedThroughputExceededException) OrigErr() error {
+func (s *ResourceProvisionedThroughputExceededException) OrigErr() error {
return nil
}
-func (s ResourceProvisionedThroughputExceededException) Error() string {
+func (s *ResourceProvisionedThroughputExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceProvisionedThroughputExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceProvisionedThroughputExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceProvisionedThroughputExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceProvisionedThroughputExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides a description of an Amazon S3 data source, including the Amazon
@@ -7425,8 +7425,8 @@ func (s *S3ReferenceDataSourceUpdate) SetReferenceRoleARNUpdate(v string) *S3Ref
// The service is unavailable. Back off and retry the operation.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7443,17 +7443,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7461,22 +7461,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the format of the data in the streaming source, and how each data
@@ -7839,8 +7839,8 @@ func (s TagResourceOutput) GoString() string {
// Note that the maximum number of application tags includes system tags. The
// maximum number of user-defined application tags is 50.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7857,17 +7857,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7875,29 +7875,29 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Data format is not valid. Amazon Kinesis Analytics is not able to detect
// schema for the given streaming source.
type UnableToDetectSchemaException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -7918,17 +7918,17 @@ func (s UnableToDetectSchemaException) GoString() string {
func newErrorUnableToDetectSchemaException(v protocol.ResponseMetadata) error {
return &UnableToDetectSchemaException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnableToDetectSchemaException) Code() string {
+func (s *UnableToDetectSchemaException) Code() string {
return "UnableToDetectSchemaException"
}
// Message returns the exception's message.
-func (s UnableToDetectSchemaException) Message() string {
+func (s *UnableToDetectSchemaException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7936,29 +7936,29 @@ func (s UnableToDetectSchemaException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnableToDetectSchemaException) OrigErr() error {
+func (s *UnableToDetectSchemaException) OrigErr() error {
return nil
}
-func (s UnableToDetectSchemaException) Error() string {
+func (s *UnableToDetectSchemaException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnableToDetectSchemaException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnableToDetectSchemaException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnableToDetectSchemaException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnableToDetectSchemaException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because a specified parameter is not supported or
// a specified resource is not valid for this operation.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7975,17 +7975,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7993,22 +7993,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go
index 1428e9372f8..18315c28b01 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go
@@ -4751,8 +4751,8 @@ func (s *CodeContentUpdate) SetZipFileContentUpdate(v []byte) *CodeContentUpdate
// The user-provided application code (query) is not valid. This can be a simple
// syntax error.
type CodeValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4769,17 +4769,17 @@ func (s CodeValidationException) GoString() string {
func newErrorCodeValidationException(v protocol.ResponseMetadata) error {
return &CodeValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CodeValidationException) Code() string {
+func (s *CodeValidationException) Code() string {
return "CodeValidationException"
}
// Message returns the exception's message.
-func (s CodeValidationException) Message() string {
+func (s *CodeValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4787,30 +4787,30 @@ func (s CodeValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CodeValidationException) OrigErr() error {
+func (s *CodeValidationException) OrigErr() error {
return nil
}
-func (s CodeValidationException) Error() string {
+func (s *CodeValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CodeValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CodeValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CodeValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CodeValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception thrown as a result of concurrent modifications to an application.
// This error can be the result of attempting to modify an application without
// using the current application ID.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4827,17 +4827,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4845,22 +4845,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateApplicationInput struct {
@@ -7339,8 +7339,8 @@ func (s *InputUpdate) SetNamePrefixUpdate(v string) *InputUpdate {
// The user-provided application configuration is not valid.
type InvalidApplicationConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7357,17 +7357,17 @@ func (s InvalidApplicationConfigurationException) GoString() string {
func newErrorInvalidApplicationConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidApplicationConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidApplicationConfigurationException) Code() string {
+func (s *InvalidApplicationConfigurationException) Code() string {
return "InvalidApplicationConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidApplicationConfigurationException) Message() string {
+func (s *InvalidApplicationConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7375,28 +7375,28 @@ func (s InvalidApplicationConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidApplicationConfigurationException) OrigErr() error {
+func (s *InvalidApplicationConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidApplicationConfigurationException) Error() string {
+func (s *InvalidApplicationConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidApplicationConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidApplicationConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidApplicationConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidApplicationConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified input parameter value is not valid.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7413,17 +7413,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7431,28 +7431,28 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request JSON is not valid for the operation.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7469,17 +7469,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7487,22 +7487,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// For an SQL-based Amazon Kinesis Data Analytics application, provides additional
@@ -8206,8 +8206,8 @@ func (s *LambdaOutputUpdate) SetResourceARNUpdate(v string) *LambdaOutputUpdate
// The number of allowed resources has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8224,17 +8224,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8242,22 +8242,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListApplicationSnapshotsInput struct {
@@ -9692,8 +9692,8 @@ func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataS
// The application is not available for this operation.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9710,17 +9710,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9728,28 +9728,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specified application can't be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9766,17 +9766,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9784,22 +9784,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Discovery failed to get a record from the streaming source because of the
@@ -9807,8 +9807,8 @@ func (s ResourceNotFoundException) RequestID() string {
// see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html)
// in the Amazon Kinesis Streams API Reference.
type ResourceProvisionedThroughputExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9825,17 +9825,17 @@ func (s ResourceProvisionedThroughputExceededException) GoString() string {
func newErrorResourceProvisionedThroughputExceededException(v protocol.ResponseMetadata) error {
return &ResourceProvisionedThroughputExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceProvisionedThroughputExceededException) Code() string {
+func (s *ResourceProvisionedThroughputExceededException) Code() string {
return "ResourceProvisionedThroughputExceededException"
}
// Message returns the exception's message.
-func (s ResourceProvisionedThroughputExceededException) Message() string {
+func (s *ResourceProvisionedThroughputExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9843,22 +9843,22 @@ func (s ResourceProvisionedThroughputExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceProvisionedThroughputExceededException) OrigErr() error {
+func (s *ResourceProvisionedThroughputExceededException) OrigErr() error {
return nil
}
-func (s ResourceProvisionedThroughputExceededException) Error() string {
+func (s *ResourceProvisionedThroughputExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceProvisionedThroughputExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceProvisionedThroughputExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceProvisionedThroughputExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceProvisionedThroughputExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the starting parameters for an Amazon Kinesis Data Analytics application.
@@ -10405,8 +10405,8 @@ func (s *S3ReferenceDataSourceUpdate) SetFileKeyUpdate(v string) *S3ReferenceDat
// The service cannot complete the request.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -10423,17 +10423,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10441,22 +10441,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides details about a snapshot of application state.
@@ -11146,8 +11146,8 @@ func (s TagResourceOutput) GoString() string {
// Note that the maximum number of application tags includes system tags. The
// maximum number of user-defined application tags is 50.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11164,17 +11164,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11182,29 +11182,29 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The data format is not valid. Amazon Kinesis Data Analytics cannot detect
// the schema for the given streaming source.
type UnableToDetectSchemaException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -11228,17 +11228,17 @@ func (s UnableToDetectSchemaException) GoString() string {
func newErrorUnableToDetectSchemaException(v protocol.ResponseMetadata) error {
return &UnableToDetectSchemaException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnableToDetectSchemaException) Code() string {
+func (s *UnableToDetectSchemaException) Code() string {
return "UnableToDetectSchemaException"
}
// Message returns the exception's message.
-func (s UnableToDetectSchemaException) Message() string {
+func (s *UnableToDetectSchemaException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11246,29 +11246,29 @@ func (s UnableToDetectSchemaException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnableToDetectSchemaException) OrigErr() error {
+func (s *UnableToDetectSchemaException) OrigErr() error {
return nil
}
-func (s UnableToDetectSchemaException) Error() string {
+func (s *UnableToDetectSchemaException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnableToDetectSchemaException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnableToDetectSchemaException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnableToDetectSchemaException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnableToDetectSchemaException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because a specified parameter is not supported or
// a specified resource is not valid for this operation.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11285,17 +11285,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11303,22 +11303,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go
index 8266d661e4f..85c26e01502 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go
@@ -81,7 +81,7 @@ func (c *KinesisVideo) CreateSignalingChannelRequest(input *CreateSignalingChann
// AWS account in this region.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * AccessDeniedException
// You do not have required permissions to perform this operation.
@@ -183,7 +183,7 @@ func (c *KinesisVideo) CreateStreamRequest(input *CreateStreamInput) (req *reque
// Not implemented.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * InvalidDeviceException
// Not implemented.
@@ -296,6 +296,9 @@ func (c *KinesisVideo) DeleteSignalingChannelRequest(input *DeleteSignalingChann
// latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html)
// API.
//
+// * ResourceInUseException
+// The signaling channel is currently not available for this operation.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/DeleteSignalingChannel
func (c *KinesisVideo) DeleteSignalingChannel(input *DeleteSignalingChannelInput) (*DeleteSignalingChannelOutput, error) {
req, out := c.DeleteSignalingChannelRequest(input)
@@ -402,6 +405,9 @@ func (c *KinesisVideo) DeleteStreamRequest(input *DeleteStreamInput) (req *reque
// latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html)
// API.
//
+// * ResourceInUseException
+// The signaling channel is currently not available for this operation.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/DeleteStream
func (c *KinesisVideo) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) {
req, out := c.DeleteStreamRequest(input)
@@ -469,7 +475,8 @@ func (c *KinesisVideo) DescribeSignalingChannelRequest(input *DescribeSignalingC
// DescribeSignalingChannel API operation for Amazon Kinesis Video Streams.
//
// Returns the most current information about the signaling channel. You must
-// specify either the name or the ARN of the channel that you want to describe.
+// specify either the name or the Amazon Resource Name (ARN) of the channel
+// that you want to describe.
//
// 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
@@ -750,9 +757,9 @@ func (c *KinesisVideo) GetSignalingChannelEndpointRequest(input *GetSignalingCha
// parameter, which consists of the Protocols and Role properties.
//
// Protocols is used to determine the communication mechanism. For example,
-// specifying WSS as the protocol, results in this API producing a secure websocket
-// endpoint, and specifying HTTPS as the protocol, results in this API generating
-// an HTTPS endpoint.
+// if you specify WSS as the protocol, this API produces a secure websocket
+// endpoint. If you specify HTTPS as the protocol, this API generates an HTTPS
+// endpoint.
//
// Role determines the messaging permissions. A MASTER role results in this
// API generating an endpoint that a client can use to communicate with any
@@ -778,7 +785,7 @@ func (c *KinesisVideo) GetSignalingChannelEndpointRequest(input *GetSignalingCha
// Amazon Kinesis Video Streams can't find the stream that you specified.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * AccessDeniedException
// You do not have required permissions to perform this operation.
@@ -1759,7 +1766,7 @@ func (c *KinesisVideo) UpdateDataRetentionRequest(input *UpdateDataRetentionInpu
// Amazon Kinesis Video Streams can't find the stream that you specified.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * NotAuthorizedException
// The caller is not authorized to perform this operation.
@@ -1840,8 +1847,8 @@ func (c *KinesisVideo) UpdateSignalingChannelRequest(input *UpdateSignalingChann
// and takes time to complete.
//
// If the MessageTtlSeconds value is updated (either increased or reduced),
-// then it only applies to new messages sent via this channel after it's been
-// updated. Existing messages are still expire as per the previous MessageTtlSeconds
+// it only applies to new messages sent via this channel after it's been updated.
+// Existing messages are still expired as per the previous MessageTtlSeconds
// value.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -1863,7 +1870,7 @@ func (c *KinesisVideo) UpdateSignalingChannelRequest(input *UpdateSignalingChann
// Amazon Kinesis Video Streams can't find the stream that you specified.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * AccessDeniedException
// You do not have required permissions to perform this operation.
@@ -1972,7 +1979,7 @@ func (c *KinesisVideo) UpdateStreamRequest(input *UpdateStreamInput) (req *reque
// Amazon Kinesis Video Streams can't find the stream that you specified.
//
// * ResourceInUseException
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
//
// * NotAuthorizedException
// The caller is not authorized to perform this operation.
@@ -2006,8 +2013,8 @@ func (c *KinesisVideo) UpdateStreamWithContext(ctx aws.Context, input *UpdateStr
// You do not have required permissions to perform this operation.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2024,17 +2031,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2042,29 +2049,29 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have reached the maximum limit of active signaling channels for this
// AWS account in this region.
type AccountChannelLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2081,17 +2088,17 @@ func (s AccountChannelLimitExceededException) GoString() string {
func newErrorAccountChannelLimitExceededException(v protocol.ResponseMetadata) error {
return &AccountChannelLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountChannelLimitExceededException) Code() string {
+func (s *AccountChannelLimitExceededException) Code() string {
return "AccountChannelLimitExceededException"
}
// Message returns the exception's message.
-func (s AccountChannelLimitExceededException) Message() string {
+func (s *AccountChannelLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2099,28 +2106,28 @@ func (s AccountChannelLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountChannelLimitExceededException) OrigErr() error {
+func (s *AccountChannelLimitExceededException) OrigErr() error {
return nil
}
-func (s AccountChannelLimitExceededException) Error() string {
+func (s *AccountChannelLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountChannelLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountChannelLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountChannelLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountChannelLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The number of streams created for the account is too high.
type AccountStreamLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2137,17 +2144,17 @@ func (s AccountStreamLimitExceededException) GoString() string {
func newErrorAccountStreamLimitExceededException(v protocol.ResponseMetadata) error {
return &AccountStreamLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountStreamLimitExceededException) Code() string {
+func (s *AccountStreamLimitExceededException) Code() string {
return "AccountStreamLimitExceededException"
}
// Message returns the exception's message.
-func (s AccountStreamLimitExceededException) Message() string {
+func (s *AccountStreamLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2155,29 +2162,29 @@ func (s AccountStreamLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountStreamLimitExceededException) OrigErr() error {
+func (s *AccountStreamLimitExceededException) OrigErr() error {
return nil
}
-func (s AccountStreamLimitExceededException) Error() string {
+func (s *AccountStreamLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountStreamLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountStreamLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountStreamLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountStreamLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A structure that encapsulates a signaling channel's metadata and properties.
type ChannelInfo struct {
_ struct{} `type:"structure"`
- // The ARN of the signaling channel.
+ // The Amazon Resource Name (ARN) of the signaling channel.
ChannelARN *string `min:"1" type:"string"`
// The name of the signaling channel.
@@ -2304,8 +2311,8 @@ func (s *ChannelNameCondition) SetComparisonValue(v string) *ChannelNameConditio
// Kinesis Video Streams has throttled the request because you have exceeded
// the limit of allowed client calls. Try making the call later.
type ClientLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2322,17 +2329,17 @@ func (s ClientLimitExceededException) GoString() string {
func newErrorClientLimitExceededException(v protocol.ResponseMetadata) error {
return &ClientLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ClientLimitExceededException) Code() string {
+func (s *ClientLimitExceededException) Code() string {
return "ClientLimitExceededException"
}
// Message returns the exception's message.
-func (s ClientLimitExceededException) Message() string {
+func (s *ClientLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2340,29 +2347,29 @@ func (s ClientLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ClientLimitExceededException) OrigErr() error {
+func (s *ClientLimitExceededException) OrigErr() error {
return nil
}
-func (s ClientLimitExceededException) Error() string {
+func (s *ClientLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ClientLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ClientLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ClientLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ClientLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateSignalingChannelInput struct {
_ struct{} `type:"structure"`
// A name for the signaling channel that you are creating. It must be unique
- // for each account and region.
+ // for each AWS account and AWS Region.
//
// ChannelName is a required field
ChannelName *string `min:"1" type:"string" required:"true"`
@@ -2374,7 +2381,7 @@ type CreateSignalingChannelInput struct {
// A structure containing the configuration for the SINGLE_MASTER channel type.
SingleMasterConfiguration *SingleMasterConfiguration `type:"structure"`
- // A set of tags (key/value pairs) that you want to associate with this channel.
+ // A set of tags (key-value pairs) that you want to associate with this channel.
Tags []*Tag `type:"list"`
}
@@ -2446,7 +2453,7 @@ func (s *CreateSignalingChannelInput) SetTags(v []*Tag) *CreateSignalingChannelI
type CreateSignalingChannelOutput struct {
_ struct{} `type:"structure"`
- // The ARN of the created channel.
+ // The Amazon Resource Name (ARN) of the created channel.
ChannelARN *string `min:"1" type:"string"`
}
@@ -2619,14 +2626,15 @@ func (s *CreateStreamOutput) SetStreamARN(v string) *CreateStreamOutput {
type DeleteSignalingChannelInput struct {
_ struct{} `type:"structure"`
- // The ARN of the signaling channel that you want to delete.
+ // The Amazon Resource Name (ARN) of the signaling channel that you want to
+ // delete.
//
// ChannelARN is a required field
ChannelARN *string `min:"1" type:"string" required:"true"`
// The current version of the signaling channel that you want to delete. You
// can obtain the current version by invoking the DescribeSignalingChannel or
- // ListSignalingChannels APIs.
+ // ListSignalingChannels API operations.
CurrentVersion *string `min:"1" type:"string"`
}
@@ -2902,8 +2910,8 @@ func (s *DescribeStreamOutput) SetStreamInfo(v *StreamInfo) *DescribeStreamOutpu
// Not implemented.
type DeviceStreamLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2920,17 +2928,17 @@ func (s DeviceStreamLimitExceededException) GoString() string {
func newErrorDeviceStreamLimitExceededException(v protocol.ResponseMetadata) error {
return &DeviceStreamLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DeviceStreamLimitExceededException) Code() string {
+func (s *DeviceStreamLimitExceededException) Code() string {
return "DeviceStreamLimitExceededException"
}
// Message returns the exception's message.
-func (s DeviceStreamLimitExceededException) Message() string {
+func (s *DeviceStreamLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2938,22 +2946,22 @@ func (s DeviceStreamLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DeviceStreamLimitExceededException) OrigErr() error {
+func (s *DeviceStreamLimitExceededException) OrigErr() error {
return nil
}
-func (s DeviceStreamLimitExceededException) Error() string {
+func (s *DeviceStreamLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DeviceStreamLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DeviceStreamLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DeviceStreamLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DeviceStreamLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetDataEndpointInput struct {
@@ -3047,7 +3055,8 @@ func (s *GetDataEndpointOutput) SetDataEndpoint(v string) *GetDataEndpointOutput
type GetSignalingChannelEndpointInput struct {
_ struct{} `type:"structure"`
- // The ARN of the signalling channel for which you want to get an endpoint.
+ // The Amazon Resource Name (ARN) of the signalling channel for which you want
+ // to get an endpoint.
//
// ChannelARN is a required field
ChannelARN *string `min:"1" type:"string" required:"true"`
@@ -3125,8 +3134,8 @@ func (s *GetSignalingChannelEndpointOutput) SetResourceEndpointList(v []*Resourc
// The value for this input parameter is invalid.
type InvalidArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3143,17 +3152,17 @@ func (s InvalidArgumentException) GoString() string {
func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error {
return &InvalidArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArgumentException) Code() string {
+func (s *InvalidArgumentException) Code() string {
return "InvalidArgumentException"
}
// Message returns the exception's message.
-func (s InvalidArgumentException) Message() string {
+func (s *InvalidArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3161,28 +3170,28 @@ func (s InvalidArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArgumentException) OrigErr() error {
+func (s *InvalidArgumentException) OrigErr() error {
return nil
}
-func (s InvalidArgumentException) Error() string {
+func (s *InvalidArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Not implemented.
type InvalidDeviceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3199,17 +3208,17 @@ func (s InvalidDeviceException) GoString() string {
func newErrorInvalidDeviceException(v protocol.ResponseMetadata) error {
return &InvalidDeviceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeviceException) Code() string {
+func (s *InvalidDeviceException) Code() string {
return "InvalidDeviceException"
}
// Message returns the exception's message.
-func (s InvalidDeviceException) Message() string {
+func (s *InvalidDeviceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3217,28 +3226,28 @@ func (s InvalidDeviceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeviceException) OrigErr() error {
+func (s *InvalidDeviceException) OrigErr() error {
return nil
}
-func (s InvalidDeviceException) Error() string {
+func (s *InvalidDeviceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeviceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeviceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeviceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeviceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The format of the StreamARN is invalid.
type InvalidResourceFormatException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3255,17 +3264,17 @@ func (s InvalidResourceFormatException) GoString() string {
func newErrorInvalidResourceFormatException(v protocol.ResponseMetadata) error {
return &InvalidResourceFormatException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceFormatException) Code() string {
+func (s *InvalidResourceFormatException) Code() string {
return "InvalidResourceFormatException"
}
// Message returns the exception's message.
-func (s InvalidResourceFormatException) Message() string {
+func (s *InvalidResourceFormatException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3273,22 +3282,22 @@ func (s InvalidResourceFormatException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceFormatException) OrigErr() error {
+func (s *InvalidResourceFormatException) OrigErr() error {
return nil
}
-func (s InvalidResourceFormatException) Error() string {
+func (s *InvalidResourceFormatException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceFormatException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceFormatException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceFormatException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceFormatException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListSignalingChannelsInput struct {
@@ -3489,7 +3498,8 @@ type ListTagsForResourceInput struct {
// request to fetch the next batch of tags.
NextToken *string `type:"string"`
- // The ARN of the signaling channel for which you want to list tags.
+ // The Amazon Resource Name (ARN) of the signaling channel for which you want
+ // to list tags.
//
// ResourceARN is a required field
ResourceARN *string `min:"1" type:"string" required:"true"`
@@ -3662,8 +3672,8 @@ func (s *ListTagsForStreamOutput) SetTags(v map[string]*string) *ListTagsForStre
// The caller is not authorized to perform this operation.
type NotAuthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3680,17 +3690,17 @@ func (s NotAuthorizedException) GoString() string {
func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error {
return &NotAuthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotAuthorizedException) Code() string {
+func (s *NotAuthorizedException) Code() string {
return "NotAuthorizedException"
}
// Message returns the exception's message.
-func (s NotAuthorizedException) Message() string {
+func (s *NotAuthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3698,22 +3708,22 @@ func (s NotAuthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotAuthorizedException) OrigErr() error {
+func (s *NotAuthorizedException) OrigErr() error {
return nil
}
-func (s NotAuthorizedException) Error() string {
+func (s *NotAuthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotAuthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotAuthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotAuthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotAuthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that describes the endpoint of the signaling channel returned by
@@ -3752,10 +3762,10 @@ func (s *ResourceEndpointListItem) SetResourceEndpoint(v string) *ResourceEndpoi
return s
}
-// The stream is currently not available for this operation.
+// The signaling channel is currently not available for this operation.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3772,17 +3782,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3790,28 +3800,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Amazon Kinesis Video Streams can't find the stream that you specified.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3828,17 +3838,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3846,22 +3856,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that contains the endpoint configuration for the SINGLE_MASTER
@@ -4163,7 +4173,8 @@ func (s *Tag) SetValue(v string) *Tag {
type TagResourceInput struct {
_ struct{} `type:"structure"`
- // The ARN of the signaling channel to which you want to add tags.
+ // The Amazon Resource Name (ARN) of the signaling channel to which you want
+ // to add tags.
//
// ResourceARN is a required field
ResourceARN *string `min:"1" type:"string" required:"true"`
@@ -4327,8 +4338,8 @@ func (s TagStreamOutput) GoString() string {
// You have exceeded the limit of tags that you can associate with the resource.
// Kinesis video streams support up to 50 tags.
type TagsPerResourceExceededLimitException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4345,17 +4356,17 @@ func (s TagsPerResourceExceededLimitException) GoString() string {
func newErrorTagsPerResourceExceededLimitException(v protocol.ResponseMetadata) error {
return &TagsPerResourceExceededLimitException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagsPerResourceExceededLimitException) Code() string {
+func (s *TagsPerResourceExceededLimitException) Code() string {
return "TagsPerResourceExceededLimitException"
}
// Message returns the exception's message.
-func (s TagsPerResourceExceededLimitException) Message() string {
+func (s *TagsPerResourceExceededLimitException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4363,28 +4374,29 @@ func (s TagsPerResourceExceededLimitException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagsPerResourceExceededLimitException) OrigErr() error {
+func (s *TagsPerResourceExceededLimitException) OrigErr() error {
return nil
}
-func (s TagsPerResourceExceededLimitException) Error() string {
+func (s *TagsPerResourceExceededLimitException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagsPerResourceExceededLimitException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagsPerResourceExceededLimitException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagsPerResourceExceededLimitException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagsPerResourceExceededLimitException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure"`
- // The ARN of the signaling channel from which you want to remove tags.
+ // The Amazon Resource Name (ARN) of the signaling channel from which you want
+ // to remove tags.
//
// ResourceARN is a required field
ResourceARN *string `min:"1" type:"string" required:"true"`
@@ -4649,7 +4661,8 @@ func (s UpdateDataRetentionOutput) GoString() string {
type UpdateSignalingChannelInput struct {
_ struct{} `type:"structure"`
- // The ARN of the signaling channel that you want to update.
+ // The Amazon Resource Name (ARN) of the signaling channel that you want to
+ // update.
//
// ChannelARN is a required field
ChannelARN *string `min:"1" type:"string" required:"true"`
@@ -4851,8 +4864,8 @@ func (s UpdateStreamOutput) GoString() string {
// latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html)
// API.
type VersionMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4869,17 +4882,17 @@ func (s VersionMismatchException) GoString() string {
func newErrorVersionMismatchException(v protocol.ResponseMetadata) error {
return &VersionMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s VersionMismatchException) Code() string {
+func (s *VersionMismatchException) Code() string {
return "VersionMismatchException"
}
// Message returns the exception's message.
-func (s VersionMismatchException) Message() string {
+func (s *VersionMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4887,22 +4900,22 @@ func (s VersionMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s VersionMismatchException) OrigErr() error {
+func (s *VersionMismatchException) OrigErr() error {
return nil
}
-func (s VersionMismatchException) Error() string {
+func (s *VersionMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s VersionMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *VersionMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s VersionMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *VersionMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
@@ -4923,6 +4936,9 @@ const (
// APINameGetDashStreamingSessionUrl is a APIName enum value
APINameGetDashStreamingSessionUrl = "GET_DASH_STREAMING_SESSION_URL"
+
+ // APINameGetClip is a APIName enum value
+ APINameGetClip = "GET_CLIP"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go
index 57993f66a76..c1b48db3fc5 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go
@@ -67,7 +67,7 @@ const (
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
- // The stream is currently not available for this operation.
+ // The signaling channel is currently not available for this operation.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go
index 725da920645..efbc44ebcbf 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go
@@ -6533,8 +6533,8 @@ func (s *AliasListEntry) SetTargetKeyId(v string) *AliasListEntry {
// The request was rejected because it attempted to create a resource that already
// exists.
type AlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6551,17 +6551,17 @@ func (s AlreadyExistsException) GoString() string {
func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error {
return &AlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyExistsException) Code() string {
+func (s *AlreadyExistsException) Code() string {
return "AlreadyExistsException"
}
// Message returns the exception's message.
-func (s AlreadyExistsException) Message() string {
+func (s *AlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6569,22 +6569,22 @@ func (s AlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyExistsException) OrigErr() error {
+func (s *AlreadyExistsException) OrigErr() error {
return nil
}
-func (s AlreadyExistsException) Error() string {
+func (s *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CancelKeyDeletionInput struct {
@@ -6671,8 +6671,8 @@ func (s *CancelKeyDeletionOutput) SetKeyId(v string) *CancelKeyDeletionOutput {
// view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html)
// operation.
type CloudHsmClusterInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6689,17 +6689,17 @@ func (s CloudHsmClusterInUseException) GoString() string {
func newErrorCloudHsmClusterInUseException(v protocol.ResponseMetadata) error {
return &CloudHsmClusterInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmClusterInUseException) Code() string {
+func (s *CloudHsmClusterInUseException) Code() string {
return "CloudHsmClusterInUseException"
}
// Message returns the exception's message.
-func (s CloudHsmClusterInUseException) Message() string {
+func (s *CloudHsmClusterInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6707,22 +6707,22 @@ func (s CloudHsmClusterInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmClusterInUseException) OrigErr() error {
+func (s *CloudHsmClusterInUseException) OrigErr() error {
return nil
}
-func (s CloudHsmClusterInUseException) Error() string {
+func (s *CloudHsmClusterInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmClusterInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmClusterInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmClusterInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmClusterInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the associated AWS CloudHSM cluster did
@@ -6756,8 +6756,8 @@ func (s CloudHsmClusterInUseException) RequestID() string {
// see Configure a Default Security Group (https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html)
// in the AWS CloudHSM User Guide .
type CloudHsmClusterInvalidConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6774,17 +6774,17 @@ func (s CloudHsmClusterInvalidConfigurationException) GoString() string {
func newErrorCloudHsmClusterInvalidConfigurationException(v protocol.ResponseMetadata) error {
return &CloudHsmClusterInvalidConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmClusterInvalidConfigurationException) Code() string {
+func (s *CloudHsmClusterInvalidConfigurationException) Code() string {
return "CloudHsmClusterInvalidConfigurationException"
}
// Message returns the exception's message.
-func (s CloudHsmClusterInvalidConfigurationException) Message() string {
+func (s *CloudHsmClusterInvalidConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6792,22 +6792,22 @@ func (s CloudHsmClusterInvalidConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmClusterInvalidConfigurationException) OrigErr() error {
+func (s *CloudHsmClusterInvalidConfigurationException) OrigErr() error {
return nil
}
-func (s CloudHsmClusterInvalidConfigurationException) Error() string {
+func (s *CloudHsmClusterInvalidConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmClusterInvalidConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmClusterInvalidConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmClusterInvalidConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmClusterInvalidConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the AWS CloudHSM cluster that is associated
@@ -6816,8 +6816,8 @@ func (s CloudHsmClusterInvalidConfigurationException) RequestID() string {
// (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html)
// in the AWS CloudHSM User Guide.
type CloudHsmClusterNotActiveException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6834,17 +6834,17 @@ func (s CloudHsmClusterNotActiveException) GoString() string {
func newErrorCloudHsmClusterNotActiveException(v protocol.ResponseMetadata) error {
return &CloudHsmClusterNotActiveException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmClusterNotActiveException) Code() string {
+func (s *CloudHsmClusterNotActiveException) Code() string {
return "CloudHsmClusterNotActiveException"
}
// Message returns the exception's message.
-func (s CloudHsmClusterNotActiveException) Message() string {
+func (s *CloudHsmClusterNotActiveException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6852,30 +6852,30 @@ func (s CloudHsmClusterNotActiveException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmClusterNotActiveException) OrigErr() error {
+func (s *CloudHsmClusterNotActiveException) OrigErr() error {
return nil
}
-func (s CloudHsmClusterNotActiveException) Error() string {
+func (s *CloudHsmClusterNotActiveException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmClusterNotActiveException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmClusterNotActiveException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmClusterNotActiveException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmClusterNotActiveException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster
// with the specified cluster ID. Retry the request with a different cluster
// ID.
type CloudHsmClusterNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6892,17 +6892,17 @@ func (s CloudHsmClusterNotFoundException) GoString() string {
func newErrorCloudHsmClusterNotFoundException(v protocol.ResponseMetadata) error {
return &CloudHsmClusterNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmClusterNotFoundException) Code() string {
+func (s *CloudHsmClusterNotFoundException) Code() string {
return "CloudHsmClusterNotFoundException"
}
// Message returns the exception's message.
-func (s CloudHsmClusterNotFoundException) Message() string {
+func (s *CloudHsmClusterNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6910,22 +6910,22 @@ func (s CloudHsmClusterNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmClusterNotFoundException) OrigErr() error {
+func (s *CloudHsmClusterNotFoundException) OrigErr() error {
return nil
}
-func (s CloudHsmClusterNotFoundException) Error() string {
+func (s *CloudHsmClusterNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmClusterNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmClusterNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmClusterNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmClusterNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified AWS CloudHSM cluster has a
@@ -6941,8 +6941,8 @@ func (s CloudHsmClusterNotFoundException) RequestID() string {
// view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html)
// operation.
type CloudHsmClusterNotRelatedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6959,17 +6959,17 @@ func (s CloudHsmClusterNotRelatedException) GoString() string {
func newErrorCloudHsmClusterNotRelatedException(v protocol.ResponseMetadata) error {
return &CloudHsmClusterNotRelatedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CloudHsmClusterNotRelatedException) Code() string {
+func (s *CloudHsmClusterNotRelatedException) Code() string {
return "CloudHsmClusterNotRelatedException"
}
// Message returns the exception's message.
-func (s CloudHsmClusterNotRelatedException) Message() string {
+func (s *CloudHsmClusterNotRelatedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6977,22 +6977,22 @@ func (s CloudHsmClusterNotRelatedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CloudHsmClusterNotRelatedException) OrigErr() error {
+func (s *CloudHsmClusterNotRelatedException) OrigErr() error {
return nil
}
-func (s CloudHsmClusterNotRelatedException) Error() string {
+func (s *CloudHsmClusterNotRelatedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CloudHsmClusterNotRelatedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CloudHsmClusterNotRelatedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CloudHsmClusterNotRelatedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CloudHsmClusterNotRelatedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ConnectCustomKeyStoreInput struct {
@@ -7714,8 +7714,8 @@ func (s *CreateKeyOutput) SetKeyMetadata(v *KeyMetadata) *CreateKeyOutput {
// use the ScheduleKeyDeletion operation to delete the CMKs. After they are
// deleted, you can delete the custom key store.
type CustomKeyStoreHasCMKsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7732,17 +7732,17 @@ func (s CustomKeyStoreHasCMKsException) GoString() string {
func newErrorCustomKeyStoreHasCMKsException(v protocol.ResponseMetadata) error {
return &CustomKeyStoreHasCMKsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomKeyStoreHasCMKsException) Code() string {
+func (s *CustomKeyStoreHasCMKsException) Code() string {
return "CustomKeyStoreHasCMKsException"
}
// Message returns the exception's message.
-func (s CustomKeyStoreHasCMKsException) Message() string {
+func (s *CustomKeyStoreHasCMKsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7750,22 +7750,22 @@ func (s CustomKeyStoreHasCMKsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomKeyStoreHasCMKsException) OrigErr() error {
+func (s *CustomKeyStoreHasCMKsException) OrigErr() error {
return nil
}
-func (s CustomKeyStoreHasCMKsException) Error() string {
+func (s *CustomKeyStoreHasCMKsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomKeyStoreHasCMKsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomKeyStoreHasCMKsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomKeyStoreHasCMKsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomKeyStoreHasCMKsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because of the ConnectionState of the custom key
@@ -7786,8 +7786,8 @@ func (s CustomKeyStoreHasCMKsException) RequestID() string {
// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid
// for all other ConnectionState values.
type CustomKeyStoreInvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7804,17 +7804,17 @@ func (s CustomKeyStoreInvalidStateException) GoString() string {
func newErrorCustomKeyStoreInvalidStateException(v protocol.ResponseMetadata) error {
return &CustomKeyStoreInvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomKeyStoreInvalidStateException) Code() string {
+func (s *CustomKeyStoreInvalidStateException) Code() string {
return "CustomKeyStoreInvalidStateException"
}
// Message returns the exception's message.
-func (s CustomKeyStoreInvalidStateException) Message() string {
+func (s *CustomKeyStoreInvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7822,30 +7822,30 @@ func (s CustomKeyStoreInvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomKeyStoreInvalidStateException) OrigErr() error {
+func (s *CustomKeyStoreInvalidStateException) OrigErr() error {
return nil
}
-func (s CustomKeyStoreInvalidStateException) Error() string {
+func (s *CustomKeyStoreInvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomKeyStoreInvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomKeyStoreInvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomKeyStoreInvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomKeyStoreInvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified custom key store name is already
// assigned to another custom key store in the account. Try again with a custom
// key store name that is unique in the account.
type CustomKeyStoreNameInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7862,17 +7862,17 @@ func (s CustomKeyStoreNameInUseException) GoString() string {
func newErrorCustomKeyStoreNameInUseException(v protocol.ResponseMetadata) error {
return &CustomKeyStoreNameInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomKeyStoreNameInUseException) Code() string {
+func (s *CustomKeyStoreNameInUseException) Code() string {
return "CustomKeyStoreNameInUseException"
}
// Message returns the exception's message.
-func (s CustomKeyStoreNameInUseException) Message() string {
+func (s *CustomKeyStoreNameInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7880,29 +7880,29 @@ func (s CustomKeyStoreNameInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomKeyStoreNameInUseException) OrigErr() error {
+func (s *CustomKeyStoreNameInUseException) OrigErr() error {
return nil
}
-func (s CustomKeyStoreNameInUseException) Error() string {
+func (s *CustomKeyStoreNameInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomKeyStoreNameInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomKeyStoreNameInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomKeyStoreNameInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomKeyStoreNameInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because AWS KMS cannot find a custom key store with
// the specified key store name or ID.
type CustomKeyStoreNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7919,17 +7919,17 @@ func (s CustomKeyStoreNotFoundException) GoString() string {
func newErrorCustomKeyStoreNotFoundException(v protocol.ResponseMetadata) error {
return &CustomKeyStoreNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomKeyStoreNotFoundException) Code() string {
+func (s *CustomKeyStoreNotFoundException) Code() string {
return "CustomKeyStoreNotFoundException"
}
// Message returns the exception's message.
-func (s CustomKeyStoreNotFoundException) Message() string {
+func (s *CustomKeyStoreNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7937,22 +7937,22 @@ func (s CustomKeyStoreNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomKeyStoreNotFoundException) OrigErr() error {
+func (s *CustomKeyStoreNotFoundException) OrigErr() error {
return nil
}
-func (s CustomKeyStoreNotFoundException) Error() string {
+func (s *CustomKeyStoreNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomKeyStoreNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomKeyStoreNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomKeyStoreNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomKeyStoreNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about each custom key store in the custom key store
@@ -8460,8 +8460,8 @@ func (s DeleteImportedKeyMaterialOutput) GoString() string {
// The system timed out while trying to fulfill the request. The request can
// be retried.
type DependencyTimeoutException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8478,17 +8478,17 @@ func (s DependencyTimeoutException) GoString() string {
func newErrorDependencyTimeoutException(v protocol.ResponseMetadata) error {
return &DependencyTimeoutException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DependencyTimeoutException) Code() string {
+func (s *DependencyTimeoutException) Code() string {
return "DependencyTimeoutException"
}
// Message returns the exception's message.
-func (s DependencyTimeoutException) Message() string {
+func (s *DependencyTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8496,22 +8496,22 @@ func (s DependencyTimeoutException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DependencyTimeoutException) OrigErr() error {
+func (s *DependencyTimeoutException) OrigErr() error {
return nil
}
-func (s DependencyTimeoutException) Error() string {
+func (s *DependencyTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DependencyTimeoutException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DependencyTimeoutException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DependencyTimeoutException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DependencyTimeoutException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DescribeCustomKeyStoresInput struct {
@@ -8879,8 +8879,8 @@ func (s DisableKeyRotationOutput) GoString() string {
// The request was rejected because the specified CMK is not enabled.
type DisabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8897,17 +8897,17 @@ func (s DisabledException) GoString() string {
func newErrorDisabledException(v protocol.ResponseMetadata) error {
return &DisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DisabledException) Code() string {
+func (s *DisabledException) Code() string {
return "DisabledException"
}
// Message returns the exception's message.
-func (s DisabledException) Message() string {
+func (s *DisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8915,22 +8915,22 @@ func (s DisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DisabledException) OrigErr() error {
+func (s *DisabledException) OrigErr() error {
return nil
}
-func (s DisabledException) Error() string {
+func (s *DisabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DisconnectCustomKeyStoreInput struct {
@@ -9293,8 +9293,8 @@ func (s *EncryptOutput) SetKeyId(v string) *EncryptOutput {
// GetParametersForImport to get a new import token and public key, use the
// new public key to encrypt the key material, and then try the request again.
type ExpiredImportTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9311,17 +9311,17 @@ func (s ExpiredImportTokenException) GoString() string {
func newErrorExpiredImportTokenException(v protocol.ResponseMetadata) error {
return &ExpiredImportTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredImportTokenException) Code() string {
+func (s *ExpiredImportTokenException) Code() string {
return "ExpiredImportTokenException"
}
// Message returns the exception's message.
-func (s ExpiredImportTokenException) Message() string {
+func (s *ExpiredImportTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9329,22 +9329,22 @@ func (s ExpiredImportTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredImportTokenException) OrigErr() error {
+func (s *ExpiredImportTokenException) OrigErr() error {
return nil
}
-func (s ExpiredImportTokenException) Error() string {
+func (s *ExpiredImportTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredImportTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredImportTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredImportTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredImportTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GenerateDataKeyInput struct {
@@ -10873,8 +10873,8 @@ func (s ImportKeyMaterialOutput) GoString() string {
// The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request
// must identify the same CMK that was used to encrypt the ciphertext.
type IncorrectKeyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10891,17 +10891,17 @@ func (s IncorrectKeyException) GoString() string {
func newErrorIncorrectKeyException(v protocol.ResponseMetadata) error {
return &IncorrectKeyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectKeyException) Code() string {
+func (s *IncorrectKeyException) Code() string {
return "IncorrectKeyException"
}
// Message returns the exception's message.
-func (s IncorrectKeyException) Message() string {
+func (s *IncorrectKeyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10909,30 +10909,30 @@ func (s IncorrectKeyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectKeyException) OrigErr() error {
+func (s *IncorrectKeyException) OrigErr() error {
return nil
}
-func (s IncorrectKeyException) Error() string {
+func (s *IncorrectKeyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectKeyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectKeyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectKeyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectKeyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the key material in the request is, expired,
// invalid, or is not the same key material that was previously imported into
// this customer master key (CMK).
type IncorrectKeyMaterialException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10949,17 +10949,17 @@ func (s IncorrectKeyMaterialException) GoString() string {
func newErrorIncorrectKeyMaterialException(v protocol.ResponseMetadata) error {
return &IncorrectKeyMaterialException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectKeyMaterialException) Code() string {
+func (s *IncorrectKeyMaterialException) Code() string {
return "IncorrectKeyMaterialException"
}
// Message returns the exception's message.
-func (s IncorrectKeyMaterialException) Message() string {
+func (s *IncorrectKeyMaterialException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10967,22 +10967,22 @@ func (s IncorrectKeyMaterialException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectKeyMaterialException) OrigErr() error {
+func (s *IncorrectKeyMaterialException) OrigErr() error {
return nil
}
-func (s IncorrectKeyMaterialException) Error() string {
+func (s *IncorrectKeyMaterialException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectKeyMaterialException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectKeyMaterialException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectKeyMaterialException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectKeyMaterialException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the trust anchor certificate in the request
@@ -10992,8 +10992,8 @@ func (s IncorrectKeyMaterialException) RequestID() string {
// you create the trust anchor certificate and save it in the customerCA.crt
// file.
type IncorrectTrustAnchorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11010,17 +11010,17 @@ func (s IncorrectTrustAnchorException) GoString() string {
func newErrorIncorrectTrustAnchorException(v protocol.ResponseMetadata) error {
return &IncorrectTrustAnchorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncorrectTrustAnchorException) Code() string {
+func (s *IncorrectTrustAnchorException) Code() string {
return "IncorrectTrustAnchorException"
}
// Message returns the exception's message.
-func (s IncorrectTrustAnchorException) Message() string {
+func (s *IncorrectTrustAnchorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11028,29 +11028,29 @@ func (s IncorrectTrustAnchorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncorrectTrustAnchorException) OrigErr() error {
+func (s *IncorrectTrustAnchorException) OrigErr() error {
return nil
}
-func (s IncorrectTrustAnchorException) Error() string {
+func (s *IncorrectTrustAnchorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncorrectTrustAnchorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncorrectTrustAnchorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncorrectTrustAnchorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncorrectTrustAnchorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because an internal exception occurred. The request
// can be retried.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11067,17 +11067,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "KMSInternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11085,28 +11085,28 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified alias name is not valid.
type InvalidAliasNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11123,17 +11123,17 @@ func (s InvalidAliasNameException) GoString() string {
func newErrorInvalidAliasNameException(v protocol.ResponseMetadata) error {
return &InvalidAliasNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAliasNameException) Code() string {
+func (s *InvalidAliasNameException) Code() string {
return "InvalidAliasNameException"
}
// Message returns the exception's message.
-func (s InvalidAliasNameException) Message() string {
+func (s *InvalidAliasNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11141,29 +11141,29 @@ func (s InvalidAliasNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAliasNameException) OrigErr() error {
+func (s *InvalidAliasNameException) OrigErr() error {
return nil
}
-func (s InvalidAliasNameException) Error() string {
+func (s *InvalidAliasNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAliasNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAliasNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAliasNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAliasNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because a specified ARN, or an ARN in a key policy,
// is not valid.
type InvalidArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11180,17 +11180,17 @@ func (s InvalidArnException) GoString() string {
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArnException) Code() string {
+func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
-func (s InvalidArnException) Message() string {
+func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11198,22 +11198,22 @@ func (s InvalidArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArnException) OrigErr() error {
+func (s *InvalidArnException) OrigErr() error {
return nil
}
-func (s InvalidArnException) Error() string {
+func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// From the Decrypt or ReEncrypt operation, the request was rejected because
@@ -11224,8 +11224,8 @@ func (s InvalidArnException) RequestID() string {
// From the ImportKeyMaterial operation, the request was rejected because AWS
// KMS could not decrypt the encrypted (wrapped) key material.
type InvalidCiphertextException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11242,17 +11242,17 @@ func (s InvalidCiphertextException) GoString() string {
func newErrorInvalidCiphertextException(v protocol.ResponseMetadata) error {
return &InvalidCiphertextException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCiphertextException) Code() string {
+func (s *InvalidCiphertextException) Code() string {
return "InvalidCiphertextException"
}
// Message returns the exception's message.
-func (s InvalidCiphertextException) Message() string {
+func (s *InvalidCiphertextException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11260,28 +11260,28 @@ func (s InvalidCiphertextException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCiphertextException) OrigErr() error {
+func (s *InvalidCiphertextException) OrigErr() error {
return nil
}
-func (s InvalidCiphertextException) Error() string {
+func (s *InvalidCiphertextException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCiphertextException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCiphertextException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCiphertextException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCiphertextException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified GrantId is not valid.
type InvalidGrantIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11298,17 +11298,17 @@ func (s InvalidGrantIdException) GoString() string {
func newErrorInvalidGrantIdException(v protocol.ResponseMetadata) error {
return &InvalidGrantIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGrantIdException) Code() string {
+func (s *InvalidGrantIdException) Code() string {
return "InvalidGrantIdException"
}
// Message returns the exception's message.
-func (s InvalidGrantIdException) Message() string {
+func (s *InvalidGrantIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11316,28 +11316,28 @@ func (s InvalidGrantIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGrantIdException) OrigErr() error {
+func (s *InvalidGrantIdException) OrigErr() error {
return nil
}
-func (s InvalidGrantIdException) Error() string {
+func (s *InvalidGrantIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGrantIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGrantIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGrantIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGrantIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified grant token is not valid.
type InvalidGrantTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11354,17 +11354,17 @@ func (s InvalidGrantTokenException) GoString() string {
func newErrorInvalidGrantTokenException(v protocol.ResponseMetadata) error {
return &InvalidGrantTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGrantTokenException) Code() string {
+func (s *InvalidGrantTokenException) Code() string {
return "InvalidGrantTokenException"
}
// Message returns the exception's message.
-func (s InvalidGrantTokenException) Message() string {
+func (s *InvalidGrantTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11372,29 +11372,29 @@ func (s InvalidGrantTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGrantTokenException) OrigErr() error {
+func (s *InvalidGrantTokenException) OrigErr() error {
return nil
}
-func (s InvalidGrantTokenException) Error() string {
+func (s *InvalidGrantTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGrantTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGrantTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGrantTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGrantTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the provided import token is invalid or
// is associated with a different customer master key (CMK).
type InvalidImportTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11411,17 +11411,17 @@ func (s InvalidImportTokenException) GoString() string {
func newErrorInvalidImportTokenException(v protocol.ResponseMetadata) error {
return &InvalidImportTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidImportTokenException) Code() string {
+func (s *InvalidImportTokenException) Code() string {
return "InvalidImportTokenException"
}
// Message returns the exception's message.
-func (s InvalidImportTokenException) Message() string {
+func (s *InvalidImportTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11429,22 +11429,22 @@ func (s InvalidImportTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidImportTokenException) OrigErr() error {
+func (s *InvalidImportTokenException) OrigErr() error {
return nil
}
-func (s InvalidImportTokenException) Error() string {
+func (s *InvalidImportTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidImportTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidImportTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidImportTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidImportTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected for one of the following reasons:
@@ -11461,8 +11461,8 @@ func (s InvalidImportTokenException) RequestID() string {
// To find the encryption or signing algorithms supported for a particular CMK,
// use the DescribeKey operation.
type InvalidKeyUsageException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11479,17 +11479,17 @@ func (s InvalidKeyUsageException) GoString() string {
func newErrorInvalidKeyUsageException(v protocol.ResponseMetadata) error {
return &InvalidKeyUsageException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidKeyUsageException) Code() string {
+func (s *InvalidKeyUsageException) Code() string {
return "InvalidKeyUsageException"
}
// Message returns the exception's message.
-func (s InvalidKeyUsageException) Message() string {
+func (s *InvalidKeyUsageException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11497,29 +11497,29 @@ func (s InvalidKeyUsageException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidKeyUsageException) OrigErr() error {
+func (s *InvalidKeyUsageException) OrigErr() error {
return nil
}
-func (s InvalidKeyUsageException) Error() string {
+func (s *InvalidKeyUsageException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidKeyUsageException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidKeyUsageException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidKeyUsageException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidKeyUsageException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the marker that specifies where pagination
// should next begin is not valid.
type InvalidMarkerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11536,17 +11536,17 @@ func (s InvalidMarkerException) GoString() string {
func newErrorInvalidMarkerException(v protocol.ResponseMetadata) error {
return &InvalidMarkerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMarkerException) Code() string {
+func (s *InvalidMarkerException) Code() string {
return "InvalidMarkerException"
}
// Message returns the exception's message.
-func (s InvalidMarkerException) Message() string {
+func (s *InvalidMarkerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11554,22 +11554,22 @@ func (s InvalidMarkerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMarkerException) OrigErr() error {
+func (s *InvalidMarkerException) OrigErr() error {
return nil
}
-func (s InvalidMarkerException) Error() string {
+func (s *InvalidMarkerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMarkerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMarkerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMarkerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMarkerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the state of the specified resource is not
@@ -11579,8 +11579,8 @@ func (s InvalidMarkerException) RequestID() string {
// Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
// in the AWS Key Management Service Developer Guide .
type InvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11597,17 +11597,17 @@ func (s InvalidStateException) GoString() string {
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateException) Code() string {
+func (s *InvalidStateException) Code() string {
return "KMSInvalidStateException"
}
// Message returns the exception's message.
-func (s InvalidStateException) Message() string {
+func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11615,30 +11615,30 @@ func (s InvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateException) OrigErr() error {
+func (s *InvalidStateException) OrigErr() error {
return nil
}
-func (s InvalidStateException) Error() string {
+func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the signature verification failed. Signature
// verification fails when it cannot confirm that signature was produced by
// signing the specified message with the specified CMK and signing algorithm.
type KMSInvalidSignatureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11655,17 +11655,17 @@ func (s KMSInvalidSignatureException) GoString() string {
func newErrorKMSInvalidSignatureException(v protocol.ResponseMetadata) error {
return &KMSInvalidSignatureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSInvalidSignatureException) Code() string {
+func (s *KMSInvalidSignatureException) Code() string {
return "KMSInvalidSignatureException"
}
// Message returns the exception's message.
-func (s KMSInvalidSignatureException) Message() string {
+func (s *KMSInvalidSignatureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11673,22 +11673,22 @@ func (s KMSInvalidSignatureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSInvalidSignatureException) OrigErr() error {
+func (s *KMSInvalidSignatureException) OrigErr() error {
return nil
}
-func (s KMSInvalidSignatureException) Error() string {
+func (s *KMSInvalidSignatureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSInvalidSignatureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSInvalidSignatureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSInvalidSignatureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSInvalidSignatureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about each entry in the key list.
@@ -11940,8 +11940,8 @@ func (s *KeyMetadata) SetValidTo(v time.Time) *KeyMetadata {
// The request was rejected because the specified CMK was not available. You
// can retry the request.
type KeyUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11958,17 +11958,17 @@ func (s KeyUnavailableException) GoString() string {
func newErrorKeyUnavailableException(v protocol.ResponseMetadata) error {
return &KeyUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KeyUnavailableException) Code() string {
+func (s *KeyUnavailableException) Code() string {
return "KeyUnavailableException"
}
// Message returns the exception's message.
-func (s KeyUnavailableException) Message() string {
+func (s *KeyUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11976,30 +11976,30 @@ func (s KeyUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KeyUnavailableException) OrigErr() error {
+func (s *KeyUnavailableException) OrigErr() error {
return nil
}
-func (s KeyUnavailableException) Error() string {
+func (s *KeyUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KeyUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KeyUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KeyUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KeyUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because a quota was exceeded. For more information,
// see Quotas (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html)
// in the AWS Key Management Service Developer Guide.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12016,17 +12016,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12034,22 +12034,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAliasesInput struct {
@@ -12740,8 +12740,8 @@ func (s *ListRetirableGrantsInput) SetRetiringPrincipal(v string) *ListRetirable
// The request was rejected because the specified policy is not syntactically
// or semantically correct.
type MalformedPolicyDocumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12758,17 +12758,17 @@ func (s MalformedPolicyDocumentException) GoString() string {
func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error {
return &MalformedPolicyDocumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedPolicyDocumentException) Code() string {
+func (s *MalformedPolicyDocumentException) Code() string {
return "MalformedPolicyDocumentException"
}
// Message returns the exception's message.
-func (s MalformedPolicyDocumentException) Message() string {
+func (s *MalformedPolicyDocumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12776,29 +12776,29 @@ func (s MalformedPolicyDocumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedPolicyDocumentException) OrigErr() error {
+func (s *MalformedPolicyDocumentException) OrigErr() error {
return nil
}
-func (s MalformedPolicyDocumentException) Error() string {
+func (s *MalformedPolicyDocumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedPolicyDocumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedPolicyDocumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedPolicyDocumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedPolicyDocumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because the specified entity or resource could not
// be found.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12815,17 +12815,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12833,22 +12833,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutKeyPolicyInput struct {
@@ -13760,8 +13760,8 @@ func (s *Tag) SetTagValue(v string) *Tag {
// The request was rejected because one or more tags are not valid.
type TagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13778,17 +13778,17 @@ func (s TagException) GoString() string {
func newErrorTagException(v protocol.ResponseMetadata) error {
return &TagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagException) Code() string {
+func (s *TagException) Code() string {
return "TagException"
}
// Message returns the exception's message.
-func (s TagException) Message() string {
+func (s *TagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13796,22 +13796,22 @@ func (s TagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagException) OrigErr() error {
+func (s *TagException) OrigErr() error {
return nil
}
-func (s TagException) Error() string {
+func (s *TagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -13906,8 +13906,8 @@ func (s TagResourceOutput) GoString() string {
// The request was rejected because a specified parameter is not supported or
// a specified resource is not valid for this operation.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13924,17 +13924,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13942,22 +13942,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/lakeformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/lakeformation/api.go
index 34a54bd9441..fe19b68cbf5 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/lakeformation/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/lakeformation/api.go
@@ -1333,8 +1333,8 @@ func (c *LakeFormation) UpdateResourceWithContext(ctx aws.Context, input *Update
// A resource to be created or added already exists.
type AlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -1352,17 +1352,17 @@ func (s AlreadyExistsException) GoString() string {
func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error {
return &AlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyExistsException) Code() string {
+func (s *AlreadyExistsException) Code() string {
return "AlreadyExistsException"
}
// Message returns the exception's message.
-func (s AlreadyExistsException) Message() string {
+func (s *AlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1370,22 +1370,22 @@ func (s AlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyExistsException) OrigErr() error {
+func (s *AlreadyExistsException) OrigErr() error {
return nil
}
-func (s AlreadyExistsException) Error() string {
+func (s *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type BatchGrantPermissionsInput struct {
@@ -1725,8 +1725,8 @@ func (s *ColumnWildcard) SetExcludedColumnNames(v []*string) *ColumnWildcard {
// Two processes are trying to modify a resource simultaneously.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -1744,17 +1744,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1762,22 +1762,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS Lake Formation principal.
@@ -2098,8 +2098,8 @@ func (s *DescribeResourceOutput) SetResourceInfo(v *ResourceInfo) *DescribeResou
// A specified entity does not exist
type EntityNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -2117,17 +2117,17 @@ func (s EntityNotFoundException) GoString() string {
func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error {
return &EntityNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityNotFoundException) Code() string {
+func (s *EntityNotFoundException) Code() string {
return "EntityNotFoundException"
}
// Message returns the exception's message.
-func (s EntityNotFoundException) Message() string {
+func (s *EntityNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2135,22 +2135,22 @@ func (s EntityNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityNotFoundException) OrigErr() error {
+func (s *EntityNotFoundException) OrigErr() error {
return nil
}
-func (s EntityNotFoundException) Error() string {
+func (s *EntityNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an error.
@@ -2528,8 +2528,8 @@ func (s GrantPermissionsOutput) GoString() string {
// An internal service error occurred.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -2547,17 +2547,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2565,28 +2565,28 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The input provided was not valid.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -2604,17 +2604,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2622,22 +2622,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListPermissionsInput struct {
@@ -2866,8 +2866,8 @@ func (s *ListResourcesOutput) SetResourceInfoList(v []*ResourceInfo) *ListResour
// The operation timed out.
type OperationTimeoutException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A message describing the problem.
Message_ *string `locationName:"Message" type:"string"`
@@ -2885,17 +2885,17 @@ func (s OperationTimeoutException) GoString() string {
func newErrorOperationTimeoutException(v protocol.ResponseMetadata) error {
return &OperationTimeoutException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationTimeoutException) Code() string {
+func (s *OperationTimeoutException) Code() string {
return "OperationTimeoutException"
}
// Message returns the exception's message.
-func (s OperationTimeoutException) Message() string {
+func (s *OperationTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2903,22 +2903,22 @@ func (s OperationTimeoutException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationTimeoutException) OrigErr() error {
+func (s *OperationTimeoutException) OrigErr() error {
return nil
}
-func (s OperationTimeoutException) Error() string {
+func (s *OperationTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationTimeoutException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationTimeoutException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationTimeoutException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationTimeoutException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Permissions granted to a principal.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go
index 13531de9260..96939ffbf79 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go
@@ -173,10 +173,10 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R
// To grant permission to another account, specify the account ID as the Principal.
// For AWS services, the principal is a domain-style identifier defined by the
// service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you
-// can also specify the ARN or owning account of the associated resource as
-// the SourceArn or SourceAccount. If you grant permission to a service principal
-// without specifying the source, other accounts could potentially configure
-// resources in their account to invoke your Lambda function.
+// can also specify the ARN of the associated resource as the SourceArn. If
+// you grant permission to a service principal without specifying the source,
+// other accounts could potentially configure resources in their account to
+// invoke your Lambda function.
//
// This action adds a statement to a resource-based permissions policy for the
// function. For more information about function policies, see Lambda Function
@@ -2374,7 +2374,8 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output
// client, SDK, firewall, proxy, or operating system to allow for long connections
// with timeout or keep-alive settings.
//
-// This operation requires permission for the lambda:InvokeFunction action.
+// This operation requires permission for the lambda:InvokeFunction (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html)
+// action.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -5545,11 +5546,9 @@ type AddPermissionInput struct {
// read it.
RevisionId *string `type:"string"`
- // For AWS services, the ID of the account that owns the resource. Use this
- // instead of SourceArn to grant permission to resources that are owned by another
- // account (for example, all of an account's Amazon S3 buckets). Or use it together
+ // For Amazon S3, the ID of the account that owns the resource. Use this together
// with SourceArn to ensure that the resource is owned by the specified account.
- // For example, an Amazon S3 bucket could be deleted by its owner and recreated
+ // It is possible for an Amazon S3 bucket to be deleted by its owner and recreated
// by another account.
SourceAccount *string `type:"string"`
@@ -5780,8 +5779,8 @@ func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*fl
// You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
type CodeStorageExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -5801,17 +5800,17 @@ func (s CodeStorageExceededException) GoString() string {
func newErrorCodeStorageExceededException(v protocol.ResponseMetadata) error {
return &CodeStorageExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CodeStorageExceededException) Code() string {
+func (s *CodeStorageExceededException) Code() string {
return "CodeStorageExceededException"
}
// Message returns the exception's message.
-func (s CodeStorageExceededException) Message() string {
+func (s *CodeStorageExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5819,22 +5818,22 @@ func (s CodeStorageExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CodeStorageExceededException) OrigErr() error {
+func (s *CodeStorageExceededException) OrigErr() error {
return nil
}
-func (s CodeStorageExceededException) Error() string {
+func (s *CodeStorageExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CodeStorageExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CodeStorageExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CodeStorageExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CodeStorageExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateAliasInput struct {
@@ -5993,8 +5992,8 @@ type CreateEventSourceMappingInput struct {
// FunctionName is a required field
FunctionName *string `min:"1" type:"string" required:"true"`
- // The maximum amount of time to gather records before invoking the function,
- // in seconds.
+ // (Streams) The maximum amount of time to gather records before invoking the
+ // function, in seconds.
MaximumBatchingWindowInSeconds *int64 `type:"integer"`
// (Streams) The maximum age of a record that Lambda sends to a function for
@@ -6924,8 +6923,8 @@ func (s *DestinationConfig) SetOnSuccess(v *OnSuccess) *DestinationConfig {
// Need additional permissions to configure VPC settings.
type EC2AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -6944,17 +6943,17 @@ func (s EC2AccessDeniedException) GoString() string {
func newErrorEC2AccessDeniedException(v protocol.ResponseMetadata) error {
return &EC2AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EC2AccessDeniedException) Code() string {
+func (s *EC2AccessDeniedException) Code() string {
return "EC2AccessDeniedException"
}
// Message returns the exception's message.
-func (s EC2AccessDeniedException) Message() string {
+func (s *EC2AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6962,29 +6961,29 @@ func (s EC2AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EC2AccessDeniedException) OrigErr() error {
+func (s *EC2AccessDeniedException) OrigErr() error {
return nil
}
-func (s EC2AccessDeniedException) Error() string {
+func (s *EC2AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EC2AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EC2AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EC2AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EC2AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization
// using the execution role provided for the Lambda function.
type EC2ThrottledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -7003,17 +7002,17 @@ func (s EC2ThrottledException) GoString() string {
func newErrorEC2ThrottledException(v protocol.ResponseMetadata) error {
return &EC2ThrottledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EC2ThrottledException) Code() string {
+func (s *EC2ThrottledException) Code() string {
return "EC2ThrottledException"
}
// Message returns the exception's message.
-func (s EC2ThrottledException) Message() string {
+func (s *EC2ThrottledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7021,29 +7020,29 @@ func (s EC2ThrottledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EC2ThrottledException) OrigErr() error {
+func (s *EC2ThrottledException) OrigErr() error {
return nil
}
-func (s EC2ThrottledException) Error() string {
+func (s *EC2ThrottledException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EC2ThrottledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EC2ThrottledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EC2ThrottledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EC2ThrottledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Lambda received an unexpected EC2 client exception while setting up for
// the Lambda function.
type EC2UnexpectedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
EC2ErrorCode *string `type:"string"`
@@ -7064,17 +7063,17 @@ func (s EC2UnexpectedException) GoString() string {
func newErrorEC2UnexpectedException(v protocol.ResponseMetadata) error {
return &EC2UnexpectedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EC2UnexpectedException) Code() string {
+func (s *EC2UnexpectedException) Code() string {
return "EC2UnexpectedException"
}
// Message returns the exception's message.
-func (s EC2UnexpectedException) Message() string {
+func (s *EC2UnexpectedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7082,30 +7081,30 @@ func (s EC2UnexpectedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EC2UnexpectedException) OrigErr() error {
+func (s *EC2UnexpectedException) OrigErr() error {
return nil
}
-func (s EC2UnexpectedException) Error() string {
+func (s *EC2UnexpectedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EC2UnexpectedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EC2UnexpectedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EC2UnexpectedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EC2UnexpectedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Lambda was not able to create an elastic network interface in the VPC,
// specified as part of Lambda function configuration, because the limit for
// network interfaces has been reached.
type ENILimitReachedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -7124,17 +7123,17 @@ func (s ENILimitReachedException) GoString() string {
func newErrorENILimitReachedException(v protocol.ResponseMetadata) error {
return &ENILimitReachedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ENILimitReachedException) Code() string {
+func (s *ENILimitReachedException) Code() string {
return "ENILimitReachedException"
}
// Message returns the exception's message.
-func (s ENILimitReachedException) Message() string {
+func (s *ENILimitReachedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7142,22 +7141,22 @@ func (s ENILimitReachedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ENILimitReachedException) OrigErr() error {
+func (s *ENILimitReachedException) OrigErr() error {
return nil
}
-func (s ENILimitReachedException) Error() string {
+func (s *ENILimitReachedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ENILimitReachedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ENILimitReachedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ENILimitReachedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ENILimitReachedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A function's environment variable settings.
@@ -7279,8 +7278,8 @@ type EventSourceMappingConfiguration struct {
// The result of the last AWS Lambda invocation of your Lambda function.
LastProcessingResult *string `type:"string"`
- // The maximum amount of time to gather records before invoking the function,
- // in seconds.
+ // (Streams) The maximum amount of time to gather records before invoking the
+ // function, in seconds.
MaximumBatchingWindowInSeconds *int64 `type:"integer"`
// (Streams) The maximum age of a record that Lambda sends to a function for
@@ -8973,8 +8972,8 @@ func (s *GetProvisionedConcurrencyConfigOutput) SetStatusReason(v string) *GetPr
// One of the parameters in the request is invalid.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -8995,17 +8994,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9013,28 +9012,28 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request body could not be parsed as JSON.
type InvalidRequestContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -9055,17 +9054,17 @@ func (s InvalidRequestContentException) GoString() string {
func newErrorInvalidRequestContentException(v protocol.ResponseMetadata) error {
return &InvalidRequestContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestContentException) Code() string {
+func (s *InvalidRequestContentException) Code() string {
return "InvalidRequestContentException"
}
// Message returns the exception's message.
-func (s InvalidRequestContentException) Message() string {
+func (s *InvalidRequestContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9073,28 +9072,28 @@ func (s InvalidRequestContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestContentException) OrigErr() error {
+func (s *InvalidRequestContentException) OrigErr() error {
return nil
}
-func (s InvalidRequestContentException) Error() string {
+func (s *InvalidRequestContentException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The runtime or runtime version specified is not supported.
type InvalidRuntimeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9113,17 +9112,17 @@ func (s InvalidRuntimeException) GoString() string {
func newErrorInvalidRuntimeException(v protocol.ResponseMetadata) error {
return &InvalidRuntimeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRuntimeException) Code() string {
+func (s *InvalidRuntimeException) Code() string {
return "InvalidRuntimeException"
}
// Message returns the exception's message.
-func (s InvalidRuntimeException) Message() string {
+func (s *InvalidRuntimeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9131,29 +9130,29 @@ func (s InvalidRuntimeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRuntimeException) OrigErr() error {
+func (s *InvalidRuntimeException) OrigErr() error {
return nil
}
-func (s InvalidRuntimeException) Error() string {
+func (s *InvalidRuntimeException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRuntimeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRuntimeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRuntimeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRuntimeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Security Group ID provided in the Lambda function VPC configuration is
// invalid.
type InvalidSecurityGroupIDException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9172,17 +9171,17 @@ func (s InvalidSecurityGroupIDException) GoString() string {
func newErrorInvalidSecurityGroupIDException(v protocol.ResponseMetadata) error {
return &InvalidSecurityGroupIDException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSecurityGroupIDException) Code() string {
+func (s *InvalidSecurityGroupIDException) Code() string {
return "InvalidSecurityGroupIDException"
}
// Message returns the exception's message.
-func (s InvalidSecurityGroupIDException) Message() string {
+func (s *InvalidSecurityGroupIDException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9190,28 +9189,28 @@ func (s InvalidSecurityGroupIDException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSecurityGroupIDException) OrigErr() error {
+func (s *InvalidSecurityGroupIDException) OrigErr() error {
return nil
}
-func (s InvalidSecurityGroupIDException) Error() string {
+func (s *InvalidSecurityGroupIDException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSecurityGroupIDException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSecurityGroupIDException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSecurityGroupIDException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSecurityGroupIDException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Subnet ID provided in the Lambda function VPC configuration is invalid.
type InvalidSubnetIDException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9230,17 +9229,17 @@ func (s InvalidSubnetIDException) GoString() string {
func newErrorInvalidSubnetIDException(v protocol.ResponseMetadata) error {
return &InvalidSubnetIDException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSubnetIDException) Code() string {
+func (s *InvalidSubnetIDException) Code() string {
return "InvalidSubnetIDException"
}
// Message returns the exception's message.
-func (s InvalidSubnetIDException) Message() string {
+func (s *InvalidSubnetIDException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9248,28 +9247,28 @@ func (s InvalidSubnetIDException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSubnetIDException) OrigErr() error {
+func (s *InvalidSubnetIDException) OrigErr() error {
return nil
}
-func (s InvalidSubnetIDException) Error() string {
+func (s *InvalidSubnetIDException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSubnetIDException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSubnetIDException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSubnetIDException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSubnetIDException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Lambda could not unzip the deployment package.
type InvalidZipFileException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9288,17 +9287,17 @@ func (s InvalidZipFileException) GoString() string {
func newErrorInvalidZipFileException(v protocol.ResponseMetadata) error {
return &InvalidZipFileException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidZipFileException) Code() string {
+func (s *InvalidZipFileException) Code() string {
return "InvalidZipFileException"
}
// Message returns the exception's message.
-func (s InvalidZipFileException) Message() string {
+func (s *InvalidZipFileException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9306,22 +9305,22 @@ func (s InvalidZipFileException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidZipFileException) OrigErr() error {
+func (s *InvalidZipFileException) OrigErr() error {
return nil
}
-func (s InvalidZipFileException) Error() string {
+func (s *InvalidZipFileException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidZipFileException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidZipFileException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidZipFileException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidZipFileException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Deprecated: InvokeAsyncInput has been deprecated
@@ -9598,8 +9597,8 @@ func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput {
// Lambda was unable to decrypt the environment variables because KMS access
// was denied. Check the Lambda function's KMS permissions.
type KMSAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9618,17 +9617,17 @@ func (s KMSAccessDeniedException) GoString() string {
func newErrorKMSAccessDeniedException(v protocol.ResponseMetadata) error {
return &KMSAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSAccessDeniedException) Code() string {
+func (s *KMSAccessDeniedException) Code() string {
return "KMSAccessDeniedException"
}
// Message returns the exception's message.
-func (s KMSAccessDeniedException) Message() string {
+func (s *KMSAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9636,29 +9635,29 @@ func (s KMSAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSAccessDeniedException) OrigErr() error {
+func (s *KMSAccessDeniedException) OrigErr() error {
return nil
}
-func (s KMSAccessDeniedException) Error() string {
+func (s *KMSAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Lambda was unable to decrypt the environment variables because the KMS key
// used is disabled. Check the Lambda function's KMS key settings.
type KMSDisabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9677,17 +9676,17 @@ func (s KMSDisabledException) GoString() string {
func newErrorKMSDisabledException(v protocol.ResponseMetadata) error {
return &KMSDisabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSDisabledException) Code() string {
+func (s *KMSDisabledException) Code() string {
return "KMSDisabledException"
}
// Message returns the exception's message.
-func (s KMSDisabledException) Message() string {
+func (s *KMSDisabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9695,29 +9694,29 @@ func (s KMSDisabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSDisabledException) OrigErr() error {
+func (s *KMSDisabledException) OrigErr() error {
return nil
}
-func (s KMSDisabledException) Error() string {
+func (s *KMSDisabledException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSDisabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSDisabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSDisabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSDisabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Lambda was unable to decrypt the environment variables because the KMS key
// used is in an invalid state for Decrypt. Check the function's KMS key settings.
type KMSInvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9736,17 +9735,17 @@ func (s KMSInvalidStateException) GoString() string {
func newErrorKMSInvalidStateException(v protocol.ResponseMetadata) error {
return &KMSInvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSInvalidStateException) Code() string {
+func (s *KMSInvalidStateException) Code() string {
return "KMSInvalidStateException"
}
// Message returns the exception's message.
-func (s KMSInvalidStateException) Message() string {
+func (s *KMSInvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9754,29 +9753,29 @@ func (s KMSInvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSInvalidStateException) OrigErr() error {
+func (s *KMSInvalidStateException) OrigErr() error {
return nil
}
-func (s KMSInvalidStateException) Error() string {
+func (s *KMSInvalidStateException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSInvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSInvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSInvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSInvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Lambda was unable to decrypt the environment variables because the KMS key
// was not found. Check the function's KMS key settings.
type KMSNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -9795,17 +9794,17 @@ func (s KMSNotFoundException) GoString() string {
func newErrorKMSNotFoundException(v protocol.ResponseMetadata) error {
return &KMSNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s KMSNotFoundException) Code() string {
+func (s *KMSNotFoundException) Code() string {
return "KMSNotFoundException"
}
// Message returns the exception's message.
-func (s KMSNotFoundException) Message() string {
+func (s *KMSNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9813,22 +9812,22 @@ func (s KMSNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s KMSNotFoundException) OrigErr() error {
+func (s *KMSNotFoundException) OrigErr() error {
return nil
}
-func (s KMSNotFoundException) Error() string {
+func (s *KMSNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s KMSNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *KMSNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s KMSNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *KMSNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
@@ -11048,8 +11047,8 @@ func (s *OnSuccess) SetDestination(v string) *OnSuccess {
// The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
type PolicyLengthExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -11068,17 +11067,17 @@ func (s PolicyLengthExceededException) GoString() string {
func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error {
return &PolicyLengthExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyLengthExceededException) Code() string {
+func (s *PolicyLengthExceededException) Code() string {
return "PolicyLengthExceededException"
}
// Message returns the exception's message.
-func (s PolicyLengthExceededException) Message() string {
+func (s *PolicyLengthExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11086,30 +11085,30 @@ func (s PolicyLengthExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyLengthExceededException) OrigErr() error {
+func (s *PolicyLengthExceededException) OrigErr() error {
return nil
}
-func (s PolicyLengthExceededException) Error() string {
+func (s *PolicyLengthExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyLengthExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyLengthExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyLengthExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyLengthExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The RevisionId provided does not match the latest RevisionId for the Lambda
// function or alias. Call the GetFunction or the GetAlias API to retrieve the
// latest RevisionId for your resource.
type PreconditionFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -11130,17 +11129,17 @@ func (s PreconditionFailedException) GoString() string {
func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error {
return &PreconditionFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreconditionFailedException) Code() string {
+func (s *PreconditionFailedException) Code() string {
return "PreconditionFailedException"
}
// Message returns the exception's message.
-func (s PreconditionFailedException) Message() string {
+func (s *PreconditionFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11148,22 +11147,22 @@ func (s PreconditionFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreconditionFailedException) OrigErr() error {
+func (s *PreconditionFailedException) OrigErr() error {
return nil
}
-func (s PreconditionFailedException) Error() string {
+func (s *PreconditionFailedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreconditionFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreconditionFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreconditionFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreconditionFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about the provisioned concurrency configuration for a function alias
@@ -11249,8 +11248,8 @@ func (s *ProvisionedConcurrencyConfigListItem) SetStatusReason(v string) *Provis
// The specified configuration does not exist.
type ProvisionedConcurrencyConfigNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -11269,17 +11268,17 @@ func (s ProvisionedConcurrencyConfigNotFoundException) GoString() string {
func newErrorProvisionedConcurrencyConfigNotFoundException(v protocol.ResponseMetadata) error {
return &ProvisionedConcurrencyConfigNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ProvisionedConcurrencyConfigNotFoundException) Code() string {
+func (s *ProvisionedConcurrencyConfigNotFoundException) Code() string {
return "ProvisionedConcurrencyConfigNotFoundException"
}
// Message returns the exception's message.
-func (s ProvisionedConcurrencyConfigNotFoundException) Message() string {
+func (s *ProvisionedConcurrencyConfigNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11287,22 +11286,22 @@ func (s ProvisionedConcurrencyConfigNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ProvisionedConcurrencyConfigNotFoundException) OrigErr() error {
+func (s *ProvisionedConcurrencyConfigNotFoundException) OrigErr() error {
return nil
}
-func (s ProvisionedConcurrencyConfigNotFoundException) Error() string {
+func (s *ProvisionedConcurrencyConfigNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ProvisionedConcurrencyConfigNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ProvisionedConcurrencyConfigNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ProvisionedConcurrencyConfigNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ProvisionedConcurrencyConfigNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PublishLayerVersionInput struct {
@@ -12199,8 +12198,8 @@ func (s RemovePermissionOutput) GoString() string {
// The request payload exceeded the Invoke request body JSON input limit. For
// more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html).
type RequestTooLargeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -12219,17 +12218,17 @@ func (s RequestTooLargeException) GoString() string {
func newErrorRequestTooLargeException(v protocol.ResponseMetadata) error {
return &RequestTooLargeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestTooLargeException) Code() string {
+func (s *RequestTooLargeException) Code() string {
return "RequestTooLargeException"
}
// Message returns the exception's message.
-func (s RequestTooLargeException) Message() string {
+func (s *RequestTooLargeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12237,28 +12236,28 @@ func (s RequestTooLargeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestTooLargeException) OrigErr() error {
+func (s *RequestTooLargeException) OrigErr() error {
return nil
}
-func (s RequestTooLargeException) Error() string {
+func (s *RequestTooLargeException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestTooLargeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestTooLargeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestTooLargeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestTooLargeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource already exists, or another operation is in progress.
type ResourceConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -12279,17 +12278,17 @@ func (s ResourceConflictException) GoString() string {
func newErrorResourceConflictException(v protocol.ResponseMetadata) error {
return &ResourceConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceConflictException) Code() string {
+func (s *ResourceConflictException) Code() string {
return "ResourceConflictException"
}
// Message returns the exception's message.
-func (s ResourceConflictException) Message() string {
+func (s *ResourceConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12297,30 +12296,30 @@ func (s ResourceConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceConflictException) OrigErr() error {
+func (s *ResourceConflictException) OrigErr() error {
return nil
}
-func (s ResourceConflictException) Error() string {
+func (s *ResourceConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation conflicts with the resource's availability. For example, you
// attempted to update an EventSource Mapping in CREATING, or tried to delete
// a EventSource mapping currently in the UPDATING state.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -12339,17 +12338,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12357,28 +12356,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource specified in the request does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -12397,17 +12396,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12415,29 +12414,29 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The function is inactive and its VPC connection is no longer available. Wait
// for the VPC connection to reestablish and try again.
type ResourceNotReadyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -12458,17 +12457,17 @@ func (s ResourceNotReadyException) GoString() string {
func newErrorResourceNotReadyException(v protocol.ResponseMetadata) error {
return &ResourceNotReadyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotReadyException) Code() string {
+func (s *ResourceNotReadyException) Code() string {
return "ResourceNotReadyException"
}
// Message returns the exception's message.
-func (s ResourceNotReadyException) Message() string {
+func (s *ResourceNotReadyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12476,28 +12475,28 @@ func (s ResourceNotReadyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotReadyException) OrigErr() error {
+func (s *ResourceNotReadyException) OrigErr() error {
return nil
}
-func (s ResourceNotReadyException) Error() string {
+func (s *ResourceNotReadyException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotReadyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotReadyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotReadyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotReadyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS Lambda service encountered an internal error.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -12516,17 +12515,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12534,29 +12533,29 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Lambda was not able to set up VPC access for the Lambda function because
// one or more configured subnets has no available IP addresses.
type SubnetIPAddressLimitReachedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -12575,17 +12574,17 @@ func (s SubnetIPAddressLimitReachedException) GoString() string {
func newErrorSubnetIPAddressLimitReachedException(v protocol.ResponseMetadata) error {
return &SubnetIPAddressLimitReachedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubnetIPAddressLimitReachedException) Code() string {
+func (s *SubnetIPAddressLimitReachedException) Code() string {
return "SubnetIPAddressLimitReachedException"
}
// Message returns the exception's message.
-func (s SubnetIPAddressLimitReachedException) Message() string {
+func (s *SubnetIPAddressLimitReachedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12593,22 +12592,22 @@ func (s SubnetIPAddressLimitReachedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubnetIPAddressLimitReachedException) OrigErr() error {
+func (s *SubnetIPAddressLimitReachedException) OrigErr() error {
return nil
}
-func (s SubnetIPAddressLimitReachedException) Error() string {
+func (s *SubnetIPAddressLimitReachedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubnetIPAddressLimitReachedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubnetIPAddressLimitReachedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubnetIPAddressLimitReachedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubnetIPAddressLimitReachedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -12682,8 +12681,8 @@ func (s TagResourceOutput) GoString() string {
// The request throughput limit was exceeded.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -12707,17 +12706,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12725,22 +12724,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The function's AWS X-Ray tracing configuration. To sample and record incoming
@@ -12794,8 +12793,8 @@ func (s *TracingConfigResponse) SetMode(v string) *TracingConfigResponse {
// The content type of the Invoke request body is not JSON.
type UnsupportedMediaTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -12814,17 +12813,17 @@ func (s UnsupportedMediaTypeException) GoString() string {
func newErrorUnsupportedMediaTypeException(v protocol.ResponseMetadata) error {
return &UnsupportedMediaTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedMediaTypeException) Code() string {
+func (s *UnsupportedMediaTypeException) Code() string {
return "UnsupportedMediaTypeException"
}
// Message returns the exception's message.
-func (s UnsupportedMediaTypeException) Message() string {
+func (s *UnsupportedMediaTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12832,22 +12831,22 @@ func (s UnsupportedMediaTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedMediaTypeException) OrigErr() error {
+func (s *UnsupportedMediaTypeException) OrigErr() error {
return nil
}
-func (s UnsupportedMediaTypeException) Error() string {
+func (s *UnsupportedMediaTypeException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedMediaTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedMediaTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedMediaTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedMediaTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -13068,8 +13067,8 @@ type UpdateEventSourceMappingInput struct {
// function name, it's limited to 64 characters in length.
FunctionName *string `min:"1" type:"string"`
- // The maximum amount of time to gather records before invoking the function,
- // in seconds.
+ // (Streams) The maximum amount of time to gather records before invoking the
+ // function, in seconds.
MaximumBatchingWindowInSeconds *int64 `type:"integer"`
// (Streams) The maximum age of a record that Lambda sends to a function for
@@ -13888,6 +13887,9 @@ const (
// RuntimeDotnetcore21 is a Runtime enum value
RuntimeDotnetcore21 = "dotnetcore2.1"
+ // RuntimeDotnetcore31 is a Runtime enum value
+ RuntimeDotnetcore31 = "dotnetcore3.1"
+
// RuntimeNodejs43Edge is a Runtime enum value
RuntimeNodejs43Edge = "nodejs4.3-edge"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go
index 5be4ae6e2b6..5f334ee6141 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go
@@ -4545,8 +4545,8 @@ func (c *LexModelBuildingService) UntagResourceWithContext(ctx aws.Context, inpu
// The request is not well formed. For example, a value is invalid or a required
// field is missing. Check the field values, and try again.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4563,17 +4563,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4581,22 +4581,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information about a bot alias.
@@ -5025,8 +5025,8 @@ func (s *CodeHook) SetUri(v string) *CodeHook {
// There was a conflict processing the request. Try your request again.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5043,17 +5043,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5061,22 +5061,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides the settings needed for conversation logs.
@@ -9242,8 +9242,8 @@ func (s *IntentMetadata) SetVersion(v string) *IntentMetadata {
// An internal Amazon Lex error occurred. Try your request again.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9260,17 +9260,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9278,28 +9278,28 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request exceeded a limit. Try your request again.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -9318,17 +9318,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9336,22 +9336,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListTagsForResourceInput struct {
@@ -9643,8 +9643,8 @@ func (s *Message) SetGroupNumber(v int64) *Message {
// The resource specified in the request was not found. Check the resource and
// try again.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9661,17 +9661,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9679,29 +9679,29 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The checksum of the resource that you are trying to change does not match
// the checksum in the request. Check the resource's checksum and try again.
type PreconditionFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9718,17 +9718,17 @@ func (s PreconditionFailedException) GoString() string {
func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error {
return &PreconditionFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreconditionFailedException) Code() string {
+func (s *PreconditionFailedException) Code() string {
return "PreconditionFailedException"
}
// Message returns the exception's message.
-func (s PreconditionFailedException) Message() string {
+func (s *PreconditionFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9736,22 +9736,22 @@ func (s PreconditionFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreconditionFailedException) OrigErr() error {
+func (s *PreconditionFailedException) OrigErr() error {
return nil
}
-func (s PreconditionFailedException) Error() string {
+func (s *PreconditionFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreconditionFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreconditionFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreconditionFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreconditionFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Obtains information from the user. To define a prompt, provide one or more
@@ -11342,8 +11342,8 @@ func (s *PutSlotTypeOutput) SetVersion(v string) *PutSlotTypeOutput {
//
// "name": string, "version": string } }
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Describes the resource that refers to the resource that you are attempting
// to delete. This object is returned as part of the ResourceInUseException
@@ -11367,17 +11367,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11385,22 +11385,22 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the resource that refers to the resource that you are attempting
diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go
index 6fab0ad67e7..1207a082be2 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go
@@ -1545,8 +1545,8 @@ func (c *LicenseManager) UpdateServiceSettingsWithContext(ctx aws.Context, input
// Access to resource denied.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1563,17 +1563,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1581,29 +1581,29 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS user account does not have permission to perform the action. Check
// the IAM policy associated with this account.
type AuthorizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1620,17 +1620,17 @@ func (s AuthorizationException) GoString() string {
func newErrorAuthorizationException(v protocol.ResponseMetadata) error {
return &AuthorizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AuthorizationException) Code() string {
+func (s *AuthorizationException) Code() string {
return "AuthorizationException"
}
// Message returns the exception's message.
-func (s AuthorizationException) Message() string {
+func (s *AuthorizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1638,22 +1638,22 @@ func (s AuthorizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AuthorizationException) OrigErr() error {
+func (s *AuthorizationException) OrigErr() error {
return nil
}
-func (s AuthorizationException) Error() string {
+func (s *AuthorizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AuthorizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AuthorizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AuthorizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AuthorizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes automated discovery.
@@ -1918,8 +1918,8 @@ func (s DeleteLicenseConfigurationOutput) GoString() string {
// A dependency required to run the API is missing.
type FailedDependencyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1936,17 +1936,17 @@ func (s FailedDependencyException) GoString() string {
func newErrorFailedDependencyException(v protocol.ResponseMetadata) error {
return &FailedDependencyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FailedDependencyException) Code() string {
+func (s *FailedDependencyException) Code() string {
return "FailedDependencyException"
}
// Message returns the exception's message.
-func (s FailedDependencyException) Message() string {
+func (s *FailedDependencyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1954,22 +1954,22 @@ func (s FailedDependencyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FailedDependencyException) OrigErr() error {
+func (s *FailedDependencyException) OrigErr() error {
return nil
}
-func (s FailedDependencyException) Error() string {
+func (s *FailedDependencyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FailedDependencyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FailedDependencyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FailedDependencyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FailedDependencyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A filter name and value pair that is used to return more specific results
@@ -2009,8 +2009,8 @@ func (s *Filter) SetValues(v []*string) *Filter {
// The request uses too many filters or too many filter values.
type FilterLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2027,17 +2027,17 @@ func (s FilterLimitExceededException) GoString() string {
func newErrorFilterLimitExceededException(v protocol.ResponseMetadata) error {
return &FilterLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FilterLimitExceededException) Code() string {
+func (s *FilterLimitExceededException) Code() string {
return "FilterLimitExceededException"
}
// Message returns the exception's message.
-func (s FilterLimitExceededException) Message() string {
+func (s *FilterLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2045,22 +2045,22 @@ func (s FilterLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FilterLimitExceededException) OrigErr() error {
+func (s *FilterLimitExceededException) OrigErr() error {
return nil
}
-func (s FilterLimitExceededException) Error() string {
+func (s *FilterLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FilterLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FilterLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FilterLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FilterLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetLicenseConfigurationInput struct {
@@ -2337,8 +2337,8 @@ func (s *GetServiceSettingsOutput) SetSnsTopicArn(v string) *GetServiceSettingsO
// One or more parameter values are not valid.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2355,17 +2355,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2373,22 +2373,22 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// License Manager cannot allocate a license to a resource because of its state.
@@ -2396,8 +2396,8 @@ func (s InvalidParameterValueException) RequestID() string {
// For example, you cannot allocate a license to an instance in the process
// of shutting down.
type InvalidResourceStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2414,17 +2414,17 @@ func (s InvalidResourceStateException) GoString() string {
func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error {
return &InvalidResourceStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceStateException) Code() string {
+func (s *InvalidResourceStateException) Code() string {
return "InvalidResourceStateException"
}
// Message returns the exception's message.
-func (s InvalidResourceStateException) Message() string {
+func (s *InvalidResourceStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2432,22 +2432,22 @@ func (s InvalidResourceStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceStateException) OrigErr() error {
+func (s *InvalidResourceStateException) OrigErr() error {
return nil
}
-func (s InvalidResourceStateException) Error() string {
+func (s *InvalidResourceStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An inventory filter.
@@ -2915,8 +2915,8 @@ func (s *LicenseSpecification) SetLicenseConfigurationArn(v string) *LicenseSpec
// You do not have enough licenses available to support a new resource launch.
type LicenseUsageException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2933,17 +2933,17 @@ func (s LicenseUsageException) GoString() string {
func newErrorLicenseUsageException(v protocol.ResponseMetadata) error {
return &LicenseUsageException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LicenseUsageException) Code() string {
+func (s *LicenseUsageException) Code() string {
return "LicenseUsageException"
}
// Message returns the exception's message.
-func (s LicenseUsageException) Message() string {
+func (s *LicenseUsageException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2951,22 +2951,22 @@ func (s LicenseUsageException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LicenseUsageException) OrigErr() error {
+func (s *LicenseUsageException) OrigErr() error {
return nil
}
-func (s LicenseUsageException) Error() string {
+func (s *LicenseUsageException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LicenseUsageException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LicenseUsageException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LicenseUsageException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LicenseUsageException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAssociationsForLicenseConfigurationInput struct {
@@ -3858,8 +3858,8 @@ func (s *ProductInformationFilter) SetProductInformationFilterValue(v []*string)
// Too many requests have been submitted. Try again after a brief wait.
type RateLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3876,17 +3876,17 @@ func (s RateLimitExceededException) GoString() string {
func newErrorRateLimitExceededException(v protocol.ResponseMetadata) error {
return &RateLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RateLimitExceededException) Code() string {
+func (s *RateLimitExceededException) Code() string {
return "RateLimitExceededException"
}
// Message returns the exception's message.
-func (s RateLimitExceededException) Message() string {
+func (s *RateLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3894,22 +3894,22 @@ func (s RateLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RateLimitExceededException) OrigErr() error {
+func (s *RateLimitExceededException) OrigErr() error {
return nil
}
-func (s RateLimitExceededException) Error() string {
+func (s *RateLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RateLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RateLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RateLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RateLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about a resource.
@@ -3983,8 +3983,8 @@ func (s *ResourceInventory) SetResourceType(v string) *ResourceInventory {
// Your resource limits have been exceeded.
type ResourceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4001,17 +4001,17 @@ func (s ResourceLimitExceededException) GoString() string {
func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceededException) Code() string {
+func (s *ResourceLimitExceededException) Code() string {
return "ResourceLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceLimitExceededException) Message() string {
+func (s *ResourceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4019,28 +4019,28 @@ func (s ResourceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceededException) OrigErr() error {
+func (s *ResourceLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceLimitExceededException) Error() string {
+func (s *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The server experienced an internal error. Try again.
type ServerInternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4057,17 +4057,17 @@ func (s ServerInternalException) GoString() string {
func newErrorServerInternalException(v protocol.ResponseMetadata) error {
return &ServerInternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerInternalException) Code() string {
+func (s *ServerInternalException) Code() string {
return "ServerInternalException"
}
// Message returns the exception's message.
-func (s ServerInternalException) Message() string {
+func (s *ServerInternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4075,22 +4075,22 @@ func (s ServerInternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerInternalException) OrigErr() error {
+func (s *ServerInternalException) OrigErr() error {
return nil
}
-func (s ServerInternalException) Error() string {
+func (s *ServerInternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerInternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerInternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerInternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerInternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about a tag for a license configuration.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go
index 6d61ff5085d..1aacad6e2d3 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go
@@ -12166,8 +12166,8 @@ func (c *Lightsail) UpdateRelationalDatabaseParametersWithContext(ctx aws.Contex
// Lightsail throws this exception when the user cannot be authenticated or
// uses invalid credentials to access a resource.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -12190,17 +12190,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12208,29 +12208,29 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Lightsail throws this exception when an account is still in the setup in
// progress state.
type AccountSetupInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -12253,17 +12253,17 @@ func (s AccountSetupInProgressException) GoString() string {
func newErrorAccountSetupInProgressException(v protocol.ResponseMetadata) error {
return &AccountSetupInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountSetupInProgressException) Code() string {
+func (s *AccountSetupInProgressException) Code() string {
return "AccountSetupInProgressException"
}
// Message returns the exception's message.
-func (s AccountSetupInProgressException) Message() string {
+func (s *AccountSetupInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12271,22 +12271,22 @@ func (s AccountSetupInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountSetupInProgressException) OrigErr() error {
+func (s *AccountSetupInProgressException) OrigErr() error {
return nil
}
-func (s AccountSetupInProgressException) Error() string {
+func (s *AccountSetupInProgressException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountSetupInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountSetupInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountSetupInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountSetupInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an add-on that is enabled for an Amazon Lightsail resource.
@@ -23430,8 +23430,8 @@ func (s *InstanceState) SetName(v string) *InstanceState {
// Please set your AWS Region configuration to us-east-1 to create, view, or
// edit these resources.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -23454,17 +23454,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23472,22 +23472,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type IsVpcPeeredInput struct {
@@ -24414,8 +24414,8 @@ func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer {
// Lightsail throws this exception when it cannot find a resource.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -24438,17 +24438,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24456,22 +24456,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type OpenInstancePublicPortsInput struct {
@@ -24676,8 +24676,8 @@ func (s *Operation) SetStatusChangedAt(v time.Time) *Operation {
// Lightsail throws this exception when an operation fails to execute.
type OperationFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -24700,17 +24700,17 @@ func (s OperationFailureException) GoString() string {
func newErrorOperationFailureException(v protocol.ResponseMetadata) error {
return &OperationFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationFailureException) Code() string {
+func (s *OperationFailureException) Code() string {
return "OperationFailureException"
}
// Message returns the exception's message.
-func (s OperationFailureException) Message() string {
+func (s *OperationFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24718,22 +24718,22 @@ func (s OperationFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationFailureException) OrigErr() error {
+func (s *OperationFailureException) OrigErr() error {
return nil
}
-func (s OperationFailureException) Error() string {
+func (s *OperationFailureException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The password data for the Windows Server-based instance, including the ciphertext
@@ -26455,8 +26455,8 @@ func (s *SendContactMethodVerificationOutput) SetOperations(v []*Operation) *Sen
// A general service exception.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -26479,17 +26479,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26497,22 +26497,22 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StartInstanceInput struct {
@@ -27107,8 +27107,8 @@ func (s *TestAlarmOutput) SetOperations(v []*Operation) *TestAlarmOutput {
// Lightsail throws this exception when the user has not been authenticated.
type UnauthenticatedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
@@ -27131,17 +27131,17 @@ func (s UnauthenticatedException) GoString() string {
func newErrorUnauthenticatedException(v protocol.ResponseMetadata) error {
return &UnauthenticatedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthenticatedException) Code() string {
+func (s *UnauthenticatedException) Code() string {
return "UnauthenticatedException"
}
// Message returns the exception's message.
-func (s UnauthenticatedException) Message() string {
+func (s *UnauthenticatedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27149,22 +27149,22 @@ func (s UnauthenticatedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthenticatedException) OrigErr() error {
+func (s *UnauthenticatedException) OrigErr() error {
return nil
}
-func (s UnauthenticatedException) Error() string {
+func (s *UnauthenticatedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthenticatedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthenticatedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthenticatedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthenticatedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UnpeerVpcInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/macie/api.go b/vendor/github.com/aws/aws-sdk-go/service/macie/api.go
index 615361d048f..d6728b8d182 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/macie/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/macie/api.go
@@ -749,8 +749,8 @@ func (c *Macie) UpdateS3ResourcesWithContext(ctx aws.Context, input *UpdateS3Res
// You do not have required permissions to access the requested resource.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -770,17 +770,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -788,22 +788,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AssociateMemberAccountInput struct {
@@ -1216,8 +1216,8 @@ func (s *FailedS3Resource) SetFailedItem(v *S3Resource) *FailedS3Resource {
// Internal server error.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Error code for the exception
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1237,17 +1237,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1255,29 +1255,29 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Error code for the exception
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1300,17 +1300,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1318,29 +1318,29 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because it attempted to create resources beyond
// the current AWS account limits. The error code describes the limit exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Error code for the exception
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1363,17 +1363,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1381,22 +1381,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListMemberAccountsInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/managedblockchain/api.go b/vendor/github.com/aws/aws-sdk-go/service/managedblockchain/api.go
index d2537bef0f0..01e13126274 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/managedblockchain/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/managedblockchain/api.go
@@ -2057,6 +2057,202 @@ func (c *ManagedBlockchain) RejectInvitationWithContext(ctx aws.Context, input *
return out, req.Send()
}
+const opUpdateMember = "UpdateMember"
+
+// UpdateMemberRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateMember operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateMember for more information on using the UpdateMember
+// 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 UpdateMemberRequest method.
+// req, resp := client.UpdateMemberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateMember
+func (c *ManagedBlockchain) UpdateMemberRequest(input *UpdateMemberInput) (req *request.Request, output *UpdateMemberOutput) {
+ op := &request.Operation{
+ Name: opUpdateMember,
+ HTTPMethod: "PATCH",
+ HTTPPath: "/networks/{networkId}/members/{memberId}",
+ }
+
+ if input == nil {
+ input = &UpdateMemberInput{}
+ }
+
+ output = &UpdateMemberOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UpdateMember API operation for Amazon Managed Blockchain.
+//
+// Updates a member configuration with new parameters.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Managed Blockchain's
+// API operation UpdateMember for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// The action or operation requested is invalid. Verify that the action is typed
+// correctly.
+//
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
+// * ResourceNotFoundException
+// A requested resource does not exist on the network. It may have been deleted
+// or referenced inaccurately.
+//
+// * ThrottlingException
+// The request or operation could not be performed because a service is throttling
+// requests. The most common source of throttling errors is launching EC2 instances
+// such that your service limit for EC2 instances is exceeded. Request a limit
+// increase or delete unused resources if possible.
+//
+// * InternalServiceErrorException
+// The request processing has failed because of an unknown error, exception
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateMember
+func (c *ManagedBlockchain) UpdateMember(input *UpdateMemberInput) (*UpdateMemberOutput, error) {
+ req, out := c.UpdateMemberRequest(input)
+ return out, req.Send()
+}
+
+// UpdateMemberWithContext is the same as UpdateMember with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateMember 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 *ManagedBlockchain) UpdateMemberWithContext(ctx aws.Context, input *UpdateMemberInput, opts ...request.Option) (*UpdateMemberOutput, error) {
+ req, out := c.UpdateMemberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateNode = "UpdateNode"
+
+// UpdateNodeRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateNode operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateNode for more information on using the UpdateNode
+// 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 UpdateNodeRequest method.
+// req, resp := client.UpdateNodeRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateNode
+func (c *ManagedBlockchain) UpdateNodeRequest(input *UpdateNodeInput) (req *request.Request, output *UpdateNodeOutput) {
+ op := &request.Operation{
+ Name: opUpdateNode,
+ HTTPMethod: "PATCH",
+ HTTPPath: "/networks/{networkId}/members/{memberId}/nodes/{nodeId}",
+ }
+
+ if input == nil {
+ input = &UpdateNodeInput{}
+ }
+
+ output = &UpdateNodeOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UpdateNode API operation for Amazon Managed Blockchain.
+//
+// Updates a node configuration with new parameters.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Managed Blockchain's
+// API operation UpdateNode for usage and error information.
+//
+// Returned Error Types:
+// * InvalidRequestException
+// The action or operation requested is invalid. Verify that the action is typed
+// correctly.
+//
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
+// * ResourceNotFoundException
+// A requested resource does not exist on the network. It may have been deleted
+// or referenced inaccurately.
+//
+// * ThrottlingException
+// The request or operation could not be performed because a service is throttling
+// requests. The most common source of throttling errors is launching EC2 instances
+// such that your service limit for EC2 instances is exceeded. Request a limit
+// increase or delete unused resources if possible.
+//
+// * InternalServiceErrorException
+// The request processing has failed because of an unknown error, exception
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateNode
+func (c *ManagedBlockchain) UpdateNode(input *UpdateNodeInput) (*UpdateNodeOutput, error) {
+ req, out := c.UpdateNodeRequest(input)
+ return out, req.Send()
+}
+
+// UpdateNodeWithContext is the same as UpdateNode with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateNode 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 *ManagedBlockchain) UpdateNodeWithContext(ctx aws.Context, input *UpdateNodeInput, opts ...request.Option) (*UpdateNodeOutput, error) {
+ req, out := c.UpdateNodeRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opVoteOnProposal = "VoteOnProposal"
// VoteOnProposalRequest generates a "aws/request.Request" representing the
@@ -2161,8 +2357,8 @@ func (c *ManagedBlockchain) VoteOnProposalWithContext(ctx aws.Context, input *Vo
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2179,17 +2375,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2197,22 +2393,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A policy type that defines the voting rules for the network. The rules decide
@@ -3313,8 +3509,8 @@ func (s *GetProposalOutput) SetProposal(v *Proposal) *GetProposalOutput {
}
type IllegalActionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3331,17 +3527,17 @@ func (s IllegalActionException) GoString() string {
func newErrorIllegalActionException(v protocol.ResponseMetadata) error {
return &IllegalActionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IllegalActionException) Code() string {
+func (s *IllegalActionException) Code() string {
return "IllegalActionException"
}
// Message returns the exception's message.
-func (s IllegalActionException) Message() string {
+func (s *IllegalActionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3349,29 +3545,29 @@ func (s IllegalActionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IllegalActionException) OrigErr() error {
+func (s *IllegalActionException) OrigErr() error {
return nil
}
-func (s IllegalActionException) Error() string {
+func (s *IllegalActionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IllegalActionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IllegalActionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IllegalActionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IllegalActionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request processing has failed because of an unknown error, exception
// or failure.
type InternalServiceErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3388,17 +3584,17 @@ func (s InternalServiceErrorException) GoString() string {
func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error {
return &InternalServiceErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceErrorException) Code() string {
+func (s *InternalServiceErrorException) Code() string {
return "InternalServiceErrorException"
}
// Message returns the exception's message.
-func (s InternalServiceErrorException) Message() string {
+func (s *InternalServiceErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3406,29 +3602,29 @@ func (s InternalServiceErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceErrorException) OrigErr() error {
+func (s *InternalServiceErrorException) OrigErr() error {
return nil
}
-func (s InternalServiceErrorException) Error() string {
+func (s *InternalServiceErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The action or operation requested is invalid. Verify that the action is typed
// correctly.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3445,17 +3641,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3463,22 +3659,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An invitation to an AWS account to create a member and join the network.
@@ -4234,6 +4430,54 @@ func (s *ListProposalsOutput) SetProposals(v []*ProposalSummary) *ListProposalsO
return s
}
+// A configuration for logging events.
+type LogConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether logging is enabled.
+ Enabled *bool `type:"boolean"`
+}
+
+// String returns the string representation
+func (s LogConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LogConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetEnabled sets the Enabled field's value.
+func (s *LogConfiguration) SetEnabled(v bool) *LogConfiguration {
+ s.Enabled = &v
+ return s
+}
+
+// A collection of log configurations.
+type LogConfigurations struct {
+ _ struct{} `type:"structure"`
+
+ // Parameters for publishing logs to Amazon CloudWatch Logs.
+ Cloudwatch *LogConfiguration `type:"structure"`
+}
+
+// String returns the string representation
+func (s LogConfigurations) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LogConfigurations) GoString() string {
+ return s.String()
+}
+
+// SetCloudwatch sets the Cloudwatch field's value.
+func (s *LogConfigurations) SetCloudwatch(v *LogConfiguration) *LogConfigurations {
+ s.Cloudwatch = v
+ return s
+}
+
// Member configuration properties.
type Member struct {
_ struct{} `type:"structure"`
@@ -4251,6 +4495,9 @@ type Member struct {
// The unique identifier of the member.
Id *string `min:"1" type:"string"`
+ // Configuration properties for logging events associated with a member.
+ LogPublishingConfiguration *MemberLogPublishingConfiguration `type:"structure"`
+
// The name of the member.
Name *string `min:"1" type:"string"`
@@ -4312,6 +4559,12 @@ func (s *Member) SetId(v string) *Member {
return s
}
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *Member) SetLogPublishingConfiguration(v *MemberLogPublishingConfiguration) *Member {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *Member) SetName(v string) *Member {
s.Name = &v
@@ -4342,6 +4595,10 @@ type MemberConfiguration struct {
// FrameworkConfiguration is a required field
FrameworkConfiguration *MemberFrameworkConfiguration `type:"structure" required:"true"`
+ // Configuration properties for logging events associated with a member of a
+ // Managed Blockchain network.
+ LogPublishingConfiguration *MemberLogPublishingConfiguration `type:"structure"`
+
// The name of the member.
//
// Name is a required field
@@ -4394,6 +4651,12 @@ func (s *MemberConfiguration) SetFrameworkConfiguration(v *MemberFrameworkConfig
return s
}
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *MemberConfiguration) SetLogPublishingConfiguration(v *MemberLogPublishingConfiguration) *MemberConfiguration {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *MemberConfiguration) SetName(v string) *MemberConfiguration {
s.Name = &v
@@ -4498,6 +4761,33 @@ func (s *MemberFabricConfiguration) SetAdminUsername(v string) *MemberFabricConf
return s
}
+// Configuration properties for logging events associated with a member of a
+// Managed Blockchain network using the Hyperledger Fabric framework.
+type MemberFabricLogPublishingConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for logging events associated with a member's Certificate
+ // Authority (CA). CA logs help you determine when a member in your account
+ // joins the network, or when new peers register with a member CA.
+ CaLogs *LogConfigurations `type:"structure"`
+}
+
+// String returns the string representation
+func (s MemberFabricLogPublishingConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MemberFabricLogPublishingConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetCaLogs sets the CaLogs field's value.
+func (s *MemberFabricLogPublishingConfiguration) SetCaLogs(v *LogConfigurations) *MemberFabricLogPublishingConfiguration {
+ s.CaLogs = v
+ return s
+}
+
// Attributes relevant to a member for the blockchain framework that the Managed
// Blockchain network uses.
type MemberFrameworkAttributes struct {
@@ -4565,6 +4855,32 @@ func (s *MemberFrameworkConfiguration) SetFabric(v *MemberFabricConfiguration) *
return s
}
+// Configuration properties for logging events associated with a member of a
+// Managed Blockchain network.
+type MemberLogPublishingConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for logging events associated with a member of a
+ // Managed Blockchain network using the Hyperledger Fabric framework.
+ Fabric *MemberFabricLogPublishingConfiguration `type:"structure"`
+}
+
+// String returns the string representation
+func (s MemberLogPublishingConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MemberLogPublishingConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetFabric sets the Fabric field's value.
+func (s *MemberLogPublishingConfiguration) SetFabric(v *MemberFabricLogPublishingConfiguration) *MemberLogPublishingConfiguration {
+ s.Fabric = v
+ return s
+}
+
// A summary of configuration properties for a member.
type MemberSummary struct {
_ struct{} `type:"structure"`
@@ -4764,7 +5080,7 @@ type NetworkFabricAttributes struct {
_ struct{} `type:"structure"`
// The edition of Amazon Managed Blockchain that Hyperledger Fabric uses. For
- // more information, see Amazon Managed Blockchain Pricing (https://aws.amazon.com/managed-blockchain/pricing/).
+ // more information, see Amazon Managed Blockchain Pricing (http://aws.amazon.com/managed-blockchain/pricing/).
Edition *string `type:"string" enum:"Edition"`
// The endpoint of the ordering service for the network.
@@ -4798,7 +5114,7 @@ type NetworkFabricConfiguration struct {
_ struct{} `type:"structure"`
// The edition of Amazon Managed Blockchain that the network uses. For more
- // information, see Amazon Managed Blockchain Pricing (https://aws.amazon.com/managed-blockchain/pricing/).
+ // information, see Amazon Managed Blockchain Pricing (http://aws.amazon.com/managed-blockchain/pricing/).
//
// Edition is a required field
Edition *string `type:"string" required:"true" enum:"Edition"`
@@ -4997,6 +5313,10 @@ type Node struct {
// The instance type of the node.
InstanceType *string `type:"string"`
+ // Configuration properties for logging events associated with a peer node owned
+ // by a member in a Managed Blockchain network.
+ LogPublishingConfiguration *NodeLogPublishingConfiguration `type:"structure"`
+
// The unique identifier of the member to which the node belongs.
MemberId *string `min:"1" type:"string"`
@@ -5047,6 +5367,12 @@ func (s *Node) SetInstanceType(v string) *Node {
return s
}
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *Node) SetLogPublishingConfiguration(v *NodeLogPublishingConfiguration) *Node {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
// SetMemberId sets the MemberId field's value.
func (s *Node) SetMemberId(v string) *Node {
s.MemberId = &v
@@ -5078,6 +5404,10 @@ type NodeConfiguration struct {
//
// InstanceType is a required field
InstanceType *string `type:"string" required:"true"`
+
+ // Configuration properties for logging events associated with a peer node owned
+ // by a member in a Managed Blockchain network.
+ LogPublishingConfiguration *NodeLogPublishingConfiguration `type:"structure"`
}
// String returns the string representation
@@ -5118,6 +5448,12 @@ func (s *NodeConfiguration) SetInstanceType(v string) *NodeConfiguration {
return s
}
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *NodeConfiguration) SetLogPublishingConfiguration(v *NodeLogPublishingConfiguration) *NodeConfiguration {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
// Attributes of Hyperledger Fabric for a peer node on a Managed Blockchain
// network that uses Hyperledger Fabric.
type NodeFabricAttributes struct {
@@ -5153,6 +5489,47 @@ func (s *NodeFabricAttributes) SetPeerEventEndpoint(v string) *NodeFabricAttribu
return s
}
+// Configuration properties for logging events associated with a peer node owned
+// by a member in a Managed Blockchain network.
+type NodeFabricLogPublishingConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for logging events associated with chaincode execution
+ // on a peer node. Chaincode logs contain the results of instantiating, invoking,
+ // and querying the chaincode. A peer can run multiple instances of chaincode.
+ // When enabled, a log stream is created for all chaincodes, with an individual
+ // log stream for each chaincode.
+ ChaincodeLogs *LogConfigurations `type:"structure"`
+
+ // Configuration properties for a peer node log. Peer node logs contain messages
+ // generated when your client submits transaction proposals to peer nodes, requests
+ // to join channels, enrolls an admin peer, and lists the chaincode instances
+ // on a peer node.
+ PeerLogs *LogConfigurations `type:"structure"`
+}
+
+// String returns the string representation
+func (s NodeFabricLogPublishingConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s NodeFabricLogPublishingConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetChaincodeLogs sets the ChaincodeLogs field's value.
+func (s *NodeFabricLogPublishingConfiguration) SetChaincodeLogs(v *LogConfigurations) *NodeFabricLogPublishingConfiguration {
+ s.ChaincodeLogs = v
+ return s
+}
+
+// SetPeerLogs sets the PeerLogs field's value.
+func (s *NodeFabricLogPublishingConfiguration) SetPeerLogs(v *LogConfigurations) *NodeFabricLogPublishingConfiguration {
+ s.PeerLogs = v
+ return s
+}
+
// Attributes relevant to a peer node on a Managed Blockchain network for the
// blockchain framework that the network uses.
type NodeFrameworkAttributes struct {
@@ -5179,6 +5556,33 @@ func (s *NodeFrameworkAttributes) SetFabric(v *NodeFabricAttributes) *NodeFramew
return s
}
+// Configuration properties for logging events associated with a peer node owned
+// by a member in a Managed Blockchain network.
+type NodeLogPublishingConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for logging events associated with a node that is
+ // owned by a member of a Managed Blockchain network using the Hyperledger Fabric
+ // framework.
+ Fabric *NodeFabricLogPublishingConfiguration `type:"structure"`
+}
+
+// String returns the string representation
+func (s NodeLogPublishingConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s NodeLogPublishingConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetFabric sets the Fabric field's value.
+func (s *NodeLogPublishingConfiguration) SetFabric(v *NodeFabricLogPublishingConfiguration) *NodeLogPublishingConfiguration {
+ s.Fabric = v
+ return s
+}
+
// A summary of configuration properties for a peer node.
type NodeSummary struct {
_ struct{} `type:"structure"`
@@ -5295,7 +5699,9 @@ type Proposal struct {
// are not carried out.
//
// * ACTION_FAILED - One or more of the specified ProposalActions in a proposal
- // that was approved could not be completed because of an error.
+ // that was approved could not be completed because of an error. The ACTION_FAILED
+ // status occurs even if only one ProposalAction fails and other actions
+ // are successful.
Status *string `type:"string" enum:"ProposalStatus"`
// The current total of YES votes cast on the proposal by members.
@@ -5650,8 +6056,8 @@ func (s *RemoveAction) SetMemberId(v string) *RemoveAction {
// A resource request is issued for a resource that already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5668,17 +6074,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5686,30 +6092,30 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of resources of that type already exist. Ensure the resources
// requested are within the boundaries of the service edition and your account
// limits.
type ResourceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5726,17 +6132,17 @@ func (s ResourceLimitExceededException) GoString() string {
func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceededException) Code() string {
+func (s *ResourceLimitExceededException) Code() string {
return "ResourceLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceLimitExceededException) Message() string {
+func (s *ResourceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5744,29 +6150,29 @@ func (s ResourceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceededException) OrigErr() error {
+func (s *ResourceLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceLimitExceededException) Error() string {
+func (s *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A requested resource does not exist on the network. It may have been deleted
// or referenced inaccurately.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5783,17 +6189,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5801,29 +6207,29 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource exists but is not in a status that can complete the
// operation.
type ResourceNotReadyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5840,17 +6246,17 @@ func (s ResourceNotReadyException) GoString() string {
func newErrorResourceNotReadyException(v protocol.ResponseMetadata) error {
return &ResourceNotReadyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotReadyException) Code() string {
+func (s *ResourceNotReadyException) Code() string {
return "ResourceNotReadyException"
}
// Message returns the exception's message.
-func (s ResourceNotReadyException) Message() string {
+func (s *ResourceNotReadyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5858,22 +6264,22 @@ func (s ResourceNotReadyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotReadyException) OrigErr() error {
+func (s *ResourceNotReadyException) OrigErr() error {
return nil
}
-func (s ResourceNotReadyException) Error() string {
+func (s *ResourceNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotReadyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotReadyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotReadyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotReadyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request or operation could not be performed because a service is throttling
@@ -5881,8 +6287,8 @@ func (s ResourceNotReadyException) RequestID() string {
// such that your service limit for EC2 instances is exceeded. Request a limit
// increase or delete unused resources if possible.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5899,17 +6305,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5917,22 +6323,201 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type UpdateMemberInput struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for publishing to Amazon CloudWatch Logs.
+ LogPublishingConfiguration *MemberLogPublishingConfiguration `type:"structure"`
+
+ // The unique ID of the member.
+ //
+ // MemberId is a required field
+ MemberId *string `location:"uri" locationName:"memberId" min:"1" type:"string" required:"true"`
+
+ // The unique ID of the Managed Blockchain network to which the member belongs.
+ //
+ // NetworkId is a required field
+ NetworkId *string `location:"uri" locationName:"networkId" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateMemberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateMemberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateMemberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateMemberInput"}
+ if s.MemberId == nil {
+ invalidParams.Add(request.NewErrParamRequired("MemberId"))
+ }
+ if s.MemberId != nil && len(*s.MemberId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MemberId", 1))
+ }
+ if s.NetworkId == nil {
+ invalidParams.Add(request.NewErrParamRequired("NetworkId"))
+ }
+ if s.NetworkId != nil && len(*s.NetworkId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NetworkId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *UpdateMemberInput) SetLogPublishingConfiguration(v *MemberLogPublishingConfiguration) *UpdateMemberInput {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
+// SetMemberId sets the MemberId field's value.
+func (s *UpdateMemberInput) SetMemberId(v string) *UpdateMemberInput {
+ s.MemberId = &v
+ return s
+}
+
+// SetNetworkId sets the NetworkId field's value.
+func (s *UpdateMemberInput) SetNetworkId(v string) *UpdateMemberInput {
+ s.NetworkId = &v
+ return s
+}
+
+type UpdateMemberOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateMemberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateMemberOutput) GoString() string {
+ return s.String()
+}
+
+type UpdateNodeInput struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration properties for publishing to Amazon CloudWatch Logs.
+ LogPublishingConfiguration *NodeLogPublishingConfiguration `type:"structure"`
+
+ // The unique ID of the member that owns the node.
+ //
+ // MemberId is a required field
+ MemberId *string `location:"uri" locationName:"memberId" min:"1" type:"string" required:"true"`
+
+ // The unique ID of the Managed Blockchain network to which the node belongs.
+ //
+ // NetworkId is a required field
+ NetworkId *string `location:"uri" locationName:"networkId" min:"1" type:"string" required:"true"`
+
+ // The unique ID of the node.
+ //
+ // NodeId is a required field
+ NodeId *string `location:"uri" locationName:"nodeId" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateNodeInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateNodeInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateNodeInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateNodeInput"}
+ if s.MemberId == nil {
+ invalidParams.Add(request.NewErrParamRequired("MemberId"))
+ }
+ if s.MemberId != nil && len(*s.MemberId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MemberId", 1))
+ }
+ if s.NetworkId == nil {
+ invalidParams.Add(request.NewErrParamRequired("NetworkId"))
+ }
+ if s.NetworkId != nil && len(*s.NetworkId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NetworkId", 1))
+ }
+ if s.NodeId == nil {
+ invalidParams.Add(request.NewErrParamRequired("NodeId"))
+ }
+ if s.NodeId != nil && len(*s.NodeId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NodeId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogPublishingConfiguration sets the LogPublishingConfiguration field's value.
+func (s *UpdateNodeInput) SetLogPublishingConfiguration(v *NodeLogPublishingConfiguration) *UpdateNodeInput {
+ s.LogPublishingConfiguration = v
+ return s
+}
+
+// SetMemberId sets the MemberId field's value.
+func (s *UpdateNodeInput) SetMemberId(v string) *UpdateNodeInput {
+ s.MemberId = &v
+ return s
+}
+
+// SetNetworkId sets the NetworkId field's value.
+func (s *UpdateNodeInput) SetNetworkId(v string) *UpdateNodeInput {
+ s.NetworkId = &v
+ return s
+}
+
+// SetNodeId sets the NodeId field's value.
+func (s *UpdateNodeInput) SetNodeId(v string) *UpdateNodeInput {
+ s.NodeId = &v
+ return s
+}
+
+type UpdateNodeOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateNodeOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateNodeOutput) GoString() string {
+ return s.String()
}
type VoteOnProposalInput struct {
@@ -6162,6 +6747,9 @@ const (
// MemberStatusCreateFailed is a MemberStatus enum value
MemberStatusCreateFailed = "CREATE_FAILED"
+ // MemberStatusUpdating is a MemberStatus enum value
+ MemberStatusUpdating = "UPDATING"
+
// MemberStatusDeleting is a MemberStatus enum value
MemberStatusDeleting = "DELETING"
@@ -6196,6 +6784,9 @@ const (
// NodeStatusCreateFailed is a NodeStatus enum value
NodeStatusCreateFailed = "CREATE_FAILED"
+ // NodeStatusUpdating is a NodeStatus enum value
+ NodeStatusUpdating = "UPDATING"
+
// NodeStatusDeleting is a NodeStatus enum value
NodeStatusDeleting = "DELETING"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecatalog/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecatalog/api.go
index 41c04b48ec8..5eeb3bc7b0c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecatalog/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacecatalog/api.go
@@ -693,8 +693,8 @@ func (c *MarketplaceCatalog) StartChangeSetWithContext(ctx aws.Context, input *S
// Access is denied.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -711,17 +711,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -729,22 +729,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CancelChangeSetInput struct {
@@ -1554,8 +1554,8 @@ func (s *Filter) SetValueList(v []*string) *Filter {
// There was an internal service exception.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1572,17 +1572,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1590,22 +1590,22 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListChangeSetsInput struct {
@@ -1898,8 +1898,8 @@ func (s *ListEntitiesOutput) SetNextToken(v string) *ListEntitiesOutput {
// The resource is currently in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1916,17 +1916,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1934,28 +1934,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource wasn't found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1972,17 +1972,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1990,28 +1990,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Currently, the specified resource is not supported.
type ResourceNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2028,17 +2028,17 @@ func (s ResourceNotSupportedException) GoString() string {
func newErrorResourceNotSupportedException(v protocol.ResponseMetadata) error {
return &ResourceNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotSupportedException) Code() string {
+func (s *ResourceNotSupportedException) Code() string {
return "ResourceNotSupportedException"
}
// Message returns the exception's message.
-func (s ResourceNotSupportedException) Message() string {
+func (s *ResourceNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2046,28 +2046,28 @@ func (s ResourceNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotSupportedException) OrigErr() error {
+func (s *ResourceNotSupportedException) OrigErr() error {
return nil
}
-func (s ResourceNotSupportedException) Error() string {
+func (s *ResourceNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of open requests per account has been exceeded.
type ServiceQuotaExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2084,17 +2084,17 @@ func (s ServiceQuotaExceededException) GoString() string {
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceQuotaExceededException) Code() string {
+func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
-func (s ServiceQuotaExceededException) Message() string {
+func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2102,22 +2102,22 @@ func (s ServiceQuotaExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceQuotaExceededException) OrigErr() error {
+func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
-func (s ServiceQuotaExceededException) Error() string {
+func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceQuotaExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceQuotaExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that contains two attributes, sortBy and sortOrder.
@@ -2296,8 +2296,8 @@ func (s *StartChangeSetOutput) SetChangeSetId(v string) *StartChangeSetOutput {
// Too many requests.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2314,17 +2314,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2332,28 +2332,28 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error occurred during validation.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2370,17 +2370,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2388,22 +2388,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go
index b34602a9046..789b705c351 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go
@@ -56,7 +56,7 @@ func (c *MediaConnect) AddFlowOutputsRequest(input *AddFlowOutputsInput) (req *r
// AddFlowOutputs API operation for AWS MediaConnect.
//
-// Adds outputs to an existing flow. You can create up to 20 outputs per flow.
+// Adds outputs to an existing flow. You can create up to 50 outputs per flow.
//
// 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
@@ -123,6 +123,218 @@ func (c *MediaConnect) AddFlowOutputsWithContext(ctx aws.Context, input *AddFlow
return out, req.Send()
}
+const opAddFlowSources = "AddFlowSources"
+
+// AddFlowSourcesRequest generates a "aws/request.Request" representing the
+// client's request for the AddFlowSources operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AddFlowSources for more information on using the AddFlowSources
+// 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 AddFlowSourcesRequest method.
+// req, resp := client.AddFlowSourcesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowSources
+func (c *MediaConnect) AddFlowSourcesRequest(input *AddFlowSourcesInput) (req *request.Request, output *AddFlowSourcesOutput) {
+ op := &request.Operation{
+ Name: opAddFlowSources,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/flows/{flowArn}/source",
+ }
+
+ if input == nil {
+ input = &AddFlowSourcesInput{}
+ }
+
+ output = &AddFlowSourcesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AddFlowSources API operation for AWS MediaConnect.
+//
+// Adds Sources to flow
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS MediaConnect's
+// API operation AddFlowSources for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * InternalServerErrorException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ForbiddenException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * NotFoundException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ServiceUnavailableException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * TooManyRequestsException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowSources
+func (c *MediaConnect) AddFlowSources(input *AddFlowSourcesInput) (*AddFlowSourcesOutput, error) {
+ req, out := c.AddFlowSourcesRequest(input)
+ return out, req.Send()
+}
+
+// AddFlowSourcesWithContext is the same as AddFlowSources with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AddFlowSources 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 *MediaConnect) AddFlowSourcesWithContext(ctx aws.Context, input *AddFlowSourcesInput, opts ...request.Option) (*AddFlowSourcesOutput, error) {
+ req, out := c.AddFlowSourcesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opAddFlowVpcInterfaces = "AddFlowVpcInterfaces"
+
+// AddFlowVpcInterfacesRequest generates a "aws/request.Request" representing the
+// client's request for the AddFlowVpcInterfaces operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AddFlowVpcInterfaces for more information on using the AddFlowVpcInterfaces
+// 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 AddFlowVpcInterfacesRequest method.
+// req, resp := client.AddFlowVpcInterfacesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowVpcInterfaces
+func (c *MediaConnect) AddFlowVpcInterfacesRequest(input *AddFlowVpcInterfacesInput) (req *request.Request, output *AddFlowVpcInterfacesOutput) {
+ op := &request.Operation{
+ Name: opAddFlowVpcInterfaces,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/flows/{flowArn}/vpcInterfaces",
+ }
+
+ if input == nil {
+ input = &AddFlowVpcInterfacesInput{}
+ }
+
+ output = &AddFlowVpcInterfacesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AddFlowVpcInterfaces API operation for AWS MediaConnect.
+//
+// Adds VPC interfaces to flow
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS MediaConnect's
+// API operation AddFlowVpcInterfaces for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * InternalServerErrorException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ForbiddenException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * NotFoundException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ServiceUnavailableException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * TooManyRequestsException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowVpcInterfaces
+func (c *MediaConnect) AddFlowVpcInterfaces(input *AddFlowVpcInterfacesInput) (*AddFlowVpcInterfacesOutput, error) {
+ req, out := c.AddFlowVpcInterfacesRequest(input)
+ return out, req.Send()
+}
+
+// AddFlowVpcInterfacesWithContext is the same as AddFlowVpcInterfaces with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AddFlowVpcInterfaces 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 *MediaConnect) AddFlowVpcInterfacesWithContext(ctx aws.Context, input *AddFlowVpcInterfacesInput, opts ...request.Option) (*AddFlowVpcInterfacesOutput, error) {
+ req, out := c.AddFlowVpcInterfacesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateFlow = "CreateFlow"
// CreateFlowRequest generates a "aws/request.Request" representing the
@@ -168,7 +380,7 @@ func (c *MediaConnect) CreateFlowRequest(input *CreateFlowInput) (req *request.R
// CreateFlow API operation for AWS MediaConnect.
//
// Creates a new flow. The request must include one source. The request optionally
-// can include outputs (up to 20) and entitlements (up to 50).
+// can include outputs (up to 50) and entitlements (up to 50).
//
// 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
@@ -1066,59 +1278,59 @@ func (c *MediaConnect) RemoveFlowOutputWithContext(ctx aws.Context, input *Remov
return out, req.Send()
}
-const opRevokeFlowEntitlement = "RevokeFlowEntitlement"
+const opRemoveFlowSource = "RemoveFlowSource"
-// RevokeFlowEntitlementRequest generates a "aws/request.Request" representing the
-// client's request for the RevokeFlowEntitlement operation. The "output" return
+// RemoveFlowSourceRequest generates a "aws/request.Request" representing the
+// client's request for the RemoveFlowSource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See RevokeFlowEntitlement for more information on using the RevokeFlowEntitlement
+// See RemoveFlowSource for more information on using the RemoveFlowSource
// 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 RevokeFlowEntitlementRequest method.
-// req, resp := client.RevokeFlowEntitlementRequest(params)
+// // Example sending a request using the RemoveFlowSourceRequest method.
+// req, resp := client.RemoveFlowSourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
-func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlementInput) (req *request.Request, output *RevokeFlowEntitlementOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowSource
+func (c *MediaConnect) RemoveFlowSourceRequest(input *RemoveFlowSourceInput) (req *request.Request, output *RemoveFlowSourceOutput) {
op := &request.Operation{
- Name: opRevokeFlowEntitlement,
+ Name: opRemoveFlowSource,
HTTPMethod: "DELETE",
- HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}",
+ HTTPPath: "/v1/flows/{flowArn}/source/{sourceArn}",
}
if input == nil {
- input = &RevokeFlowEntitlementInput{}
+ input = &RemoveFlowSourceInput{}
}
- output = &RevokeFlowEntitlementOutput{}
+ output = &RemoveFlowSourceOutput{}
req = c.newRequest(op, input, output)
return
}
-// RevokeFlowEntitlement API operation for AWS MediaConnect.
+// RemoveFlowSource API operation for AWS MediaConnect.
//
-// Revokes an entitlement from a flow. Once an entitlement is revoked, the content
-// becomes unavailable to the subscriber and the associated output is removed.
+// Removes a source from an existing flow. This request can be made only if
+// there is more than one source on the flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
-// API operation RevokeFlowEntitlement for usage and error information.
+// API operation RemoveFlowSource for usage and error information.
//
// Returned Error Types:
// * BadRequestException
@@ -1151,80 +1363,83 @@ func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlement
// documentation for the operation for more information on the cause of this
// exception.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
-func (c *MediaConnect) RevokeFlowEntitlement(input *RevokeFlowEntitlementInput) (*RevokeFlowEntitlementOutput, error) {
- req, out := c.RevokeFlowEntitlementRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowSource
+func (c *MediaConnect) RemoveFlowSource(input *RemoveFlowSourceInput) (*RemoveFlowSourceOutput, error) {
+ req, out := c.RemoveFlowSourceRequest(input)
return out, req.Send()
}
-// RevokeFlowEntitlementWithContext is the same as RevokeFlowEntitlement with the addition of
+// RemoveFlowSourceWithContext is the same as RemoveFlowSource with the addition of
// the ability to pass a context and additional request options.
//
-// See RevokeFlowEntitlement for details on how to use this API operation.
+// See RemoveFlowSource 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 *MediaConnect) RevokeFlowEntitlementWithContext(ctx aws.Context, input *RevokeFlowEntitlementInput, opts ...request.Option) (*RevokeFlowEntitlementOutput, error) {
- req, out := c.RevokeFlowEntitlementRequest(input)
+func (c *MediaConnect) RemoveFlowSourceWithContext(ctx aws.Context, input *RemoveFlowSourceInput, opts ...request.Option) (*RemoveFlowSourceOutput, error) {
+ req, out := c.RemoveFlowSourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opStartFlow = "StartFlow"
+const opRemoveFlowVpcInterface = "RemoveFlowVpcInterface"
-// StartFlowRequest generates a "aws/request.Request" representing the
-// client's request for the StartFlow operation. The "output" return
+// RemoveFlowVpcInterfaceRequest generates a "aws/request.Request" representing the
+// client's request for the RemoveFlowVpcInterface operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See StartFlow for more information on using the StartFlow
+// See RemoveFlowVpcInterface for more information on using the RemoveFlowVpcInterface
// 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 StartFlowRequest method.
-// req, resp := client.StartFlowRequest(params)
+// // Example sending a request using the RemoveFlowVpcInterfaceRequest method.
+// req, resp := client.RemoveFlowVpcInterfaceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
-func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Request, output *StartFlowOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowVpcInterface
+func (c *MediaConnect) RemoveFlowVpcInterfaceRequest(input *RemoveFlowVpcInterfaceInput) (req *request.Request, output *RemoveFlowVpcInterfaceOutput) {
op := &request.Operation{
- Name: opStartFlow,
- HTTPMethod: "POST",
- HTTPPath: "/v1/flows/start/{flowArn}",
+ Name: opRemoveFlowVpcInterface,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/flows/{flowArn}/vpcInterfaces/{vpcInterfaceName}",
}
if input == nil {
- input = &StartFlowInput{}
+ input = &RemoveFlowVpcInterfaceInput{}
}
- output = &StartFlowOutput{}
+ output = &RemoveFlowVpcInterfaceOutput{}
req = c.newRequest(op, input, output)
return
}
-// StartFlow API operation for AWS MediaConnect.
+// RemoveFlowVpcInterface API operation for AWS MediaConnect.
//
-// Starts a flow.
+// Removes a VPC Interface from an existing flow. This request can be made only
+// on a VPC interface that does not have a Source or Output associated with
+// it. If the VPC interface is referenced by a Source or Output, you must first
+// delete or update the Source or Output to no longer reference the VPC interface.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
-// API operation StartFlow for usage and error information.
+// API operation RemoveFlowVpcInterface for usage and error information.
//
// Returned Error Types:
// * BadRequestException
@@ -1257,80 +1472,81 @@ func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Req
// documentation for the operation for more information on the cause of this
// exception.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
-func (c *MediaConnect) StartFlow(input *StartFlowInput) (*StartFlowOutput, error) {
- req, out := c.StartFlowRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowVpcInterface
+func (c *MediaConnect) RemoveFlowVpcInterface(input *RemoveFlowVpcInterfaceInput) (*RemoveFlowVpcInterfaceOutput, error) {
+ req, out := c.RemoveFlowVpcInterfaceRequest(input)
return out, req.Send()
}
-// StartFlowWithContext is the same as StartFlow with the addition of
+// RemoveFlowVpcInterfaceWithContext is the same as RemoveFlowVpcInterface with the addition of
// the ability to pass a context and additional request options.
//
-// See StartFlow for details on how to use this API operation.
+// See RemoveFlowVpcInterface 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 *MediaConnect) StartFlowWithContext(ctx aws.Context, input *StartFlowInput, opts ...request.Option) (*StartFlowOutput, error) {
- req, out := c.StartFlowRequest(input)
+func (c *MediaConnect) RemoveFlowVpcInterfaceWithContext(ctx aws.Context, input *RemoveFlowVpcInterfaceInput, opts ...request.Option) (*RemoveFlowVpcInterfaceOutput, error) {
+ req, out := c.RemoveFlowVpcInterfaceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opStopFlow = "StopFlow"
+const opRevokeFlowEntitlement = "RevokeFlowEntitlement"
-// StopFlowRequest generates a "aws/request.Request" representing the
-// client's request for the StopFlow operation. The "output" return
+// RevokeFlowEntitlementRequest generates a "aws/request.Request" representing the
+// client's request for the RevokeFlowEntitlement operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See StopFlow for more information on using the StopFlow
+// See RevokeFlowEntitlement for more information on using the RevokeFlowEntitlement
// 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 StopFlowRequest method.
-// req, resp := client.StopFlowRequest(params)
+// // Example sending a request using the RevokeFlowEntitlementRequest method.
+// req, resp := client.RevokeFlowEntitlementRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
-func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Request, output *StopFlowOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
+func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlementInput) (req *request.Request, output *RevokeFlowEntitlementOutput) {
op := &request.Operation{
- Name: opStopFlow,
- HTTPMethod: "POST",
- HTTPPath: "/v1/flows/stop/{flowArn}",
+ Name: opRevokeFlowEntitlement,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}",
}
if input == nil {
- input = &StopFlowInput{}
+ input = &RevokeFlowEntitlementInput{}
}
- output = &StopFlowOutput{}
+ output = &RevokeFlowEntitlementOutput{}
req = c.newRequest(op, input, output)
return
}
-// StopFlow API operation for AWS MediaConnect.
+// RevokeFlowEntitlement API operation for AWS MediaConnect.
//
-// Stops a flow.
+// Revokes an entitlement from a flow. Once an entitlement is revoked, the content
+// becomes unavailable to the subscriber and the associated output is removed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
-// API operation StopFlow for usage and error information.
+// API operation RevokeFlowEntitlement for usage and error information.
//
// Returned Error Types:
// * BadRequestException
@@ -1363,13 +1579,225 @@ func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Reque
// documentation for the operation for more information on the cause of this
// exception.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
-func (c *MediaConnect) StopFlow(input *StopFlowInput) (*StopFlowOutput, error) {
- req, out := c.StopFlowRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
+func (c *MediaConnect) RevokeFlowEntitlement(input *RevokeFlowEntitlementInput) (*RevokeFlowEntitlementOutput, error) {
+ req, out := c.RevokeFlowEntitlementRequest(input)
return out, req.Send()
}
-// StopFlowWithContext is the same as StopFlow with the addition of
+// RevokeFlowEntitlementWithContext is the same as RevokeFlowEntitlement with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RevokeFlowEntitlement 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 *MediaConnect) RevokeFlowEntitlementWithContext(ctx aws.Context, input *RevokeFlowEntitlementInput, opts ...request.Option) (*RevokeFlowEntitlementOutput, error) {
+ req, out := c.RevokeFlowEntitlementRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opStartFlow = "StartFlow"
+
+// StartFlowRequest generates a "aws/request.Request" representing the
+// client's request for the StartFlow operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StartFlow for more information on using the StartFlow
+// 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 StartFlowRequest method.
+// req, resp := client.StartFlowRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
+func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Request, output *StartFlowOutput) {
+ op := &request.Operation{
+ Name: opStartFlow,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/flows/start/{flowArn}",
+ }
+
+ if input == nil {
+ input = &StartFlowInput{}
+ }
+
+ output = &StartFlowOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StartFlow API operation for AWS MediaConnect.
+//
+// Starts a flow.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS MediaConnect's
+// API operation StartFlow for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * InternalServerErrorException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ForbiddenException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * NotFoundException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ServiceUnavailableException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * TooManyRequestsException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
+func (c *MediaConnect) StartFlow(input *StartFlowInput) (*StartFlowOutput, error) {
+ req, out := c.StartFlowRequest(input)
+ return out, req.Send()
+}
+
+// StartFlowWithContext is the same as StartFlow with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StartFlow 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 *MediaConnect) StartFlowWithContext(ctx aws.Context, input *StartFlowInput, opts ...request.Option) (*StartFlowOutput, error) {
+ req, out := c.StartFlowRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opStopFlow = "StopFlow"
+
+// StopFlowRequest generates a "aws/request.Request" representing the
+// client's request for the StopFlow operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StopFlow for more information on using the StopFlow
+// 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 StopFlowRequest method.
+// req, resp := client.StopFlowRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
+func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Request, output *StopFlowOutput) {
+ op := &request.Operation{
+ Name: opStopFlow,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/flows/stop/{flowArn}",
+ }
+
+ if input == nil {
+ input = &StopFlowInput{}
+ }
+
+ output = &StopFlowOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StopFlow API operation for AWS MediaConnect.
+//
+// Stops a flow.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS MediaConnect's
+// API operation StopFlow for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * InternalServerErrorException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ForbiddenException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * NotFoundException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ServiceUnavailableException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * TooManyRequestsException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
+func (c *MediaConnect) StopFlow(input *StopFlowInput) (*StopFlowOutput, error) {
+ req, out := c.StopFlowRequest(input)
+ return out, req.Send()
+}
+
+// StopFlowWithContext is the same as StopFlow with the addition of
// the ability to pass a context and additional request options.
//
// See StopFlow for details on how to use this API operation.
@@ -1572,6 +2000,112 @@ func (c *MediaConnect) UntagResourceWithContext(ctx aws.Context, input *UntagRes
return out, req.Send()
}
+const opUpdateFlow = "UpdateFlow"
+
+// UpdateFlowRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateFlow operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateFlow for more information on using the UpdateFlow
+// 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 UpdateFlowRequest method.
+// req, resp := client.UpdateFlowRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlow
+func (c *MediaConnect) UpdateFlowRequest(input *UpdateFlowInput) (req *request.Request, output *UpdateFlowOutput) {
+ op := &request.Operation{
+ Name: opUpdateFlow,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v1/flows/{flowArn}",
+ }
+
+ if input == nil {
+ input = &UpdateFlowInput{}
+ }
+
+ output = &UpdateFlowOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateFlow API operation for AWS MediaConnect.
+//
+// Updates flow
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS MediaConnect's
+// API operation UpdateFlow for usage and error information.
+//
+// Returned Error Types:
+// * BadRequestException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * InternalServerErrorException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ForbiddenException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * NotFoundException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * ServiceUnavailableException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// * TooManyRequestsException
+// Exception raised by AWS Elemental MediaConnect. See the error message and
+// documentation for the operation for more information on the cause of this
+// exception.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlow
+func (c *MediaConnect) UpdateFlow(input *UpdateFlowInput) (*UpdateFlowOutput, error) {
+ req, out := c.UpdateFlowRequest(input)
+ return out, req.Send()
+}
+
+// UpdateFlowWithContext is the same as UpdateFlow with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateFlow 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 *MediaConnect) UpdateFlowWithContext(ctx aws.Context, input *UpdateFlowInput, opts ...request.Option) (*UpdateFlowOutput, error) {
+ req, out := c.UpdateFlowRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdateFlowEntitlement = "UpdateFlowEntitlement"
// UpdateFlowEntitlementRequest generates a "aws/request.Request" representing the
@@ -1896,8 +2430,8 @@ func (c *MediaConnect) UpdateFlowSourceWithContext(ctx aws.Context, input *Updat
// documentation for the operation for more information on the cause of this
// exception.
type AddFlowOutputs420Exception struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1914,17 +2448,17 @@ func (s AddFlowOutputs420Exception) GoString() string {
func newErrorAddFlowOutputs420Exception(v protocol.ResponseMetadata) error {
return &AddFlowOutputs420Exception{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AddFlowOutputs420Exception) Code() string {
+func (s *AddFlowOutputs420Exception) Code() string {
return "AddFlowOutputs420Exception"
}
// Message returns the exception's message.
-func (s AddFlowOutputs420Exception) Message() string {
+func (s *AddFlowOutputs420Exception) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1932,66 +2466,262 @@ func (s AddFlowOutputs420Exception) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AddFlowOutputs420Exception) OrigErr() error {
+func (s *AddFlowOutputs420Exception) OrigErr() error {
return nil
}
-func (s AddFlowOutputs420Exception) Error() string {
+func (s *AddFlowOutputs420Exception) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AddFlowOutputs420Exception) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AddFlowOutputs420Exception) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AddFlowOutputs420Exception) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Adds outputs to an existing flow. You can create up to 50 outputs per flow.
+type AddFlowOutputsInput struct {
+ _ struct{} `type:"structure"`
+
+ // FlowArn is a required field
+ FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
+
+ // A list of outputs that you want to add.
+ //
+ // Outputs is a required field
+ Outputs []*AddOutputRequest `locationName:"outputs" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s AddFlowOutputsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AddFlowOutputsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AddFlowOutputsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AddFlowOutputsInput"}
+ if s.FlowArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowArn"))
+ }
+ if s.FlowArn != nil && len(*s.FlowArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
+ }
+ if s.Outputs == nil {
+ invalidParams.Add(request.NewErrParamRequired("Outputs"))
+ }
+ if s.Outputs != nil {
+ for i, v := range s.Outputs {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *AddFlowOutputsInput) SetFlowArn(v string) *AddFlowOutputsInput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetOutputs sets the Outputs field's value.
+func (s *AddFlowOutputsInput) SetOutputs(v []*AddOutputRequest) *AddFlowOutputsInput {
+ s.Outputs = v
+ return s
+}
+
+// The result of a successful AddOutput request. The response includes the details
+// of the newly added outputs.
+type AddFlowOutputsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the flow that these outputs were added to.
+ FlowArn *string `locationName:"flowArn" type:"string"`
+
+ // The details of the newly added outputs.
+ Outputs []*Output `locationName:"outputs" type:"list"`
+}
+
+// String returns the string representation
+func (s AddFlowOutputsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AddFlowOutputsOutput) GoString() string {
+ return s.String()
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *AddFlowOutputsOutput) SetFlowArn(v string) *AddFlowOutputsOutput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetOutputs sets the Outputs field's value.
+func (s *AddFlowOutputsOutput) SetOutputs(v []*Output) *AddFlowOutputsOutput {
+ s.Outputs = v
+ return s
+}
+
+// Adds sources to an existing flow.
+type AddFlowSourcesInput struct {
+ _ struct{} `type:"structure"`
+
+ // FlowArn is a required field
+ FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
+
+ // A list of sources that you want to add.
+ //
+ // Sources is a required field
+ Sources []*SetSourceRequest `locationName:"sources" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s AddFlowSourcesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AddFlowSourcesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AddFlowSourcesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AddFlowSourcesInput"}
+ if s.FlowArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowArn"))
+ }
+ if s.FlowArn != nil && len(*s.FlowArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
+ }
+ if s.Sources == nil {
+ invalidParams.Add(request.NewErrParamRequired("Sources"))
+ }
+ if s.Sources != nil {
+ for i, v := range s.Sources {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *AddFlowSourcesInput) SetFlowArn(v string) *AddFlowSourcesInput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetSources sets the Sources field's value.
+func (s *AddFlowSourcesInput) SetSources(v []*SetSourceRequest) *AddFlowSourcesInput {
+ s.Sources = v
+ return s
+}
+
+// The result of a successful AddFlowSources request. The response includes
+// the details of the newly added sources.
+type AddFlowSourcesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the flow that these sources were added to.
+ FlowArn *string `locationName:"flowArn" type:"string"`
+
+ // The details of the newly added sources.
+ Sources []*Source `locationName:"sources" type:"list"`
+}
+
+// String returns the string representation
+func (s AddFlowSourcesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AddFlowSourcesOutput) GoString() string {
+ return s.String()
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *AddFlowSourcesOutput) SetFlowArn(v string) *AddFlowSourcesOutput {
+ s.FlowArn = &v
+ return s
}
-// RequestID returns the service's response RequestID for request.
-func (s AddFlowOutputs420Exception) RequestID() string {
- return s.respMetadata.RequestID
+// SetSources sets the Sources field's value.
+func (s *AddFlowSourcesOutput) SetSources(v []*Source) *AddFlowSourcesOutput {
+ s.Sources = v
+ return s
}
-// Adds outputs to an existing flow. You can create up to 20 outputs per flow.
-type AddFlowOutputsInput struct {
+// Adds VPC interfaces to an existing flow.
+type AddFlowVpcInterfacesInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
- // A list of outputs that you want to add.
+ // A list of VPC interfaces that you want to add.
//
- // Outputs is a required field
- Outputs []*AddOutputRequest `locationName:"outputs" type:"list" required:"true"`
+ // VpcInterfaces is a required field
+ VpcInterfaces []*VpcInterfaceRequest `locationName:"vpcInterfaces" type:"list" required:"true"`
}
// String returns the string representation
-func (s AddFlowOutputsInput) String() string {
+func (s AddFlowVpcInterfacesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s AddFlowOutputsInput) GoString() string {
+func (s AddFlowVpcInterfacesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *AddFlowOutputsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddFlowOutputsInput"}
+func (s *AddFlowVpcInterfacesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AddFlowVpcInterfacesInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
- if s.Outputs == nil {
- invalidParams.Add(request.NewErrParamRequired("Outputs"))
+ if s.VpcInterfaces == nil {
+ invalidParams.Add(request.NewErrParamRequired("VpcInterfaces"))
}
- if s.Outputs != nil {
- for i, v := range s.Outputs {
+ if s.VpcInterfaces != nil {
+ for i, v := range s.VpcInterfaces {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VpcInterfaces", i), err.(request.ErrInvalidParams))
}
}
}
@@ -2003,48 +2733,48 @@ func (s *AddFlowOutputsInput) Validate() error {
}
// SetFlowArn sets the FlowArn field's value.
-func (s *AddFlowOutputsInput) SetFlowArn(v string) *AddFlowOutputsInput {
+func (s *AddFlowVpcInterfacesInput) SetFlowArn(v string) *AddFlowVpcInterfacesInput {
s.FlowArn = &v
return s
}
-// SetOutputs sets the Outputs field's value.
-func (s *AddFlowOutputsInput) SetOutputs(v []*AddOutputRequest) *AddFlowOutputsInput {
- s.Outputs = v
+// SetVpcInterfaces sets the VpcInterfaces field's value.
+func (s *AddFlowVpcInterfacesInput) SetVpcInterfaces(v []*VpcInterfaceRequest) *AddFlowVpcInterfacesInput {
+ s.VpcInterfaces = v
return s
}
-// The result of a successful AddOutput request. The response includes the details
-// of the newly added outputs.
-type AddFlowOutputsOutput struct {
+// The result of a successful AddFlowVpcInterfaces request. The response includes
+// the details of the newly added VPC interfaces.
+type AddFlowVpcInterfacesOutput struct {
_ struct{} `type:"structure"`
- // The ARN of the flow that these outputs were added to.
+ // The ARN of the flow that these VPC interfaces were added to.
FlowArn *string `locationName:"flowArn" type:"string"`
- // The details of the newly added outputs.
- Outputs []*Output `locationName:"outputs" type:"list"`
+ // The details of the newly added VPC interfaces.
+ VpcInterfaces []*VpcInterface `locationName:"vpcInterfaces" type:"list"`
}
// String returns the string representation
-func (s AddFlowOutputsOutput) String() string {
+func (s AddFlowVpcInterfacesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s AddFlowOutputsOutput) GoString() string {
+func (s AddFlowVpcInterfacesOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
-func (s *AddFlowOutputsOutput) SetFlowArn(v string) *AddFlowOutputsOutput {
+func (s *AddFlowVpcInterfacesOutput) SetFlowArn(v string) *AddFlowVpcInterfacesOutput {
s.FlowArn = &v
return s
}
-// SetOutputs sets the Outputs field's value.
-func (s *AddFlowOutputsOutput) SetOutputs(v []*Output) *AddFlowOutputsOutput {
- s.Outputs = v
+// SetVpcInterfaces sets the VpcInterfaces field's value.
+func (s *AddFlowVpcInterfacesOutput) SetVpcInterfaces(v []*VpcInterface) *AddFlowVpcInterfacesOutput {
+ s.VpcInterfaces = v
return s
}
@@ -2091,6 +2821,9 @@ type AddOutputRequest struct {
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
+
+ // The name of the VPC interface attachment to use for this output.
+ VpcInterfaceAttachment *VpcInterfaceAttachment `locationName:"vpcInterfaceAttachment" type:"structure"`
}
// String returns the string representation
@@ -2187,12 +2920,18 @@ func (s *AddOutputRequest) SetStreamId(v string) *AddOutputRequest {
return s
}
+// SetVpcInterfaceAttachment sets the VpcInterfaceAttachment field's value.
+func (s *AddOutputRequest) SetVpcInterfaceAttachment(v *VpcInterfaceAttachment) *AddOutputRequest {
+ s.VpcInterfaceAttachment = v
+ return s
+}
+
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2209,17 +2948,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2227,30 +2966,30 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
type CreateFlow420Exception struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2267,17 +3006,17 @@ func (s CreateFlow420Exception) GoString() string {
func newErrorCreateFlow420Exception(v protocol.ResponseMetadata) error {
return &CreateFlow420Exception{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CreateFlow420Exception) Code() string {
+func (s *CreateFlow420Exception) Code() string {
return "CreateFlow420Exception"
}
// Message returns the exception's message.
-func (s CreateFlow420Exception) Message() string {
+func (s *CreateFlow420Exception) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2285,26 +3024,26 @@ func (s CreateFlow420Exception) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CreateFlow420Exception) OrigErr() error {
+func (s *CreateFlow420Exception) OrigErr() error {
return nil
}
-func (s CreateFlow420Exception) Error() string {
+func (s *CreateFlow420Exception) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CreateFlow420Exception) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CreateFlow420Exception) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CreateFlow420Exception) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CreateFlow420Exception) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Creates a new flow. The request must include one source. The request optionally
-// can include outputs (up to 20) and one entitlement.
+// can include outputs (up to 50) and one entitlement.
type CreateFlowInput struct {
_ struct{} `type:"structure"`
@@ -2324,9 +3063,15 @@ type CreateFlowInput struct {
Outputs []*AddOutputRequest `locationName:"outputs" type:"list"`
// The settings for the source of the flow.
- //
- // Source is a required field
- Source *SetSourceRequest `locationName:"source" type:"structure" required:"true"`
+ Source *SetSourceRequest `locationName:"source" type:"structure"`
+
+ // The settings for source failover
+ SourceFailoverConfig *FailoverConfig `locationName:"sourceFailoverConfig" type:"structure"`
+
+ Sources []*SetSourceRequest `locationName:"sources" type:"list"`
+
+ // The VPC interfaces you want on the flow.
+ VpcInterfaces []*VpcInterfaceRequest `locationName:"vpcInterfaces" type:"list"`
}
// String returns the string representation
@@ -2345,9 +3090,6 @@ func (s *CreateFlowInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Source == nil {
- invalidParams.Add(request.NewErrParamRequired("Source"))
- }
if s.Entitlements != nil {
for i, v := range s.Entitlements {
if v == nil {
@@ -2373,6 +3115,26 @@ func (s *CreateFlowInput) Validate() error {
invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
}
}
+ if s.Sources != nil {
+ for i, v := range s.Sources {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.VpcInterfaces != nil {
+ for i, v := range s.VpcInterfaces {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VpcInterfaces", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -2410,6 +3172,24 @@ func (s *CreateFlowInput) SetSource(v *SetSourceRequest) *CreateFlowInput {
return s
}
+// SetSourceFailoverConfig sets the SourceFailoverConfig field's value.
+func (s *CreateFlowInput) SetSourceFailoverConfig(v *FailoverConfig) *CreateFlowInput {
+ s.SourceFailoverConfig = v
+ return s
+}
+
+// SetSources sets the Sources field's value.
+func (s *CreateFlowInput) SetSources(v []*SetSourceRequest) *CreateFlowInput {
+ s.Sources = v
+ return s
+}
+
+// SetVpcInterfaces sets the VpcInterfaces field's value.
+func (s *CreateFlowInput) SetVpcInterfaces(v []*VpcInterfaceRequest) *CreateFlowInput {
+ s.VpcInterfaces = v
+ return s
+}
+
// The result of a successful CreateFlow request.
type CreateFlowOutput struct {
_ struct{} `type:"structure"`
@@ -2787,6 +3567,38 @@ func (s *Entitlement) SetSubscribers(v []*string) *Entitlement {
return s
}
+// The settings for source failover
+type FailoverConfig struct {
+ _ struct{} `type:"structure"`
+
+ // Search window time to look for dash-7 packets
+ RecoveryWindow *int64 `locationName:"recoveryWindow" type:"integer"`
+
+ State *string `locationName:"state" type:"string" enum:"State"`
+}
+
+// String returns the string representation
+func (s FailoverConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FailoverConfig) GoString() string {
+ return s.String()
+}
+
+// SetRecoveryWindow sets the RecoveryWindow field's value.
+func (s *FailoverConfig) SetRecoveryWindow(v int64) *FailoverConfig {
+ s.RecoveryWindow = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *FailoverConfig) SetState(v string) *FailoverConfig {
+ s.State = &v
+ return s
+}
+
// The settings for a flow, including its source, outputs, and entitlements.
type Flow struct {
_ struct{} `type:"structure"`
@@ -2830,10 +3642,18 @@ type Flow struct {
// Source is a required field
Source *Source `locationName:"source" type:"structure" required:"true"`
+ // The settings for source failover
+ SourceFailoverConfig *FailoverConfig `locationName:"sourceFailoverConfig" type:"structure"`
+
+ Sources []*Source `locationName:"sources" type:"list"`
+
// The current status of the flow.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"Status"`
+
+ // The VPC Interfaces for this flow.
+ VpcInterfaces []*VpcInterface `locationName:"vpcInterfaces" type:"list"`
}
// String returns the string representation
@@ -2894,18 +3714,36 @@ func (s *Flow) SetSource(v *Source) *Flow {
return s
}
+// SetSourceFailoverConfig sets the SourceFailoverConfig field's value.
+func (s *Flow) SetSourceFailoverConfig(v *FailoverConfig) *Flow {
+ s.SourceFailoverConfig = v
+ return s
+}
+
+// SetSources sets the Sources field's value.
+func (s *Flow) SetSources(v []*Source) *Flow {
+ s.Sources = v
+ return s
+}
+
// SetStatus sets the Status field's value.
func (s *Flow) SetStatus(v string) *Flow {
s.Status = &v
return s
}
+// SetVpcInterfaces sets the VpcInterfaces field's value.
+func (s *Flow) SetVpcInterfaces(v []*VpcInterface) *Flow {
+ s.VpcInterfaces = v
+ return s
+}
+
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2922,17 +3760,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2940,22 +3778,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The entitlements that you want to grant on a flow.
@@ -3048,8 +3886,8 @@ func (s *GrantEntitlementRequest) SetSubscribers(v []*string) *GrantEntitlementR
// documentation for the operation for more information on the cause of this
// exception.
type GrantFlowEntitlements420Exception struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3066,17 +3904,17 @@ func (s GrantFlowEntitlements420Exception) GoString() string {
func newErrorGrantFlowEntitlements420Exception(v protocol.ResponseMetadata) error {
return &GrantFlowEntitlements420Exception{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GrantFlowEntitlements420Exception) Code() string {
+func (s *GrantFlowEntitlements420Exception) Code() string {
return "GrantFlowEntitlements420Exception"
}
// Message returns the exception's message.
-func (s GrantFlowEntitlements420Exception) Message() string {
+func (s *GrantFlowEntitlements420Exception) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3084,22 +3922,22 @@ func (s GrantFlowEntitlements420Exception) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GrantFlowEntitlements420Exception) OrigErr() error {
+func (s *GrantFlowEntitlements420Exception) OrigErr() error {
return nil
}
-func (s GrantFlowEntitlements420Exception) Error() string {
+func (s *GrantFlowEntitlements420Exception) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GrantFlowEntitlements420Exception) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GrantFlowEntitlements420Exception) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GrantFlowEntitlements420Exception) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GrantFlowEntitlements420Exception) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Grants an entitlement on a flow.
@@ -3203,8 +4041,8 @@ func (s *GrantFlowEntitlementsOutput) SetFlowArn(v string) *GrantFlowEntitlement
// documentation for the operation for more information on the cause of this
// exception.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3221,17 +4059,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3239,22 +4077,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListEntitlementsInput struct {
@@ -3645,8 +4483,8 @@ func (s *Messages) SetErrors(v []*string) *Messages {
// documentation for the operation for more information on the cause of this
// exception.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3663,17 +4501,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3681,22 +4519,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The settings for an output.
@@ -3739,6 +4577,9 @@ type Output struct {
// Attributes related to the transport stream that are used in the output.
Transport *Transport `locationName:"transport" type:"structure"`
+
+ // The name of the VPC interface attachment to use for this output.
+ VpcInterfaceAttachment *VpcInterfaceAttachment `locationName:"vpcInterfaceAttachment" type:"structure"`
}
// String returns the string representation
@@ -3799,52 +4640,234 @@ func (s *Output) SetOutputArn(v string) *Output {
return s
}
-// SetPort sets the Port field's value.
-func (s *Output) SetPort(v int64) *Output {
- s.Port = &v
+// SetPort sets the Port field's value.
+func (s *Output) SetPort(v int64) *Output {
+ s.Port = &v
+ return s
+}
+
+// SetTransport sets the Transport field's value.
+func (s *Output) SetTransport(v *Transport) *Output {
+ s.Transport = v
+ return s
+}
+
+// SetVpcInterfaceAttachment sets the VpcInterfaceAttachment field's value.
+func (s *Output) SetVpcInterfaceAttachment(v *VpcInterfaceAttachment) *Output {
+ s.VpcInterfaceAttachment = v
+ return s
+}
+
+type RemoveFlowOutputInput struct {
+ _ struct{} `type:"structure"`
+
+ // FlowArn is a required field
+ FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
+
+ // OutputArn is a required field
+ OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RemoveFlowOutputInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveFlowOutputInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RemoveFlowOutputInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RemoveFlowOutputInput"}
+ if s.FlowArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowArn"))
+ }
+ if s.FlowArn != nil && len(*s.FlowArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
+ }
+ if s.OutputArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("OutputArn"))
+ }
+ if s.OutputArn != nil && len(*s.OutputArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *RemoveFlowOutputInput) SetFlowArn(v string) *RemoveFlowOutputInput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetOutputArn sets the OutputArn field's value.
+func (s *RemoveFlowOutputInput) SetOutputArn(v string) *RemoveFlowOutputInput {
+ s.OutputArn = &v
+ return s
+}
+
+// The result of a successful RemoveFlowOutput request including the flow ARN
+// and the output ARN that was removed.
+type RemoveFlowOutputOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the flow that is associated with the output you removed.
+ FlowArn *string `locationName:"flowArn" type:"string"`
+
+ // The ARN of the output that was removed.
+ OutputArn *string `locationName:"outputArn" type:"string"`
+}
+
+// String returns the string representation
+func (s RemoveFlowOutputOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveFlowOutputOutput) GoString() string {
+ return s.String()
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *RemoveFlowOutputOutput) SetFlowArn(v string) *RemoveFlowOutputOutput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetOutputArn sets the OutputArn field's value.
+func (s *RemoveFlowOutputOutput) SetOutputArn(v string) *RemoveFlowOutputOutput {
+ s.OutputArn = &v
+ return s
+}
+
+type RemoveFlowSourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // FlowArn is a required field
+ FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
+
+ // SourceArn is a required field
+ SourceArn *string `location:"uri" locationName:"sourceArn" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RemoveFlowSourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveFlowSourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RemoveFlowSourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RemoveFlowSourceInput"}
+ if s.FlowArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowArn"))
+ }
+ if s.FlowArn != nil && len(*s.FlowArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
+ }
+ if s.SourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("SourceArn"))
+ }
+ if s.SourceArn != nil && len(*s.SourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *RemoveFlowSourceInput) SetFlowArn(v string) *RemoveFlowSourceInput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetSourceArn sets the SourceArn field's value.
+func (s *RemoveFlowSourceInput) SetSourceArn(v string) *RemoveFlowSourceInput {
+ s.SourceArn = &v
+ return s
+}
+
+// The result of a successful RemoveFlowSource request including the flow ARN
+// and the source ARN that was removed.
+type RemoveFlowSourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the flow that is associated with the source you removed.
+ FlowArn *string `locationName:"flowArn" type:"string"`
+
+ // The ARN of the source that was removed.
+ SourceArn *string `locationName:"sourceArn" type:"string"`
+}
+
+// String returns the string representation
+func (s RemoveFlowSourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RemoveFlowSourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *RemoveFlowSourceOutput) SetFlowArn(v string) *RemoveFlowSourceOutput {
+ s.FlowArn = &v
return s
}
-// SetTransport sets the Transport field's value.
-func (s *Output) SetTransport(v *Transport) *Output {
- s.Transport = v
+// SetSourceArn sets the SourceArn field's value.
+func (s *RemoveFlowSourceOutput) SetSourceArn(v string) *RemoveFlowSourceOutput {
+ s.SourceArn = &v
return s
}
-type RemoveFlowOutputInput struct {
+type RemoveFlowVpcInterfaceInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
- // OutputArn is a required field
- OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"`
+ // VpcInterfaceName is a required field
+ VpcInterfaceName *string `location:"uri" locationName:"vpcInterfaceName" type:"string" required:"true"`
}
// String returns the string representation
-func (s RemoveFlowOutputInput) String() string {
+func (s RemoveFlowVpcInterfaceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s RemoveFlowOutputInput) GoString() string {
+func (s RemoveFlowVpcInterfaceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *RemoveFlowOutputInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveFlowOutputInput"}
+func (s *RemoveFlowVpcInterfaceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RemoveFlowVpcInterfaceInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
- if s.OutputArn == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputArn"))
+ if s.VpcInterfaceName == nil {
+ invalidParams.Add(request.NewErrParamRequired("VpcInterfaceName"))
}
- if s.OutputArn != nil && len(*s.OutputArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1))
+ if s.VpcInterfaceName != nil && len(*s.VpcInterfaceName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("VpcInterfaceName", 1))
}
if invalidParams.Len() > 0 {
@@ -3854,48 +4877,58 @@ func (s *RemoveFlowOutputInput) Validate() error {
}
// SetFlowArn sets the FlowArn field's value.
-func (s *RemoveFlowOutputInput) SetFlowArn(v string) *RemoveFlowOutputInput {
+func (s *RemoveFlowVpcInterfaceInput) SetFlowArn(v string) *RemoveFlowVpcInterfaceInput {
s.FlowArn = &v
return s
}
-// SetOutputArn sets the OutputArn field's value.
-func (s *RemoveFlowOutputInput) SetOutputArn(v string) *RemoveFlowOutputInput {
- s.OutputArn = &v
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *RemoveFlowVpcInterfaceInput) SetVpcInterfaceName(v string) *RemoveFlowVpcInterfaceInput {
+ s.VpcInterfaceName = &v
return s
}
-// The result of a successful RemoveFlowOutput request including the flow ARN
-// and the output ARN that was removed.
-type RemoveFlowOutputOutput struct {
+// The result of a successful RemoveFlowVpcInterface request including the flow
+// ARN and the VPC interface name that was removed.
+type RemoveFlowVpcInterfaceOutput struct {
_ struct{} `type:"structure"`
- // The ARN of the flow that is associated with the output you removed.
+ // The ARN of the flow that is associated with the VPC interface you removed.
FlowArn *string `locationName:"flowArn" type:"string"`
- // The ARN of the output that was removed.
- OutputArn *string `locationName:"outputArn" type:"string"`
+ // IDs of network interfaces associated with the removed VPC interface that
+ // Media Connect was unable to remove.
+ NonDeletedNetworkInterfaceIds []*string `locationName:"nonDeletedNetworkInterfaceIds" type:"list"`
+
+ // The name of the VPC interface that was removed.
+ VpcInterfaceName *string `locationName:"vpcInterfaceName" type:"string"`
}
// String returns the string representation
-func (s RemoveFlowOutputOutput) String() string {
+func (s RemoveFlowVpcInterfaceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s RemoveFlowOutputOutput) GoString() string {
+func (s RemoveFlowVpcInterfaceOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
-func (s *RemoveFlowOutputOutput) SetFlowArn(v string) *RemoveFlowOutputOutput {
+func (s *RemoveFlowVpcInterfaceOutput) SetFlowArn(v string) *RemoveFlowVpcInterfaceOutput {
s.FlowArn = &v
return s
}
-// SetOutputArn sets the OutputArn field's value.
-func (s *RemoveFlowOutputOutput) SetOutputArn(v string) *RemoveFlowOutputOutput {
- s.OutputArn = &v
+// SetNonDeletedNetworkInterfaceIds sets the NonDeletedNetworkInterfaceIds field's value.
+func (s *RemoveFlowVpcInterfaceOutput) SetNonDeletedNetworkInterfaceIds(v []*string) *RemoveFlowVpcInterfaceOutput {
+ s.NonDeletedNetworkInterfaceIds = v
+ return s
+}
+
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *RemoveFlowVpcInterfaceOutput) SetVpcInterfaceName(v string) *RemoveFlowVpcInterfaceOutput {
+ s.VpcInterfaceName = &v
return s
}
@@ -3992,8 +5025,8 @@ func (s *RevokeFlowEntitlementOutput) SetFlowArn(v string) *RevokeFlowEntitlemen
// documentation for the operation for more information on the cause of this
// exception.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4010,17 +5043,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4028,22 +5061,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The settings for the source of the flow.
@@ -4082,6 +5115,9 @@ type SetSourceRequest struct {
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
+ // The name of the VPC interface to use for this source.
+ VpcInterfaceName *string `locationName:"vpcInterfaceName" type:"string"`
+
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should be in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
@@ -4167,6 +5203,12 @@ func (s *SetSourceRequest) SetStreamId(v string) *SetSourceRequest {
return s
}
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *SetSourceRequest) SetVpcInterfaceName(v string) *SetSourceRequest {
+ s.VpcInterfaceName = &v
+ return s
+}
+
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *SetSourceRequest) SetWhitelistCidr(v string) *SetSourceRequest {
s.WhitelistCidr = &v
@@ -4211,6 +5253,9 @@ type Source struct {
// Attributes related to the transport stream that are used in the source.
Transport *Transport `locationName:"transport" type:"structure"`
+ // The name of the VPC Interface this Source is configured with.
+ VpcInterfaceName *string `locationName:"vpcInterfaceName" type:"string"`
+
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should be in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
@@ -4281,6 +5326,12 @@ func (s *Source) SetTransport(v *Transport) *Source {
return s
}
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *Source) SetVpcInterfaceName(v string) *Source {
+ s.VpcInterfaceName = &v
+ return s
+}
+
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *Source) SetWhitelistCidr(v string) *Source {
s.WhitelistCidr = &v
@@ -4505,8 +5556,8 @@ func (s TagResourceOutput) GoString() string {
// documentation for the operation for more information on the cause of this
// exception.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4523,17 +5574,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4541,22 +5592,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Attributes related to the transport stream that are used in a source or output.
@@ -4819,6 +5870,38 @@ func (s *UpdateEncryption) SetUrl(v string) *UpdateEncryption {
return s
}
+// The settings for source failover
+type UpdateFailoverConfig struct {
+ _ struct{} `type:"structure"`
+
+ // Recovery window time to look for dash-7 packets
+ RecoveryWindow *int64 `locationName:"recoveryWindow" type:"integer"`
+
+ State *string `locationName:"state" type:"string" enum:"State"`
+}
+
+// String returns the string representation
+func (s UpdateFailoverConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateFailoverConfig) GoString() string {
+ return s.String()
+}
+
+// SetRecoveryWindow sets the RecoveryWindow field's value.
+func (s *UpdateFailoverConfig) SetRecoveryWindow(v int64) *UpdateFailoverConfig {
+ s.RecoveryWindow = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *UpdateFailoverConfig) SetState(v string) *UpdateFailoverConfig {
+ s.State = &v
+ return s
+}
+
// The updates that you want to make to a specific entitlement.
type UpdateFlowEntitlementInput struct {
_ struct{} `type:"structure"`
@@ -4940,6 +6023,79 @@ func (s *UpdateFlowEntitlementOutput) SetFlowArn(v string) *UpdateFlowEntitlemen
return s
}
+// Updates an existing flow.
+type UpdateFlowInput struct {
+ _ struct{} `type:"structure"`
+
+ // FlowArn is a required field
+ FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
+
+ // The settings for source failover
+ SourceFailoverConfig *UpdateFailoverConfig `locationName:"sourceFailoverConfig" type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateFlowInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateFlowInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateFlowInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateFlowInput"}
+ if s.FlowArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowArn"))
+ }
+ if s.FlowArn != nil && len(*s.FlowArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowArn sets the FlowArn field's value.
+func (s *UpdateFlowInput) SetFlowArn(v string) *UpdateFlowInput {
+ s.FlowArn = &v
+ return s
+}
+
+// SetSourceFailoverConfig sets the SourceFailoverConfig field's value.
+func (s *UpdateFlowInput) SetSourceFailoverConfig(v *UpdateFailoverConfig) *UpdateFlowInput {
+ s.SourceFailoverConfig = v
+ return s
+}
+
+// Updates an existing flow.
+type UpdateFlowOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The settings for a flow, including its source, outputs, and entitlements.
+ Flow *Flow `locationName:"flow" type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateFlowOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateFlowOutput) GoString() string {
+ return s.String()
+}
+
+// SetFlow sets the Flow field's value.
+func (s *UpdateFlowOutput) SetFlow(v *Flow) *UpdateFlowOutput {
+ s.Flow = v
+ return s
+}
+
// The updates that you want to make to an existing output of an existing flow.
type UpdateFlowOutputInput struct {
_ struct{} `type:"structure"`
@@ -4984,6 +6140,9 @@ type UpdateFlowOutputInput struct {
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
+
+ // The name of the VPC interface attachment to use for this output.
+ VpcInterfaceAttachment *VpcInterfaceAttachment `locationName:"vpcInterfaceAttachment" type:"structure"`
}
// String returns the string representation
@@ -5090,6 +6249,12 @@ func (s *UpdateFlowOutputInput) SetStreamId(v string) *UpdateFlowOutputInput {
return s
}
+// SetVpcInterfaceAttachment sets the VpcInterfaceAttachment field's value.
+func (s *UpdateFlowOutputInput) SetVpcInterfaceAttachment(v *VpcInterfaceAttachment) *UpdateFlowOutputInput {
+ s.VpcInterfaceAttachment = v
+ return s
+}
+
// The result of a successful UpdateFlowOutput request including the flow ARN
// and the updated output.
type UpdateFlowOutputOutput struct {
@@ -5163,6 +6328,9 @@ type UpdateFlowSourceInput struct {
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
+ // The name of the VPC Interface to configure this Source with.
+ VpcInterfaceName *string `locationName:"vpcInterfaceName" type:"string"`
+
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should be in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
@@ -5261,6 +6429,12 @@ func (s *UpdateFlowSourceInput) SetStreamId(v string) *UpdateFlowSourceInput {
return s
}
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *UpdateFlowSourceInput) SetVpcInterfaceName(v string) *UpdateFlowSourceInput {
+ s.VpcInterfaceName = &v
+ return s
+}
+
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *UpdateFlowSourceInput) SetWhitelistCidr(v string) *UpdateFlowSourceInput {
s.WhitelistCidr = &v
@@ -5301,6 +6475,182 @@ func (s *UpdateFlowSourceOutput) SetSource(v *Source) *UpdateFlowSourceOutput {
return s
}
+// The settings for a VPC Source.
+type VpcInterface struct {
+ _ struct{} `type:"structure"`
+
+ // Immutable and has to be a unique against other VpcInterfaces in this Flow
+ //
+ // Name is a required field
+ Name *string `locationName:"name" type:"string" required:"true"`
+
+ // IDs of the network interfaces created in customer's account by MediaConnect.
+ //
+ // NetworkInterfaceIds is a required field
+ NetworkInterfaceIds []*string `locationName:"networkInterfaceIds" type:"list" required:"true"`
+
+ // Role Arn MediaConnect can assumes to create ENIs in customer's account
+ //
+ // RoleArn is a required field
+ RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
+
+ // Security Group IDs to be used on ENI.
+ //
+ // SecurityGroupIds is a required field
+ SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list" required:"true"`
+
+ // Subnet must be in the AZ of the Flow
+ //
+ // SubnetId is a required field
+ SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s VpcInterface) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcInterface) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *VpcInterface) SetName(v string) *VpcInterface {
+ s.Name = &v
+ return s
+}
+
+// SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
+func (s *VpcInterface) SetNetworkInterfaceIds(v []*string) *VpcInterface {
+ s.NetworkInterfaceIds = v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *VpcInterface) SetRoleArn(v string) *VpcInterface {
+ s.RoleArn = &v
+ return s
+}
+
+// SetSecurityGroupIds sets the SecurityGroupIds field's value.
+func (s *VpcInterface) SetSecurityGroupIds(v []*string) *VpcInterface {
+ s.SecurityGroupIds = v
+ return s
+}
+
+// SetSubnetId sets the SubnetId field's value.
+func (s *VpcInterface) SetSubnetId(v string) *VpcInterface {
+ s.SubnetId = &v
+ return s
+}
+
+// The settings for attaching a VPC interface to an output.
+type VpcInterfaceAttachment struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the VPC interface to use for this output.
+ VpcInterfaceName *string `locationName:"vpcInterfaceName" type:"string"`
+}
+
+// String returns the string representation
+func (s VpcInterfaceAttachment) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcInterfaceAttachment) GoString() string {
+ return s.String()
+}
+
+// SetVpcInterfaceName sets the VpcInterfaceName field's value.
+func (s *VpcInterfaceAttachment) SetVpcInterfaceName(v string) *VpcInterfaceAttachment {
+ s.VpcInterfaceName = &v
+ return s
+}
+
+// Desired VPC Interface for a Flow
+type VpcInterfaceRequest struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the VPC Interface. This value must be unique within the current
+ // flow.
+ //
+ // Name is a required field
+ Name *string `locationName:"name" type:"string" required:"true"`
+
+ // Role Arn MediaConnect can assumes to create ENIs in customer's account
+ //
+ // RoleArn is a required field
+ RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
+
+ // Security Group IDs to be used on ENI.
+ //
+ // SecurityGroupIds is a required field
+ SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list" required:"true"`
+
+ // Subnet must be in the AZ of the Flow
+ //
+ // SubnetId is a required field
+ SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s VpcInterfaceRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcInterfaceRequest) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *VpcInterfaceRequest) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "VpcInterfaceRequest"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.SecurityGroupIds == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
+ }
+ if s.SubnetId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SubnetId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *VpcInterfaceRequest) SetName(v string) *VpcInterfaceRequest {
+ s.Name = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *VpcInterfaceRequest) SetRoleArn(v string) *VpcInterfaceRequest {
+ s.RoleArn = &v
+ return s
+}
+
+// SetSecurityGroupIds sets the SecurityGroupIds field's value.
+func (s *VpcInterfaceRequest) SetSecurityGroupIds(v []*string) *VpcInterfaceRequest {
+ s.SecurityGroupIds = v
+ return s
+}
+
+// SetSubnetId sets the SubnetId field's value.
+func (s *VpcInterfaceRequest) SetSubnetId(v string) *VpcInterfaceRequest {
+ s.SubnetId = &v
+ return s
+}
+
const (
// AlgorithmAes128 is a Algorithm enum value
AlgorithmAes128 = "aes128"
@@ -5345,6 +6695,14 @@ const (
SourceTypeEntitled = "ENTITLED"
)
+const (
+ // StateEnabled is a State enum value
+ StateEnabled = "ENABLED"
+
+ // StateDisabled is a State enum value
+ StateDisabled = "DISABLED"
+)
+
const (
// StatusStandby is a Status enum value
StatusStandby = "STANDBY"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go
index a4f1ea3060d..fe9054bc093 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go
@@ -2785,9 +2785,7 @@ func (s *Ac3Settings) SetSampleRate(v int64) *Ac3Settings {
}
// Accelerated transcoding can significantly speed up jobs with long, visually
-// complex content. Outputs that use this feature incur pro-tier pricing. For
-// information about feature limitations, see the AWS Elemental MediaConvert
-// User Guide.
+// complex content.
type AccelerationSettings struct {
_ struct{} `type:"structure"`
@@ -3619,6 +3617,255 @@ func (s *AudioSelectorGroup) SetAudioSelectorNames(v []*string) *AudioSelectorGr
return s
}
+// Settings for quality-defined variable bitrate encoding with the AV1 codec.
+// Required when you set Rate control mode to QVBR. Not valid when you set Rate
+// control mode to a value other than QVBR, or when you don't define Rate control
+// mode.
+type Av1QvbrSettings struct {
+ _ struct{} `type:"structure"`
+
+ // Required when you use QVBR rate control mode. That is, when you specify qvbrSettings
+ // within av1Settings. Specify the general target quality level for this output,
+ // from 1 to 10. Use higher numbers for greater quality. Level 10 results in
+ // nearly lossless compression. The quality level for most broadcast-quality
+ // transcodes is between 6 and 9. Optionally, to specify a value between whole
+ // numbers, also provide a value for the setting qvbrQualityLevelFineTune. For
+ // example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel
+ // to 7 and set qvbrQualityLevelFineTune to .33.
+ QvbrQualityLevel *int64 `locationName:"qvbrQualityLevel" min:"1" type:"integer"`
+
+ // Optional. Specify a value here to set the QVBR quality to a level that is
+ // between whole numbers. For example, if you want your QVBR quality level to
+ // be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
+ // MediaConvert rounds your QVBR quality level to the nearest third of a whole
+ // number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune
+ // to .25, your actual QVBR quality level is 7.33.
+ QvbrQualityLevelFineTune *float64 `locationName:"qvbrQualityLevelFineTune" type:"double"`
+}
+
+// String returns the string representation
+func (s Av1QvbrSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Av1QvbrSettings) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Av1QvbrSettings) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Av1QvbrSettings"}
+ if s.QvbrQualityLevel != nil && *s.QvbrQualityLevel < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("QvbrQualityLevel", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetQvbrQualityLevel sets the QvbrQualityLevel field's value.
+func (s *Av1QvbrSettings) SetQvbrQualityLevel(v int64) *Av1QvbrSettings {
+ s.QvbrQualityLevel = &v
+ return s
+}
+
+// SetQvbrQualityLevelFineTune sets the QvbrQualityLevelFineTune field's value.
+func (s *Av1QvbrSettings) SetQvbrQualityLevelFineTune(v float64) *Av1QvbrSettings {
+ s.QvbrQualityLevelFineTune = &v
+ return s
+}
+
+// Required when you set Codec, under VideoDescription>CodecSettings to the
+// value AV1.
+type Av1Settings struct {
+ _ struct{} `type:"structure"`
+
+ // Adaptive quantization. Allows intra-frame quantizers to vary to improve visual
+ // quality.
+ AdaptiveQuantization *string `locationName:"adaptiveQuantization" type:"string" enum:"Av1AdaptiveQuantization"`
+
+ // If you are using the console, use the Framerate setting to specify the frame
+ // rate for this output. If you want to keep the same frame rate as the input
+ // video, choose Follow source. If you want to do frame rate conversion, choose
+ // a frame rate from the dropdown list or choose Custom. The framerates shown
+ // in the dropdown list are decimal approximations of fractions. If you choose
+ // Custom, specify your frame rate as a fraction. If you are creating your transcoding
+ // job specification as a JSON file without the console, use FramerateControl
+ // to specify which value the service uses for the frame rate for this output.
+ // Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
+ // from the input. Choose SPECIFIED if you want the service to use the frame
+ // rate you specify in the settings FramerateNumerator and FramerateDenominator.
+ FramerateControl *string `locationName:"framerateControl" type:"string" enum:"Av1FramerateControl"`
+
+ // When set to INTERPOLATE, produces smoother motion during frame rate conversion.
+ FramerateConversionAlgorithm *string `locationName:"framerateConversionAlgorithm" type:"string" enum:"Av1FramerateConversionAlgorithm"`
+
+ // When you use the API for transcode jobs that use frame rate conversion, specify
+ // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use
+ // FramerateDenominator to specify the denominator of this fraction. In this
+ // example, use 1001 for the value of FramerateDenominator. When you use the
+ // console for transcode jobs that use frame rate conversion, provide the value
+ // as a decimal number for Framerate. In this example, specify 23.976.
+ FramerateDenominator *int64 `locationName:"framerateDenominator" min:"1" type:"integer"`
+
+ // When you use the API for transcode jobs that use frame rate conversion, specify
+ // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use
+ // FramerateNumerator to specify the numerator of this fraction. In this example,
+ // use 24000 for the value of FramerateNumerator. When you use the console for
+ // transcode jobs that use frame rate conversion, provide the value as a decimal
+ // number for Framerate. In this example, specify 23.976.
+ FramerateNumerator *int64 `locationName:"framerateNumerator" min:"1" type:"integer"`
+
+ // Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert
+ // doesn't support GOP length in seconds. This value must be greater than zero
+ // and preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer
+ // value.
+ GopSize *float64 `locationName:"gopSize" type:"double"`
+
+ // Maximum bitrate in bits/second. For example, enter five megabits per second
+ // as 5000000. Required when Rate control mode is QVBR.
+ MaxBitrate *int64 `locationName:"maxBitrate" min:"1000" type:"integer"`
+
+ // Specify the number of B-frames. With AV1, MediaConvert supports only 7 or
+ // 15.
+ NumberBFramesBetweenReferenceFrames *int64 `locationName:"numberBFramesBetweenReferenceFrames" min:"7" type:"integer"`
+
+ // Settings for quality-defined variable bitrate encoding with the AV1 codec.
+ // Required when you set Rate control mode to QVBR. Not valid when you set Rate
+ // control mode to a value other than QVBR, or when you don't define Rate control
+ // mode.
+ QvbrSettings *Av1QvbrSettings `locationName:"qvbrSettings" type:"structure"`
+
+ // 'With AV1 outputs, for rate control mode, MediaConvert supports only quality-defined
+ // variable bitrate (QVBR). You can''t use CBR or VBR.'
+ RateControlMode *string `locationName:"rateControlMode" type:"string" enum:"Av1RateControlMode"`
+
+ // Specify the number of slices per picture. This value must be 1, 2, 4, 8,
+ // 16, or 32. For progressive pictures, this value must be less than or equal
+ // to the number of macroblock rows. For interlaced pictures, this value must
+ // be less than or equal to half the number of macroblock rows.
+ Slices *int64 `locationName:"slices" min:"1" type:"integer"`
+
+ // Adjust quantization within each frame based on spatial variation of content
+ // complexity.
+ SpatialAdaptiveQuantization *string `locationName:"spatialAdaptiveQuantization" type:"string" enum:"Av1SpatialAdaptiveQuantization"`
+}
+
+// String returns the string representation
+func (s Av1Settings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Av1Settings) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Av1Settings) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Av1Settings"}
+ if s.FramerateDenominator != nil && *s.FramerateDenominator < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("FramerateDenominator", 1))
+ }
+ if s.FramerateNumerator != nil && *s.FramerateNumerator < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("FramerateNumerator", 1))
+ }
+ if s.MaxBitrate != nil && *s.MaxBitrate < 1000 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxBitrate", 1000))
+ }
+ if s.NumberBFramesBetweenReferenceFrames != nil && *s.NumberBFramesBetweenReferenceFrames < 7 {
+ invalidParams.Add(request.NewErrParamMinValue("NumberBFramesBetweenReferenceFrames", 7))
+ }
+ if s.Slices != nil && *s.Slices < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Slices", 1))
+ }
+ if s.QvbrSettings != nil {
+ if err := s.QvbrSettings.Validate(); err != nil {
+ invalidParams.AddNested("QvbrSettings", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdaptiveQuantization sets the AdaptiveQuantization field's value.
+func (s *Av1Settings) SetAdaptiveQuantization(v string) *Av1Settings {
+ s.AdaptiveQuantization = &v
+ return s
+}
+
+// SetFramerateControl sets the FramerateControl field's value.
+func (s *Av1Settings) SetFramerateControl(v string) *Av1Settings {
+ s.FramerateControl = &v
+ return s
+}
+
+// SetFramerateConversionAlgorithm sets the FramerateConversionAlgorithm field's value.
+func (s *Av1Settings) SetFramerateConversionAlgorithm(v string) *Av1Settings {
+ s.FramerateConversionAlgorithm = &v
+ return s
+}
+
+// SetFramerateDenominator sets the FramerateDenominator field's value.
+func (s *Av1Settings) SetFramerateDenominator(v int64) *Av1Settings {
+ s.FramerateDenominator = &v
+ return s
+}
+
+// SetFramerateNumerator sets the FramerateNumerator field's value.
+func (s *Av1Settings) SetFramerateNumerator(v int64) *Av1Settings {
+ s.FramerateNumerator = &v
+ return s
+}
+
+// SetGopSize sets the GopSize field's value.
+func (s *Av1Settings) SetGopSize(v float64) *Av1Settings {
+ s.GopSize = &v
+ return s
+}
+
+// SetMaxBitrate sets the MaxBitrate field's value.
+func (s *Av1Settings) SetMaxBitrate(v int64) *Av1Settings {
+ s.MaxBitrate = &v
+ return s
+}
+
+// SetNumberBFramesBetweenReferenceFrames sets the NumberBFramesBetweenReferenceFrames field's value.
+func (s *Av1Settings) SetNumberBFramesBetweenReferenceFrames(v int64) *Av1Settings {
+ s.NumberBFramesBetweenReferenceFrames = &v
+ return s
+}
+
+// SetQvbrSettings sets the QvbrSettings field's value.
+func (s *Av1Settings) SetQvbrSettings(v *Av1QvbrSettings) *Av1Settings {
+ s.QvbrSettings = v
+ return s
+}
+
+// SetRateControlMode sets the RateControlMode field's value.
+func (s *Av1Settings) SetRateControlMode(v string) *Av1Settings {
+ s.RateControlMode = &v
+ return s
+}
+
+// SetSlices sets the Slices field's value.
+func (s *Av1Settings) SetSlices(v int64) *Av1Settings {
+ s.Slices = &v
+ return s
+}
+
+// SetSpatialAdaptiveQuantization sets the SpatialAdaptiveQuantization field's value.
+func (s *Av1Settings) SetSpatialAdaptiveQuantization(v string) *Av1Settings {
+ s.SpatialAdaptiveQuantization = &v
+ return s
+}
+
// Settings for Avail Blanking
type AvailBlanking struct {
_ struct{} `type:"structure"`
@@ -3658,8 +3905,8 @@ func (s *AvailBlanking) SetAvailBlankingImage(v string) *AvailBlanking {
}
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3676,17 +3923,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3694,22 +3941,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Burn-In Destination Settings.
@@ -4384,6 +4631,65 @@ func (s *CaptionSelector) SetSourceSettings(v *CaptionSourceSettings) *CaptionSe
return s
}
+// Ignore this setting unless your input captions format is SCC. To have the
+// service compensate for differing framerates between your input captions and
+// input video, specify the framerate of the captions file. Specify this value
+// as a fraction, using the settings Framerate numerator (framerateNumerator)
+// and Framerate denominator (framerateDenominator). For example, you might
+// specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps,
+// or 30000 / 1001 for 29.97 fps.
+type CaptionSourceFramerate struct {
+ _ struct{} `type:"structure"`
+
+ // Specify the denominator of the fraction that represents the framerate for
+ // the setting Caption source framerate (CaptionSourceFramerate). Use this setting
+ // along with the setting Framerate numerator (framerateNumerator).
+ FramerateDenominator *int64 `locationName:"framerateDenominator" min:"1" type:"integer"`
+
+ // Specify the numerator of the fraction that represents the framerate for the
+ // setting Caption source framerate (CaptionSourceFramerate). Use this setting
+ // along with the setting Framerate denominator (framerateDenominator).
+ FramerateNumerator *int64 `locationName:"framerateNumerator" min:"1" type:"integer"`
+}
+
+// String returns the string representation
+func (s CaptionSourceFramerate) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CaptionSourceFramerate) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CaptionSourceFramerate) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CaptionSourceFramerate"}
+ if s.FramerateDenominator != nil && *s.FramerateDenominator < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("FramerateDenominator", 1))
+ }
+ if s.FramerateNumerator != nil && *s.FramerateNumerator < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("FramerateNumerator", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFramerateDenominator sets the FramerateDenominator field's value.
+func (s *CaptionSourceFramerate) SetFramerateDenominator(v int64) *CaptionSourceFramerate {
+ s.FramerateDenominator = &v
+ return s
+}
+
+// SetFramerateNumerator sets the FramerateNumerator field's value.
+func (s *CaptionSourceFramerate) SetFramerateNumerator(v int64) *CaptionSourceFramerate {
+ s.FramerateNumerator = &v
+ return s
+}
+
// If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file,
// specify the URI of the input captions source file. If your input captions
// are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
@@ -4998,10 +5304,11 @@ type ColorCorrector struct {
Brightness *int64 `locationName:"brightness" min:"1" type:"integer"`
// Specify the color space you want for this output. The service supports conversion
- // between HDR formats, between SDR formats, and from SDR to HDR. The service
- // doesn't support conversion from HDR to SDR. SDR to HDR conversion doesn't
- // upgrade the dynamic range. The converted video has an HDR format, but visually
- // appears the same as an unconverted output.
+ // between HDR formats, between SDR formats, from SDR to HDR, and from HDR to
+ // SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The converted
+ // video has an HDR format, but visually appears the same as an unconverted
+ // output. HDR to SDR conversion uses Elemental tone mapping technology to approximate
+ // the outcome of manually regrading from HDR to SDR.
ColorSpaceConversion *string `locationName:"colorSpaceConversion" type:"string" enum:"ColorSpaceConversion"`
// Contrast level.
@@ -5097,8 +5404,8 @@ func (s *ColorCorrector) SetSaturation(v int64) *ColorCorrector {
}
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5115,17 +5422,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5133,22 +5440,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Container specific settings.
@@ -5274,9 +5581,9 @@ func (s *ContainerSettings) SetMpdSettings(v *MpdSettings) *ContainerSettings {
type CreateJobInput struct {
_ struct{} `type:"structure"`
- // Accelerated transcoding can significantly speed up jobs with long, visually
- // complex content. Outputs that use this feature incur pro-tier pricing. For
- // information about feature limitations, see the AWS Elemental MediaConvert
+ // Optional. Accelerated transcoding can significantly speed up jobs with long,
+ // visually complex content. Outputs that use this feature incur pro-tier pricing.
+ // For information about feature limitations, see the AWS Elemental MediaConvert
// User Guide.
AccelerationSettings *AccelerationSettings `locationName:"accelerationSettings" type:"structure"`
@@ -5287,18 +5594,25 @@ type CreateJobInput struct {
// for this field, your job outputs will appear on the billing report unsorted.
BillingTagsSource *string `locationName:"billingTagsSource" type:"string" enum:"BillingTagsSource"`
- // Idempotency token for CreateJob operation.
+ // Optional. Idempotency token for CreateJob operation.
ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // When you create a job, you can either specify a job template or specify the
- // transcoding settings individually
+ // Optional. Use queue hopping to avoid overly long waits in the backlog of
+ // the queue that you submit your job to. Specify an alternate queue and the
+ // maximum time that your job will wait in the initial queue before hopping.
+ // For more information about this feature, see the AWS Elemental MediaConvert
+ // User Guide.
+ HopDestinations []*HopDestination `locationName:"hopDestinations" type:"list"`
+
+ // Optional. When you create a job, you can either specify a job template or
+ // specify the transcoding settings individually.
JobTemplate *string `locationName:"jobTemplate" type:"string"`
- // Specify the relative priority for this job. In any given queue, the service
- // begins processing the job with the highest value first. When more than one
- // job has the same priority, the service begins processing the job that you
- // submitted first. If you don't specify a priority, the service uses the default
- // value 0.
+ // Optional. Specify the relative priority for this job. In any given queue,
+ // the service begins processing the job with the highest value first. When
+ // more than one job has the same priority, the service begins processing the
+ // job that you submitted first. If you don't specify a priority, the service
+ // uses the default value 0.
Priority *int64 `locationName:"priority" type:"integer"`
// Optional. When you create a job, you can specify a queue to send it to. If
@@ -5317,24 +5631,25 @@ type CreateJobInput struct {
// Settings is a required field
Settings *JobSettings `locationName:"settings" type:"structure" required:"true"`
- // Enable this setting when you run a test job to estimate how many reserved
- // transcoding slots (RTS) you need. When this is enabled, MediaConvert runs
- // your job from an on-demand queue with similar performance to what you will
- // see with one RTS in a reserved queue. This setting is disabled by default.
+ // Optional. Enable this setting when you run a test job to estimate how many
+ // reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert
+ // runs your job from an on-demand queue with similar performance to what you
+ // will see with one RTS in a reserved queue. This setting is disabled by default.
SimulateReservedQueue *string `locationName:"simulateReservedQueue" type:"string" enum:"SimulateReservedQueue"`
- // Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch
- // Events. Set the interval, in seconds, between status updates. MediaConvert
- // sends an update at this interval from the time the service begins processing
- // your job to the time it completes the transcode or encounters an error.
+ // Optional. Specify how often MediaConvert sends STATUS_UPDATE events to Amazon
+ // CloudWatch Events. Set the interval, in seconds, between status updates.
+ // MediaConvert sends an update at this interval from the time the service begins
+ // processing your job to the time it completes the transcode or encounters
+ // an error.
StatusUpdateInterval *string `locationName:"statusUpdateInterval" type:"string" enum:"StatusUpdateInterval"`
- // The tags that you want to add to the resource. You can tag resources with
- // a key-value pair or with only a key.
+ // Optional. The tags that you want to add to the resource. You can tag resources
+ // with a key-value pair or with only a key.
Tags map[string]*string `locationName:"tags" type:"map"`
- // User-defined metadata that you want to associate with an MediaConvert job.
- // You specify metadata in key/value pairs.
+ // Optional. User-defined metadata that you want to associate with an MediaConvert
+ // job. You specify metadata in key/value pairs.
UserMetadata map[string]*string `locationName:"userMetadata" type:"map"`
}
@@ -5365,6 +5680,16 @@ func (s *CreateJobInput) Validate() error {
invalidParams.AddNested("AccelerationSettings", err.(request.ErrInvalidParams))
}
}
+ if s.HopDestinations != nil {
+ for i, v := range s.HopDestinations {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "HopDestinations", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if s.Settings != nil {
if err := s.Settings.Validate(); err != nil {
invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
@@ -5395,6 +5720,12 @@ func (s *CreateJobInput) SetClientRequestToken(v string) *CreateJobInput {
return s
}
+// SetHopDestinations sets the HopDestinations field's value.
+func (s *CreateJobInput) SetHopDestinations(v []*HopDestination) *CreateJobInput {
+ s.HopDestinations = v
+ return s
+}
+
// SetJobTemplate sets the JobTemplate field's value.
func (s *CreateJobInput) SetJobTemplate(v string) *CreateJobInput {
s.JobTemplate = &v
@@ -5492,6 +5823,13 @@ type CreateJobTemplateInput struct {
// Optional. A description of the job template you are creating.
Description *string `locationName:"description" type:"string"`
+ // Optional. Use queue hopping to avoid overly long waits in the backlog of
+ // the queue that you submit your job to. Specify an alternate queue and the
+ // maximum time that your job will wait in the initial queue before hopping.
+ // For more information about this feature, see the AWS Elemental MediaConvert
+ // User Guide.
+ HopDestinations []*HopDestination `locationName:"hopDestinations" type:"list"`
+
// The name of the job template you are creating.
//
// Name is a required field
@@ -5552,6 +5890,16 @@ func (s *CreateJobTemplateInput) Validate() error {
invalidParams.AddNested("AccelerationSettings", err.(request.ErrInvalidParams))
}
}
+ if s.HopDestinations != nil {
+ for i, v := range s.HopDestinations {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "HopDestinations", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if s.Settings != nil {
if err := s.Settings.Validate(); err != nil {
invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
@@ -5582,6 +5930,12 @@ func (s *CreateJobTemplateInput) SetDescription(v string) *CreateJobTemplateInpu
return s
}
+// SetHopDestinations sets the HopDestinations field's value.
+func (s *CreateJobTemplateInput) SetHopDestinations(v []*HopDestination) *CreateJobTemplateInput {
+ s.HopDestinations = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *CreateJobTemplateInput) SetName(v string) *CreateJobTemplateInput {
s.Name = &v
@@ -7911,6 +8265,15 @@ type FileSourceSettings struct {
// 608 data into 708.
Convert608To708 *string `locationName:"convert608To708" type:"string" enum:"FileSourceConvert608To708"`
+ // Ignore this setting unless your input captions format is SCC. To have the
+ // service compensate for differing framerates between your input captions and
+ // input video, specify the framerate of the captions file. Specify this value
+ // as a fraction, using the settings Framerate numerator (framerateNumerator)
+ // and Framerate denominator (framerateDenominator). For example, you might
+ // specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps,
+ // or 30000 / 1001 for 29.97 fps.
+ Framerate *CaptionSourceFramerate `locationName:"framerate" type:"structure"`
+
// External caption file used for loading captions. Accepted file extensions
// are 'scc', 'ttml', 'dfxp', 'stl', 'srt', 'xml', and 'smi'.
SourceFile *string `locationName:"sourceFile" min:"14" type:"string"`
@@ -7939,6 +8302,11 @@ func (s *FileSourceSettings) Validate() error {
if s.TimeDelta != nil && *s.TimeDelta < -2.147483648e+09 {
invalidParams.Add(request.NewErrParamMinValue("TimeDelta", -2.147483648e+09))
}
+ if s.Framerate != nil {
+ if err := s.Framerate.Validate(); err != nil {
+ invalidParams.AddNested("Framerate", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7952,6 +8320,12 @@ func (s *FileSourceSettings) SetConvert608To708(v string) *FileSourceSettings {
return s
}
+// SetFramerate sets the Framerate field's value.
+func (s *FileSourceSettings) SetFramerate(v *CaptionSourceFramerate) *FileSourceSettings {
+ s.Framerate = v
+ return s
+}
+
// SetSourceFile sets the SourceFile field's value.
func (s *FileSourceSettings) SetSourceFile(v string) *FileSourceSettings {
s.SourceFile = &v
@@ -7965,8 +8339,8 @@ func (s *FileSourceSettings) SetTimeDelta(v int64) *FileSourceSettings {
}
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7983,17 +8357,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8001,22 +8375,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to
@@ -10295,6 +10669,70 @@ func (s *HlsSettings) SetSegmentModifier(v string) *HlsSettings {
return s
}
+// Optional. Configuration for a destination queue to which the job can hop
+// once a customer-defined minimum wait time has passed.
+type HopDestination struct {
+ _ struct{} `type:"structure"`
+
+ // Optional. When you set up a job to use queue hopping, you can specify a different
+ // relative priority for the job in the destination queue. If you don't specify,
+ // the relative priority will remain the same as in the previous queue.
+ Priority *int64 `locationName:"priority" type:"integer"`
+
+ // Optional unless the job is submitted on the default queue. When you set up
+ // a job to use queue hopping, you can specify a destination queue. This queue
+ // cannot be the original queue to which the job is submitted. If the original
+ // queue isn't the default queue and you don't specify the destination queue,
+ // the job will move to the default queue.
+ Queue *string `locationName:"queue" type:"string"`
+
+ // Required for setting up a job to use queue hopping. Minimum wait time in
+ // minutes until the job can hop to the destination queue. Valid range is 1
+ // to 1440 minutes, inclusive.
+ WaitMinutes *int64 `locationName:"waitMinutes" type:"integer"`
+}
+
+// String returns the string representation
+func (s HopDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s HopDestination) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *HopDestination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "HopDestination"}
+ if s.Priority != nil && *s.Priority < -50 {
+ invalidParams.Add(request.NewErrParamMinValue("Priority", -50))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPriority sets the Priority field's value.
+func (s *HopDestination) SetPriority(v int64) *HopDestination {
+ s.Priority = &v
+ return s
+}
+
+// SetQueue sets the Queue field's value.
+func (s *HopDestination) SetQueue(v string) *HopDestination {
+ s.Queue = &v
+ return s
+}
+
+// SetWaitMinutes sets the WaitMinutes field's value.
+func (s *HopDestination) SetWaitMinutes(v int64) *HopDestination {
+ s.WaitMinutes = &v
+ return s
+}
+
// To insert ID3 tags in your output, specify two values. Use ID3 tag (Id3)
// to specify the base 64 encoded string and use Timecode (TimeCode) to specify
// the time when the tag should be inserted. To insert multiple ID3 tags in
@@ -11272,8 +11710,8 @@ func (s *InsertableImage) SetWidth(v int64) *InsertableImage {
}
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11290,17 +11728,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11308,22 +11746,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Each job converts an input file into an output file or files. For more information,
@@ -11351,11 +11789,8 @@ type Job struct {
// An identifier for this resource that is unique within all of AWS.
Arn *string `locationName:"arn" type:"string"`
- // Optional. Choose a tag type that AWS Billing and Cost Management will use
- // to sort your AWS Elemental MediaConvert costs on any billing report that
- // you set up. Any transcoding outputs that don't have an associated tag will
- // appear in your billing report unsorted. If you don't choose a valid value
- // for this field, your job outputs will appear on the billing report unsorted.
+ // The tag type that AWS Billing and Cost Management will use to sort your AWS
+ // Elemental MediaConvert costs on any billing report that you set up.
BillingTagsSource *string `locationName:"billingTagsSource" type:"string" enum:"BillingTagsSource"`
// The time, in Unix epoch format in seconds, when the job got created.
@@ -11370,6 +11805,9 @@ type Job struct {
// Error message of Job
ErrorMessage *string `locationName:"errorMessage" type:"string"`
+ // Optional list of hop destinations.
+ HopDestinations []*HopDestination `locationName:"hopDestinations" type:"list"`
+
// A portion of the job's ARN, unique within your AWS Elemental MediaConvert
// resources
Id *string `locationName:"id" type:"string"`
@@ -11398,11 +11836,14 @@ type Job struct {
// Relative priority on the job.
Priority *int64 `locationName:"priority" type:"integer"`
- // Optional. When you create a job, you can specify a queue to send it to. If
- // you don't specify, the job will go to the default queue. For more about queues,
- // see the User Guide topic at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
+ // When you create a job, you can specify a queue to send it to. If you don't
+ // specify, the job will go to the default queue. For more about queues, see
+ // the User Guide topic at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
Queue *string `locationName:"queue" type:"string"`
+ // The job's queue hopping history.
+ QueueTransitions []*QueueTransition `locationName:"queueTransitions" type:"list"`
+
// The number of times that the service automatically attempted to process your
// job after encountering an error.
RetryCount *int64 `locationName:"retryCount" type:"integer"`
@@ -11500,6 +11941,12 @@ func (s *Job) SetErrorMessage(v string) *Job {
return s
}
+// SetHopDestinations sets the HopDestinations field's value.
+func (s *Job) SetHopDestinations(v []*HopDestination) *Job {
+ s.HopDestinations = v
+ return s
+}
+
// SetId sets the Id field's value.
func (s *Job) SetId(v string) *Job {
s.Id = &v
@@ -11542,6 +11989,12 @@ func (s *Job) SetQueue(v string) *Job {
return s
}
+// SetQueueTransitions sets the QueueTransitions field's value.
+func (s *Job) SetQueueTransitions(v []*QueueTransition) *Job {
+ s.QueueTransitions = v
+ return s
+}
+
// SetRetryCount sets the RetryCount field's value.
func (s *Job) SetRetryCount(v int64) *Job {
s.RetryCount = &v
@@ -11808,6 +12261,9 @@ type JobTemplate struct {
// An optional description you create for each job template.
Description *string `locationName:"description" type:"string"`
+ // Optional list of hop destinations.
+ HopDestinations []*HopDestination `locationName:"hopDestinations" type:"list"`
+
// The timestamp in epoch seconds when the Job template was last updated.
LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unixTimestamp"`
@@ -11881,6 +12337,12 @@ func (s *JobTemplate) SetDescription(v string) *JobTemplate {
return s
}
+// SetHopDestinations sets the HopDestinations field's value.
+func (s *JobTemplate) SetHopDestinations(v []*HopDestination) *JobTemplate {
+ s.HopDestinations = v
+ return s
+}
+
// SetLastUpdated sets the LastUpdated field's value.
func (s *JobTemplate) SetLastUpdated(v time.Time) *JobTemplate {
s.LastUpdated = &v
@@ -12109,7 +12571,7 @@ type ListJobTemplatesInput struct {
// the next batch of job templates.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // When you request lists of resources, you can optionally specify whether they
+ // Optional. When you request lists of resources, you can specify whether they
// are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Order *string `location:"querystring" locationName:"order" type:"string" enum:"Order"`
}
@@ -12212,18 +12674,19 @@ type ListJobsInput struct {
// Optional. Number of jobs, up to twenty, that will be returned at one time.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // Use this string, provided with the response to a previous request, to request
- // the next batch of jobs.
+ // Optional. Use this string, provided with the response to a previous request,
+ // to request the next batch of jobs.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // When you request lists of resources, you can optionally specify whether they
+ // Optional. When you request lists of resources, you can specify whether they
// are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Order *string `location:"querystring" locationName:"order" type:"string" enum:"Order"`
- // Provide a queue name to get back only jobs from that queue.
+ // Optional. Provide a queue name to get back only jobs from that queue.
Queue *string `location:"querystring" locationName:"queue" type:"string"`
- // A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
+ // Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED,
+ // or ERROR.
Status *string `location:"querystring" locationName:"status" type:"string" enum:"JobStatus"`
}
@@ -12337,7 +12800,7 @@ type ListPresetsInput struct {
// the next batch of presets.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // When you request lists of resources, you can optionally specify whether they
+ // Optional. When you request lists of resources, you can specify whether they
// are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Order *string `location:"querystring" locationName:"order" type:"string" enum:"Order"`
}
@@ -12446,7 +12909,7 @@ type ListQueuesInput struct {
// the next batch of queues.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // When you request lists of resources, you can optionally specify whether they
+ // Optional. When you request lists of resources, you can specify whether they
// are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Order *string `location:"querystring" locationName:"order" type:"string" enum:"Order"`
}
@@ -14709,8 +15172,8 @@ func (s *NoiseReducerTemporalFilterSettings) SetStrength(v int64) *NoiseReducerT
}
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14727,17 +15190,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14745,22 +15208,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An output object describes the settings for a single output file or stream
@@ -15692,6 +16155,50 @@ func (s *Queue) SetType(v string) *Queue {
return s
}
+// Description of the source and destination queues between which the job has
+// moved, along with the timestamp of the move
+type QueueTransition struct {
+ _ struct{} `type:"structure"`
+
+ // The queue that the job was on after the transition.
+ DestinationQueue *string `locationName:"destinationQueue" type:"string"`
+
+ // The queue that the job was on before the transition.
+ SourceQueue *string `locationName:"sourceQueue" type:"string"`
+
+ // The time, in Unix epoch format, that the job moved from the source queue
+ // to the destination queue.
+ Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unixTimestamp"`
+}
+
+// String returns the string representation
+func (s QueueTransition) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s QueueTransition) GoString() string {
+ return s.String()
+}
+
+// SetDestinationQueue sets the DestinationQueue field's value.
+func (s *QueueTransition) SetDestinationQueue(v string) *QueueTransition {
+ s.DestinationQueue = &v
+ return s
+}
+
+// SetSourceQueue sets the SourceQueue field's value.
+func (s *QueueTransition) SetSourceQueue(v string) *QueueTransition {
+ s.SourceQueue = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *QueueTransition) SetTimestamp(v time.Time) *QueueTransition {
+ s.Timestamp = &v
+ return s
+}
+
// Use Rectangle to identify a specific area of the video frame.
type Rectangle struct {
_ struct{} `type:"structure"`
@@ -16719,8 +17226,8 @@ func (s *Timing) SetSubmitTime(v time.Time) *Timing {
}
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16737,17 +17244,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16755,22 +17262,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Settings specific to caption sources that are specified by track number.
@@ -16930,6 +17437,9 @@ type UpdateJobTemplateInput struct {
// The new description for the job template, if you are changing it.
Description *string `locationName:"description" type:"string"`
+ // Optional list of hop destinations.
+ HopDestinations []*HopDestination `locationName:"hopDestinations" type:"list"`
+
// The name of the job template you are modifying
//
// Name is a required field
@@ -16983,6 +17493,16 @@ func (s *UpdateJobTemplateInput) Validate() error {
invalidParams.AddNested("AccelerationSettings", err.(request.ErrInvalidParams))
}
}
+ if s.HopDestinations != nil {
+ for i, v := range s.HopDestinations {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "HopDestinations", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if s.Settings != nil {
if err := s.Settings.Validate(); err != nil {
invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
@@ -17013,6 +17533,12 @@ func (s *UpdateJobTemplateInput) SetDescription(v string) *UpdateJobTemplateInpu
return s
}
+// SetHopDestinations sets the HopDestinations field's value.
+func (s *UpdateJobTemplateInput) SetHopDestinations(v []*HopDestination) *UpdateJobTemplateInput {
+ s.HopDestinations = v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *UpdateJobTemplateInput) SetName(v string) *UpdateJobTemplateInput {
s.Name = &v
@@ -17285,11 +17811,15 @@ func (s *UpdateQueueOutput) SetQueue(v *Queue) *UpdateQueueOutput {
// vary depending on the value that you choose for Video codec (Codec). For
// each codec enum that you choose, define the corresponding settings object.
// The following lists the codec enum, settings object pairs. * FRAME_CAPTURE,
-// FrameCaptureSettings * H_264, H264Settings * H_265, H265Settings * MPEG2,
-// Mpeg2Settings * PRORES, ProresSettings
+// FrameCaptureSettings * AV1, Av1Settings * H_264, H264Settings * H_265, H265Settings
+// * MPEG2, Mpeg2Settings * PRORES, ProresSettings
type VideoCodecSettings struct {
_ struct{} `type:"structure"`
+ // Required when you set Codec, under VideoDescription>CodecSettings to the
+ // value AV1.
+ Av1Settings *Av1Settings `locationName:"av1Settings" type:"structure"`
+
// Specifies the video codec. This must be equal to one of the enum values defined
// by the object VideoCodec.
Codec *string `locationName:"codec" type:"string" enum:"VideoCodec"`
@@ -17327,6 +17857,11 @@ func (s VideoCodecSettings) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *VideoCodecSettings) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VideoCodecSettings"}
+ if s.Av1Settings != nil {
+ if err := s.Av1Settings.Validate(); err != nil {
+ invalidParams.AddNested("Av1Settings", err.(request.ErrInvalidParams))
+ }
+ }
if s.FrameCaptureSettings != nil {
if err := s.FrameCaptureSettings.Validate(); err != nil {
invalidParams.AddNested("FrameCaptureSettings", err.(request.ErrInvalidParams))
@@ -17359,6 +17894,12 @@ func (s *VideoCodecSettings) Validate() error {
return nil
}
+// SetAv1Settings sets the Av1Settings field's value.
+func (s *VideoCodecSettings) SetAv1Settings(v *Av1Settings) *VideoCodecSettings {
+ s.Av1Settings = v
+ return s
+}
+
// SetCodec sets the Codec field's value.
func (s *VideoCodecSettings) SetCodec(v string) *VideoCodecSettings {
s.Codec = &v
@@ -17417,8 +17958,8 @@ type VideoDescription struct {
// vary depending on the value that you choose for Video codec (Codec). For
// each codec enum that you choose, define the corresponding settings object.
// The following lists the codec enum, settings object pairs. * FRAME_CAPTURE,
- // FrameCaptureSettings * H_264, H264Settings * H_265, H265Settings * MPEG2,
- // Mpeg2Settings * PRORES, ProresSettings
+ // FrameCaptureSettings * AV1, Av1Settings * H_264, H264Settings * H_265, H265Settings
+ // * MPEG2, Mpeg2Settings * PRORES, ProresSettings
CodecSettings *VideoCodecSettings `locationName:"codecSettings" type:"structure"`
// Choose Insert (INSERT) for this setting to include color metadata in this
@@ -18402,11 +18943,75 @@ const (
AudioTypeControlUseConfigured = "USE_CONFIGURED"
)
-// Optional. Choose a tag type that AWS Billing and Cost Management will use
-// to sort your AWS Elemental MediaConvert costs on any billing report that
-// you set up. Any transcoding outputs that don't have an associated tag will
-// appear in your billing report unsorted. If you don't choose a valid value
-// for this field, your job outputs will appear on the billing report unsorted.
+// Adaptive quantization. Allows intra-frame quantizers to vary to improve visual
+// quality.
+const (
+ // Av1AdaptiveQuantizationOff is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationOff = "OFF"
+
+ // Av1AdaptiveQuantizationLow is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationLow = "LOW"
+
+ // Av1AdaptiveQuantizationMedium is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationMedium = "MEDIUM"
+
+ // Av1AdaptiveQuantizationHigh is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationHigh = "HIGH"
+
+ // Av1AdaptiveQuantizationHigher is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationHigher = "HIGHER"
+
+ // Av1AdaptiveQuantizationMax is a Av1AdaptiveQuantization enum value
+ Av1AdaptiveQuantizationMax = "MAX"
+)
+
+// If you are using the console, use the Framerate setting to specify the frame
+// rate for this output. If you want to keep the same frame rate as the input
+// video, choose Follow source. If you want to do frame rate conversion, choose
+// a frame rate from the dropdown list or choose Custom. The framerates shown
+// in the dropdown list are decimal approximations of fractions. If you choose
+// Custom, specify your frame rate as a fraction. If you are creating your transcoding
+// job specification as a JSON file without the console, use FramerateControl
+// to specify which value the service uses for the frame rate for this output.
+// Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
+// from the input. Choose SPECIFIED if you want the service to use the frame
+// rate you specify in the settings FramerateNumerator and FramerateDenominator.
+const (
+ // Av1FramerateControlInitializeFromSource is a Av1FramerateControl enum value
+ Av1FramerateControlInitializeFromSource = "INITIALIZE_FROM_SOURCE"
+
+ // Av1FramerateControlSpecified is a Av1FramerateControl enum value
+ Av1FramerateControlSpecified = "SPECIFIED"
+)
+
+// When set to INTERPOLATE, produces smoother motion during frame rate conversion.
+const (
+ // Av1FramerateConversionAlgorithmDuplicateDrop is a Av1FramerateConversionAlgorithm enum value
+ Av1FramerateConversionAlgorithmDuplicateDrop = "DUPLICATE_DROP"
+
+ // Av1FramerateConversionAlgorithmInterpolate is a Av1FramerateConversionAlgorithm enum value
+ Av1FramerateConversionAlgorithmInterpolate = "INTERPOLATE"
+)
+
+// 'With AV1 outputs, for rate control mode, MediaConvert supports only quality-defined
+// variable bitrate (QVBR). You can''t use CBR or VBR.'
+const (
+ // Av1RateControlModeQvbr is a Av1RateControlMode enum value
+ Av1RateControlModeQvbr = "QVBR"
+)
+
+// Adjust quantization within each frame based on spatial variation of content
+// complexity.
+const (
+ // Av1SpatialAdaptiveQuantizationDisabled is a Av1SpatialAdaptiveQuantization enum value
+ Av1SpatialAdaptiveQuantizationDisabled = "DISABLED"
+
+ // Av1SpatialAdaptiveQuantizationEnabled is a Av1SpatialAdaptiveQuantization enum value
+ Av1SpatialAdaptiveQuantizationEnabled = "ENABLED"
+)
+
+// The tag type that AWS Billing and Cost Management will use to sort your AWS
+// Elemental MediaConvert costs on any billing report that you set up.
const (
// BillingTagsSourceQueue is a BillingTagsSource enum value
BillingTagsSourceQueue = "QUEUE"
@@ -18806,10 +19411,11 @@ const (
)
// Specify the color space you want for this output. The service supports conversion
-// between HDR formats, between SDR formats, and from SDR to HDR. The service
-// doesn't support conversion from HDR to SDR. SDR to HDR conversion doesn't
-// upgrade the dynamic range. The converted video has an HDR format, but visually
-// appears the same as an unconverted output.
+// between HDR formats, between SDR formats, from SDR to HDR, and from HDR to
+// SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The converted
+// video has an HDR format, but visually appears the same as an unconverted
+// output. HDR to SDR conversion uses Elemental tone mapping technology to approximate
+// the outcome of manually regrading from HDR to SDR.
const (
// ColorSpaceConversionNone is a ColorSpaceConversion enum value
ColorSpaceConversionNone = "NONE"
@@ -21835,7 +22441,7 @@ const (
NoiseReducerFilterTemporal = "TEMPORAL"
)
-// When you request lists of resources, you can optionally specify whether they
+// Optional. When you request lists of resources, you can specify whether they
// are sorted in ASCENDING or DESCENDING order. Default varies by resource.
const (
// OrderAscending is a Order enum value
@@ -22316,6 +22922,9 @@ const (
// VideoCodecFrameCapture is a VideoCodec enum value
VideoCodecFrameCapture = "FRAME_CAPTURE"
+ // VideoCodecAv1 is a VideoCodec enum value
+ VideoCodecAv1 = "AV1"
+
// VideoCodecH264 is a VideoCodec enum value
VideoCodecH264 = "H_264"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go b/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go
index 2fa18e29d9b..5683e77eeb6 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go
@@ -5328,6 +5328,9 @@ type AudioSelectorSettings struct {
// Audio Pid Selection
AudioPidSelection *AudioPidSelection `locationName:"audioPidSelection" type:"structure"`
+
+ // Audio Track Selection
+ AudioTrackSelection *AudioTrackSelection `locationName:"audioTrackSelection" type:"structure"`
}
// String returns the string representation
@@ -5353,6 +5356,11 @@ func (s *AudioSelectorSettings) Validate() error {
invalidParams.AddNested("AudioPidSelection", err.(request.ErrInvalidParams))
}
}
+ if s.AudioTrackSelection != nil {
+ if err := s.AudioTrackSelection.Validate(); err != nil {
+ invalidParams.AddNested("AudioTrackSelection", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -5372,6 +5380,152 @@ func (s *AudioSelectorSettings) SetAudioPidSelection(v *AudioPidSelection) *Audi
return s
}
+// SetAudioTrackSelection sets the AudioTrackSelection field's value.
+func (s *AudioSelectorSettings) SetAudioTrackSelection(v *AudioTrackSelection) *AudioSelectorSettings {
+ s.AudioTrackSelection = v
+ return s
+}
+
+// Audio Track
+type AudioTrack struct {
+ _ struct{} `type:"structure"`
+
+ // 1-based integer value that maps to a specific audio track
+ //
+ // Track is a required field
+ Track *int64 `locationName:"track" min:"1" type:"integer" required:"true"`
+}
+
+// String returns the string representation
+func (s AudioTrack) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AudioTrack) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AudioTrack) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AudioTrack"}
+ if s.Track == nil {
+ invalidParams.Add(request.NewErrParamRequired("Track"))
+ }
+ if s.Track != nil && *s.Track < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Track", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTrack sets the Track field's value.
+func (s *AudioTrack) SetTrack(v int64) *AudioTrack {
+ s.Track = &v
+ return s
+}
+
+// Audio Track Selection
+type AudioTrackSelection struct {
+ _ struct{} `type:"structure"`
+
+ // Selects one or more unique audio tracks from within an mp4 source.
+ //
+ // Tracks is a required field
+ Tracks []*AudioTrack `locationName:"tracks" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s AudioTrackSelection) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AudioTrackSelection) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AudioTrackSelection) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AudioTrackSelection"}
+ if s.Tracks == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tracks"))
+ }
+ if s.Tracks != nil {
+ for i, v := range s.Tracks {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tracks", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTracks sets the Tracks field's value.
+func (s *AudioTrackSelection) SetTracks(v []*AudioTrack) *AudioTrackSelection {
+ s.Tracks = v
+ return s
+}
+
+// The settings for Automatic Input Failover.
+type AutomaticInputFailoverSettings struct {
+ _ struct{} `type:"structure"`
+
+ // Input preference when deciding which input to make active when a previously
+ // failed input has recovered.
+ InputPreference *string `locationName:"inputPreference" type:"string" enum:"InputPreference"`
+
+ // The input ID of the secondary input in the automatic input failover pair.
+ //
+ // SecondaryInputId is a required field
+ SecondaryInputId *string `locationName:"secondaryInputId" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AutomaticInputFailoverSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AutomaticInputFailoverSettings) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AutomaticInputFailoverSettings) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AutomaticInputFailoverSettings"}
+ if s.SecondaryInputId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecondaryInputId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetInputPreference sets the InputPreference field's value.
+func (s *AutomaticInputFailoverSettings) SetInputPreference(v string) *AutomaticInputFailoverSettings {
+ s.InputPreference = &v
+ return s
+}
+
+// SetSecondaryInputId sets the SecondaryInputId field's value.
+func (s *AutomaticInputFailoverSettings) SetSecondaryInputId(v string) *AutomaticInputFailoverSettings {
+ s.SecondaryInputId = &v
+ return s
+}
+
// Avail Blanking
type AvailBlanking struct {
_ struct{} `type:"structure"`
@@ -5515,8 +5669,8 @@ func (s *AvailSettings) SetScte35TimeSignalApos(v *Scte35TimeSignalApos) *AvailS
}
type BadGatewayException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5533,17 +5687,17 @@ func (s BadGatewayException) GoString() string {
func newErrorBadGatewayException(v protocol.ResponseMetadata) error {
return &BadGatewayException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadGatewayException) Code() string {
+func (s *BadGatewayException) Code() string {
return "BadGatewayException"
}
// Message returns the exception's message.
-func (s BadGatewayException) Message() string {
+func (s *BadGatewayException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5551,27 +5705,27 @@ func (s BadGatewayException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadGatewayException) OrigErr() error {
+func (s *BadGatewayException) OrigErr() error {
return nil
}
-func (s BadGatewayException) Error() string {
+func (s *BadGatewayException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadGatewayException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadGatewayException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadGatewayException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadGatewayException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5588,17 +5742,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5606,22 +5760,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A list of schedule actions to create (in a request) or that have been created
@@ -6984,8 +7138,8 @@ func (s ColorSpacePassthroughSettings) GoString() string {
}
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7002,17 +7156,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7020,22 +7174,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateChannelInput struct {
@@ -10704,6 +10858,14 @@ type Fmp4HlsSettings struct {
// List all the audio groups that are used with the video output stream. Input
// all the audio GROUP-IDs that are associated to the video, separate by ','.
AudioRenditionSets *string `locationName:"audioRenditionSets" type:"string"`
+
+ // If set to passthrough, Nielsen inaudible tones for media tracking will be
+ // detected in the input audio and an equivalent ID3 tag will be inserted in
+ // the output.
+ NielsenId3Behavior *string `locationName:"nielsenId3Behavior" type:"string" enum:"Fmp4NielsenId3Behavior"`
+
+ // When set to passthrough, timed metadata is passed through from input to output.
+ TimedMetadataBehavior *string `locationName:"timedMetadataBehavior" type:"string" enum:"Fmp4TimedMetadataBehavior"`
}
// String returns the string representation
@@ -10722,6 +10884,18 @@ func (s *Fmp4HlsSettings) SetAudioRenditionSets(v string) *Fmp4HlsSettings {
return s
}
+// SetNielsenId3Behavior sets the NielsenId3Behavior field's value.
+func (s *Fmp4HlsSettings) SetNielsenId3Behavior(v string) *Fmp4HlsSettings {
+ s.NielsenId3Behavior = &v
+ return s
+}
+
+// SetTimedMetadataBehavior sets the TimedMetadataBehavior field's value.
+func (s *Fmp4HlsSettings) SetTimedMetadataBehavior(v string) *Fmp4HlsSettings {
+ s.TimedMetadataBehavior = &v
+ return s
+}
+
// Settings to specify if an action follows another.
type FollowModeScheduleActionStartSettings struct {
_ struct{} `type:"structure"`
@@ -10777,8 +10951,8 @@ func (s *FollowModeScheduleActionStartSettings) SetReferenceActionName(v string)
}
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10795,17 +10969,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10813,22 +10987,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Frame Capture Group Settings
@@ -10954,8 +11128,8 @@ func (s *FrameCaptureSettings) SetCaptureIntervalUnits(v string) *FrameCaptureSe
}
type GatewayTimeoutException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10972,17 +11146,17 @@ func (s GatewayTimeoutException) GoString() string {
func newErrorGatewayTimeoutException(v protocol.ResponseMetadata) error {
return &GatewayTimeoutException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s GatewayTimeoutException) Code() string {
+func (s *GatewayTimeoutException) Code() string {
return "GatewayTimeoutException"
}
// Message returns the exception's message.
-func (s GatewayTimeoutException) Message() string {
+func (s *GatewayTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10990,22 +11164,22 @@ func (s GatewayTimeoutException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s GatewayTimeoutException) OrigErr() error {
+func (s *GatewayTimeoutException) OrigErr() error {
return nil
}
-func (s GatewayTimeoutException) Error() string {
+func (s *GatewayTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s GatewayTimeoutException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *GatewayTimeoutException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s GatewayTimeoutException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *GatewayTimeoutException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Global Configuration
@@ -11150,6 +11324,30 @@ func (s *H264ColorSpaceSettings) SetRec709Settings(v *Rec709Settings) *H264Color
return s
}
+// H264 Filter Settings
+type H264FilterSettings struct {
+ _ struct{} `type:"structure"`
+
+ // Temporal Filter Settings
+ TemporalFilterSettings *TemporalFilterSettings `locationName:"temporalFilterSettings" type:"structure"`
+}
+
+// String returns the string representation
+func (s H264FilterSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s H264FilterSettings) GoString() string {
+ return s.String()
+}
+
+// SetTemporalFilterSettings sets the TemporalFilterSettings field's value.
+func (s *H264FilterSettings) SetTemporalFilterSettings(v *TemporalFilterSettings) *H264FilterSettings {
+ s.TemporalFilterSettings = v
+ return s
+}
+
// H264 Settings
type H264Settings struct {
_ struct{} `type:"structure"`
@@ -11185,6 +11383,9 @@ type H264Settings struct {
// Entropy encoding mode. Use cabac (must be in Main or High profile) or cavlc.
EntropyEncoding *string `locationName:"entropyEncoding" type:"string" enum:"H264EntropyEncoding"`
+ // Settings associated with the specified filter.
+ FilterSettings *H264FilterSettings `locationName:"filterSettings" type:"structure"`
+
// Four bit AFD value to write on all frames of video in the output stream.
// Only valid when afdSignaling is set to 'Fixed'.
FixedAfd *string `locationName:"fixedAfd" type:"string" enum:"FixedAfd"`
@@ -11193,6 +11394,15 @@ type H264Settings struct {
// or 'pop' on I-frames.
FlickerAq *string `locationName:"flickerAq" type:"string" enum:"H264FlickerAq"`
+ // This setting applies only when scan type is "interlaced." It controls whether
+ // coding is performed on a field basis or on a frame basis. (When the video
+ // is progressive, the coding is always performed on a frame basis.)enabled:
+ // Force MediaLive to code on a field basis, so that odd and even sets of fields
+ // are coded separately.disabled: Code the two sets of fields separately (on
+ // a field basis) or together (on a frame basis using PAFF), depending on what
+ // is most appropriate for the content.
+ ForceFieldPictures *string `locationName:"forceFieldPictures" type:"string" enum:"H264ForceFieldPictures"`
+
// This field indicates how the output video frame rate is specified. If "specified"
// is selected then the output video frame rate is determined by framerateNumerator
// and framerateDenominator, else if "initializeFromSource" is selected then
@@ -11269,6 +11479,11 @@ type H264Settings struct {
// H.264 Profile.
Profile *string `locationName:"profile" type:"string" enum:"H264Profile"`
+ // If set to "ENHANCEDQUALITY," improves visual quality at an increased output
+ // cost. If this video is being delivered to a MediaLive Multiplex, "ENHANCEDQUALITY"
+ // is always used.
+ QualityLevel *string `locationName:"qualityLevel" type:"string" enum:"H264QualityLevel"`
+
// Controls the target quality for the video encode. Applies only when the rate
// control mode is QVBR. Set values for the QVBR quality level field and Max
// bitrate field that suit your most important viewing devices. Recommended
@@ -11420,6 +11635,12 @@ func (s *H264Settings) SetEntropyEncoding(v string) *H264Settings {
return s
}
+// SetFilterSettings sets the FilterSettings field's value.
+func (s *H264Settings) SetFilterSettings(v *H264FilterSettings) *H264Settings {
+ s.FilterSettings = v
+ return s
+}
+
// SetFixedAfd sets the FixedAfd field's value.
func (s *H264Settings) SetFixedAfd(v string) *H264Settings {
s.FixedAfd = &v
@@ -11432,6 +11653,12 @@ func (s *H264Settings) SetFlickerAq(v string) *H264Settings {
return s
}
+// SetForceFieldPictures sets the ForceFieldPictures field's value.
+func (s *H264Settings) SetForceFieldPictures(v string) *H264Settings {
+ s.ForceFieldPictures = &v
+ return s
+}
+
// SetFramerateControl sets the FramerateControl field's value.
func (s *H264Settings) SetFramerateControl(v string) *H264Settings {
s.FramerateControl = &v
@@ -11534,6 +11761,12 @@ func (s *H264Settings) SetProfile(v string) *H264Settings {
return s
}
+// SetQualityLevel sets the QualityLevel field's value.
+func (s *H264Settings) SetQualityLevel(v string) *H264Settings {
+ s.QualityLevel = &v
+ return s
+}
+
// SetQvbrQualityLevel sets the QvbrQualityLevel field's value.
func (s *H264Settings) SetQvbrQualityLevel(v int64) *H264Settings {
s.QvbrQualityLevel = &v
@@ -12372,8 +12605,9 @@ type HlsGroupSettings struct {
Mode *string `locationName:"mode" type:"string" enum:"HlsMode"`
// MANIFESTSANDSEGMENTS: Generates manifests (master manifest, if applicable,
- // and media manifests) for this output group.SEGMENTSONLY: Does not generate
- // any manifests for this output group.
+ // and media manifests) for this output group.VARIANTMANIFESTSANDSEGMENTS: Generates
+ // media manifests for this output group, but not a master manifest.SEGMENTSONLY:
+ // Does not generate any manifests for this output group.
OutputSelection *string `locationName:"outputSelection" type:"string" enum:"HlsOutputSelection"`
// Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files.
@@ -13131,8 +13365,7 @@ func (s *HlsWebdavSettings) SetRestartDelay(v int64) *HlsWebdavSettings {
return s
}
-// Settings to configure an action so that it occurs immediately. This is only
-// supported for input switch actions currently.
+// Settings to configure an action so that it occurs as soon as possible.
type ImmediateModeScheduleActionStartSettings struct {
_ struct{} `type:"structure"`
}
@@ -13298,6 +13531,10 @@ func (s *Input) SetType(v string) *Input {
type InputAttachment struct {
_ struct{} `type:"structure"`
+ // User-specified settings for defining what the conditions are for declaring
+ // the input unhealthy and failing over to a different input.
+ AutomaticInputFailoverSettings *AutomaticInputFailoverSettings `locationName:"automaticInputFailoverSettings" type:"structure"`
+
// User-specified name for the attachment. This is required if the user wants
// to use this input in an input switch action.
InputAttachmentName *string `locationName:"inputAttachmentName" type:"string"`
@@ -13322,6 +13559,11 @@ func (s InputAttachment) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputAttachment) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputAttachment"}
+ if s.AutomaticInputFailoverSettings != nil {
+ if err := s.AutomaticInputFailoverSettings.Validate(); err != nil {
+ invalidParams.AddNested("AutomaticInputFailoverSettings", err.(request.ErrInvalidParams))
+ }
+ }
if s.InputSettings != nil {
if err := s.InputSettings.Validate(); err != nil {
invalidParams.AddNested("InputSettings", err.(request.ErrInvalidParams))
@@ -13334,6 +13576,12 @@ func (s *InputAttachment) Validate() error {
return nil
}
+// SetAutomaticInputFailoverSettings sets the AutomaticInputFailoverSettings field's value.
+func (s *InputAttachment) SetAutomaticInputFailoverSettings(v *AutomaticInputFailoverSettings) *InputAttachment {
+ s.AutomaticInputFailoverSettings = v
+ return s
+}
+
// SetInputAttachmentName sets the InputAttachmentName field's value.
func (s *InputAttachment) SetInputAttachmentName(v string) *InputAttachment {
s.InputAttachmentName = &v
@@ -14223,8 +14471,8 @@ func (s *InputWhitelistRuleCidr) SetCidr(v string) *InputWhitelistRuleCidr {
}
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14241,17 +14489,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14259,22 +14507,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Key Provider Settings
@@ -16035,7 +16283,9 @@ type MsSmoothGroupSettings struct {
SendDelayMs *int64 `locationName:"sendDelayMs" type:"integer"`
// If set to scte35, use incoming SCTE-35 messages to generate a sparse track
- // in this group of MS-Smooth outputs.
+ // in this group of MS-Smooth outputs. scte35WithoutSegmentation is the same
+ // as scte35, except EML will not start a new segment at a SCTE-35 marker. It
+ // will still encode an IDR frame at a SCTE-35 marker.
SparseTrackType *string `locationName:"sparseTrackType" type:"string" enum:"SmoothGroupSparseTrackType"`
// When set to send, send stream manifest so publishing point doesn't start
@@ -17190,8 +17440,8 @@ func (s *NielsenConfiguration) SetNielsenPcmToId3Tagging(v string) *NielsenConfi
}
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17208,17 +17458,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17226,22 +17476,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Reserved resources available for purchase
@@ -20754,6 +21004,41 @@ func (s *TeletextSourceSettings) SetPageNumber(v string) *TeletextSourceSettings
return s
}
+// Temporal Filter Settings
+type TemporalFilterSettings struct {
+ _ struct{} `type:"structure"`
+
+ // If set to "ENABLED," applies post-filter sharpening to improve visual quality.
+ // This is most beneficial when using a noisy or compressed input source and
+ // low output bitrates.
+ PostFilterSharpening *string `locationName:"postFilterSharpening" type:"string" enum:"TemporalFilterPostFilterSharpening"`
+
+ // Filter strength. A higher value produces stronger filtering.
+ Strength *string `locationName:"strength" type:"string" enum:"TemporalFilterStrength"`
+}
+
+// String returns the string representation
+func (s TemporalFilterSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TemporalFilterSettings) GoString() string {
+ return s.String()
+}
+
+// SetPostFilterSharpening sets the PostFilterSharpening field's value.
+func (s *TemporalFilterSettings) SetPostFilterSharpening(v string) *TemporalFilterSettings {
+ s.PostFilterSharpening = &v
+ return s
+}
+
+// SetStrength sets the Strength field's value.
+func (s *TemporalFilterSettings) SetStrength(v string) *TemporalFilterSettings {
+ s.Strength = &v
+ return s
+}
+
// Timecode Config
type TimecodeConfig struct {
_ struct{} `type:"structure"`
@@ -20814,8 +21099,8 @@ func (s *TimecodeConfig) SetSyncThreshold(v int64) *TimecodeConfig {
}
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -20832,17 +21117,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20850,22 +21135,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Ttml Destination Settings
@@ -21067,8 +21352,8 @@ func (s *UdpOutputSettings) SetFecOutputSettings(v *FecOutputSettings) *UdpOutpu
}
type UnprocessableEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -21087,17 +21372,17 @@ func (s UnprocessableEntityException) GoString() string {
func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error {
return &UnprocessableEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnprocessableEntityException) Code() string {
+func (s *UnprocessableEntityException) Code() string {
return "UnprocessableEntityException"
}
// Message returns the exception's message.
-func (s UnprocessableEntityException) Message() string {
+func (s *UnprocessableEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -21105,22 +21390,22 @@ func (s UnprocessableEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnprocessableEntityException) OrigErr() error {
+func (s *UnprocessableEntityException) OrigErr() error {
return nil
}
-func (s UnprocessableEntityException) Error() string {
+func (s *UnprocessableEntityException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnprocessableEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnprocessableEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnprocessableEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnprocessableEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateChannelClassInput struct {
@@ -22907,6 +23192,24 @@ const (
FixedAfdAfd1111 = "AFD_1111"
)
+// Fmp4 Nielsen Id3 Behavior
+const (
+ // Fmp4NielsenId3BehaviorNoPassthrough is a Fmp4NielsenId3Behavior enum value
+ Fmp4NielsenId3BehaviorNoPassthrough = "NO_PASSTHROUGH"
+
+ // Fmp4NielsenId3BehaviorPassthrough is a Fmp4NielsenId3Behavior enum value
+ Fmp4NielsenId3BehaviorPassthrough = "PASSTHROUGH"
+)
+
+// Fmp4 Timed Metadata Behavior
+const (
+ // Fmp4TimedMetadataBehaviorNoPassthrough is a Fmp4TimedMetadataBehavior enum value
+ Fmp4TimedMetadataBehaviorNoPassthrough = "NO_PASSTHROUGH"
+
+ // Fmp4TimedMetadataBehaviorPassthrough is a Fmp4TimedMetadataBehavior enum value
+ Fmp4TimedMetadataBehaviorPassthrough = "PASSTHROUGH"
+)
+
// Follow reference point.
const (
// FollowPointEnd is a FollowPoint enum value
@@ -23009,6 +23312,15 @@ const (
H264FlickerAqEnabled = "ENABLED"
)
+// H264 Force Field Pictures
+const (
+ // H264ForceFieldPicturesDisabled is a H264ForceFieldPictures enum value
+ H264ForceFieldPicturesDisabled = "DISABLED"
+
+ // H264ForceFieldPicturesEnabled is a H264ForceFieldPictures enum value
+ H264ForceFieldPicturesEnabled = "ENABLED"
+)
+
// H264 Framerate Control
const (
// H264FramerateControlInitializeFromSource is a H264FramerateControl enum value
@@ -23132,6 +23444,15 @@ const (
H264ProfileMain = "MAIN"
)
+// H264 Quality Level
+const (
+ // H264QualityLevelEnhancedQuality is a H264QualityLevel enum value
+ H264QualityLevelEnhancedQuality = "ENHANCED_QUALITY"
+
+ // H264QualityLevelStandardQuality is a H264QualityLevel enum value
+ H264QualityLevelStandardQuality = "STANDARD_QUALITY"
+)
+
// H264 Rate Control Mode
const (
// H264RateControlModeCbr is a H264RateControlMode enum value
@@ -23714,6 +24035,18 @@ const (
InputMaximumBitrateMax50Mbps = "MAX_50_MBPS"
)
+// Input preference when deciding which input to make active when a previously
+// failed input has recovered.If \"EQUAL_INPUT_PREFERENCE\", then the active
+// input will stay active as long as it is healthy.If \"PRIMARY_INPUT_PREFERRED\",
+// then always switch back to the primary input when it is healthy.
+const (
+ // InputPreferenceEqualInputPreference is a InputPreference enum value
+ InputPreferenceEqualInputPreference = "EQUAL_INPUT_PREFERENCE"
+
+ // InputPreferencePrimaryInputPreferred is a InputPreference enum value
+ InputPreferencePrimaryInputPreferred = "PRIMARY_INPUT_PREFERRED"
+)
+
// Input resolution based on lines of vertical resolution in the input; SD is
// less than 720 lines, HD is 720 to 1080 lines, UHD is greater than 1080 lines
const (
@@ -24465,6 +24798,9 @@ const (
// SmoothGroupSparseTrackTypeScte35 is a SmoothGroupSparseTrackType enum value
SmoothGroupSparseTrackTypeScte35 = "SCTE_35"
+
+ // SmoothGroupSparseTrackTypeScte35WithoutSegmentation is a SmoothGroupSparseTrackType enum value
+ SmoothGroupSparseTrackTypeScte35WithoutSegmentation = "SCTE_35_WITHOUT_SEGMENTATION"
)
// Smooth Group Stream Manifest Behavior
@@ -24485,6 +24821,72 @@ const (
SmoothGroupTimestampOffsetModeUseEventStartDate = "USE_EVENT_START_DATE"
)
+// Temporal Filter Post Filter Sharpening
+const (
+ // TemporalFilterPostFilterSharpeningAuto is a TemporalFilterPostFilterSharpening enum value
+ TemporalFilterPostFilterSharpeningAuto = "AUTO"
+
+ // TemporalFilterPostFilterSharpeningDisabled is a TemporalFilterPostFilterSharpening enum value
+ TemporalFilterPostFilterSharpeningDisabled = "DISABLED"
+
+ // TemporalFilterPostFilterSharpeningEnabled is a TemporalFilterPostFilterSharpening enum value
+ TemporalFilterPostFilterSharpeningEnabled = "ENABLED"
+)
+
+// Temporal Filter Strength
+const (
+ // TemporalFilterStrengthAuto is a TemporalFilterStrength enum value
+ TemporalFilterStrengthAuto = "AUTO"
+
+ // TemporalFilterStrengthStrength1 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength1 = "STRENGTH_1"
+
+ // TemporalFilterStrengthStrength10 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength10 = "STRENGTH_10"
+
+ // TemporalFilterStrengthStrength11 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength11 = "STRENGTH_11"
+
+ // TemporalFilterStrengthStrength12 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength12 = "STRENGTH_12"
+
+ // TemporalFilterStrengthStrength13 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength13 = "STRENGTH_13"
+
+ // TemporalFilterStrengthStrength14 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength14 = "STRENGTH_14"
+
+ // TemporalFilterStrengthStrength15 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength15 = "STRENGTH_15"
+
+ // TemporalFilterStrengthStrength16 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength16 = "STRENGTH_16"
+
+ // TemporalFilterStrengthStrength2 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength2 = "STRENGTH_2"
+
+ // TemporalFilterStrengthStrength3 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength3 = "STRENGTH_3"
+
+ // TemporalFilterStrengthStrength4 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength4 = "STRENGTH_4"
+
+ // TemporalFilterStrengthStrength5 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength5 = "STRENGTH_5"
+
+ // TemporalFilterStrengthStrength6 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength6 = "STRENGTH_6"
+
+ // TemporalFilterStrengthStrength7 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength7 = "STRENGTH_7"
+
+ // TemporalFilterStrengthStrength8 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength8 = "STRENGTH_8"
+
+ // TemporalFilterStrengthStrength9 is a TemporalFilterStrength enum value
+ TemporalFilterStrengthStrength9 = "STRENGTH_9"
+)
+
// Timecode Config Source
const (
// TimecodeConfigSourceEmbedded is a TimecodeConfigSource enum value
diff --git a/vendor/github.com/aws/aws-sdk-go/service/medialive/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/medialive/waiters.go
index 36fb19d08c9..0ad1f21b249 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/medialive/waiters.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/medialive/waiters.go
@@ -89,7 +89,7 @@ func (c *MediaLive) WaitUntilChannelDeleted(input *DescribeChannelInput) error {
func (c *MediaLive) WaitUntilChannelDeletedWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilChannelDeleted",
- MaxAttempts: 20,
+ MaxAttempts: 84,
Delay: request.ConstantWaiterDelay(5 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
@@ -201,7 +201,7 @@ func (c *MediaLive) WaitUntilChannelStopped(input *DescribeChannelInput) error {
func (c *MediaLive) WaitUntilChannelStoppedWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilChannelStopped",
- MaxAttempts: 28,
+ MaxAttempts: 60,
Delay: request.ConstantWaiterDelay(5 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go
index 2f468581307..23f6d0237c8 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go
@@ -3412,8 +3412,8 @@ func (s *DescribeOriginEndpointOutput) SetWhitelist(v []*string) *DescribeOrigin
}
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3430,17 +3430,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3448,22 +3448,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A HarvestJob resource configuration
@@ -4120,8 +4120,8 @@ func (s *IngestEndpoint) SetUsername(v string) *IngestEndpoint {
}
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4138,17 +4138,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4156,22 +4156,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListChannelsInput struct {
@@ -4590,8 +4590,8 @@ func (s *MssPackage) SetStreamSelection(v *StreamSelection) *MssPackage {
}
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4608,17 +4608,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4626,22 +4626,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An OriginEndpoint resource configuration.
@@ -5086,8 +5086,8 @@ func (s *S3Destination) SetRoleArn(v string) *S3Destination {
}
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5104,17 +5104,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5122,22 +5122,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A configuration for accessing an external Secure Packager and Encoder Key
@@ -5342,8 +5342,8 @@ func (s TagResourceOutput) GoString() string {
}
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5360,17 +5360,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5378,27 +5378,27 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UnprocessableEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5415,17 +5415,17 @@ func (s UnprocessableEntityException) GoString() string {
func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error {
return &UnprocessableEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnprocessableEntityException) Code() string {
+func (s *UnprocessableEntityException) Code() string {
return "UnprocessableEntityException"
}
// Message returns the exception's message.
-func (s UnprocessableEntityException) Message() string {
+func (s *UnprocessableEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5433,22 +5433,22 @@ func (s UnprocessableEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnprocessableEntityException) OrigErr() error {
+func (s *UnprocessableEntityException) OrigErr() error {
return nil
}
-func (s UnprocessableEntityException) Error() string {
+func (s *UnprocessableEntityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnprocessableEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnprocessableEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnprocessableEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnprocessableEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go
index daa0851e7dc..1eac3f1834d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go
@@ -465,6 +465,98 @@ func (c *MediaStore) DeleteLifecyclePolicyWithContext(ctx aws.Context, input *De
return out, req.Send()
}
+const opDeleteMetricPolicy = "DeleteMetricPolicy"
+
+// DeleteMetricPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteMetricPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteMetricPolicy for more information on using the DeleteMetricPolicy
+// 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 DeleteMetricPolicyRequest method.
+// req, resp := client.DeleteMetricPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicy
+func (c *MediaStore) DeleteMetricPolicyRequest(input *DeleteMetricPolicyInput) (req *request.Request, output *DeleteMetricPolicyOutput) {
+ op := &request.Operation{
+ Name: opDeleteMetricPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteMetricPolicyInput{}
+ }
+
+ output = &DeleteMetricPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteMetricPolicy API operation for AWS Elemental MediaStore.
+//
+// Deletes the metric policy that is associated with the specified container.
+// If there is no metric policy associated with the container, MediaStore doesn't
+// send metrics to CloudWatch.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Elemental MediaStore's
+// API operation DeleteMetricPolicy for usage and error information.
+//
+// Returned Error Types:
+// * ContainerInUseException
+// The container that you specified in the request already exists or is being
+// updated.
+//
+// * ContainerNotFoundException
+// The container that you specified in the request does not exist.
+//
+// * PolicyNotFoundException
+// The policy that you specified in the request does not exist.
+//
+// * InternalServerError
+// The service is temporarily unavailable.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicy
+func (c *MediaStore) DeleteMetricPolicy(input *DeleteMetricPolicyInput) (*DeleteMetricPolicyOutput, error) {
+ req, out := c.DeleteMetricPolicyRequest(input)
+ return out, req.Send()
+}
+
+// DeleteMetricPolicyWithContext is the same as DeleteMetricPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteMetricPolicy 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 *MediaStore) DeleteMetricPolicyWithContext(ctx aws.Context, input *DeleteMetricPolicyInput, opts ...request.Option) (*DeleteMetricPolicyOutput, error) {
+ req, out := c.DeleteMetricPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeContainer = "DescribeContainer"
// DescribeContainerRequest generates a "aws/request.Request" representing the
@@ -826,6 +918,95 @@ func (c *MediaStore) GetLifecyclePolicyWithContext(ctx aws.Context, input *GetLi
return out, req.Send()
}
+const opGetMetricPolicy = "GetMetricPolicy"
+
+// GetMetricPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetMetricPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetMetricPolicy for more information on using the GetMetricPolicy
+// 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 GetMetricPolicyRequest method.
+// req, resp := client.GetMetricPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicy
+func (c *MediaStore) GetMetricPolicyRequest(input *GetMetricPolicyInput) (req *request.Request, output *GetMetricPolicyOutput) {
+ op := &request.Operation{
+ Name: opGetMetricPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetMetricPolicyInput{}
+ }
+
+ output = &GetMetricPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetMetricPolicy API operation for AWS Elemental MediaStore.
+//
+// Returns the metric policy for the specified container.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Elemental MediaStore's
+// API operation GetMetricPolicy for usage and error information.
+//
+// Returned Error Types:
+// * ContainerNotFoundException
+// The container that you specified in the request does not exist.
+//
+// * PolicyNotFoundException
+// The policy that you specified in the request does not exist.
+//
+// * ContainerInUseException
+// The container that you specified in the request already exists or is being
+// updated.
+//
+// * InternalServerError
+// The service is temporarily unavailable.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicy
+func (c *MediaStore) GetMetricPolicy(input *GetMetricPolicyInput) (*GetMetricPolicyOutput, error) {
+ req, out := c.GetMetricPolicyRequest(input)
+ return out, req.Send()
+}
+
+// GetMetricPolicyWithContext is the same as GetMetricPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetMetricPolicy 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 *MediaStore) GetMetricPolicyWithContext(ctx aws.Context, input *GetMetricPolicyInput, opts ...request.Option) (*GetMetricPolicyOutput, error) {
+ req, out := c.GetMetricPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListContainers = "ListContainers"
// ListContainersRequest generates a "aws/request.Request" representing the
@@ -1344,6 +1525,95 @@ func (c *MediaStore) PutLifecyclePolicyWithContext(ctx aws.Context, input *PutLi
return out, req.Send()
}
+const opPutMetricPolicy = "PutMetricPolicy"
+
+// PutMetricPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutMetricPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutMetricPolicy for more information on using the PutMetricPolicy
+// 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 PutMetricPolicyRequest method.
+// req, resp := client.PutMetricPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicy
+func (c *MediaStore) PutMetricPolicyRequest(input *PutMetricPolicyInput) (req *request.Request, output *PutMetricPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutMetricPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutMetricPolicyInput{}
+ }
+
+ output = &PutMetricPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutMetricPolicy API operation for AWS Elemental MediaStore.
+//
+// The metric policy that you want to add to the container. A metric policy
+// allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It
+// takes up to 20 minutes for the new policy to take effect.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Elemental MediaStore's
+// API operation PutMetricPolicy for usage and error information.
+//
+// Returned Error Types:
+// * ContainerInUseException
+// The container that you specified in the request already exists or is being
+// updated.
+//
+// * ContainerNotFoundException
+// The container that you specified in the request does not exist.
+//
+// * InternalServerError
+// The service is temporarily unavailable.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicy
+func (c *MediaStore) PutMetricPolicy(input *PutMetricPolicyInput) (*PutMetricPolicyOutput, error) {
+ req, out := c.PutMetricPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutMetricPolicyWithContext is the same as PutMetricPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutMetricPolicy 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 *MediaStore) PutMetricPolicyWithContext(ctx aws.Context, input *PutMetricPolicyInput, opts ...request.Option) (*PutMetricPolicyOutput, error) {
+ req, out := c.PutMetricPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opStartAccessLogging = "StartAccessLogging"
// StartAccessLoggingRequest generates a "aws/request.Request" representing the
@@ -1790,8 +2060,8 @@ func (s *Container) SetStatus(v string) *Container {
// The container that you specified in the request already exists or is being
// updated.
type ContainerInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1808,17 +2078,17 @@ func (s ContainerInUseException) GoString() string {
func newErrorContainerInUseException(v protocol.ResponseMetadata) error {
return &ContainerInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ContainerInUseException) Code() string {
+func (s *ContainerInUseException) Code() string {
return "ContainerInUseException"
}
// Message returns the exception's message.
-func (s ContainerInUseException) Message() string {
+func (s *ContainerInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1826,28 +2096,28 @@ func (s ContainerInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ContainerInUseException) OrigErr() error {
+func (s *ContainerInUseException) OrigErr() error {
return nil
}
-func (s ContainerInUseException) Error() string {
+func (s *ContainerInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ContainerInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ContainerInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ContainerInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ContainerInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The container that you specified in the request does not exist.
type ContainerNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1864,17 +2134,17 @@ func (s ContainerNotFoundException) GoString() string {
func newErrorContainerNotFoundException(v protocol.ResponseMetadata) error {
return &ContainerNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ContainerNotFoundException) Code() string {
+func (s *ContainerNotFoundException) Code() string {
return "ContainerNotFoundException"
}
// Message returns the exception's message.
-func (s ContainerNotFoundException) Message() string {
+func (s *ContainerNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1882,28 +2152,28 @@ func (s ContainerNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ContainerNotFoundException) OrigErr() error {
+func (s *ContainerNotFoundException) OrigErr() error {
return nil
}
-func (s ContainerNotFoundException) Error() string {
+func (s *ContainerNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ContainerNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ContainerNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ContainerNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ContainerNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The CORS policy that you specified in the request does not exist.
type CorsPolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1920,17 +2190,17 @@ func (s CorsPolicyNotFoundException) GoString() string {
func newErrorCorsPolicyNotFoundException(v protocol.ResponseMetadata) error {
return &CorsPolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CorsPolicyNotFoundException) Code() string {
+func (s *CorsPolicyNotFoundException) Code() string {
return "CorsPolicyNotFoundException"
}
// Message returns the exception's message.
-func (s CorsPolicyNotFoundException) Message() string {
+func (s *CorsPolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1938,22 +2208,22 @@ func (s CorsPolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CorsPolicyNotFoundException) OrigErr() error {
+func (s *CorsPolicyNotFoundException) OrigErr() error {
return nil
}
-func (s CorsPolicyNotFoundException) Error() string {
+func (s *CorsPolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CorsPolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CorsPolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CorsPolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CorsPolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If
@@ -2081,7 +2351,7 @@ type CreateContainerInput struct {
// as "test," "development," or "production"). You can add up to 50 tags to
// each container. For more information about tagging, including naming and
// usage conventions, see Tagging Resources in MediaStore (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).
- Tags []*Tag `type:"list"`
+ Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
@@ -2103,6 +2373,9 @@ func (s *CreateContainerInput) Validate() error {
if s.ContainerName != nil && len(*s.ContainerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ContainerName", 1))
}
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
@@ -2391,6 +2664,62 @@ func (s DeleteLifecyclePolicyOutput) GoString() string {
return s.String()
}
+type DeleteMetricPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the container that is associated with the metric policy that
+ // you want to delete.
+ //
+ // ContainerName is a required field
+ ContainerName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteMetricPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteMetricPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteMetricPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteMetricPolicyInput"}
+ if s.ContainerName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContainerName"))
+ }
+ if s.ContainerName != nil && len(*s.ContainerName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContainerName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetContainerName sets the ContainerName field's value.
+func (s *DeleteMetricPolicyInput) SetContainerName(v string) *DeleteMetricPolicyInput {
+ s.ContainerName = &v
+ return s
+}
+
+type DeleteMetricPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteMetricPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteMetricPolicyOutput) GoString() string {
+ return s.String()
+}
+
type DescribeContainerInput struct {
_ struct{} `type:"structure"`
@@ -2648,10 +2977,76 @@ func (s *GetLifecyclePolicyOutput) SetLifecyclePolicy(v string) *GetLifecyclePol
return s
}
+type GetMetricPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the container that is associated with the metric policy.
+ //
+ // ContainerName is a required field
+ ContainerName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetMetricPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetMetricPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetMetricPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetMetricPolicyInput"}
+ if s.ContainerName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContainerName"))
+ }
+ if s.ContainerName != nil && len(*s.ContainerName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContainerName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetContainerName sets the ContainerName field's value.
+func (s *GetMetricPolicyInput) SetContainerName(v string) *GetMetricPolicyInput {
+ s.ContainerName = &v
+ return s
+}
+
+type GetMetricPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The metric policy that is associated with the specific container.
+ //
+ // MetricPolicy is a required field
+ MetricPolicy *MetricPolicy `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s GetMetricPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetMetricPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetMetricPolicy sets the MetricPolicy field's value.
+func (s *GetMetricPolicyOutput) SetMetricPolicy(v *MetricPolicy) *GetMetricPolicyOutput {
+ s.MetricPolicy = v
+ return s
+}
+
// The service is temporarily unavailable.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2668,17 +3063,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2686,28 +3081,28 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A service limit has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2724,17 +3119,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2742,22 +3137,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListContainersInput struct {
@@ -2893,7 +3288,7 @@ type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// An array of key:value pairs that are assigned to the container.
- Tags []*Tag `type:"list"`
+ Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
@@ -2912,10 +3307,146 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
return s
}
+// The metric policy that is associated with the container. A metric policy
+// allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In
+// the policy, you must indicate whether you want MediaStore to send container-level
+// metrics. You can also include rules to define groups of objects that you
+// want MediaStore to send object-level metrics for.
+//
+// To view examples of how to construct a metric policy for your use case, see
+// Example Metric Policies (https://docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html).
+type MetricPolicy struct {
+ _ struct{} `type:"structure"`
+
+ // A setting to enable or disable metrics at the container level.
+ //
+ // ContainerLevelMetrics is a required field
+ ContainerLevelMetrics *string `type:"string" required:"true" enum:"ContainerLevelMetrics"`
+
+ // A parameter that holds an array of rules that enable metrics at the object
+ // level. This parameter is optional, but if you choose to include it, you must
+ // also include at least one rule. By default, you can include up to five rules.
+ // You can also request a quota increase (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas)
+ // to allow up to 300 rules per policy.
+ MetricPolicyRules []*MetricPolicyRule `min:"1" type:"list"`
+}
+
+// String returns the string representation
+func (s MetricPolicy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricPolicy) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricPolicy) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricPolicy"}
+ if s.ContainerLevelMetrics == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContainerLevelMetrics"))
+ }
+ if s.MetricPolicyRules != nil && len(s.MetricPolicyRules) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricPolicyRules", 1))
+ }
+ if s.MetricPolicyRules != nil {
+ for i, v := range s.MetricPolicyRules {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricPolicyRules", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetContainerLevelMetrics sets the ContainerLevelMetrics field's value.
+func (s *MetricPolicy) SetContainerLevelMetrics(v string) *MetricPolicy {
+ s.ContainerLevelMetrics = &v
+ return s
+}
+
+// SetMetricPolicyRules sets the MetricPolicyRules field's value.
+func (s *MetricPolicy) SetMetricPolicyRules(v []*MetricPolicyRule) *MetricPolicy {
+ s.MetricPolicyRules = v
+ return s
+}
+
+// A setting that enables metrics at the object level. Each rule contains an
+// object group and an object group name. If the policy includes the MetricPolicyRules
+// parameter, you must include at least one rule. Each metric policy can include
+// up to five rules by default. You can also request a quota increase (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas)
+// to allow up to 300 rules per policy.
+type MetricPolicyRule struct {
+ _ struct{} `type:"structure"`
+
+ // A path or file name that defines which objects to include in the group. Wildcards
+ // (*) are acceptable.
+ //
+ // ObjectGroup is a required field
+ ObjectGroup *string `min:"1" type:"string" required:"true"`
+
+ // A name that allows you to refer to the object group.
+ //
+ // ObjectGroupName is a required field
+ ObjectGroupName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s MetricPolicyRule) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricPolicyRule) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricPolicyRule) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricPolicyRule"}
+ if s.ObjectGroup == nil {
+ invalidParams.Add(request.NewErrParamRequired("ObjectGroup"))
+ }
+ if s.ObjectGroup != nil && len(*s.ObjectGroup) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ObjectGroup", 1))
+ }
+ if s.ObjectGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ObjectGroupName"))
+ }
+ if s.ObjectGroupName != nil && len(*s.ObjectGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ObjectGroupName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetObjectGroup sets the ObjectGroup field's value.
+func (s *MetricPolicyRule) SetObjectGroup(v string) *MetricPolicyRule {
+ s.ObjectGroup = &v
+ return s
+}
+
+// SetObjectGroupName sets the ObjectGroupName field's value.
+func (s *MetricPolicyRule) SetObjectGroupName(v string) *MetricPolicyRule {
+ s.ObjectGroupName = &v
+ return s
+}
+
// The policy that you specified in the request does not exist.
type PolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2932,17 +3463,17 @@ func (s PolicyNotFoundException) GoString() string {
func newErrorPolicyNotFoundException(v protocol.ResponseMetadata) error {
return &PolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyNotFoundException) Code() string {
+func (s *PolicyNotFoundException) Code() string {
return "PolicyNotFoundException"
}
// Message returns the exception's message.
-func (s PolicyNotFoundException) Message() string {
+func (s *PolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2950,22 +3481,22 @@ func (s PolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyNotFoundException) OrigErr() error {
+func (s *PolicyNotFoundException) OrigErr() error {
return nil
}
-func (s PolicyNotFoundException) Error() string {
+func (s *PolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutContainerPolicyInput struct {
@@ -3196,6 +3727,94 @@ func (s PutLifecyclePolicyOutput) GoString() string {
return s.String()
}
+type PutMetricPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the container that you want to add the metric policy to.
+ //
+ // ContainerName is a required field
+ ContainerName *string `min:"1" type:"string" required:"true"`
+
+ // The metric policy that you want to associate with the container. In the policy,
+ // you must indicate whether you want MediaStore to send container-level metrics.
+ // You can also include up to five rules to define groups of objects that you
+ // want MediaStore to send object-level metrics for. If you include rules in
+ // the policy, construct each rule with both of the following:
+ //
+ // * An object group that defines which objects to include in the group.
+ // The definition can be a path or a file name, but it can't have more than
+ // 900 characters. Valid characters are: a-z, A-Z, 0-9, _ (underscore), =
+ // (equal), : (colon), . (period), - (hyphen), ~ (tilde), / (forward slash),
+ // and * (asterisk). Wildcards (*) are acceptable.
+ //
+ // * An object group name that allows you to refer to the object group. The
+ // name can't have more than 30 characters. Valid characters are: a-z, A-Z,
+ // 0-9, and _ (underscore).
+ //
+ // MetricPolicy is a required field
+ MetricPolicy *MetricPolicy `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s PutMetricPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutMetricPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutMetricPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutMetricPolicyInput"}
+ if s.ContainerName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContainerName"))
+ }
+ if s.ContainerName != nil && len(*s.ContainerName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContainerName", 1))
+ }
+ if s.MetricPolicy == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricPolicy"))
+ }
+ if s.MetricPolicy != nil {
+ if err := s.MetricPolicy.Validate(); err != nil {
+ invalidParams.AddNested("MetricPolicy", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetContainerName sets the ContainerName field's value.
+func (s *PutMetricPolicyInput) SetContainerName(v string) *PutMetricPolicyInput {
+ s.ContainerName = &v
+ return s
+}
+
+// SetMetricPolicy sets the MetricPolicy field's value.
+func (s *PutMetricPolicyInput) SetMetricPolicy(v *MetricPolicy) *PutMetricPolicyInput {
+ s.MetricPolicy = v
+ return s
+}
+
+type PutMetricPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s PutMetricPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutMetricPolicyOutput) GoString() string {
+ return s.String()
+}
+
type StartAccessLoggingInput struct {
_ struct{} `type:"structure"`
@@ -3383,7 +4002,7 @@ type TagResourceInput struct {
// and type:Contract.
//
// Tags is a required field
- Tags []*Tag `type:"list" required:"true"`
+ Tags []*Tag `min:"1" type:"list" required:"true"`
}
// String returns the string representation
@@ -3408,6 +4027,9 @@ func (s *TagResourceInput) Validate() error {
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
@@ -3523,6 +4145,14 @@ func (s UntagResourceOutput) GoString() string {
return s.String()
}
+const (
+ // ContainerLevelMetricsEnabled is a ContainerLevelMetrics enum value
+ ContainerLevelMetricsEnabled = "ENABLED"
+
+ // ContainerLevelMetricsDisabled is a ContainerLevelMetrics enum value
+ ContainerLevelMetricsDisabled = "DISABLED"
+)
+
const (
// ContainerStatusActive is a ContainerStatus enum value
ContainerStatusActive = "ACTIVE"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go
index 6fd56c6dc09..6c8cc748d64 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go
@@ -505,8 +505,8 @@ func (c *MediaStoreData) PutObjectWithContext(ctx aws.Context, input *PutObjectI
// The specified container was not found for the specified account.
type ContainerNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -523,17 +523,17 @@ func (s ContainerNotFoundException) GoString() string {
func newErrorContainerNotFoundException(v protocol.ResponseMetadata) error {
return &ContainerNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ContainerNotFoundException) Code() string {
+func (s *ContainerNotFoundException) Code() string {
return "ContainerNotFoundException"
}
// Message returns the exception's message.
-func (s ContainerNotFoundException) Message() string {
+func (s *ContainerNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -541,22 +541,22 @@ func (s ContainerNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ContainerNotFoundException) OrigErr() error {
+func (s *ContainerNotFoundException) OrigErr() error {
return nil
}
-func (s ContainerNotFoundException) Error() string {
+func (s *ContainerNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ContainerNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ContainerNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ContainerNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ContainerNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteObjectInput struct {
@@ -892,8 +892,8 @@ func (s *GetObjectOutput) SetStatusCode(v int64) *GetObjectOutput {
// The service is temporarily unavailable.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -910,17 +910,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -928,22 +928,22 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A metadata entry for a folder or object.
@@ -1122,8 +1122,8 @@ func (s *ListItemsOutput) SetNextToken(v string) *ListItemsOutput {
// Could not perform an operation on an object that does not exist.
type ObjectNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1140,17 +1140,17 @@ func (s ObjectNotFoundException) GoString() string {
func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error {
return &ObjectNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ObjectNotFoundException) Code() string {
+func (s *ObjectNotFoundException) Code() string {
return "ObjectNotFoundException"
}
// Message returns the exception's message.
-func (s ObjectNotFoundException) Message() string {
+func (s *ObjectNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1158,22 +1158,22 @@ func (s ObjectNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ObjectNotFoundException) OrigErr() error {
+func (s *ObjectNotFoundException) OrigErr() error {
return nil
}
-func (s ObjectNotFoundException) Error() string {
+func (s *ObjectNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ObjectNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ObjectNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ObjectNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ObjectNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutObjectInput struct {
@@ -1356,8 +1356,8 @@ func (s *PutObjectOutput) SetStorageClass(v string) *PutObjectOutput {
// The requested content range is not valid.
type RequestedRangeNotSatisfiableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1374,17 +1374,17 @@ func (s RequestedRangeNotSatisfiableException) GoString() string {
func newErrorRequestedRangeNotSatisfiableException(v protocol.ResponseMetadata) error {
return &RequestedRangeNotSatisfiableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RequestedRangeNotSatisfiableException) Code() string {
+func (s *RequestedRangeNotSatisfiableException) Code() string {
return "RequestedRangeNotSatisfiableException"
}
// Message returns the exception's message.
-func (s RequestedRangeNotSatisfiableException) Message() string {
+func (s *RequestedRangeNotSatisfiableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1392,22 +1392,22 @@ func (s RequestedRangeNotSatisfiableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RequestedRangeNotSatisfiableException) OrigErr() error {
+func (s *RequestedRangeNotSatisfiableException) OrigErr() error {
return nil
}
-func (s RequestedRangeNotSatisfiableException) Error() string {
+func (s *RequestedRangeNotSatisfiableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RequestedRangeNotSatisfiableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RequestedRangeNotSatisfiableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RequestedRangeNotSatisfiableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RequestedRangeNotSatisfiableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go
index 9aabceea076..21df17b378d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go
@@ -1985,8 +1985,8 @@ func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
// Returns information about an error.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -2005,17 +2005,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2023,22 +2023,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Types of broker engines.
@@ -2485,8 +2485,8 @@ func (s *Configurations) SetPending(v *ConfigurationId) *Configurations {
// Returns information about an error.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -2505,17 +2505,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2523,22 +2523,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateBrokerRequest struct {
@@ -4055,8 +4055,8 @@ func (s *EngineVersion) SetName(v string) *EngineVersion {
// Returns information about an error.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -4075,17 +4075,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4093,28 +4093,28 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returns information about an error.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -4133,17 +4133,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4151,22 +4151,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListBrokersInput struct {
@@ -4691,8 +4691,8 @@ func (s *LogsSummary) SetPending(v *PendingLogs) *LogsSummary {
// Returns information about an error.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -4711,17 +4711,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4729,22 +4729,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The list of information about logs to be enabled for the specified broker.
@@ -4879,8 +4879,8 @@ func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning {
// Returns information about an error.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
@@ -4899,17 +4899,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4917,22 +4917,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateBrokerRequest struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go
index 0acf64add1d..27ef9e81218 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go
@@ -14324,8 +14324,8 @@ func (s *ReportedOs) SetVersion(v string) *ReportedOs {
// Indicates that a resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -14343,17 +14343,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14361,22 +14361,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a user's SSH information.
@@ -17172,8 +17172,8 @@ func (s *UserProfile) SetSshUsername(v string) *UserProfile {
// Indicates that a request was not valid.
type ValidationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception message.
Message_ *string `locationName:"message" type:"string"`
@@ -17191,17 +17191,17 @@ func (s ValidationException) GoString() string {
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ValidationException) Code() string {
+func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
-func (s ValidationException) Message() string {
+func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17209,22 +17209,22 @@ func (s ValidationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ValidationException) OrigErr() error {
+func (s *ValidationException) OrigErr() error {
return nil
}
-func (s ValidationException) Error() string {
+func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ValidationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ValidationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an instance's Amazon EBS volume.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
index 9c061bfea10..627e054c1f2 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
@@ -169,8 +169,6 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -309,15 +307,34 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// AttachPolicy API operation for AWS Organizations.
//
// Attaches a policy to a root, an organizational unit (OU), or an individual
-// account.
-//
-// How the policy affects accounts depends on the type of policy:
-//
-// * For more information about attaching SCPs, see How SCPs Work (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html)
-// in the AWS Organizations User Guide.
-//
-// * For information about attaching tag policies, see How Policy Inheritance
-// Works (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies-inheritance.html)
+// account. How the policy affects accounts depends on the type of policy:
+//
+// * Service control policy (SCP) - An SCP specifies what permissions can
+// be delegated to users in affected member accounts. The scope of influence
+// for a policy depends on what you attach the policy to: If you attach an
+// SCP to a root, it affects all accounts in the organization. If you attach
+// an SCP to an OU, it affects all accounts in that OU and in any child OUs.
+// If you attach the policy directly to an account, it affects only that
+// account. SCPs are JSON policies that specify the maximum permissions for
+// an organization or organizational unit (OU). You can attach one SCP to
+// a higher level root or OU, and a different SCP to a child OU or to an
+// account. The child policy can further restrict only the permissions that
+// pass through the parent filter and are available to the child. An SCP
+// that is attached to a child can't grant a permission that the parent hasn't
+// already granted. For example, imagine that the parent SCP allows permissions
+// A, B, C, D, and E. The child SCP allows C, D, E, F, and G. The result
+// is that the accounts affected by the child SCP are allowed to use only
+// C, D, and E. They can't use A or B because the child OU filtered them
+// out. They also can't use F and G because the parent OU filtered them out.
+// They can't be granted back by the child SCP; child SCPs can only filter
+// the permissions they receive from the parent SCP. AWS Organizations attaches
+// a default SCP named "FullAWSAccess to every root, OU, and account. This
+// default SCP allows all services and actions, enabling any new child OU
+// or account to inherit the permissions of the parent root or OU. If you
+// detach the default policy, you must replace it with a policy that specifies
+// the permissions that you want to allow in that OU or account. For more
+// information about how AWS Organizations policies permissions work, see
+// Using Service Control Policies (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
// in the AWS Organizations User Guide.
//
// This operation can be called only from the organization's master account.
@@ -346,11 +363,12 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -384,6 +402,15 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -410,6 +437,10 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -425,8 +456,8 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -439,14 +470,9 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * DuplicatePolicyAttachmentException
// The selected policy is already attached to the specified target.
//
@@ -465,8 +491,6 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -670,8 +694,6 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -834,13 +856,13 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// in Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html)
// in the AWS Organizations User Guide.
//
-// * When you create an account in an organization, the information required
-// for the account to operate as a standalone account is not automatically
-// collected. For example, information about the payment method and signing
-// the end user license agreement (EULA) is not collected. If you must remove
-// an account from your organization later, you can do so only after you
-// provide the missing information. Follow the steps at To leave an organization
-// as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// * When you create an account in an organization using the AWS Organizations
+// console, API, or CLI commands, the information required for the account
+// to operate as a standalone account, such as a payment method and signing
+// the end user license agreement (EULA) is not automatically collected.
+// If you must remove an account from your organization later, you can do
+// so only after you provide the missing information. Follow the steps at
+// To leave an organization as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
// * If you get an exception that indicates that you exceeded your account
@@ -888,11 +910,12 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -926,6 +949,15 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -952,6 +984,10 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -967,8 +1003,8 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -981,14 +1017,9 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -1004,8 +1035,6 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -1202,8 +1231,8 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// the master account in the organization in the commercial Region to assume
// it. An AWS GovCloud (US) account is then created and associated with the
// commercial account that you just created. A role is created in the new AWS
-// GovCloud (US) account. This role can be assumed by the AWS GovCloud (US)
-// account that is associated with the master account of the commercial organization.
+// GovCloud (US) account that can be assumed by the AWS GovCloud (US) account
+// that is associated with the master account of the commercial organization.
// For more information and to view a diagram that explains how account access
// works, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
// in the AWS GovCloud User Guide.
@@ -1212,12 +1241,13 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// in Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html)
// in the AWS Organizations User Guide.
//
-// * You can create an account in an organization using the AWS Organizations
-// console, API, or CLI commands. When you do, the information required for
-// the account to operate as a standalone account, such as a payment method,
-// is not automatically collected. If you must remove an account from your
-// organization later, you can do so only after you provide the missing information.
-// Follow the steps at To leave an organization as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// * When you create an account in an organization using the AWS Organizations
+// console, API, or CLI commands, the information required for the account
+// to operate as a standalone account, such as a payment method and signing
+// the end user license agreement (EULA) is not automatically collected.
+// If you must remove an account from your organization later, you can do
+// so only after you provide the missing information. Follow the steps at
+// To leave an organization as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
// * If you get an exception that indicates that you exceeded your account
@@ -1266,11 +1296,12 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -1304,6 +1335,15 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -1330,6 +1370,10 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -1345,8 +1389,8 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -1359,14 +1403,9 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -1382,8 +1421,6 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -1529,10 +1566,11 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// have the relevant IAM permissions.
//
// By default (or if you set the FeatureSet parameter to ALL), the new organization
-// is created with all features enabled. In addition, service control policies
-// are automatically enabled in the root. If you instead create the organization
-// supporting only the consolidated billing features, no policy types are enabled
-// by default, and you can't use organization policies.
+// is created with all features enabled and service control policies automatically
+// enabled in the root. If you instead choose to create the organization supporting
+// only the consolidated billing features by setting the FeatureSet parameter
+// to CONSOLIDATED_BILLING", no policy types are enabled by default, and you
+// can't use organization policies
//
// 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
@@ -1558,11 +1596,12 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -1596,6 +1635,15 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -1622,6 +1670,10 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -1637,8 +1689,8 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -1651,14 +1703,9 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -1674,8 +1721,6 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -1843,11 +1888,12 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -1881,6 +1927,15 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -1907,6 +1962,10 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -1922,8 +1981,8 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -1936,14 +1995,9 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * DuplicateOrganizationalUnitException
// An OU with the same name already exists.
//
@@ -1962,8 +2016,6 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -2126,11 +2178,12 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -2164,6 +2217,15 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -2190,6 +2252,10 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -2205,8 +2271,8 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -2219,14 +2285,9 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * DuplicatePolicyException
// A policy with the same name already exists.
//
@@ -2245,8 +2306,6 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -2399,7 +2458,7 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r
// a new handshake request.
//
// After you decline a handshake, it continues to appear in the results of relevant
-// API operations for only 30 days. After that, it's deleted.
+// APIs for only 30 days. After that, it's deleted.
//
// 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
@@ -2447,8 +2506,6 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -2618,8 +2675,6 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -2795,8 +2850,6 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -2976,8 +3029,6 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -3071,51 +3122,59 @@ func (c *Organizations) DeletePolicyWithContext(ctx aws.Context, input *DeletePo
return out, req.Send()
}
-const opDescribeAccount = "DescribeAccount"
+const opDeregisterDelegatedAdministrator = "DeregisterDelegatedAdministrator"
-// DescribeAccountRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeAccount operation. The "output" return
+// DeregisterDelegatedAdministratorRequest generates a "aws/request.Request" representing the
+// client's request for the DeregisterDelegatedAdministrator operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeAccount for more information on using the DescribeAccount
+// See DeregisterDelegatedAdministrator for more information on using the DeregisterDelegatedAdministrator
// 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 DescribeAccountRequest method.
-// req, resp := client.DescribeAccountRequest(params)
+// // Example sending a request using the DeregisterDelegatedAdministratorRequest method.
+// req, resp := client.DeregisterDelegatedAdministratorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount
-func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req *request.Request, output *DescribeAccountOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeregisterDelegatedAdministrator
+func (c *Organizations) DeregisterDelegatedAdministratorRequest(input *DeregisterDelegatedAdministratorInput) (req *request.Request, output *DeregisterDelegatedAdministratorOutput) {
op := &request.Operation{
- Name: opDescribeAccount,
+ Name: opDeregisterDelegatedAdministrator,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeAccountInput{}
+ input = &DeregisterDelegatedAdministratorInput{}
}
- output = &DescribeAccountOutput{}
+ output = &DeregisterDelegatedAdministratorOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DescribeAccount API operation for AWS Organizations.
+// DeregisterDelegatedAdministrator API operation for AWS Organizations.
//
-// Retrieves AWS Organizations related information about the specified account.
+// Removes the specified member AWS account as a delegated administrator for
+// the specified AWS service.
+//
+// You can run this action only for AWS services that support this feature.
+// For a current list of services that support it, see the column Supports Delegated
+// Administrator in the table at AWS Services that you can use with AWS Organizations
+// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrated-services-list.html)
+// in the AWS Organizations User Guide.
//
// This operation can be called only from the organization's master account.
//
@@ -3124,7 +3183,7 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req
// the error.
//
// See the AWS API reference guide for AWS Organizations's
-// API operation DescribeAccount for usage and error information.
+// API operation DeregisterDelegatedAdministrator for usage and error information.
//
// Returned Error Types:
// * AccessDeniedException
@@ -3135,14 +3194,132 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req
// in the IAM User Guide.
//
// * AccountNotFoundException
-// We can't find an AWS account with the AccountId that you specified. Or the
+// We can't find an AWS account with the AccountId that you specified, or the
// account whose credentials you used to make this request isn't a member of
// an organization.
//
+// * AccountNotRegisteredException
+// The specified account is not a delegated administrator for this AWS service.
+//
// * AWSOrganizationsNotInUseException
// Your account isn't a member of an organization. To make this request, you
// must use the credentials of an account that belongs to an organization.
//
+// * ConcurrentModificationException
+// The target of the operation is currently being modified by a different request.
+// Try again later.
+//
+// * ConstraintViolationException
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
+// from the organization that doesn't yet have enough information to exist
+// as a standalone account. This account requires you to first agree to the
+// AWS Customer Agreement. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
+// an account from the organization that doesn't yet have enough information
+// to exist as a standalone account. This account requires you to first complete
+// phone verification. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
+// of accounts that you can create in one day.
+//
+// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
+// the number of accounts in an organization. If you need more accounts,
+// contact AWS Support (https://console.aws.amazon.com/support/home#/) to
+// request an increase in your limit. Or the number of invitations that you
+// tried to send would cause you to exceed the limit of accounts in your
+// organization. Send fewer invitations or contact AWS Support to request
+// an increase in the number of accounts. Deleted and closed accounts still
+// count toward your limit. If you get receive this exception when running
+// a command immediately after creating the organization, wait one hour and
+// try again. If after an hour it continues to fail with this error, contact
+// AWS Support (https://console.aws.amazon.com/support/home#/).
+//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
+// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
+// handshakes that you can send in one day.
+//
+// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
+// in this organization, you first must migrate the organization's master
+// account to the marketplace that corresponds to the master account's address.
+// For example, accounts with India addresses must be associated with the
+// AISPL marketplace. All accounts in an organization must be associated
+// with the same marketplace.
+//
+// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
+// must first provide contact a valid address and phone number for the master
+// account. Then try the operation again.
+//
+// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
+// master account must have an associated account in the AWS GovCloud (US-West)
+// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
+// in the AWS GovCloud User Guide.
+//
+// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
+// with this master account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
+// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
+// number of policies of a certain type that can be attached to an entity
+// at one time.
+//
+// * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed
+// on this resource.
+//
+// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
+// with this member account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
+//
+// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
+// too many levels deep.
+//
+// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
+// that requires the organization to be configured to support all features.
+// An organization that supports only consolidated billing features can't
+// perform this operation.
+//
+// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
+// that you can have in an organization.
+//
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
+// policies that you can have in an organization.
+//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -3158,8 +3335,6 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -3209,10 +3384,6 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
// between entities in the same root.
//
-// * ServiceException
-// AWS Organizations can't complete your request because of an internal service
-// error. Try again later.
-//
// * TooManyRequestsException
// You have sent too many requests in too short a period of time. The limit
// helps protect against denial-of-service attacks. Try again later.
@@ -3221,82 +3392,90 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req
// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
// in the AWS Organizations User Guide.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount
-func (c *Organizations) DescribeAccount(input *DescribeAccountInput) (*DescribeAccountOutput, error) {
- req, out := c.DescribeAccountRequest(input)
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeregisterDelegatedAdministrator
+func (c *Organizations) DeregisterDelegatedAdministrator(input *DeregisterDelegatedAdministratorInput) (*DeregisterDelegatedAdministratorOutput, error) {
+ req, out := c.DeregisterDelegatedAdministratorRequest(input)
return out, req.Send()
}
-// DescribeAccountWithContext is the same as DescribeAccount with the addition of
+// DeregisterDelegatedAdministratorWithContext is the same as DeregisterDelegatedAdministrator with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeAccount for details on how to use this API operation.
+// See DeregisterDelegatedAdministrator 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 *Organizations) DescribeAccountWithContext(ctx aws.Context, input *DescribeAccountInput, opts ...request.Option) (*DescribeAccountOutput, error) {
- req, out := c.DescribeAccountRequest(input)
+func (c *Organizations) DeregisterDelegatedAdministratorWithContext(ctx aws.Context, input *DeregisterDelegatedAdministratorInput, opts ...request.Option) (*DeregisterDelegatedAdministratorOutput, error) {
+ req, out := c.DeregisterDelegatedAdministratorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeCreateAccountStatus = "DescribeCreateAccountStatus"
+const opDescribeAccount = "DescribeAccount"
-// DescribeCreateAccountStatusRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeCreateAccountStatus operation. The "output" return
+// DescribeAccountRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAccount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeCreateAccountStatus for more information on using the DescribeCreateAccountStatus
+// See DescribeAccount for more information on using the DescribeAccount
// 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 DescribeCreateAccountStatusRequest method.
-// req, resp := client.DescribeCreateAccountStatusRequest(params)
+// // Example sending a request using the DescribeAccountRequest method.
+// req, resp := client.DescribeAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus
-func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreateAccountStatusInput) (req *request.Request, output *DescribeCreateAccountStatusOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount
+func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req *request.Request, output *DescribeAccountOutput) {
op := &request.Operation{
- Name: opDescribeCreateAccountStatus,
+ Name: opDescribeAccount,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeCreateAccountStatusInput{}
+ input = &DescribeAccountInput{}
}
- output = &DescribeCreateAccountStatusOutput{}
+ output = &DescribeAccountOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeCreateAccountStatus API operation for AWS Organizations.
+// DescribeAccount API operation for AWS Organizations.
//
-// Retrieves the current status of an asynchronous request to create an account.
+// Retrieves AWS Organizations-related information about the specified account.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Organizations's
-// API operation DescribeCreateAccountStatus for usage and error information.
+// API operation DescribeAccount for usage and error information.
//
// Returned Error Types:
// * AccessDeniedException
@@ -3306,14 +3485,15 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate
// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
// in the IAM User Guide.
//
+// * AccountNotFoundException
+// We can't find an AWS account with the AccountId that you specified, or the
+// account whose credentials you used to make this request isn't a member of
+// an organization.
+//
// * AWSOrganizationsNotInUseException
// Your account isn't a member of an organization. To make this request, you
// must use the credentials of an account that belongs to an organization.
//
-// * CreateAccountStatusNotFoundException
-// We can't find a create account request with the CreateAccountRequestId that
-// you specified.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -3329,8 +3509,6 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -3392,58 +3570,228 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate
// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
// in the AWS Organizations User Guide.
//
-// * UnsupportedAPIEndpointException
-// This action isn't available in the current Region.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus
-func (c *Organizations) DescribeCreateAccountStatus(input *DescribeCreateAccountStatusInput) (*DescribeCreateAccountStatusOutput, error) {
- req, out := c.DescribeCreateAccountStatusRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeAccount
+func (c *Organizations) DescribeAccount(input *DescribeAccountInput) (*DescribeAccountOutput, error) {
+ req, out := c.DescribeAccountRequest(input)
return out, req.Send()
}
-// DescribeCreateAccountStatusWithContext is the same as DescribeCreateAccountStatus with the addition of
+// DescribeAccountWithContext is the same as DescribeAccount with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeCreateAccountStatus for details on how to use this API operation.
+// See DescribeAccount 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 *Organizations) DescribeCreateAccountStatusWithContext(ctx aws.Context, input *DescribeCreateAccountStatusInput, opts ...request.Option) (*DescribeCreateAccountStatusOutput, error) {
- req, out := c.DescribeCreateAccountStatusRequest(input)
+func (c *Organizations) DescribeAccountWithContext(ctx aws.Context, input *DescribeAccountInput, opts ...request.Option) (*DescribeAccountOutput, error) {
+ req, out := c.DescribeAccountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeEffectivePolicy = "DescribeEffectivePolicy"
+const opDescribeCreateAccountStatus = "DescribeCreateAccountStatus"
-// DescribeEffectivePolicyRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeEffectivePolicy operation. The "output" return
+// DescribeCreateAccountStatusRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeCreateAccountStatus operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeEffectivePolicy for more information on using the DescribeEffectivePolicy
+// See DescribeCreateAccountStatus for more information on using the DescribeCreateAccountStatus
// 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 DescribeEffectivePolicyRequest method.
-// req, resp := client.DescribeEffectivePolicyRequest(params)
+// // Example sending a request using the DescribeCreateAccountStatusRequest method.
+// req, resp := client.DescribeCreateAccountStatusRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy
-func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectivePolicyInput) (req *request.Request, output *DescribeEffectivePolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus
+func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreateAccountStatusInput) (req *request.Request, output *DescribeCreateAccountStatusOutput) {
+ op := &request.Operation{
+ Name: opDescribeCreateAccountStatus,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeCreateAccountStatusInput{}
+ }
+
+ output = &DescribeCreateAccountStatusOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeCreateAccountStatus API operation for AWS Organizations.
+//
+// Retrieves the current status of an asynchronous request to create an account.
+//
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Organizations's
+// API operation DescribeCreateAccountStatus for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// You don't have permissions to perform the requested operation. The user or
+// role that is making the request must have at least one IAM permissions policy
+// attached that grants the required permissions. For more information, see
+// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
+// in the IAM User Guide.
+//
+// * AWSOrganizationsNotInUseException
+// Your account isn't a member of an organization. To make this request, you
+// must use the credentials of an account that belongs to an organization.
+//
+// * CreateAccountStatusNotFoundException
+// We can't find an create account request with the CreateAccountRequestId that
+// you specified.
+//
+// * InvalidInputException
+// The requested operation failed because you provided invalid values for one
+// or more of the request parameters. This exception includes a reason that
+// contains additional information about the violated limit:
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
+// can't be modified.
+//
+// * INPUT_REQUIRED: You must include a value for all required parameters.
+//
+// * INVALID_ENUM: You specified an invalid value.
+//
+// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
+// characters.
+//
+// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
+// at least one invalid value.
+//
+// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
+// from the response to a previous call of the operation.
+//
+// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
+// organization, or email) as a party.
+//
+// * INVALID_PATTERN: You provided a value that doesn't match the required
+// pattern.
+//
+// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
+// match the required pattern.
+//
+// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role
+// name can't begin with the reserved prefix AWSServiceRoleFor.
+//
+// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource
+// Name (ARN) for the organization.
+//
+// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
+//
+// * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system
+// tag. You can’t add, edit, or delete system tag keys because they're
+// reserved for AWS use. System tags don’t count against your tags per
+// resource limit.
+//
+// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
+// for the operation.
+//
+// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
+// than allowed.
+//
+// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
+// value than allowed.
+//
+// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
+// than allowed.
+//
+// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
+// value than allowed.
+//
+// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
+// between entities in the same root.
+//
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// * TooManyRequestsException
+// You have sent too many requests in too short a period of time. The limit
+// helps protect against denial-of-service attacks. Try again later.
+//
+// For information on limits that affect AWS Organizations, see Limits of AWS
+// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
+// in the AWS Organizations User Guide.
+//
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus
+func (c *Organizations) DescribeCreateAccountStatus(input *DescribeCreateAccountStatusInput) (*DescribeCreateAccountStatusOutput, error) {
+ req, out := c.DescribeCreateAccountStatusRequest(input)
+ return out, req.Send()
+}
+
+// DescribeCreateAccountStatusWithContext is the same as DescribeCreateAccountStatus with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeCreateAccountStatus 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 *Organizations) DescribeCreateAccountStatusWithContext(ctx aws.Context, input *DescribeCreateAccountStatusInput, opts ...request.Option) (*DescribeCreateAccountStatusOutput, error) {
+ req, out := c.DescribeCreateAccountStatusRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeEffectivePolicy = "DescribeEffectivePolicy"
+
+// DescribeEffectivePolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeEffectivePolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeEffectivePolicy for more information on using the DescribeEffectivePolicy
+// 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 DescribeEffectivePolicyRequest method.
+// req, resp := client.DescribeEffectivePolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy
+func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectivePolicyInput) (req *request.Request, output *DescribeEffectivePolicyOutput) {
op := &request.Operation{
Name: opDescribeEffectivePolicy,
HTTPMethod: "POST",
@@ -3471,7 +3819,8 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies-inheritance.html)
// in the AWS Organizations User Guide.
//
-// This operation can be called from any account in the organization.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -3493,11 +3842,12 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// must use the credentials of an account that belongs to an organization.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -3531,6 +3881,15 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -3557,6 +3916,10 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -3572,8 +3935,8 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -3586,14 +3949,9 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * ServiceException
// AWS Organizations can't complete your request because of an internal service
// error. Try again later.
@@ -3630,8 +3988,6 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -3797,8 +4153,6 @@ func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput)
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -4038,7 +4392,8 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz
//
// Retrieves information about an organizational unit (OU).
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -4074,8 +4429,6 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -4208,7 +4561,8 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req *
//
// Retrieves information about a policy.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -4244,8 +4598,6 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req *
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -4384,16 +4736,15 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// If the policy being detached is a service control policy (SCP), the changes
// to permissions for IAM users and roles in affected accounts are immediate.
//
-// Note: Every root, OU, and account must have at least one SCP attached. You
-// can replace the default FullAWSAccess policy with one that limits the permissions
-// that can be delegated. To do that, you must attach the replacement policy
+// Note: Every root, OU, and account must have at least one SCP attached. If
+// you want to replace the default FullAWSAccess policy with one that limits
+// the permissions that can be delegated, you must attach the replacement policy
// before you can remove the default one. This is the authorization strategy
-// of using an allow list (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_whitelist).
-// You could instead attach a second SCP and leave the FullAWSAccess SCP still
-// attached. You could then specify "Effect": "Deny" in the second SCP to override
-// the "Effect": "Allow" in the FullAWSAccess policy (or any other attached
-// SCP). If you take these steps, you're using the authorization strategy of
-// a deny list (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_blacklist).
+// of an "allow list (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_whitelist)".
+// If you instead attach a second SCP and leave the FullAWSAccess SCP still
+// attached, and specify "Effect": "Deny" in the second SCP to override the
+// "Effect": "Allow" in the FullAWSAccess policy (or any other attached SCP),
+// you're using the authorization strategy of a "deny list (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_about-scps.html#orgs_policies_blacklist)".
//
// This operation can be called only from the organization's master account.
//
@@ -4421,11 +4772,12 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -4459,6 +4811,15 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -4485,6 +4846,10 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -4500,8 +4865,8 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -4514,14 +4879,9 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -4537,8 +4897,6 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -4700,9 +5058,9 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// AWS service.
//
// After you perform the DisableAWSServiceAccess operation, the specified service
-// can no longer perform operations in your organization's accounts. The only
-// exception is when the operations are explicitly permitted by IAM policies
-// that are attached to your roles.
+// can no longer perform operations in your organization's accounts unless the
+// operations are explicitly permitted by the IAM policies that are attached
+// to your roles.
//
// For more information about integrating other services with AWS Organizations,
// including the list of services that work with Organizations, see Integrating
@@ -4735,11 +5093,12 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -4773,6 +5132,15 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -4799,6 +5167,10 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -4814,8 +5186,8 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -4828,14 +5200,9 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -4851,8 +5218,6 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -4980,13 +5345,11 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// DisablePolicyType API operation for AWS Organizations.
//
-// Disables an organizational control policy type in a root and detaches all
-// policies of that type from the organization root, OUs, and accounts. A policy
-// of a certain type can be attached to entities in a root only if that type
-// is enabled in the root. After you perform this operation, you no longer can
-// attach policies of the specified type to that root or to any organizational
-// unit (OU) or account in that root. You can undo this by using the EnablePolicyType
-// operation.
+// Disables an organizational control policy type in a root. A policy of a certain
+// type can be attached to entities in a root only if that type is enabled in
+// the root. After you perform this operation, you no longer can attach policies
+// of the specified type to that root or to any organizational unit (OU) or
+// account in that root. You can undo this by using the EnablePolicyType operation.
//
// This is an asynchronous request that AWS performs in the background. If you
// disable a policy for a root, it still appears enabled for the organization
@@ -5023,11 +5386,12 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -5061,6 +5425,15 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -5087,6 +5460,10 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -5102,8 +5479,8 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -5116,14 +5493,9 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -5139,8 +5511,6 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput)
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -5331,11 +5701,12 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -5369,6 +5740,15 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -5395,6 +5775,10 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -5410,8 +5794,8 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -5424,14 +5808,9 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -5447,8 +5826,6 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -5579,7 +5956,7 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput)
// Enables all features in an organization. This enables the use of organization
// policies that can restrict the services and actions that can be called in
// each account. Until you enable all features, you have access only to consolidated
-// billing. You can't use any of the advanced account administration features
+// billing, and you can't use any of the advanced account administration features
// that AWS Organizations supports. For more information, see Enabling All Features
// in Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html)
// in the AWS Organizations User Guide.
@@ -5588,8 +5965,8 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput)
// with only the consolidated billing features enabled. Calling this operation
// sends a handshake to every invited account in the organization. The feature
// set change can be finalized and the additional features enabled only after
-// all administrators in the invited accounts approve the change. Accepting
-// the handshake approves the change.
+// all administrators in the invited accounts approve the change by accepting
+// the handshake.
//
// After you enable all features, you can separately enable or disable individual
// policy types in a root using EnablePolicyType and DisablePolicyType. To see
@@ -5685,8 +6062,6 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput)
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -5853,11 +6228,12 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -5891,6 +6267,15 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -5917,6 +6302,10 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -5932,8 +6321,8 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -5946,14 +6335,9 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -5969,8 +6353,6 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -6124,16 +6506,16 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT
// as a Handshake whose details are in the response.
//
// * You can invite AWS accounts only from the same seller as the master
-// account. For example, assume that your organization's master account was
-// created by Amazon Internet Services Pvt. Ltd (AISPL), an AWS seller in
-// India. You can invite only other AISPL accounts to your organization.
-// You can't combine accounts from AISPL and AWS or from any other AWS seller.
-// For more information, see Consolidated Billing in India (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/useconsolidatedbilliing-India.html).
+// account. For example, if your organization's master account was created
+// by Amazon Internet Services Pvt. Ltd (AISPL), an AWS seller in India,
+// you can invite only other AISPL accounts to your organization. You can't
+// combine accounts from AISPL and AWS or from any other AWS seller. For
+// more information, see Consolidated Billing in India (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/useconsolidatedbilliing-India.html).
//
-// * You might receive an exception that indicates that you exceeded your
-// account limits for the organization or that the operation failed because
-// your organization is still initializing. If so, wait one hour and then
-// try again. If the error persists after an hour, contact AWS Support (https://console.aws.amazon.com/support/home#/).
+// * If you receive an exception that indicates that you exceeded your account
+// limits for the organization or that the operation failed because your
+// organization is still initializing, wait one hour and then try again.
+// If the error persists after an hour, contact AWS Support (https://console.aws.amazon.com/support/home#/).
//
// This operation can be called only from the organization's master account.
//
@@ -6228,8 +6610,6 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -6373,21 +6753,21 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
//
// * The master account in an organization with all features enabled can
// set service control policies (SCPs) that can restrict what administrators
-// of member accounts can do. These restrictions can include preventing member
-// accounts from successfully calling LeaveOrganization.
+// of member accounts can do. This includes preventing them from successfully
+// calling LeaveOrganization and leaving the organization.
//
// * You can leave an organization as a member account only if the account
// is configured with the information required to operate as a standalone
// account. When you create an account in an organization using the AWS Organizations
-// console, API, or CLI, the information required of standalone accounts
-// is not automatically collected. For each account that you want to make
-// standalone, you must accept the end user license agreement (EULA). You
-// must also choose a support plan, provide and verify the required contact
-// information, and provide a current payment method. AWS uses the payment
-// method to charge for any billable (not free tier) AWS activity that occurs
-// while the account isn't attached to an organization. Follow the steps
-// at To leave an organization when all required account information has
-// not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// console, API, or CLI commands, the information required of standalone
+// accounts is not automatically collected. For each account that you want
+// to make standalone, you must do the following steps: Accept the end user
+// license agreement (EULA) Choose a support plan Provide and verify the
+// required contact information Provide a current payment method AWS uses
+// the payment method to charge for any billable (not free tier) AWS activity
+// that occurs while the account isn't attached to an organization. Follow
+// the steps at To leave an organization when all required account information
+// has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
// * You can leave an organization only after you enable IAM user access
@@ -6411,7 +6791,7 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// in the IAM User Guide.
//
// * AccountNotFoundException
-// We can't find an AWS account with the AccountId that you specified. Or the
+// We can't find an AWS account with the AccountId that you specified, or the
// account whose credentials you used to make this request isn't a member of
// an organization.
//
@@ -6424,11 +6804,12 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -6462,6 +6843,15 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -6488,6 +6878,10 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -6503,8 +6897,8 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -6517,14 +6911,9 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -6540,8 +6929,6 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput)
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -6690,7 +7077,8 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// Integrating AWS Organizations with Other AWS Services (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)
// in the AWS Organizations User Guide.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -6712,11 +7100,12 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// must use the credentials of an account that belongs to an organization.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -6750,6 +7139,15 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -6776,6 +7174,10 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -6791,8 +7193,8 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -6805,14 +7207,9 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -6828,8 +7225,6 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -7024,7 +7419,8 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -7060,8 +7456,6 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -7258,7 +7652,8 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -7294,8 +7689,6 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -7493,7 +7886,8 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -7529,8 +7923,6 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -7727,7 +8119,8 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -7763,8 +8156,6 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -7903,10 +8294,695 @@ func (c *Organizations) ListCreateAccountStatusPagesWithContext(ctx aws.Context,
return p.Err()
}
-const opListHandshakesForAccount = "ListHandshakesForAccount"
+const opListDelegatedAdministrators = "ListDelegatedAdministrators"
-// ListHandshakesForAccountRequest generates a "aws/request.Request" representing the
-// client's request for the ListHandshakesForAccount operation. The "output" return
+// ListDelegatedAdministratorsRequest generates a "aws/request.Request" representing the
+// client's request for the ListDelegatedAdministrators operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListDelegatedAdministrators for more information on using the ListDelegatedAdministrators
+// 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 ListDelegatedAdministratorsRequest method.
+// req, resp := client.ListDelegatedAdministratorsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListDelegatedAdministrators
+func (c *Organizations) ListDelegatedAdministratorsRequest(input *ListDelegatedAdministratorsInput) (req *request.Request, output *ListDelegatedAdministratorsOutput) {
+ op := &request.Operation{
+ Name: opListDelegatedAdministrators,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListDelegatedAdministratorsInput{}
+ }
+
+ output = &ListDelegatedAdministratorsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListDelegatedAdministrators API operation for AWS Organizations.
+//
+// Lists the AWS accounts that are designated as delegated administrators in
+// this organization.
+//
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Organizations's
+// API operation ListDelegatedAdministrators for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// You don't have permissions to perform the requested operation. The user or
+// role that is making the request must have at least one IAM permissions policy
+// attached that grants the required permissions. For more information, see
+// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
+// in the IAM User Guide.
+//
+// * AWSOrganizationsNotInUseException
+// Your account isn't a member of an organization. To make this request, you
+// must use the credentials of an account that belongs to an organization.
+//
+// * ConstraintViolationException
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
+// from the organization that doesn't yet have enough information to exist
+// as a standalone account. This account requires you to first agree to the
+// AWS Customer Agreement. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
+// an account from the organization that doesn't yet have enough information
+// to exist as a standalone account. This account requires you to first complete
+// phone verification. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
+// of accounts that you can create in one day.
+//
+// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
+// the number of accounts in an organization. If you need more accounts,
+// contact AWS Support (https://console.aws.amazon.com/support/home#/) to
+// request an increase in your limit. Or the number of invitations that you
+// tried to send would cause you to exceed the limit of accounts in your
+// organization. Send fewer invitations or contact AWS Support to request
+// an increase in the number of accounts. Deleted and closed accounts still
+// count toward your limit. If you get receive this exception when running
+// a command immediately after creating the organization, wait one hour and
+// try again. If after an hour it continues to fail with this error, contact
+// AWS Support (https://console.aws.amazon.com/support/home#/).
+//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
+// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
+// handshakes that you can send in one day.
+//
+// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
+// in this organization, you first must migrate the organization's master
+// account to the marketplace that corresponds to the master account's address.
+// For example, accounts with India addresses must be associated with the
+// AISPL marketplace. All accounts in an organization must be associated
+// with the same marketplace.
+//
+// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
+// must first provide contact a valid address and phone number for the master
+// account. Then try the operation again.
+//
+// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
+// master account must have an associated account in the AWS GovCloud (US-West)
+// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
+// in the AWS GovCloud User Guide.
+//
+// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
+// with this master account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
+// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
+// number of policies of a certain type that can be attached to an entity
+// at one time.
+//
+// * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed
+// on this resource.
+//
+// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
+// with this member account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
+//
+// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
+// too many levels deep.
+//
+// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
+// that requires the organization to be configured to support all features.
+// An organization that supports only consolidated billing features can't
+// perform this operation.
+//
+// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
+// that you can have in an organization.
+//
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
+// policies that you can have in an organization.
+//
+// * InvalidInputException
+// The requested operation failed because you provided invalid values for one
+// or more of the request parameters. This exception includes a reason that
+// contains additional information about the violated limit:
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
+// can't be modified.
+//
+// * INPUT_REQUIRED: You must include a value for all required parameters.
+//
+// * INVALID_ENUM: You specified an invalid value.
+//
+// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
+// characters.
+//
+// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
+// at least one invalid value.
+//
+// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
+// from the response to a previous call of the operation.
+//
+// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
+// organization, or email) as a party.
+//
+// * INVALID_PATTERN: You provided a value that doesn't match the required
+// pattern.
+//
+// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
+// match the required pattern.
+//
+// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role
+// name can't begin with the reserved prefix AWSServiceRoleFor.
+//
+// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource
+// Name (ARN) for the organization.
+//
+// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
+//
+// * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system
+// tag. You can’t add, edit, or delete system tag keys because they're
+// reserved for AWS use. System tags don’t count against your tags per
+// resource limit.
+//
+// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
+// for the operation.
+//
+// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
+// than allowed.
+//
+// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
+// value than allowed.
+//
+// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
+// than allowed.
+//
+// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
+// value than allowed.
+//
+// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
+// between entities in the same root.
+//
+// * TooManyRequestsException
+// You have sent too many requests in too short a period of time. The limit
+// helps protect against denial-of-service attacks. Try again later.
+//
+// For information on limits that affect AWS Organizations, see Limits of AWS
+// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
+// in the AWS Organizations User Guide.
+//
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListDelegatedAdministrators
+func (c *Organizations) ListDelegatedAdministrators(input *ListDelegatedAdministratorsInput) (*ListDelegatedAdministratorsOutput, error) {
+ req, out := c.ListDelegatedAdministratorsRequest(input)
+ return out, req.Send()
+}
+
+// ListDelegatedAdministratorsWithContext is the same as ListDelegatedAdministrators with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListDelegatedAdministrators 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 *Organizations) ListDelegatedAdministratorsWithContext(ctx aws.Context, input *ListDelegatedAdministratorsInput, opts ...request.Option) (*ListDelegatedAdministratorsOutput, error) {
+ req, out := c.ListDelegatedAdministratorsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListDelegatedAdministratorsPages iterates over the pages of a ListDelegatedAdministrators operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListDelegatedAdministrators 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 ListDelegatedAdministrators operation.
+// pageNum := 0
+// err := client.ListDelegatedAdministratorsPages(params,
+// func(page *organizations.ListDelegatedAdministratorsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Organizations) ListDelegatedAdministratorsPages(input *ListDelegatedAdministratorsInput, fn func(*ListDelegatedAdministratorsOutput, bool) bool) error {
+ return c.ListDelegatedAdministratorsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListDelegatedAdministratorsPagesWithContext same as ListDelegatedAdministratorsPages 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 *Organizations) ListDelegatedAdministratorsPagesWithContext(ctx aws.Context, input *ListDelegatedAdministratorsInput, fn func(*ListDelegatedAdministratorsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListDelegatedAdministratorsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListDelegatedAdministratorsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListDelegatedAdministratorsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListDelegatedServicesForAccount = "ListDelegatedServicesForAccount"
+
+// ListDelegatedServicesForAccountRequest generates a "aws/request.Request" representing the
+// client's request for the ListDelegatedServicesForAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListDelegatedServicesForAccount for more information on using the ListDelegatedServicesForAccount
+// 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 ListDelegatedServicesForAccountRequest method.
+// req, resp := client.ListDelegatedServicesForAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListDelegatedServicesForAccount
+func (c *Organizations) ListDelegatedServicesForAccountRequest(input *ListDelegatedServicesForAccountInput) (req *request.Request, output *ListDelegatedServicesForAccountOutput) {
+ op := &request.Operation{
+ Name: opListDelegatedServicesForAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListDelegatedServicesForAccountInput{}
+ }
+
+ output = &ListDelegatedServicesForAccountOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListDelegatedServicesForAccount API operation for AWS Organizations.
+//
+// List the AWS services for which the specified account is a delegated administrator.
+//
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Organizations's
+// API operation ListDelegatedServicesForAccount for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// You don't have permissions to perform the requested operation. The user or
+// role that is making the request must have at least one IAM permissions policy
+// attached that grants the required permissions. For more information, see
+// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
+// in the IAM User Guide.
+//
+// * AccountNotFoundException
+// We can't find an AWS account with the AccountId that you specified, or the
+// account whose credentials you used to make this request isn't a member of
+// an organization.
+//
+// * AccountNotRegisteredException
+// The specified account is not a delegated administrator for this AWS service.
+//
+// * AWSOrganizationsNotInUseException
+// Your account isn't a member of an organization. To make this request, you
+// must use the credentials of an account that belongs to an organization.
+//
+// * ConstraintViolationException
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
+// from the organization that doesn't yet have enough information to exist
+// as a standalone account. This account requires you to first agree to the
+// AWS Customer Agreement. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
+// an account from the organization that doesn't yet have enough information
+// to exist as a standalone account. This account requires you to first complete
+// phone verification. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
+// of accounts that you can create in one day.
+//
+// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
+// the number of accounts in an organization. If you need more accounts,
+// contact AWS Support (https://console.aws.amazon.com/support/home#/) to
+// request an increase in your limit. Or the number of invitations that you
+// tried to send would cause you to exceed the limit of accounts in your
+// organization. Send fewer invitations or contact AWS Support to request
+// an increase in the number of accounts. Deleted and closed accounts still
+// count toward your limit. If you get receive this exception when running
+// a command immediately after creating the organization, wait one hour and
+// try again. If after an hour it continues to fail with this error, contact
+// AWS Support (https://console.aws.amazon.com/support/home#/).
+//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
+// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
+// handshakes that you can send in one day.
+//
+// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
+// in this organization, you first must migrate the organization's master
+// account to the marketplace that corresponds to the master account's address.
+// For example, accounts with India addresses must be associated with the
+// AISPL marketplace. All accounts in an organization must be associated
+// with the same marketplace.
+//
+// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
+// must first provide contact a valid address and phone number for the master
+// account. Then try the operation again.
+//
+// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
+// master account must have an associated account in the AWS GovCloud (US-West)
+// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
+// in the AWS GovCloud User Guide.
+//
+// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
+// with this master account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
+// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
+// number of policies of a certain type that can be attached to an entity
+// at one time.
+//
+// * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed
+// on this resource.
+//
+// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
+// with this member account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
+//
+// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
+// too many levels deep.
+//
+// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
+// that requires the organization to be configured to support all features.
+// An organization that supports only consolidated billing features can't
+// perform this operation.
+//
+// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
+// that you can have in an organization.
+//
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
+// policies that you can have in an organization.
+//
+// * InvalidInputException
+// The requested operation failed because you provided invalid values for one
+// or more of the request parameters. This exception includes a reason that
+// contains additional information about the violated limit:
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
+// can't be modified.
+//
+// * INPUT_REQUIRED: You must include a value for all required parameters.
+//
+// * INVALID_ENUM: You specified an invalid value.
+//
+// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
+// characters.
+//
+// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
+// at least one invalid value.
+//
+// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
+// from the response to a previous call of the operation.
+//
+// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
+// organization, or email) as a party.
+//
+// * INVALID_PATTERN: You provided a value that doesn't match the required
+// pattern.
+//
+// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
+// match the required pattern.
+//
+// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role
+// name can't begin with the reserved prefix AWSServiceRoleFor.
+//
+// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource
+// Name (ARN) for the organization.
+//
+// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
+//
+// * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system
+// tag. You can’t add, edit, or delete system tag keys because they're
+// reserved for AWS use. System tags don’t count against your tags per
+// resource limit.
+//
+// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
+// for the operation.
+//
+// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
+// than allowed.
+//
+// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
+// value than allowed.
+//
+// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
+// than allowed.
+//
+// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
+// value than allowed.
+//
+// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
+// between entities in the same root.
+//
+// * TooManyRequestsException
+// You have sent too many requests in too short a period of time. The limit
+// helps protect against denial-of-service attacks. Try again later.
+//
+// For information on limits that affect AWS Organizations, see Limits of AWS
+// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
+// in the AWS Organizations User Guide.
+//
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListDelegatedServicesForAccount
+func (c *Organizations) ListDelegatedServicesForAccount(input *ListDelegatedServicesForAccountInput) (*ListDelegatedServicesForAccountOutput, error) {
+ req, out := c.ListDelegatedServicesForAccountRequest(input)
+ return out, req.Send()
+}
+
+// ListDelegatedServicesForAccountWithContext is the same as ListDelegatedServicesForAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListDelegatedServicesForAccount 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 *Organizations) ListDelegatedServicesForAccountWithContext(ctx aws.Context, input *ListDelegatedServicesForAccountInput, opts ...request.Option) (*ListDelegatedServicesForAccountOutput, error) {
+ req, out := c.ListDelegatedServicesForAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListDelegatedServicesForAccountPages iterates over the pages of a ListDelegatedServicesForAccount operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListDelegatedServicesForAccount 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 ListDelegatedServicesForAccount operation.
+// pageNum := 0
+// err := client.ListDelegatedServicesForAccountPages(params,
+// func(page *organizations.ListDelegatedServicesForAccountOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Organizations) ListDelegatedServicesForAccountPages(input *ListDelegatedServicesForAccountInput, fn func(*ListDelegatedServicesForAccountOutput, bool) bool) error {
+ return c.ListDelegatedServicesForAccountPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListDelegatedServicesForAccountPagesWithContext same as ListDelegatedServicesForAccountPages 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 *Organizations) ListDelegatedServicesForAccountPagesWithContext(ctx aws.Context, input *ListDelegatedServicesForAccountInput, fn func(*ListDelegatedServicesForAccountOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListDelegatedServicesForAccountInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListDelegatedServicesForAccountRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListDelegatedServicesForAccountOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListHandshakesForAccount = "ListHandshakesForAccount"
+
+// ListHandshakesForAccountRequest generates a "aws/request.Request" representing the
+// client's request for the ListHandshakesForAccount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
@@ -7965,7 +9041,8 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called from any account in the organization.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -8001,8 +9078,6 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -8202,7 +9277,8 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -8242,8 +9318,6 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -8436,7 +9510,8 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -8472,8 +9547,6 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -8671,7 +9744,8 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// In the current release, a child can have only a single parent.
//
@@ -8713,8 +9787,6 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -8907,7 +9979,8 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -8943,8 +10016,6 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -9142,7 +10213,8 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -9178,8 +10250,6 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -9378,7 +10448,8 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// Policy types can be enabled and disabled in roots. This is distinct from
// whether they're available in the organization. When you enable all features,
@@ -9420,8 +10491,6 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -9611,7 +10680,8 @@ func (c *Organizations) ListTagsForResourceRequest(input *ListTagsForResourceInp
//
// Currently, you can list tags on an account in AWS Organizations.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -9650,8 +10720,6 @@ func (c *Organizations) ListTagsForResourceRequest(input *ListTagsForResourceInp
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -9845,7 +10913,8 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI
// of results even when there are more results available. The NextToken response
// parameter value is null only when there are no more results to display.
//
-// This operation can be called only from the organization's master account.
+// This operation can be called only from the organization's master account
+// or by a member account that is a delegated administrator for an AWS service.
//
// 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
@@ -9881,7 +10950,226 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
+// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
+// characters.
+//
+// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
+// at least one invalid value.
+//
+// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
+// from the response to a previous call of the operation.
+//
+// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
+// organization, or email) as a party.
+//
+// * INVALID_PATTERN: You provided a value that doesn't match the required
+// pattern.
+//
+// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
+// match the required pattern.
+//
+// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role
+// name can't begin with the reserved prefix AWSServiceRoleFor.
+//
+// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource
+// Name (ARN) for the organization.
+//
+// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
+//
+// * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system
+// tag. You can’t add, edit, or delete system tag keys because they're
+// reserved for AWS use. System tags don’t count against your tags per
+// resource limit.
+//
+// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
+// for the operation.
+//
+// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
+// than allowed.
+//
+// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
+// value than allowed.
+//
+// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
+// than allowed.
+//
+// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
+// value than allowed.
+//
+// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
+// between entities in the same root.
+//
+// * PolicyNotFoundException
+// We can't find a policy with the PolicyId that you specified.
+//
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// * TooManyRequestsException
+// You have sent too many requests in too short a period of time. The limit
+// helps protect against denial-of-service attacks. Try again later.
+//
+// For information on limits that affect AWS Organizations, see Limits of AWS
+// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
+// in the AWS Organizations User Guide.
+//
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicy
+func (c *Organizations) ListTargetsForPolicy(input *ListTargetsForPolicyInput) (*ListTargetsForPolicyOutput, error) {
+ req, out := c.ListTargetsForPolicyRequest(input)
+ return out, req.Send()
+}
+
+// ListTargetsForPolicyWithContext is the same as ListTargetsForPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTargetsForPolicy 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 *Organizations) ListTargetsForPolicyWithContext(ctx aws.Context, input *ListTargetsForPolicyInput, opts ...request.Option) (*ListTargetsForPolicyOutput, error) {
+ req, out := c.ListTargetsForPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListTargetsForPolicyPages iterates over the pages of a ListTargetsForPolicy operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListTargetsForPolicy 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 ListTargetsForPolicy operation.
+// pageNum := 0
+// err := client.ListTargetsForPolicyPages(params,
+// func(page *organizations.ListTargetsForPolicyOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Organizations) ListTargetsForPolicyPages(input *ListTargetsForPolicyInput, fn func(*ListTargetsForPolicyOutput, bool) bool) error {
+ return c.ListTargetsForPolicyPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListTargetsForPolicyPagesWithContext same as ListTargetsForPolicyPages 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 *Organizations) ListTargetsForPolicyPagesWithContext(ctx aws.Context, input *ListTargetsForPolicyInput, fn func(*ListTargetsForPolicyOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListTargetsForPolicyInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListTargetsForPolicyRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListTargetsForPolicyOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opMoveAccount = "MoveAccount"
+
+// MoveAccountRequest generates a "aws/request.Request" representing the
+// client's request for the MoveAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See MoveAccount for more information on using the MoveAccount
+// 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 MoveAccountRequest method.
+// req, resp := client.MoveAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount
+func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *request.Request, output *MoveAccountOutput) {
+ op := &request.Operation{
+ Name: opMoveAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &MoveAccountInput{}
+ }
+
+ output = &MoveAccountOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// MoveAccount API operation for AWS Organizations.
+//
+// Moves an account from its current source parent root or organizational unit
+// (OU) to the specified destination parent root or OU.
+//
+// This operation can be called only from the organization's master account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Organizations's
+// API operation MoveAccount for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// You don't have permissions to perform the requested operation. The user or
+// role that is making the request must have at least one IAM permissions policy
+// attached that grants the required permissions. For more information, see
+// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
+// in the IAM User Guide.
+//
+// * InvalidInputException
+// The requested operation failed because you provided invalid values for one
+// or more of the request parameters. This exception includes a reason that
+// contains additional information about the violated limit:
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
+// can't be modified.
+//
+// * INPUT_REQUIRED: You must include a value for all required parameters.
+//
+// * INVALID_ENUM: You specified an invalid value.
//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
@@ -9932,12 +11220,20 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
// between entities in the same root.
//
-// * PolicyNotFoundException
-// We can't find a policy with the PolicyId that you specified.
+// * SourceParentNotFoundException
+// We can't find a source root or OU with the ParentId that you specified.
+//
+// * DestinationParentNotFoundException
+// We can't find the destination container (a root or OU) with the ParentId
+// that you specified.
//
-// * ServiceException
-// AWS Organizations can't complete your request because of an internal service
-// error. Try again later.
+// * DuplicateAccountException
+// That account is already present in the specified destination.
+//
+// * AccountNotFoundException
+// We can't find an AWS account with the AccountId that you specified, or the
+// account whose credentials you used to make this request isn't a member of
+// an organization.
//
// * TooManyRequestsException
// You have sent too many requests in too short a period of time. The limit
@@ -9947,130 +11243,95 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI
// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
// in the AWS Organizations User Guide.
//
-// * UnsupportedAPIEndpointException
-// This action isn't available in the current Region.
+// * ConcurrentModificationException
+// The target of the operation is currently being modified by a different request.
+// Try again later.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicy
-func (c *Organizations) ListTargetsForPolicy(input *ListTargetsForPolicyInput) (*ListTargetsForPolicyOutput, error) {
- req, out := c.ListTargetsForPolicyRequest(input)
+// * AWSOrganizationsNotInUseException
+// Your account isn't a member of an organization. To make this request, you
+// must use the credentials of an account that belongs to an organization.
+//
+// * ServiceException
+// AWS Organizations can't complete your request because of an internal service
+// error. Try again later.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount
+func (c *Organizations) MoveAccount(input *MoveAccountInput) (*MoveAccountOutput, error) {
+ req, out := c.MoveAccountRequest(input)
return out, req.Send()
}
-// ListTargetsForPolicyWithContext is the same as ListTargetsForPolicy with the addition of
+// MoveAccountWithContext is the same as MoveAccount with the addition of
// the ability to pass a context and additional request options.
//
-// See ListTargetsForPolicy for details on how to use this API operation.
+// See MoveAccount 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 *Organizations) ListTargetsForPolicyWithContext(ctx aws.Context, input *ListTargetsForPolicyInput, opts ...request.Option) (*ListTargetsForPolicyOutput, error) {
- req, out := c.ListTargetsForPolicyRequest(input)
+func (c *Organizations) MoveAccountWithContext(ctx aws.Context, input *MoveAccountInput, opts ...request.Option) (*MoveAccountOutput, error) {
+ req, out := c.MoveAccountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// ListTargetsForPolicyPages iterates over the pages of a ListTargetsForPolicy operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
-//
-// See ListTargetsForPolicy 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 ListTargetsForPolicy operation.
-// pageNum := 0
-// err := client.ListTargetsForPolicyPages(params,
-// func(page *organizations.ListTargetsForPolicyOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-//
-func (c *Organizations) ListTargetsForPolicyPages(input *ListTargetsForPolicyInput, fn func(*ListTargetsForPolicyOutput, bool) bool) error {
- return c.ListTargetsForPolicyPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// ListTargetsForPolicyPagesWithContext same as ListTargetsForPolicyPages 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 *Organizations) ListTargetsForPolicyPagesWithContext(ctx aws.Context, input *ListTargetsForPolicyInput, fn func(*ListTargetsForPolicyOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListTargetsForPolicyInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListTargetsForPolicyRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*ListTargetsForPolicyOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opMoveAccount = "MoveAccount"
+const opRegisterDelegatedAdministrator = "RegisterDelegatedAdministrator"
-// MoveAccountRequest generates a "aws/request.Request" representing the
-// client's request for the MoveAccount operation. The "output" return
+// RegisterDelegatedAdministratorRequest generates a "aws/request.Request" representing the
+// client's request for the RegisterDelegatedAdministrator operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See MoveAccount for more information on using the MoveAccount
+// See RegisterDelegatedAdministrator for more information on using the RegisterDelegatedAdministrator
// 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 MoveAccountRequest method.
-// req, resp := client.MoveAccountRequest(params)
+// // Example sending a request using the RegisterDelegatedAdministratorRequest method.
+// req, resp := client.RegisterDelegatedAdministratorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount
-func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *request.Request, output *MoveAccountOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RegisterDelegatedAdministrator
+func (c *Organizations) RegisterDelegatedAdministratorRequest(input *RegisterDelegatedAdministratorInput) (req *request.Request, output *RegisterDelegatedAdministratorOutput) {
op := &request.Operation{
- Name: opMoveAccount,
+ Name: opRegisterDelegatedAdministrator,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &MoveAccountInput{}
+ input = &RegisterDelegatedAdministratorInput{}
}
- output = &MoveAccountOutput{}
+ output = &RegisterDelegatedAdministratorOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// MoveAccount API operation for AWS Organizations.
+// RegisterDelegatedAdministrator API operation for AWS Organizations.
//
-// Moves an account from its current source parent root or organizational unit
-// (OU) to the specified destination parent root or OU.
+// Enables the specified member account to administer the Organizations features
+// of the specified AWS service. It grants read-only access to AWS Organizations
+// service data. The account still requires IAM permissions to access and administer
+// the AWS service.
+//
+// You can run this action only for AWS services that support this feature.
+// For a current list of services that support it, see the column Supports Delegated
+// Administrator in the table at AWS Services that you can use with AWS Organizations
+// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrated-services-list.html)
+// in the AWS Organizations User Guide.
//
// This operation can be called only from the organization's master account.
//
@@ -10079,7 +11340,7 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques
// the error.
//
// See the AWS API reference guide for AWS Organizations's
-// API operation MoveAccount for usage and error information.
+// API operation RegisterDelegatedAdministrator for usage and error information.
//
// Returned Error Types:
// * AccessDeniedException
@@ -10089,6 +11350,133 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques
// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
// in the IAM User Guide.
//
+// * AccountAlreadyRegisteredException
+// The specified account is already a delegated administrator for this AWS service.
+//
+// * AccountNotFoundException
+// We can't find an AWS account with the AccountId that you specified, or the
+// account whose credentials you used to make this request isn't a member of
+// an organization.
+//
+// * AWSOrganizationsNotInUseException
+// Your account isn't a member of an organization. To make this request, you
+// must use the credentials of an account that belongs to an organization.
+//
+// * ConcurrentModificationException
+// The target of the operation is currently being modified by a different request.
+// Try again later.
+//
+// * ConstraintViolationException
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
+//
+// Some of the reasons in the following list might not be applicable to this
+// specific API or operation:
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
+// from the organization that doesn't yet have enough information to exist
+// as a standalone account. This account requires you to first agree to the
+// AWS Customer Agreement. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
+// an account from the organization that doesn't yet have enough information
+// to exist as a standalone account. This account requires you to first complete
+// phone verification. Follow the steps at To leave an organization when
+// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
+// of accounts that you can create in one day.
+//
+// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
+// the number of accounts in an organization. If you need more accounts,
+// contact AWS Support (https://console.aws.amazon.com/support/home#/) to
+// request an increase in your limit. Or the number of invitations that you
+// tried to send would cause you to exceed the limit of accounts in your
+// organization. Send fewer invitations or contact AWS Support to request
+// an increase in the number of accounts. Deleted and closed accounts still
+// count toward your limit. If you get receive this exception when running
+// a command immediately after creating the organization, wait one hour and
+// try again. If after an hour it continues to fail with this error, contact
+// AWS Support (https://console.aws.amazon.com/support/home#/).
+//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
+// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
+// handshakes that you can send in one day.
+//
+// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
+// in this organization, you first must migrate the organization's master
+// account to the marketplace that corresponds to the master account's address.
+// For example, accounts with India addresses must be associated with the
+// AISPL marketplace. All accounts in an organization must be associated
+// with the same marketplace.
+//
+// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
+// must first provide contact a valid address and phone number for the master
+// account. Then try the operation again.
+//
+// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
+// master account must have an associated account in the AWS GovCloud (US-West)
+// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
+// in the AWS GovCloud User Guide.
+//
+// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
+// with this master account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
+// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
+// number of policies of a certain type that can be attached to an entity
+// at one time.
+//
+// * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed
+// on this resource.
+//
+// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
+// with this member account, you first must associate a valid payment instrument,
+// such as a credit card, with the account. Follow the steps at To leave
+// an organization when all required account information has not yet been
+// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
+// in the AWS Organizations User Guide.
+//
+// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
+//
+// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
+// too many levels deep.
+//
+// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
+// that requires the organization to be configured to support all features.
+// An organization that supports only consolidated billing features can't
+// perform this operation.
+//
+// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
+// that you can have in an organization.
+//
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
+// policies that you can have in an organization.
+//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -10104,8 +11492,6 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -10155,21 +11541,6 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
// between entities in the same root.
//
-// * SourceParentNotFoundException
-// We can't find a source root or OU with the ParentId that you specified.
-//
-// * DestinationParentNotFoundException
-// We can't find the destination container (a root or OU) with the ParentId
-// that you specified.
-//
-// * DuplicateAccountException
-// That account is already present in the specified destination.
-//
-// * AccountNotFoundException
-// We can't find an AWS account with the AccountId that you specified. Or the
-// account whose credentials you used to make this request isn't a member of
-// an organization.
-//
// * TooManyRequestsException
// You have sent too many requests in too short a period of time. The limit
// helps protect against denial-of-service attacks. Try again later.
@@ -10178,35 +11549,30 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques
// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
// in the AWS Organizations User Guide.
//
-// * ConcurrentModificationException
-// The target of the operation is currently being modified by a different request.
-// Try again later.
-//
-// * AWSOrganizationsNotInUseException
-// Your account isn't a member of an organization. To make this request, you
-// must use the credentials of an account that belongs to an organization.
-//
// * ServiceException
// AWS Organizations can't complete your request because of an internal service
// error. Try again later.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MoveAccount
-func (c *Organizations) MoveAccount(input *MoveAccountInput) (*MoveAccountOutput, error) {
- req, out := c.MoveAccountRequest(input)
+// * UnsupportedAPIEndpointException
+// This action isn't available in the current Region.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RegisterDelegatedAdministrator
+func (c *Organizations) RegisterDelegatedAdministrator(input *RegisterDelegatedAdministratorInput) (*RegisterDelegatedAdministratorOutput, error) {
+ req, out := c.RegisterDelegatedAdministratorRequest(input)
return out, req.Send()
}
-// MoveAccountWithContext is the same as MoveAccount with the addition of
+// RegisterDelegatedAdministratorWithContext is the same as RegisterDelegatedAdministrator with the addition of
// the ability to pass a context and additional request options.
//
-// See MoveAccount for details on how to use this API operation.
+// See RegisterDelegatedAdministrator 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 *Organizations) MoveAccountWithContext(ctx aws.Context, input *MoveAccountInput, opts ...request.Option) (*MoveAccountOutput, error) {
- req, out := c.MoveAccountRequest(input)
+func (c *Organizations) RegisterDelegatedAdministratorWithContext(ctx aws.Context, input *RegisterDelegatedAdministratorInput, opts ...request.Option) (*RegisterDelegatedAdministratorOutput, error) {
+ req, out := c.RegisterDelegatedAdministratorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
@@ -10271,15 +11637,15 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// You can remove an account from your organization only if the account is configured
// with the information required to operate as a standalone account. When you
// create an account in an organization using the AWS Organizations console,
-// API, or CLI, the information required of standalone accounts is not automatically
-// collected. For an account that you want to make standalone, you must accept
-// the end user license agreement (EULA). You must also choose a support plan,
+// API, or CLI commands, the information required of standalone accounts is
+// not automatically collected. For an account that you want to make standalone,
+// you must accept the end user license agreement (EULA), choose a support plan,
// provide and verify the required contact information, and provide a current
// payment method. AWS uses the payment method to charge for any billable (not
// free tier) AWS activity that occurs while the account isn't attached to an
// organization. To remove an account that doesn't yet have this information,
-// you must sign in as the member account. Then follow the steps at To leave
-// an organization when all required account information has not yet been provided
+// you must sign in as the member account and follow the steps at To leave an
+// organization when all required account information has not yet been provided
// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
@@ -10299,7 +11665,7 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// in the IAM User Guide.
//
// * AccountNotFoundException
-// We can't find an AWS account with the AccountId that you specified. Or the
+// We can't find an AWS account with the AccountId that you specified, or the
// account whose credentials you used to make this request isn't a member of
// an organization.
//
@@ -10312,11 +11678,12 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -10350,6 +11717,15 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -10376,6 +11752,10 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -10391,8 +11771,8 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -10405,13 +11785,8 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
-// policies that you can have in an organization.
-//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
+// policies that you can have in an organization.
//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
@@ -10428,8 +11803,6 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -10596,11 +11969,12 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
// We can't find a root, OU, or account with the TargetId that you specified.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -10634,6 +12008,15 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -10660,6 +12043,10 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -10675,8 +12062,8 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -10689,14 +12076,9 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -10712,8 +12094,6 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -10875,11 +12255,12 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
// We can't find a root, OU, or account with the TargetId that you specified.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -10913,6 +12294,15 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -10939,6 +12329,10 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -10954,8 +12348,8 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -10968,14 +12362,9 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * InvalidInputException
// The requested operation failed because you provided invalid values for one
// or more of the request parameters. This exception includes a reason that
@@ -10991,8 +12380,6 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -11167,8 +12554,6 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -11329,11 +12714,12 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
// Try again later.
//
// * ConstraintViolationException
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -11367,6 +12753,15 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -11393,6 +12788,10 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -11408,8 +12807,8 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -11422,14 +12821,9 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
-//
// * DuplicatePolicyException
// A policy with the same name already exists.
//
@@ -11448,8 +12842,6 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -11552,8 +12944,8 @@ func (c *Organizations) UpdatePolicyWithContext(ctx aws.Context, input *UpdatePo
// Your account isn't a member of an organization. To make this request, you
// must use the credentials of an account that belongs to an organization.
type AWSOrganizationsNotInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11570,17 +12962,17 @@ func (s AWSOrganizationsNotInUseException) GoString() string {
func newErrorAWSOrganizationsNotInUseException(v protocol.ResponseMetadata) error {
return &AWSOrganizationsNotInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AWSOrganizationsNotInUseException) Code() string {
+func (s *AWSOrganizationsNotInUseException) Code() string {
return "AWSOrganizationsNotInUseException"
}
// Message returns the exception's message.
-func (s AWSOrganizationsNotInUseException) Message() string {
+func (s *AWSOrganizationsNotInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11588,22 +12980,22 @@ func (s AWSOrganizationsNotInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AWSOrganizationsNotInUseException) OrigErr() error {
+func (s *AWSOrganizationsNotInUseException) OrigErr() error {
return nil
}
-func (s AWSOrganizationsNotInUseException) Error() string {
+func (s *AWSOrganizationsNotInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AWSOrganizationsNotInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AWSOrganizationsNotInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AWSOrganizationsNotInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AWSOrganizationsNotInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AcceptHandshakeInput struct {
@@ -11676,8 +13068,8 @@ func (s *AcceptHandshakeOutput) SetHandshake(v *Handshake) *AcceptHandshakeOutpu
// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
// in the IAM User Guide.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11694,17 +13086,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11712,30 +13104,30 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole
// for organizations.amazonaws.com permission so that AWS Organizations can
// create the required service-linked role. You don't have that permission.
type AccessDeniedForDependencyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -11754,17 +13146,17 @@ func (s AccessDeniedForDependencyException) GoString() string {
func newErrorAccessDeniedForDependencyException(v protocol.ResponseMetadata) error {
return &AccessDeniedForDependencyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedForDependencyException) Code() string {
+func (s *AccessDeniedForDependencyException) Code() string {
return "AccessDeniedForDependencyException"
}
// Message returns the exception's message.
-func (s AccessDeniedForDependencyException) Message() string {
+func (s *AccessDeniedForDependencyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11772,22 +13164,22 @@ func (s AccessDeniedForDependencyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedForDependencyException) OrigErr() error {
+func (s *AccessDeniedForDependencyException) OrigErr() error {
return nil
}
-func (s AccessDeniedForDependencyException) Error() string {
+func (s *AccessDeniedForDependencyException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedForDependencyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedForDependencyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedForDependencyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedForDependencyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about an AWS account that is a member of an organization.
@@ -11882,12 +13274,68 @@ func (s *Account) SetStatus(v string) *Account {
return s
}
-// We can't find an AWS account with the AccountId that you specified. Or the
+// The specified account is already a delegated administrator for this AWS service.
+type AccountAlreadyRegisteredException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccountAlreadyRegisteredException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccountAlreadyRegisteredException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccountAlreadyRegisteredException(v protocol.ResponseMetadata) error {
+ return &AccountAlreadyRegisteredException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccountAlreadyRegisteredException) Code() string {
+ return "AccountAlreadyRegisteredException"
+}
+
+// Message returns the exception's message.
+func (s *AccountAlreadyRegisteredException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccountAlreadyRegisteredException) OrigErr() error {
+ return nil
+}
+
+func (s *AccountAlreadyRegisteredException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccountAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccountAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// We can't find an AWS account with the AccountId that you specified, or the
// account whose credentials you used to make this request isn't a member of
// an organization.
type AccountNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11904,17 +13352,73 @@ func (s AccountNotFoundException) GoString() string {
func newErrorAccountNotFoundException(v protocol.ResponseMetadata) error {
return &AccountNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountNotFoundException) Code() string {
+func (s *AccountNotFoundException) Code() string {
return "AccountNotFoundException"
}
// Message returns the exception's message.
-func (s AccountNotFoundException) Message() string {
+func (s *AccountNotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccountNotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *AccountNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccountNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccountNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The specified account is not a delegated administrator for this AWS service.
+type AccountNotRegisteredException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccountNotRegisteredException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccountNotRegisteredException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccountNotRegisteredException(v protocol.ResponseMetadata) error {
+ return &AccountNotRegisteredException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccountNotRegisteredException) Code() string {
+ return "AccountNotRegisteredException"
+}
+
+// Message returns the exception's message.
+func (s *AccountNotRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11922,22 +13426,22 @@ func (s AccountNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountNotFoundException) OrigErr() error {
+func (s *AccountNotRegisteredException) OrigErr() error {
return nil
}
-func (s AccountNotFoundException) Error() string {
+func (s *AccountNotRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountNotRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountNotRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You can't invite an existing account to your organization until you verify
@@ -11945,8 +13449,8 @@ func (s AccountNotFoundException) RequestID() string {
// information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification)
// in the AWS Organizations User Guide.
type AccountOwnerNotVerifiedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -11963,17 +13467,17 @@ func (s AccountOwnerNotVerifiedException) GoString() string {
func newErrorAccountOwnerNotVerifiedException(v protocol.ResponseMetadata) error {
return &AccountOwnerNotVerifiedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccountOwnerNotVerifiedException) Code() string {
+func (s *AccountOwnerNotVerifiedException) Code() string {
return "AccountOwnerNotVerifiedException"
}
// Message returns the exception's message.
-func (s AccountOwnerNotVerifiedException) Message() string {
+func (s *AccountOwnerNotVerifiedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11981,29 +13485,29 @@ func (s AccountOwnerNotVerifiedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccountOwnerNotVerifiedException) OrigErr() error {
+func (s *AccountOwnerNotVerifiedException) OrigErr() error {
return nil
}
-func (s AccountOwnerNotVerifiedException) Error() string {
+func (s *AccountOwnerNotVerifiedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccountOwnerNotVerifiedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccountOwnerNotVerifiedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccountOwnerNotVerifiedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccountOwnerNotVerifiedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This account is already a member of an organization. An account can belong
// to only one organization at a time.
type AlreadyInOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12020,17 +13524,17 @@ func (s AlreadyInOrganizationException) GoString() string {
func newErrorAlreadyInOrganizationException(v protocol.ResponseMetadata) error {
return &AlreadyInOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyInOrganizationException) Code() string {
+func (s *AlreadyInOrganizationException) Code() string {
return "AlreadyInOrganizationException"
}
// Message returns the exception's message.
-func (s AlreadyInOrganizationException) Message() string {
+func (s *AlreadyInOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12038,22 +13542,22 @@ func (s AlreadyInOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyInOrganizationException) OrigErr() error {
+func (s *AlreadyInOrganizationException) OrigErr() error {
return nil
}
-func (s AlreadyInOrganizationException) Error() string {
+func (s *AlreadyInOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyInOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyInOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyInOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyInOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AttachPolicyInput struct {
@@ -12253,8 +13757,8 @@ func (s *Child) SetType(v string) *Child {
// We can't find an organizational unit (OU) or AWS account with the ChildId
// that you specified.
type ChildNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12271,17 +13775,17 @@ func (s ChildNotFoundException) GoString() string {
func newErrorChildNotFoundException(v protocol.ResponseMetadata) error {
return &ChildNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ChildNotFoundException) Code() string {
+func (s *ChildNotFoundException) Code() string {
return "ChildNotFoundException"
}
// Message returns the exception's message.
-func (s ChildNotFoundException) Message() string {
+func (s *ChildNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12289,29 +13793,29 @@ func (s ChildNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ChildNotFoundException) OrigErr() error {
+func (s *ChildNotFoundException) OrigErr() error {
return nil
}
-func (s ChildNotFoundException) Error() string {
+func (s *ChildNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ChildNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ChildNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ChildNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ChildNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target of the operation is currently being modified by a different request.
// Try again later.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12328,17 +13832,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12346,29 +13850,30 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
-// Performing this operation violates a minimum or maximum value limit. Examples
-// include attempting to remove the last service control policy (SCP) from an
-// OU or root, or attaching too many policies to an account, OU, or root. This
-// exception includes a reason that contains additional information about the
-// violated limit.
+// Performing this operation violates a minimum or maximum value limit. For
+// example, attempting to remove the last service control policy (SCP) from
+// an OU or root, inviting or creating too many accounts to the organization,
+// or attaching too many policies to an account, OU, or root. This exception
+// includes a reason that contains additional information about the violated
+// limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -12402,6 +13907,15 @@ func (s ConcurrentModificationException) RequestID() string {
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+// * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+// only a member account as a delegated administrator.
+//
+// * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+// you must first deregister this account as a delegated administrator.
+//
+// * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+// you must first deregister all delegated administrators for this service.
+//
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -12428,6 +13942,10 @@ func (s ConcurrentModificationException) RequestID() string {
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+// * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+// to register more delegated administrators than allowed for the service
+// principal.
+//
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -12443,8 +13961,8 @@ func (s ConcurrentModificationException) RequestID() string {
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
-// policy from an entity, which would cause the entity to have fewer than
-// the minimum number of policies of the required type.
+// policy from an entity that would cause the entity to have fewer than the
+// minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -12457,16 +13975,11 @@ func (s ConcurrentModificationException) RequestID() string {
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
-// * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
-//
-// * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
-// with the tag policy that’s in effect for the account. For more information,
-// see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
-// in the AWS Organizations User Guide.
type ConstraintViolationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -12485,17 +13998,17 @@ func (s ConstraintViolationException) GoString() string {
func newErrorConstraintViolationException(v protocol.ResponseMetadata) error {
return &ConstraintViolationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConstraintViolationException) Code() string {
+func (s *ConstraintViolationException) Code() string {
return "ConstraintViolationException"
}
// Message returns the exception's message.
-func (s ConstraintViolationException) Message() string {
+func (s *ConstraintViolationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12503,22 +14016,22 @@ func (s ConstraintViolationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConstraintViolationException) OrigErr() error {
+func (s *ConstraintViolationException) OrigErr() error {
return nil
}
-func (s ConstraintViolationException) Error() string {
+func (s *ConstraintViolationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConstraintViolationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConstraintViolationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConstraintViolationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConstraintViolationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateAccountInput struct {
@@ -12545,9 +14058,9 @@ type CreateAccountInput struct {
// Console (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate)
// in the AWS Billing and Cost Management User Guide.
//
- // If you don't specify this parameter, the value defaults to ALLOW. This value
- // allows IAM users and roles with the required permissions to access billing
- // information for the new account.
+ // If you don't specify this parameter, the value defaults to ALLOW, and IAM
+ // users and roles with the required permissions can access billing information
+ // for the new account.
IamUserAccessToBilling *string `type:"string" enum:"IAMUserAccessToBilling"`
// (Optional)
@@ -12561,11 +14074,15 @@ type CreateAccountInput struct {
// If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole.
//
// For more information about how to use this role to access the member account,
- // see Accessing and Administering the Member Accounts in Your Organization
- // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role)
- // in the AWS Organizations User Guide. Also see steps 2 and 3 in Tutorial:
- // Delegate Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html)
- // in the IAM User Guide.
+ // see the following links:
+ //
+ // * Accessing and Administering the Member Accounts in Your Organization
+ // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role)
+ // in the AWS Organizations User Guide
+ //
+ // * Steps 2 and 3 in Tutorial: Delegate Access Across AWS Accounts Using
+ // IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html)
+ // in the IAM User Guide
//
// The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate
// this parameter. The pattern can include uppercase letters, lowercase letters,
@@ -12696,7 +14213,7 @@ type CreateAccountStatus struct {
// you provided is not valid.
//
// * INTERNAL_FAILURE: The account could not be created because of an internal
- // failure. Try again later. If the problem persists, contact AWS Support.
+ // failure. Try again later. If the problem persists, contact Customer Support.
FailureReason *string `type:"string" enum:"CreateAccountFailureReason"`
// If the account was created successfully, the unique identifier (ID) of the
@@ -12776,11 +14293,11 @@ func (s *CreateAccountStatus) SetState(v string) *CreateAccountStatus {
return s
}
-// We can't find a create account request with the CreateAccountRequestId that
+// We can't find an create account request with the CreateAccountRequestId that
// you specified.
type CreateAccountStatusNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12797,17 +14314,17 @@ func (s CreateAccountStatusNotFoundException) GoString() string {
func newErrorCreateAccountStatusNotFoundException(v protocol.ResponseMetadata) error {
return &CreateAccountStatusNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CreateAccountStatusNotFoundException) Code() string {
+func (s *CreateAccountStatusNotFoundException) Code() string {
return "CreateAccountStatusNotFoundException"
}
// Message returns the exception's message.
-func (s CreateAccountStatusNotFoundException) Message() string {
+func (s *CreateAccountStatusNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12815,22 +14332,22 @@ func (s CreateAccountStatusNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CreateAccountStatusNotFoundException) OrigErr() error {
+func (s *CreateAccountStatusNotFoundException) OrigErr() error {
return nil
}
-func (s CreateAccountStatusNotFoundException) Error() string {
+func (s *CreateAccountStatusNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CreateAccountStatusNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CreateAccountStatusNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CreateAccountStatusNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CreateAccountStatusNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateGovCloudAccountInput struct {
@@ -12847,8 +14364,8 @@ type CreateGovCloudAccountInput struct {
// creation. You can't access the root user of the account or remove an account
// that was created with an invalid email address. Like all request parameters
// for CreateGovCloudAccount, the request for the email address for the AWS
- // GovCloud (US) account originates from the commercial Region. It does not
- // come from the AWS GovCloud (US) Region.
+ // GovCloud (US) account originates from the commercial Region, not from the
+ // AWS GovCloud (US) Region.
//
// Email is a required field
Email *string `min:"6" type:"string" required:"true" sensitive:"true"`
@@ -12878,8 +14395,8 @@ type CreateGovCloudAccountInput struct {
// For more information about how to use this role to access the member account,
// see Accessing and Administering the Member Accounts in Your Organization
// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role)
- // in the AWS Organizations User Guide. See also steps 2 and 3 in Tutorial:
- // Delegate Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html)
+ // in the AWS Organizations User Guide and steps 2 and 3 in Tutorial: Delegate
+ // Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html)
// in the IAM User Guide.
//
// The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate
@@ -12980,8 +14497,8 @@ type CreateOrganizationInput struct {
// in the AWS Organizations User Guide. The consolidated billing feature
// subset isn't available for organizations in the AWS GovCloud (US) Region.
//
- // * ALL: In addition to all the features that consolidated billing feature
- // set supports, the master account can also apply any policy type to any
+ // * ALL: In addition to all the features supported by the consolidated billing
+ // feature set, the master account can also apply any policy type to any
// member account in the organization. For more information, see All features
// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set-all)
// in the AWS Organizations User Guide.
@@ -13120,12 +14637,12 @@ func (s *CreateOrganizationalUnitOutput) SetOrganizationalUnit(v *Organizational
type CreatePolicyInput struct {
_ struct{} `type:"structure"`
- // The policy content to add to the new policy. For example, you could create
- // a service control policy (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
- // (SCP) that specifies the permissions that administrators in attached accounts
- // can delegate to their users, groups, and roles. The string for this SCP must
- // be JSON text. For more information about the SCP syntax, see Service Control
- // Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html)
+ // The policy content to add to the new policy. For example, if you create a
+ // service control policy (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
+ // (SCP), this string must be JSON text that specifies the permissions that
+ // admins in attached accounts can delegate to their users, groups, and roles.
+ // For more information about the SCP syntax, see Service Control Policy Syntax
+ // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html)
// in the AWS Organizations User Guide.
//
// Content is a required field
@@ -13147,6 +14664,9 @@ type CreatePolicyInput struct {
// The type of policy to create.
//
+ // In the current release, the only type of policy that you can create is a
+ // service control policy (SCP).
+ //
// Type is a required field
Type *string `type:"string" required:"true" enum:"PolicyType"`
}
@@ -13302,6 +14822,130 @@ func (s *DeclineHandshakeOutput) SetHandshake(v *Handshake) *DeclineHandshakeOut
return s
}
+// Contains information about the delegated administrator.
+type DelegatedAdministrator struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the delegated administrator's account.
+ Arn *string `type:"string"`
+
+ // The date when the account was made a delegated administrator.
+ DelegationEnabledDate *time.Time `type:"timestamp"`
+
+ // The email address that is associated with the delegated administrator's AWS
+ // account.
+ Email *string `min:"6" type:"string" sensitive:"true"`
+
+ // The unique identifier (ID) of the delegated administrator's account.
+ Id *string `type:"string"`
+
+ // The method by which the delegated administrator's account joined the organization.
+ JoinedMethod *string `type:"string" enum:"AccountJoinedMethod"`
+
+ // The date when the delegated administrator's account became a part of the
+ // organization.
+ JoinedTimestamp *time.Time `type:"timestamp"`
+
+ // The friendly name of the delegated administrator's account.
+ Name *string `min:"1" type:"string" sensitive:"true"`
+
+ // The status of the delegated administrator's account in the organization.
+ Status *string `type:"string" enum:"AccountStatus"`
+}
+
+// String returns the string representation
+func (s DelegatedAdministrator) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DelegatedAdministrator) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *DelegatedAdministrator) SetArn(v string) *DelegatedAdministrator {
+ s.Arn = &v
+ return s
+}
+
+// SetDelegationEnabledDate sets the DelegationEnabledDate field's value.
+func (s *DelegatedAdministrator) SetDelegationEnabledDate(v time.Time) *DelegatedAdministrator {
+ s.DelegationEnabledDate = &v
+ return s
+}
+
+// SetEmail sets the Email field's value.
+func (s *DelegatedAdministrator) SetEmail(v string) *DelegatedAdministrator {
+ s.Email = &v
+ return s
+}
+
+// SetId sets the Id field's value.
+func (s *DelegatedAdministrator) SetId(v string) *DelegatedAdministrator {
+ s.Id = &v
+ return s
+}
+
+// SetJoinedMethod sets the JoinedMethod field's value.
+func (s *DelegatedAdministrator) SetJoinedMethod(v string) *DelegatedAdministrator {
+ s.JoinedMethod = &v
+ return s
+}
+
+// SetJoinedTimestamp sets the JoinedTimestamp field's value.
+func (s *DelegatedAdministrator) SetJoinedTimestamp(v time.Time) *DelegatedAdministrator {
+ s.JoinedTimestamp = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *DelegatedAdministrator) SetName(v string) *DelegatedAdministrator {
+ s.Name = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *DelegatedAdministrator) SetStatus(v string) *DelegatedAdministrator {
+ s.Status = &v
+ return s
+}
+
+// Contains information about the AWS service for which the account is a delegated
+// administrator.
+type DelegatedService struct {
+ _ struct{} `type:"structure"`
+
+ // The date that the account became a delegated administrator for this service.
+ DelegationEnabledDate *time.Time `type:"timestamp"`
+
+ // The name of a service that can request an operation for the specified service.
+ // This is typically in the form of a URL, such as: servicename.amazonaws.com.
+ ServicePrincipal *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s DelegatedService) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DelegatedService) GoString() string {
+ return s.String()
+}
+
+// SetDelegationEnabledDate sets the DelegationEnabledDate field's value.
+func (s *DelegatedService) SetDelegationEnabledDate(v time.Time) *DelegatedService {
+ s.DelegationEnabledDate = &v
+ return s
+}
+
+// SetServicePrincipal sets the ServicePrincipal field's value.
+func (s *DelegatedService) SetServicePrincipal(v string) *DelegatedService {
+ s.ServicePrincipal = &v
+ return s
+}
+
type DeleteOrganizationInput struct {
_ struct{} `type:"structure"`
}
@@ -13368,55 +15012,125 @@ func (s *DeleteOrganizationalUnitInput) Validate() error {
return nil
}
-// SetOrganizationalUnitId sets the OrganizationalUnitId field's value.
-func (s *DeleteOrganizationalUnitInput) SetOrganizationalUnitId(v string) *DeleteOrganizationalUnitInput {
- s.OrganizationalUnitId = &v
+// SetOrganizationalUnitId sets the OrganizationalUnitId field's value.
+func (s *DeleteOrganizationalUnitInput) SetOrganizationalUnitId(v string) *DeleteOrganizationalUnitInput {
+ s.OrganizationalUnitId = &v
+ return s
+}
+
+type DeleteOrganizationalUnitOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteOrganizationalUnitOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteOrganizationalUnitOutput) GoString() string {
+ return s.String()
+}
+
+type DeletePolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier (ID) of the policy that you want to delete. You can
+ // get the ID from the ListPolicies or ListPoliciesForTarget operations.
+ //
+ // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string
+ // requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits,
+ // or the underscore character (_).
+ //
+ // PolicyId is a required field
+ PolicyId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeletePolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"}
+ if s.PolicyId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPolicyId sets the PolicyId field's value.
+func (s *DeletePolicyInput) SetPolicyId(v string) *DeletePolicyInput {
+ s.PolicyId = &v
return s
}
-type DeleteOrganizationalUnitOutput struct {
+type DeletePolicyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
-func (s DeleteOrganizationalUnitOutput) String() string {
+func (s DeletePolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeleteOrganizationalUnitOutput) GoString() string {
+func (s DeletePolicyOutput) GoString() string {
return s.String()
}
-type DeletePolicyInput struct {
+type DeregisterDelegatedAdministratorInput struct {
_ struct{} `type:"structure"`
- // The unique identifier (ID) of the policy that you want to delete. You can
- // get the ID from the ListPolicies or ListPoliciesForTarget operations.
+ // The account ID number of the member account in the organization that you
+ // want to deregister as a delegated administrator.
//
- // The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID string
- // requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits,
- // or the underscore character (_).
+ // AccountId is a required field
+ AccountId *string `type:"string" required:"true"`
+
+ // The service principal name of an AWS service for which the account is a delegated
+ // administrator.
//
- // PolicyId is a required field
- PolicyId *string `type:"string" required:"true"`
+ // Delegated administrator privileges are revoked for only the specified AWS
+ // service from the member account. If the specified service is the only service
+ // for which the member account is a delegated administrator, the operation
+ // also revokes Organizations read action permissions.
+ //
+ // ServicePrincipal is a required field
+ ServicePrincipal *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
-func (s DeletePolicyInput) String() string {
+func (s DeregisterDelegatedAdministratorInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeletePolicyInput) GoString() string {
+func (s DeregisterDelegatedAdministratorInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeletePolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"}
- if s.PolicyId == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyId"))
+func (s *DeregisterDelegatedAdministratorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeregisterDelegatedAdministratorInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.ServicePrincipal == nil {
+ invalidParams.Add(request.NewErrParamRequired("ServicePrincipal"))
+ }
+ if s.ServicePrincipal != nil && len(*s.ServicePrincipal) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ServicePrincipal", 1))
}
if invalidParams.Len() > 0 {
@@ -13425,23 +15139,29 @@ func (s *DeletePolicyInput) Validate() error {
return nil
}
-// SetPolicyId sets the PolicyId field's value.
-func (s *DeletePolicyInput) SetPolicyId(v string) *DeletePolicyInput {
- s.PolicyId = &v
+// SetAccountId sets the AccountId field's value.
+func (s *DeregisterDelegatedAdministratorInput) SetAccountId(v string) *DeregisterDelegatedAdministratorInput {
+ s.AccountId = &v
return s
}
-type DeletePolicyOutput struct {
+// SetServicePrincipal sets the ServicePrincipal field's value.
+func (s *DeregisterDelegatedAdministratorInput) SetServicePrincipal(v string) *DeregisterDelegatedAdministratorInput {
+ s.ServicePrincipal = &v
+ return s
+}
+
+type DeregisterDelegatedAdministratorOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
-func (s DeletePolicyOutput) String() string {
+func (s DeregisterDelegatedAdministratorOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DeletePolicyOutput) GoString() string {
+func (s DeregisterDelegatedAdministratorOutput) GoString() string {
return s.String()
}
@@ -13888,8 +15608,8 @@ func (s *DescribePolicyOutput) SetPolicy(v *Policy) *DescribePolicyOutput {
// We can't find the destination container (a root or OU) with the ParentId
// that you specified.
type DestinationParentNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -13906,17 +15626,17 @@ func (s DestinationParentNotFoundException) GoString() string {
func newErrorDestinationParentNotFoundException(v protocol.ResponseMetadata) error {
return &DestinationParentNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DestinationParentNotFoundException) Code() string {
+func (s *DestinationParentNotFoundException) Code() string {
return "DestinationParentNotFoundException"
}
// Message returns the exception's message.
-func (s DestinationParentNotFoundException) Message() string {
+func (s *DestinationParentNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13924,22 +15644,22 @@ func (s DestinationParentNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DestinationParentNotFoundException) OrigErr() error {
+func (s *DestinationParentNotFoundException) OrigErr() error {
return nil
}
-func (s DestinationParentNotFoundException) Error() string {
+func (s *DestinationParentNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DestinationParentNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DestinationParentNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DestinationParentNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DestinationParentNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DetachPolicyInput struct {
@@ -14166,8 +15886,8 @@ func (s *DisablePolicyTypeOutput) SetRoot(v *Root) *DisablePolicyTypeOutput {
// That account is already present in the specified destination.
type DuplicateAccountException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14184,17 +15904,17 @@ func (s DuplicateAccountException) GoString() string {
func newErrorDuplicateAccountException(v protocol.ResponseMetadata) error {
return &DuplicateAccountException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateAccountException) Code() string {
+func (s *DuplicateAccountException) Code() string {
return "DuplicateAccountException"
}
// Message returns the exception's message.
-func (s DuplicateAccountException) Message() string {
+func (s *DuplicateAccountException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14202,22 +15922,22 @@ func (s DuplicateAccountException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateAccountException) OrigErr() error {
+func (s *DuplicateAccountException) OrigErr() error {
return nil
}
-func (s DuplicateAccountException) Error() string {
+func (s *DuplicateAccountException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateAccountException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateAccountException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateAccountException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateAccountException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A handshake with the same action and target already exists. For example,
@@ -14226,8 +15946,8 @@ func (s DuplicateAccountException) RequestID() string {
// to resend an invitation to an account, ensure that existing handshakes that
// might be considered duplicates are canceled or declined.
type DuplicateHandshakeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14244,17 +15964,17 @@ func (s DuplicateHandshakeException) GoString() string {
func newErrorDuplicateHandshakeException(v protocol.ResponseMetadata) error {
return &DuplicateHandshakeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateHandshakeException) Code() string {
+func (s *DuplicateHandshakeException) Code() string {
return "DuplicateHandshakeException"
}
// Message returns the exception's message.
-func (s DuplicateHandshakeException) Message() string {
+func (s *DuplicateHandshakeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14262,28 +15982,28 @@ func (s DuplicateHandshakeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateHandshakeException) OrigErr() error {
+func (s *DuplicateHandshakeException) OrigErr() error {
return nil
}
-func (s DuplicateHandshakeException) Error() string {
+func (s *DuplicateHandshakeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateHandshakeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateHandshakeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateHandshakeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateHandshakeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An OU with the same name already exists.
type DuplicateOrganizationalUnitException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14300,17 +16020,17 @@ func (s DuplicateOrganizationalUnitException) GoString() string {
func newErrorDuplicateOrganizationalUnitException(v protocol.ResponseMetadata) error {
return &DuplicateOrganizationalUnitException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateOrganizationalUnitException) Code() string {
+func (s *DuplicateOrganizationalUnitException) Code() string {
return "DuplicateOrganizationalUnitException"
}
// Message returns the exception's message.
-func (s DuplicateOrganizationalUnitException) Message() string {
+func (s *DuplicateOrganizationalUnitException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14318,28 +16038,28 @@ func (s DuplicateOrganizationalUnitException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateOrganizationalUnitException) OrigErr() error {
+func (s *DuplicateOrganizationalUnitException) OrigErr() error {
return nil
}
-func (s DuplicateOrganizationalUnitException) Error() string {
+func (s *DuplicateOrganizationalUnitException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateOrganizationalUnitException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateOrganizationalUnitException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateOrganizationalUnitException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateOrganizationalUnitException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The selected policy is already attached to the specified target.
type DuplicatePolicyAttachmentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14356,17 +16076,17 @@ func (s DuplicatePolicyAttachmentException) GoString() string {
func newErrorDuplicatePolicyAttachmentException(v protocol.ResponseMetadata) error {
return &DuplicatePolicyAttachmentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicatePolicyAttachmentException) Code() string {
+func (s *DuplicatePolicyAttachmentException) Code() string {
return "DuplicatePolicyAttachmentException"
}
// Message returns the exception's message.
-func (s DuplicatePolicyAttachmentException) Message() string {
+func (s *DuplicatePolicyAttachmentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14374,28 +16094,28 @@ func (s DuplicatePolicyAttachmentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicatePolicyAttachmentException) OrigErr() error {
+func (s *DuplicatePolicyAttachmentException) OrigErr() error {
return nil
}
-func (s DuplicatePolicyAttachmentException) Error() string {
+func (s *DuplicatePolicyAttachmentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicatePolicyAttachmentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicatePolicyAttachmentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicatePolicyAttachmentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicatePolicyAttachmentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A policy with the same name already exists.
type DuplicatePolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14412,17 +16132,17 @@ func (s DuplicatePolicyException) GoString() string {
func newErrorDuplicatePolicyException(v protocol.ResponseMetadata) error {
return &DuplicatePolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicatePolicyException) Code() string {
+func (s *DuplicatePolicyException) Code() string {
return "DuplicatePolicyException"
}
// Message returns the exception's message.
-func (s DuplicatePolicyException) Message() string {
+func (s *DuplicatePolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14430,22 +16150,22 @@ func (s DuplicatePolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicatePolicyException) OrigErr() error {
+func (s *DuplicatePolicyException) OrigErr() error {
return nil
}
-func (s DuplicatePolicyException) Error() string {
+func (s *DuplicatePolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicatePolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicatePolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicatePolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicatePolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains rules to be applied to the affected accounts. The effective policy
@@ -14506,8 +16226,8 @@ func (s *EffectivePolicy) SetTargetId(v string) *EffectivePolicy {
// policy of this type. Contact the administrator of your organization about
// attaching a policy of this type to the account.
type EffectivePolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14524,17 +16244,17 @@ func (s EffectivePolicyNotFoundException) GoString() string {
func newErrorEffectivePolicyNotFoundException(v protocol.ResponseMetadata) error {
return &EffectivePolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EffectivePolicyNotFoundException) Code() string {
+func (s *EffectivePolicyNotFoundException) Code() string {
return "EffectivePolicyNotFoundException"
}
// Message returns the exception's message.
-func (s EffectivePolicyNotFoundException) Message() string {
+func (s *EffectivePolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14542,22 +16262,22 @@ func (s EffectivePolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EffectivePolicyNotFoundException) OrigErr() error {
+func (s *EffectivePolicyNotFoundException) OrigErr() error {
return nil
}
-func (s EffectivePolicyNotFoundException) Error() string {
+func (s *EffectivePolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EffectivePolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EffectivePolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EffectivePolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EffectivePolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type EnableAWSServiceAccessInput struct {
@@ -14734,8 +16454,8 @@ func (s *EnablePolicyTypeOutput) SetRoot(v *Root) *EnablePolicyTypeOutput {
return s
}
-// A structure that contains details of a service principal that is enabled
-// to integrate with AWS Organizations.
+// A structure that contains details of a service principal that represents
+// an AWS service that is enabled to integrate with AWS Organizations.
type EnabledServicePrincipal struct {
_ struct{} `type:"structure"`
@@ -14775,8 +16495,8 @@ func (s *EnabledServicePrincipal) SetServicePrincipal(v string) *EnabledServiceP
// If after one hour you continue to receive this error, contact AWS Support
// (https://console.aws.amazon.com/support/home#/).
type FinalizingOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14793,17 +16513,17 @@ func (s FinalizingOrganizationException) GoString() string {
func newErrorFinalizingOrganizationException(v protocol.ResponseMetadata) error {
return &FinalizingOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FinalizingOrganizationException) Code() string {
+func (s *FinalizingOrganizationException) Code() string {
return "FinalizingOrganizationException"
}
// Message returns the exception's message.
-func (s FinalizingOrganizationException) Message() string {
+func (s *FinalizingOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14811,32 +16531,32 @@ func (s FinalizingOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FinalizingOrganizationException) OrigErr() error {
+func (s *FinalizingOrganizationException) OrigErr() error {
return nil
}
-func (s FinalizingOrganizationException) Error() string {
+func (s *FinalizingOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FinalizingOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FinalizingOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FinalizingOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FinalizingOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information that must be exchanged to securely establish a relationship
-// between two accounts (an originator and a recipient). For example, assume
-// that a master account (the originator) invites another account (the recipient)
-// to join its organization. In that case, the two accounts exchange information
-// as a series of handshake requests and responses.
+// between two accounts (an originator and a recipient). For example, when a
+// master account (the originator) invites another account (the recipient) to
+// join its organization, the two accounts exchange information as a series
+// of handshake requests and responses.
//
// Note: Handshakes that are CANCELED, ACCEPTED, or DECLINED show up in lists
-// for only 30 days after entering that state. After that, they are deleted.
+// for only 30 days after entering that state After that they are deleted.
type Handshake struct {
_ struct{} `type:"structure"`
@@ -14974,8 +16694,8 @@ func (s *Handshake) SetState(v string) *Handshake {
// The specified handshake is already in the requested state. For example, you
// can't accept a handshake that was already accepted.
type HandshakeAlreadyInStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14992,17 +16712,17 @@ func (s HandshakeAlreadyInStateException) GoString() string {
func newErrorHandshakeAlreadyInStateException(v protocol.ResponseMetadata) error {
return &HandshakeAlreadyInStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s HandshakeAlreadyInStateException) Code() string {
+func (s *HandshakeAlreadyInStateException) Code() string {
return "HandshakeAlreadyInStateException"
}
// Message returns the exception's message.
-func (s HandshakeAlreadyInStateException) Message() string {
+func (s *HandshakeAlreadyInStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15010,22 +16730,22 @@ func (s HandshakeAlreadyInStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s HandshakeAlreadyInStateException) OrigErr() error {
+func (s *HandshakeAlreadyInStateException) OrigErr() error {
return nil
}
-func (s HandshakeAlreadyInStateException) Error() string {
+func (s *HandshakeAlreadyInStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s HandshakeAlreadyInStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *HandshakeAlreadyInStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s HandshakeAlreadyInStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *HandshakeAlreadyInStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation would violate the constraint identified in the reason
@@ -15067,8 +16787,8 @@ func (s HandshakeAlreadyInStateException) RequestID() string {
// account that doesn't have a payment instrument, such as a credit card,
// associated with it.
type HandshakeConstraintViolationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15087,17 +16807,17 @@ func (s HandshakeConstraintViolationException) GoString() string {
func newErrorHandshakeConstraintViolationException(v protocol.ResponseMetadata) error {
return &HandshakeConstraintViolationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s HandshakeConstraintViolationException) Code() string {
+func (s *HandshakeConstraintViolationException) Code() string {
return "HandshakeConstraintViolationException"
}
// Message returns the exception's message.
-func (s HandshakeConstraintViolationException) Message() string {
+func (s *HandshakeConstraintViolationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15105,22 +16825,22 @@ func (s HandshakeConstraintViolationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s HandshakeConstraintViolationException) OrigErr() error {
+func (s *HandshakeConstraintViolationException) OrigErr() error {
return nil
}
-func (s HandshakeConstraintViolationException) Error() string {
+func (s *HandshakeConstraintViolationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s HandshakeConstraintViolationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *HandshakeConstraintViolationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s HandshakeConstraintViolationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *HandshakeConstraintViolationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the criteria that are used to select the handshakes for the operation.
@@ -15166,8 +16886,8 @@ func (s *HandshakeFilter) SetParentHandshakeId(v string) *HandshakeFilter {
// We can't find a handshake with the HandshakeId that you specified.
type HandshakeNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -15184,17 +16904,17 @@ func (s HandshakeNotFoundException) GoString() string {
func newErrorHandshakeNotFoundException(v protocol.ResponseMetadata) error {
return &HandshakeNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s HandshakeNotFoundException) Code() string {
+func (s *HandshakeNotFoundException) Code() string {
return "HandshakeNotFoundException"
}
// Message returns the exception's message.
-func (s HandshakeNotFoundException) Message() string {
+func (s *HandshakeNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15202,22 +16922,22 @@ func (s HandshakeNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s HandshakeNotFoundException) OrigErr() error {
+func (s *HandshakeNotFoundException) OrigErr() error {
return nil
}
-func (s HandshakeNotFoundException) Error() string {
+func (s *HandshakeNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s HandshakeNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *HandshakeNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s HandshakeNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *HandshakeNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Identifies a participant in a handshake.
@@ -15343,8 +17063,8 @@ func (s *HandshakeResource) SetValue(v string) *HandshakeResource {
// example, you can't cancel a handshake that was already accepted or accept
// a handshake that was already declined.
type InvalidHandshakeTransitionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -15361,17 +17081,17 @@ func (s InvalidHandshakeTransitionException) GoString() string {
func newErrorInvalidHandshakeTransitionException(v protocol.ResponseMetadata) error {
return &InvalidHandshakeTransitionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidHandshakeTransitionException) Code() string {
+func (s *InvalidHandshakeTransitionException) Code() string {
return "InvalidHandshakeTransitionException"
}
// Message returns the exception's message.
-func (s InvalidHandshakeTransitionException) Message() string {
+func (s *InvalidHandshakeTransitionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15379,22 +17099,22 @@ func (s InvalidHandshakeTransitionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidHandshakeTransitionException) OrigErr() error {
+func (s *InvalidHandshakeTransitionException) OrigErr() error {
return nil
}
-func (s InvalidHandshakeTransitionException) Error() string {
+func (s *InvalidHandshakeTransitionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidHandshakeTransitionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidHandshakeTransitionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidHandshakeTransitionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidHandshakeTransitionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation failed because you provided invalid values for one
@@ -15411,8 +17131,6 @@ func (s InvalidHandshakeTransitionException) RequestID() string {
//
// * INVALID_ENUM: You specified an invalid value.
//
-// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
-//
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -15462,8 +17180,8 @@ func (s InvalidHandshakeTransitionException) RequestID() string {
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
// between entities in the same root.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15482,17 +17200,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15500,22 +17218,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type InviteAccountToOrganizationInput struct {
@@ -15640,21 +17358,21 @@ func (s LeaveOrganizationOutput) GoString() string {
type ListAWSServiceAccessForOrganizationInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -15701,11 +17419,10 @@ type ListAWSServiceAccessForOrganizationOutput struct {
// and the date that it was enabled for integration with AWS Organizations.
EnabledServicePrincipals []*EnabledServicePrincipal `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -15734,21 +17451,21 @@ func (s *ListAWSServiceAccessForOrganizationOutput) SetNextToken(v string) *List
type ListAccountsForParentInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The unique identifier (ID) for the parent root or organization unit (OU)
@@ -15808,11 +17525,10 @@ type ListAccountsForParentOutput struct {
// A list of the accounts in the specified root or OU.
Accounts []*Account `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -15841,21 +17557,21 @@ func (s *ListAccountsForParentOutput) SetNextToken(v string) *ListAccountsForPar
type ListAccountsInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -15900,11 +17616,10 @@ type ListAccountsOutput struct {
// A list of objects in the organization.
Accounts []*Account `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -15938,21 +17653,21 @@ type ListChildrenInput struct {
// ChildType is a required field
ChildType *string `type:"string" required:"true" enum:"ChildType"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The unique identifier (ID) for the parent root or OU whose children you want
@@ -16032,11 +17747,10 @@ type ListChildrenOutput struct {
// The list of children of the specified parent container.
Children []*Child `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -16065,21 +17779,21 @@ func (s *ListChildrenOutput) SetNextToken(v string) *ListChildrenOutput {
type ListCreateAccountStatusInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// A list of one or more states that you want included in the response. If this
@@ -16136,11 +17850,10 @@ type ListCreateAccountStatusOutput struct {
// has been successfully created.
CreateAccountStatuses []*CreateAccountStatus `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -16166,32 +17879,244 @@ func (s *ListCreateAccountStatusOutput) SetNextToken(v string) *ListCreateAccoun
return s
}
+type ListDelegatedAdministratorsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
+ NextToken *string `type:"string"`
+
+ // Specifies a service principal name. If specified, then the operation lists
+ // the delegated administrators only for the specified service.
+ //
+ // If you don't specify a service principal, the operation lists all delegated
+ // administrators for all services in your organization.
+ ServicePrincipal *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListDelegatedAdministratorsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDelegatedAdministratorsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListDelegatedAdministratorsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListDelegatedAdministratorsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.ServicePrincipal != nil && len(*s.ServicePrincipal) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ServicePrincipal", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListDelegatedAdministratorsInput) SetMaxResults(v int64) *ListDelegatedAdministratorsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDelegatedAdministratorsInput) SetNextToken(v string) *ListDelegatedAdministratorsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetServicePrincipal sets the ServicePrincipal field's value.
+func (s *ListDelegatedAdministratorsInput) SetServicePrincipal(v string) *ListDelegatedAdministratorsInput {
+ s.ServicePrincipal = &v
+ return s
+}
+
+type ListDelegatedAdministratorsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The list of delegated administrators in your organization.
+ DelegatedAdministrators []*DelegatedAdministrator `type:"list"`
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListDelegatedAdministratorsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDelegatedAdministratorsOutput) GoString() string {
+ return s.String()
+}
+
+// SetDelegatedAdministrators sets the DelegatedAdministrators field's value.
+func (s *ListDelegatedAdministratorsOutput) SetDelegatedAdministrators(v []*DelegatedAdministrator) *ListDelegatedAdministratorsOutput {
+ s.DelegatedAdministrators = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDelegatedAdministratorsOutput) SetNextToken(v string) *ListDelegatedAdministratorsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListDelegatedServicesForAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The account ID number of a delegated administrator account in the organization.
+ //
+ // AccountId is a required field
+ AccountId *string `type:"string" required:"true"`
+
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListDelegatedServicesForAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDelegatedServicesForAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListDelegatedServicesForAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListDelegatedServicesForAccountInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *ListDelegatedServicesForAccountInput) SetAccountId(v string) *ListDelegatedServicesForAccountInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListDelegatedServicesForAccountInput) SetMaxResults(v int64) *ListDelegatedServicesForAccountInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDelegatedServicesForAccountInput) SetNextToken(v string) *ListDelegatedServicesForAccountInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListDelegatedServicesForAccountOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The services for which the account is a delegated administrator.
+ DelegatedServices []*DelegatedService `type:"list"`
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
+ NextToken *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListDelegatedServicesForAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDelegatedServicesForAccountOutput) GoString() string {
+ return s.String()
+}
+
+// SetDelegatedServices sets the DelegatedServices field's value.
+func (s *ListDelegatedServicesForAccountOutput) SetDelegatedServices(v []*DelegatedService) *ListDelegatedServicesForAccountOutput {
+ s.DelegatedServices = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDelegatedServicesForAccountOutput) SetNextToken(v string) *ListDelegatedServicesForAccountOutput {
+ s.NextToken = &v
+ return s
+}
+
type ListHandshakesForAccountInput struct {
_ struct{} `type:"structure"`
// Filters the handshakes that you want included in the response. The default
// is all types. Use the ActionType element to limit the output to only a specified
// type, such as INVITE, ENABLE_ALL_FEATURES, or APPROVE_ALL_FEATURES. Alternatively,
- // you can specify the ENABLE_ALL_FEATURES handshake, which generates a separate
- // child handshake for each member account. When you do specify ParentHandshakeId
- // to see only the handshakes that were generated by that parent request.
+ // for the ENABLE_ALL_FEATURES handshake that generates a separate child handshake
+ // for each member account, you can specify ParentHandshakeId to see only the
+ // handshakes that were generated by that parent request.
Filter *HandshakeFilter `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -16243,11 +18168,10 @@ type ListHandshakesForAccountOutput struct {
// is associated with the specified account.
Handshakes []*Handshake `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -16279,26 +18203,26 @@ type ListHandshakesForOrganizationInput struct {
// A filter of the handshakes that you want included in the response. The default
// is all types. Use the ActionType element to limit the output to only a specified
// type, such as INVITE, ENABLE-ALL-FEATURES, or APPROVE-ALL-FEATURES. Alternatively,
- // you can specify the ENABLE-ALL-FEATURES handshake, which generates a separate
- // child handshake for each member account. When you do, specify the ParentHandshakeId
- // to see only the handshakes that were generated by that parent request.
+ // for the ENABLE-ALL-FEATURES handshake that generates a separate child handshake
+ // for each member account, you can specify the ParentHandshakeId to see only
+ // the handshakes that were generated by that parent request.
Filter *HandshakeFilter `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -16350,11 +18274,10 @@ type ListHandshakesForOrganizationOutput struct {
// are associated with an organization.
Handshakes []*Handshake `type:"list"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
}
@@ -16383,21 +18306,21 @@ func (s *ListHandshakesForOrganizationOutput) SetNextToken(v string) *ListHandsh
type ListOrganizationalUnitsForParentInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The unique identifier (ID) of the root or OU whose child OUs you want to
@@ -16465,11 +18388,10 @@ func (s *ListOrganizationalUnitsForParentInput) SetParentId(v string) *ListOrgan
type ListOrganizationalUnitsForParentOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// A list of the OUs in the specified root or parent OU.
@@ -16517,21 +18439,21 @@ type ListParentsInput struct {
// ChildId is a required field
ChildId *string `type:"string" required:"true"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -16582,11 +18504,10 @@ func (s *ListParentsInput) SetNextToken(v string) *ListParentsInput {
type ListParentsOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// A list of parents for the specified child account or OU.
@@ -16623,21 +18544,21 @@ type ListPoliciesForTargetInput struct {
// Filter is a required field
Filter *string `type:"string" required:"true" enum:"PolicyType"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The unique identifier (ID) of the root, organizational unit, or account whose
@@ -16716,11 +18637,10 @@ func (s *ListPoliciesForTargetInput) SetTargetId(v string) *ListPoliciesForTarge
type ListPoliciesForTargetOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// The list of policies that match the criteria in the request.
@@ -16757,21 +18677,21 @@ type ListPoliciesInput struct {
// Filter is a required field
Filter *string `type:"string" required:"true" enum:"PolicyType"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -16822,11 +18742,10 @@ func (s *ListPoliciesInput) SetNextToken(v string) *ListPoliciesInput {
type ListPoliciesOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// A list of policies that match the filter criteria in the request. The output
@@ -16860,21 +18779,21 @@ func (s *ListPoliciesOutput) SetPolicies(v []*PolicySummary) *ListPoliciesOutput
type ListRootsInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
}
@@ -16916,11 +18835,10 @@ func (s *ListRootsInput) SetNextToken(v string) *ListRootsInput {
type ListRootsOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// A list of roots that are defined in an organization.
@@ -16952,10 +18870,10 @@ func (s *ListRootsOutput) SetRoots(v []*Root) *ListRootsOutput {
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The ID of the resource that you want to retrieve tags for.
@@ -17002,11 +18920,10 @@ func (s *ListTagsForResourceInput) SetResourceId(v string) *ListTagsForResourceI
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// The tags that are assigned to the resource.
@@ -17038,21 +18955,21 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
type ListTargetsForPolicyInput struct {
_ struct{} `type:"structure"`
- // (Optional) Use this to limit the number of results you want included per
- // page in the response. If you do not include this parameter, it defaults to
- // a value that is specific to the operation. If additional items exist beyond
- // the maximum you specify, the NextToken response element is present and has
- // a value (is not null). Include that value as the NextToken request parameter
- // in the next call to the operation to get the next part of the results. Note
- // that Organizations might return fewer results than the maximum even when
- // there are more results available. You should check NextToken after every
- // operation to ensure that you receive all of the results.
+ // The total number of results that you want included on each page of the response.
+ // If you do not include this parameter, it defaults to a value that is specific
+ // to the operation. If additional items exist beyond the maximum you specify,
+ // the NextToken response element is present and has a value (is not null).
+ // Include that value as the NextToken request parameter in the next call to
+ // the operation to get the next part of the results. Note that Organizations
+ // might return fewer results than the maximum even when there are more results
+ // available. You should check NextToken after every operation to ensure that
+ // you receive all of the results.
MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter if you receive a NextToken response in a previous request
- // that indicates that there is more output available. Set it to the value of
- // the previous call's NextToken response to indicate where the output should
- // continue from.
+ // The parameter for receiving additional results if you receive a NextToken
+ // response in a previous request. A NextToken response indicates that more
+ // output is available. Set this parameter to the value of the previous call's
+ // NextToken response to indicate where the output should continue from.
NextToken *string `type:"string"`
// The unique identifier (ID) of the policy whose attachments you want to know.
@@ -17112,11 +19029,10 @@ func (s *ListTargetsForPolicyInput) SetPolicyId(v string) *ListTargetsForPolicyI
type ListTargetsForPolicyOutput struct {
_ struct{} `type:"structure"`
- // If present, this value indicates that there is more output available than
- // is included in the current response. Use this value in the NextToken request
- // parameter in a subsequent call to the operation to get the next part of the
- // output. You should repeat this until the NextToken response element comes
- // back as null.
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a
+ // subsequent call to the operation to get the next part of the output. You
+ // should repeat this until the NextToken response element comes back as null.
NextToken *string `type:"string"`
// A list of structures, each of which contains details about one of the entities
@@ -17151,8 +19067,8 @@ func (s *ListTargetsForPolicyOutput) SetTargets(v []*PolicyTargetSummary) *ListT
// service control policy syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html)
// in the AWS Organizations User Guide.
type MalformedPolicyDocumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17169,17 +19085,17 @@ func (s MalformedPolicyDocumentException) GoString() string {
func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error {
return &MalformedPolicyDocumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedPolicyDocumentException) Code() string {
+func (s *MalformedPolicyDocumentException) Code() string {
return "MalformedPolicyDocumentException"
}
// Message returns the exception's message.
-func (s MalformedPolicyDocumentException) Message() string {
+func (s *MalformedPolicyDocumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17187,30 +19103,30 @@ func (s MalformedPolicyDocumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedPolicyDocumentException) OrigErr() error {
+func (s *MalformedPolicyDocumentException) OrigErr() error {
return nil
}
-func (s MalformedPolicyDocumentException) Error() string {
+func (s *MalformedPolicyDocumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedPolicyDocumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedPolicyDocumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedPolicyDocumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedPolicyDocumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You can't remove a master account from an organization. If you want the master
// account to become a member account in another organization, you must first
// delete the current organization of the master account.
type MasterCannotLeaveOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17227,17 +19143,17 @@ func (s MasterCannotLeaveOrganizationException) GoString() string {
func newErrorMasterCannotLeaveOrganizationException(v protocol.ResponseMetadata) error {
return &MasterCannotLeaveOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MasterCannotLeaveOrganizationException) Code() string {
+func (s *MasterCannotLeaveOrganizationException) Code() string {
return "MasterCannotLeaveOrganizationException"
}
// Message returns the exception's message.
-func (s MasterCannotLeaveOrganizationException) Message() string {
+func (s *MasterCannotLeaveOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17245,22 +19161,22 @@ func (s MasterCannotLeaveOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MasterCannotLeaveOrganizationException) OrigErr() error {
+func (s *MasterCannotLeaveOrganizationException) OrigErr() error {
return nil
}
-func (s MasterCannotLeaveOrganizationException) Error() string {
+func (s *MasterCannotLeaveOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MasterCannotLeaveOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MasterCannotLeaveOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MasterCannotLeaveOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MasterCannotLeaveOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type MoveAccountInput struct {
@@ -17373,7 +19289,7 @@ func (s MoveAccountOutput) GoString() string {
// Contains details about an organization. An organization is a collection of
// accounts that are centrally managed together using consolidated billing,
// organized hierarchically with organizational units (OUs), and controlled
-// with policies.
+// with policies .
type Organization struct {
_ struct{} `type:"structure"`
@@ -17482,8 +19398,8 @@ func (s *Organization) SetMasterAccountId(v string) *Organization {
// The organization isn't empty. To delete an organization, you must first remove
// all accounts except the master account, delete all OUs, and delete all policies.
type OrganizationNotEmptyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17500,17 +19416,17 @@ func (s OrganizationNotEmptyException) GoString() string {
func newErrorOrganizationNotEmptyException(v protocol.ResponseMetadata) error {
return &OrganizationNotEmptyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationNotEmptyException) Code() string {
+func (s *OrganizationNotEmptyException) Code() string {
return "OrganizationNotEmptyException"
}
// Message returns the exception's message.
-func (s OrganizationNotEmptyException) Message() string {
+func (s *OrganizationNotEmptyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17518,22 +19434,22 @@ func (s OrganizationNotEmptyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationNotEmptyException) OrigErr() error {
+func (s *OrganizationNotEmptyException) OrigErr() error {
return nil
}
-func (s OrganizationNotEmptyException) Error() string {
+func (s *OrganizationNotEmptyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationNotEmptyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationNotEmptyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationNotEmptyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationNotEmptyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an organizational unit (OU). An OU is a container
@@ -17596,8 +19512,8 @@ func (s *OrganizationalUnit) SetName(v string) *OrganizationalUnit {
// The specified OU is not empty. Move all accounts to another root or to other
// OUs, remove all child OUs, and try the operation again.
type OrganizationalUnitNotEmptyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17614,17 +19530,17 @@ func (s OrganizationalUnitNotEmptyException) GoString() string {
func newErrorOrganizationalUnitNotEmptyException(v protocol.ResponseMetadata) error {
return &OrganizationalUnitNotEmptyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationalUnitNotEmptyException) Code() string {
+func (s *OrganizationalUnitNotEmptyException) Code() string {
return "OrganizationalUnitNotEmptyException"
}
// Message returns the exception's message.
-func (s OrganizationalUnitNotEmptyException) Message() string {
+func (s *OrganizationalUnitNotEmptyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17632,28 +19548,28 @@ func (s OrganizationalUnitNotEmptyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationalUnitNotEmptyException) OrigErr() error {
+func (s *OrganizationalUnitNotEmptyException) OrigErr() error {
return nil
}
-func (s OrganizationalUnitNotEmptyException) Error() string {
+func (s *OrganizationalUnitNotEmptyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationalUnitNotEmptyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationalUnitNotEmptyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationalUnitNotEmptyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationalUnitNotEmptyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can't find an OU with the OrganizationalUnitId that you specified.
type OrganizationalUnitNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17670,17 +19586,17 @@ func (s OrganizationalUnitNotFoundException) GoString() string {
func newErrorOrganizationalUnitNotFoundException(v protocol.ResponseMetadata) error {
return &OrganizationalUnitNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationalUnitNotFoundException) Code() string {
+func (s *OrganizationalUnitNotFoundException) Code() string {
return "OrganizationalUnitNotFoundException"
}
// Message returns the exception's message.
-func (s OrganizationalUnitNotFoundException) Message() string {
+func (s *OrganizationalUnitNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17688,22 +19604,22 @@ func (s OrganizationalUnitNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationalUnitNotFoundException) OrigErr() error {
+func (s *OrganizationalUnitNotFoundException) OrigErr() error {
return nil
}
-func (s OrganizationalUnitNotFoundException) Error() string {
+func (s *OrganizationalUnitNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationalUnitNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationalUnitNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationalUnitNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationalUnitNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about either a root or an organizational unit (OU) that
@@ -17753,8 +19669,8 @@ func (s *Parent) SetType(v string) *Parent {
// We can't find a root or OU with the ParentId that you specified.
type ParentNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17771,17 +19687,17 @@ func (s ParentNotFoundException) GoString() string {
func newErrorParentNotFoundException(v protocol.ResponseMetadata) error {
return &ParentNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParentNotFoundException) Code() string {
+func (s *ParentNotFoundException) Code() string {
return "ParentNotFoundException"
}
// Message returns the exception's message.
-func (s ParentNotFoundException) Message() string {
+func (s *ParentNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17789,22 +19705,22 @@ func (s ParentNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParentNotFoundException) OrigErr() error {
+func (s *ParentNotFoundException) OrigErr() error {
return nil
}
-func (s ParentNotFoundException) Error() string {
+func (s *ParentNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParentNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParentNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParentNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParentNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains rules to be applied to the affected accounts. Policies can be attached
@@ -17845,8 +19761,8 @@ func (s *Policy) SetPolicySummary(v *PolicySummary) *Policy {
// Changes to the effective policy are in progress, and its contents can't be
// returned. Try the operation again later.
type PolicyChangesInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17863,17 +19779,17 @@ func (s PolicyChangesInProgressException) GoString() string {
func newErrorPolicyChangesInProgressException(v protocol.ResponseMetadata) error {
return &PolicyChangesInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyChangesInProgressException) Code() string {
+func (s *PolicyChangesInProgressException) Code() string {
return "PolicyChangesInProgressException"
}
// Message returns the exception's message.
-func (s PolicyChangesInProgressException) Message() string {
+func (s *PolicyChangesInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17881,29 +19797,29 @@ func (s PolicyChangesInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyChangesInProgressException) OrigErr() error {
+func (s *PolicyChangesInProgressException) OrigErr() error {
return nil
}
-func (s PolicyChangesInProgressException) Error() string {
+func (s *PolicyChangesInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyChangesInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyChangesInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyChangesInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyChangesInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The policy is attached to one or more entities. You must detach it from all
// roots, OUs, and accounts before performing this operation.
type PolicyInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17920,17 +19836,17 @@ func (s PolicyInUseException) GoString() string {
func newErrorPolicyInUseException(v protocol.ResponseMetadata) error {
return &PolicyInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyInUseException) Code() string {
+func (s *PolicyInUseException) Code() string {
return "PolicyInUseException"
}
// Message returns the exception's message.
-func (s PolicyInUseException) Message() string {
+func (s *PolicyInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17938,28 +19854,28 @@ func (s PolicyInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyInUseException) OrigErr() error {
+func (s *PolicyInUseException) OrigErr() error {
return nil
}
-func (s PolicyInUseException) Error() string {
+func (s *PolicyInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The policy isn't attached to the specified target in the specified root.
type PolicyNotAttachedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17976,17 +19892,17 @@ func (s PolicyNotAttachedException) GoString() string {
func newErrorPolicyNotAttachedException(v protocol.ResponseMetadata) error {
return &PolicyNotAttachedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyNotAttachedException) Code() string {
+func (s *PolicyNotAttachedException) Code() string {
return "PolicyNotAttachedException"
}
// Message returns the exception's message.
-func (s PolicyNotAttachedException) Message() string {
+func (s *PolicyNotAttachedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17994,28 +19910,28 @@ func (s PolicyNotAttachedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyNotAttachedException) OrigErr() error {
+func (s *PolicyNotAttachedException) OrigErr() error {
return nil
}
-func (s PolicyNotAttachedException) Error() string {
+func (s *PolicyNotAttachedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyNotAttachedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyNotAttachedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyNotAttachedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyNotAttachedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can't find a policy with the PolicyId that you specified.
type PolicyNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18032,17 +19948,17 @@ func (s PolicyNotFoundException) GoString() string {
func newErrorPolicyNotFoundException(v protocol.ResponseMetadata) error {
return &PolicyNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyNotFoundException) Code() string {
+func (s *PolicyNotFoundException) Code() string {
return "PolicyNotFoundException"
}
// Message returns the exception's message.
-func (s PolicyNotFoundException) Message() string {
+func (s *PolicyNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18050,22 +19966,22 @@ func (s PolicyNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyNotFoundException) OrigErr() error {
+func (s *PolicyNotFoundException) OrigErr() error {
return nil
}
-func (s PolicyNotFoundException) Error() string {
+func (s *PolicyNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a policy, but does not include the content. To
@@ -18080,7 +19996,7 @@ type PolicySummary struct {
// in the AWS Organizations User Guide.
Arn *string `type:"string"`
- // A Boolean value that indicates whether the specified policy is an AWS managed
+ // A boolean value that indicates whether the specified policy is an AWS managed
// policy. If true, then you can attach the policy to roots, OUs, or accounts,
// but you cannot edit it.
AwsManaged *bool `type:"boolean"`
@@ -18226,8 +20142,8 @@ func (s *PolicyTargetSummary) SetType(v string) *PolicyTargetSummary {
// The specified policy type is already enabled in the specified root.
type PolicyTypeAlreadyEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18244,17 +20160,17 @@ func (s PolicyTypeAlreadyEnabledException) GoString() string {
func newErrorPolicyTypeAlreadyEnabledException(v protocol.ResponseMetadata) error {
return &PolicyTypeAlreadyEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyTypeAlreadyEnabledException) Code() string {
+func (s *PolicyTypeAlreadyEnabledException) Code() string {
return "PolicyTypeAlreadyEnabledException"
}
// Message returns the exception's message.
-func (s PolicyTypeAlreadyEnabledException) Message() string {
+func (s *PolicyTypeAlreadyEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18262,22 +20178,22 @@ func (s PolicyTypeAlreadyEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyTypeAlreadyEnabledException) OrigErr() error {
+func (s *PolicyTypeAlreadyEnabledException) OrigErr() error {
return nil
}
-func (s PolicyTypeAlreadyEnabledException) Error() string {
+func (s *PolicyTypeAlreadyEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyTypeAlreadyEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyTypeAlreadyEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyTypeAlreadyEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyTypeAlreadyEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You can't use the specified policy type with the feature set currently enabled
@@ -18286,8 +20202,8 @@ func (s PolicyTypeAlreadyEnabledException) RequestID() string {
// Disabling a Policy Type on a Root (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root)
// in the AWS Organizations User Guide.
type PolicyTypeNotAvailableForOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18304,17 +20220,17 @@ func (s PolicyTypeNotAvailableForOrganizationException) GoString() string {
func newErrorPolicyTypeNotAvailableForOrganizationException(v protocol.ResponseMetadata) error {
return &PolicyTypeNotAvailableForOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyTypeNotAvailableForOrganizationException) Code() string {
+func (s *PolicyTypeNotAvailableForOrganizationException) Code() string {
return "PolicyTypeNotAvailableForOrganizationException"
}
// Message returns the exception's message.
-func (s PolicyTypeNotAvailableForOrganizationException) Message() string {
+func (s *PolicyTypeNotAvailableForOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18322,22 +20238,22 @@ func (s PolicyTypeNotAvailableForOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyTypeNotAvailableForOrganizationException) OrigErr() error {
+func (s *PolicyTypeNotAvailableForOrganizationException) OrigErr() error {
return nil
}
-func (s PolicyTypeNotAvailableForOrganizationException) Error() string {
+func (s *PolicyTypeNotAvailableForOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyTypeNotAvailableForOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyTypeNotAvailableForOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyTypeNotAvailableForOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyTypeNotAvailableForOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified policy type isn't currently enabled in this root. You can't
@@ -18346,8 +20262,8 @@ func (s PolicyTypeNotAvailableForOrganizationException) RequestID() string {
// Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html)
// in the AWS Organizations User Guide.
type PolicyTypeNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18364,17 +20280,17 @@ func (s PolicyTypeNotEnabledException) GoString() string {
func newErrorPolicyTypeNotEnabledException(v protocol.ResponseMetadata) error {
return &PolicyTypeNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PolicyTypeNotEnabledException) Code() string {
+func (s *PolicyTypeNotEnabledException) Code() string {
return "PolicyTypeNotEnabledException"
}
// Message returns the exception's message.
-func (s PolicyTypeNotEnabledException) Message() string {
+func (s *PolicyTypeNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18382,22 +20298,22 @@ func (s PolicyTypeNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PolicyTypeNotEnabledException) OrigErr() error {
+func (s *PolicyTypeNotEnabledException) OrigErr() error {
return nil
}
-func (s PolicyTypeNotEnabledException) Error() string {
+func (s *PolicyTypeNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PolicyTypeNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PolicyTypeNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PolicyTypeNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PolicyTypeNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains information about a policy type and its status in the associated
@@ -18405,10 +20321,9 @@ func (s PolicyTypeNotEnabledException) RequestID() string {
type PolicyTypeSummary struct {
_ struct{} `type:"structure"`
- // The status of the policy type as it relates to the associated root. You can
- // attach a policy of the specified type to a root or to an OU or account in
- // that root. To do so, the policy must be available in the organization and
- // enabled for that root.
+ // The status of the policy type as it relates to the associated root. To attach
+ // a policy of the specified type to a root or to an OU or account in that root,
+ // it must be available in the organization and enabled for that root.
Status *string `type:"string" enum:"PolicyTypeStatus"`
// The name of the policy type.
@@ -18437,6 +20352,77 @@ func (s *PolicyTypeSummary) SetType(v string) *PolicyTypeSummary {
return s
}
+type RegisterDelegatedAdministratorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The account ID number of the member account in the organization to register
+ // as a delegated administrator.
+ //
+ // AccountId is a required field
+ AccountId *string `type:"string" required:"true"`
+
+ // The service principal of the AWS service for which you want to make the member
+ // account a delegated administrator.
+ //
+ // ServicePrincipal is a required field
+ ServicePrincipal *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RegisterDelegatedAdministratorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterDelegatedAdministratorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RegisterDelegatedAdministratorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RegisterDelegatedAdministratorInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.ServicePrincipal == nil {
+ invalidParams.Add(request.NewErrParamRequired("ServicePrincipal"))
+ }
+ if s.ServicePrincipal != nil && len(*s.ServicePrincipal) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ServicePrincipal", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *RegisterDelegatedAdministratorInput) SetAccountId(v string) *RegisterDelegatedAdministratorInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetServicePrincipal sets the ServicePrincipal field's value.
+func (s *RegisterDelegatedAdministratorInput) SetServicePrincipal(v string) *RegisterDelegatedAdministratorInput {
+ s.ServicePrincipal = &v
+ return s
+}
+
+type RegisterDelegatedAdministratorOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s RegisterDelegatedAdministratorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterDelegatedAdministratorOutput) GoString() string {
+ return s.String()
+}
+
type RemoveAccountFromOrganizationInput struct {
_ struct{} `type:"structure"`
@@ -18567,8 +20553,8 @@ func (s *Root) SetPolicyTypes(v []*PolicyTypeSummary) *Root {
// We can't find a root with the RootId that you specified.
type RootNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18585,17 +20571,17 @@ func (s RootNotFoundException) GoString() string {
func newErrorRootNotFoundException(v protocol.ResponseMetadata) error {
return &RootNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RootNotFoundException) Code() string {
+func (s *RootNotFoundException) Code() string {
return "RootNotFoundException"
}
// Message returns the exception's message.
-func (s RootNotFoundException) Message() string {
+func (s *RootNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18603,29 +20589,29 @@ func (s RootNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RootNotFoundException) OrigErr() error {
+func (s *RootNotFoundException) OrigErr() error {
return nil
}
-func (s RootNotFoundException) Error() string {
+func (s *RootNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RootNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RootNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RootNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RootNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Organizations can't complete your request because of an internal service
// error. Try again later.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18642,17 +20628,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18660,28 +20646,28 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can't find a source root or OU with the ParentId that you specified.
type SourceParentNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18698,17 +20684,17 @@ func (s SourceParentNotFoundException) GoString() string {
func newErrorSourceParentNotFoundException(v protocol.ResponseMetadata) error {
return &SourceParentNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SourceParentNotFoundException) Code() string {
+func (s *SourceParentNotFoundException) Code() string {
return "SourceParentNotFoundException"
}
// Message returns the exception's message.
-func (s SourceParentNotFoundException) Message() string {
+func (s *SourceParentNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18716,22 +20702,22 @@ func (s SourceParentNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SourceParentNotFoundException) OrigErr() error {
+func (s *SourceParentNotFoundException) OrigErr() error {
return nil
}
-func (s SourceParentNotFoundException) Error() string {
+func (s *SourceParentNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SourceParentNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SourceParentNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SourceParentNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SourceParentNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A custom key-value pair associated with a resource such as an account within
@@ -18873,8 +20859,8 @@ func (s TagResourceOutput) GoString() string {
// We can't find a root, OU, or account with the TargetId that you specified.
type TargetNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -18891,17 +20877,17 @@ func (s TargetNotFoundException) GoString() string {
func newErrorTargetNotFoundException(v protocol.ResponseMetadata) error {
return &TargetNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetNotFoundException) Code() string {
+func (s *TargetNotFoundException) Code() string {
return "TargetNotFoundException"
}
// Message returns the exception's message.
-func (s TargetNotFoundException) Message() string {
+func (s *TargetNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18909,22 +20895,22 @@ func (s TargetNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetNotFoundException) OrigErr() error {
+func (s *TargetNotFoundException) OrigErr() error {
return nil
}
-func (s TargetNotFoundException) Error() string {
+func (s *TargetNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have sent too many requests in too short a period of time. The limit
@@ -18934,8 +20920,8 @@ func (s TargetNotFoundException) RequestID() string {
// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)
// in the AWS Organizations User Guide.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -18954,17 +20940,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18972,28 +20958,28 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This action isn't available in the current Region.
type UnsupportedAPIEndpointException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -19010,17 +20996,17 @@ func (s UnsupportedAPIEndpointException) GoString() string {
func newErrorUnsupportedAPIEndpointException(v protocol.ResponseMetadata) error {
return &UnsupportedAPIEndpointException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedAPIEndpointException) Code() string {
+func (s *UnsupportedAPIEndpointException) Code() string {
return "UnsupportedAPIEndpointException"
}
// Message returns the exception's message.
-func (s UnsupportedAPIEndpointException) Message() string {
+func (s *UnsupportedAPIEndpointException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19028,22 +21014,22 @@ func (s UnsupportedAPIEndpointException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedAPIEndpointException) OrigErr() error {
+func (s *UnsupportedAPIEndpointException) OrigErr() error {
return nil
}
-func (s UnsupportedAPIEndpointException) Error() string {
+func (s *UnsupportedAPIEndpointException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedAPIEndpointException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedAPIEndpointException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedAPIEndpointException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedAPIEndpointException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -19414,6 +21400,18 @@ const (
// ConstraintViolationExceptionReasonTagPolicyViolation is a ConstraintViolationExceptionReason enum value
ConstraintViolationExceptionReasonTagPolicyViolation = "TAG_POLICY_VIOLATION"
+
+ // ConstraintViolationExceptionReasonMaxDelegatedAdministratorsForServiceLimitExceeded is a ConstraintViolationExceptionReason enum value
+ ConstraintViolationExceptionReasonMaxDelegatedAdministratorsForServiceLimitExceeded = "MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED"
+
+ // ConstraintViolationExceptionReasonCannotRegisterMasterAsDelegatedAdministrator is a ConstraintViolationExceptionReason enum value
+ ConstraintViolationExceptionReasonCannotRegisterMasterAsDelegatedAdministrator = "CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR"
+
+ // ConstraintViolationExceptionReasonCannotRemoveDelegatedAdministratorFromOrg is a ConstraintViolationExceptionReason enum value
+ ConstraintViolationExceptionReasonCannotRemoveDelegatedAdministratorFromOrg = "CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG"
+
+ // ConstraintViolationExceptionReasonDelegatedAdministratorExistsForThisService is a ConstraintViolationExceptionReason enum value
+ ConstraintViolationExceptionReasonDelegatedAdministratorExistsForThisService = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
index af309e1f14f..8ad7420f57b 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
@@ -33,14 +33,26 @@ const (
// create the required service-linked role. You don't have that permission.
ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException"
+ // ErrCodeAccountAlreadyRegisteredException for service response error code
+ // "AccountAlreadyRegisteredException".
+ //
+ // The specified account is already a delegated administrator for this AWS service.
+ ErrCodeAccountAlreadyRegisteredException = "AccountAlreadyRegisteredException"
+
// ErrCodeAccountNotFoundException for service response error code
// "AccountNotFoundException".
//
- // We can't find an AWS account with the AccountId that you specified. Or the
+ // We can't find an AWS account with the AccountId that you specified, or the
// account whose credentials you used to make this request isn't a member of
// an organization.
ErrCodeAccountNotFoundException = "AccountNotFoundException"
+ // ErrCodeAccountNotRegisteredException for service response error code
+ // "AccountNotRegisteredException".
+ //
+ // The specified account is not a delegated administrator for this AWS service.
+ ErrCodeAccountNotRegisteredException = "AccountNotRegisteredException"
+
// ErrCodeAccountOwnerNotVerifiedException for service response error code
// "AccountOwnerNotVerifiedException".
//
@@ -74,11 +86,12 @@ const (
// ErrCodeConstraintViolationException for service response error code
// "ConstraintViolationException".
//
- // Performing this operation violates a minimum or maximum value limit. Examples
- // include attempting to remove the last service control policy (SCP) from an
- // OU or root, or attaching too many policies to an account, OU, or root. This
- // exception includes a reason that contains additional information about the
- // violated limit.
+ // Performing this operation violates a minimum or maximum value limit. For
+ // example, attempting to remove the last service control policy (SCP) from
+ // an OU or root, inviting or creating too many accounts to the organization,
+ // or attaching too many policies to an account, OU, or root. This exception
+ // includes a reason that contains additional information about the violated
+ // limit.
//
// Some of the reasons in the following list might not be applicable to this
// specific API or operation:
@@ -112,6 +125,15 @@ const (
// try again. If after an hour it continues to fail with this error, contact
// AWS Support (https://console.aws.amazon.com/support/home#/).
//
+ // * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You can designate
+ // only a member account as a delegated administrator.
+ //
+ // * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: To complete this operation,
+ // you must first deregister this account as a delegated administrator.
+ //
+ // * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: To complete this operation,
+ // you must first deregister all delegated administrators for this service.
+ //
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
// handshakes that you can send in one day.
//
@@ -138,6 +160,10 @@ const (
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
// in the AWS Organizations User Guide.
//
+ // * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
+ // to register more delegated administrators than allowed for the service
+ // principal.
+ //
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
// number of policies of a certain type that can be attached to an entity
// at one time.
@@ -153,8 +179,8 @@ const (
// in the AWS Organizations User Guide.
//
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
- // policy from an entity, which would cause the entity to have fewer than
- // the minimum number of policies of the required type.
+ // policy from an entity that would cause the entity to have fewer than the
+ // minimum number of policies of a certain type required.
//
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
// too many levels deep.
@@ -167,19 +193,14 @@ const (
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
// that you can have in an organization.
//
- // * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
+ // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
// policies that you can have in an organization.
- //
- // * TAG_POLICY_VIOLATION: Tags associated with the resource must be compliant
- // with the tag policy that’s in effect for the account. For more information,
- // see Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
- // in the AWS Organizations User Guide.
ErrCodeConstraintViolationException = "ConstraintViolationException"
// ErrCodeCreateAccountStatusNotFoundException for service response error code
// "CreateAccountStatusNotFoundException".
//
- // We can't find a create account request with the CreateAccountRequestId that
+ // We can't find an create account request with the CreateAccountRequestId that
// you specified.
ErrCodeCreateAccountStatusNotFoundException = "CreateAccountStatusNotFoundException"
@@ -323,8 +344,6 @@ const (
//
// * INVALID_ENUM: You specified an invalid value.
//
- // * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type.
- //
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
// characters.
//
@@ -517,7 +536,9 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AWSOrganizationsNotInUseException": newErrorAWSOrganizationsNotInUseException,
"AccessDeniedException": newErrorAccessDeniedException,
"AccessDeniedForDependencyException": newErrorAccessDeniedForDependencyException,
+ "AccountAlreadyRegisteredException": newErrorAccountAlreadyRegisteredException,
"AccountNotFoundException": newErrorAccountNotFoundException,
+ "AccountNotRegisteredException": newErrorAccountNotRegisteredException,
"AccountOwnerNotVerifiedException": newErrorAccountOwnerNotVerifiedException,
"AlreadyInOrganizationException": newErrorAlreadyInOrganizationException,
"ChildNotFoundException": newErrorChildNotFoundException,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/personalize/api.go b/vendor/github.com/aws/aws-sdk-go/service/personalize/api.go
index 9a01bcc84d4..77af5917c09 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/personalize/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/personalize/api.go
@@ -4662,6 +4662,9 @@ type BatchInferenceJobSummary struct {
// The time at which the batch inference job was last updated.
LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"`
+ // The ARN of the solution version used by the batch inference job.
+ SolutionVersionArn *string `locationName:"solutionVersionArn" type:"string"`
+
// The status of the batch inference job. The status is one of the following
// values:
//
@@ -4715,6 +4718,12 @@ func (s *BatchInferenceJobSummary) SetLastUpdatedDateTime(v time.Time) *BatchInf
return s
}
+// SetSolutionVersionArn sets the SolutionVersionArn field's value.
+func (s *BatchInferenceJobSummary) SetSolutionVersionArn(v string) *BatchInferenceJobSummary {
+ s.SolutionVersionArn = &v
+ return s
+}
+
// SetStatus sets the Status field's value.
func (s *BatchInferenceJobSummary) SetStatus(v string) *BatchInferenceJobSummary {
s.Status = &v
@@ -8310,7 +8319,7 @@ type HPOObjective struct {
// A regular expression for finding the metric in the training job logs.
MetricRegex *string `locationName:"metricRegex" type:"string"`
- // The data type of the metric.
+ // The type of the metric. Valid values are Maximize and Minimize.
Type *string `locationName:"type" type:"string"`
}
@@ -8507,8 +8516,8 @@ func (s *IntegerHyperParameterRange) SetName(v string) *IntegerHyperParameterRan
// Provide a valid value for the field or parameter.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8525,17 +8534,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8543,28 +8552,28 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The token is not valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8581,17 +8590,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8599,28 +8608,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The limit on the number of requests per second has been exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8637,17 +8646,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8655,22 +8664,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListBatchInferenceJobsInput struct {
@@ -9699,8 +9708,8 @@ func (s *RecipeSummary) SetStatus(v string) *RecipeSummary {
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9717,17 +9726,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9735,28 +9744,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource is in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9773,17 +9782,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9791,28 +9800,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Could not find the specified resource.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9829,17 +9838,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9847,22 +9856,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration details of an Amazon S3 input or output bucket.
@@ -10275,6 +10284,10 @@ type SolutionVersion struct {
// The UPDATE option can only be used after you've created a solution version
// with the FULL option and the training solution uses the native-recipe-hrnn-coldstart.
TrainingMode *string `locationName:"trainingMode" type:"string" enum:"TrainingMode"`
+
+ // If hyperparameter optimization was performed, contains the hyperparameter
+ // values of the best performing model.
+ TunedHPOParams *TunedHPOParams `locationName:"tunedHPOParams" type:"structure"`
}
// String returns the string representation
@@ -10371,6 +10384,12 @@ func (s *SolutionVersion) SetTrainingMode(v string) *SolutionVersion {
return s
}
+// SetTunedHPOParams sets the TunedHPOParams field's value.
+func (s *SolutionVersion) SetTunedHPOParams(v *TunedHPOParams) *SolutionVersion {
+ s.TunedHPOParams = v
+ return s
+}
+
// Provides a summary of the properties of a solution version. For a complete
// listing, call the DescribeSolutionVersion API.
type SolutionVersionSummary struct {
@@ -10436,6 +10455,31 @@ func (s *SolutionVersionSummary) SetStatus(v string) *SolutionVersionSummary {
return s
}
+// If hyperparameter optimization (HPO) was performed, contains the hyperparameter
+// values of the best performing model.
+type TunedHPOParams struct {
+ _ struct{} `type:"structure"`
+
+ // A list of the hyperparameter values of the best performing model.
+ AlgorithmHyperParameters map[string]*string `locationName:"algorithmHyperParameters" type:"map"`
+}
+
+// String returns the string representation
+func (s TunedHPOParams) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TunedHPOParams) GoString() string {
+ return s.String()
+}
+
+// SetAlgorithmHyperParameters sets the AlgorithmHyperParameters field's value.
+func (s *TunedHPOParams) SetAlgorithmHyperParameters(v map[string]*string) *TunedHPOParams {
+ s.AlgorithmHyperParameters = v
+ return s
+}
+
type UpdateCampaignInput struct {
_ struct{} `type:"structure"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go
index 76144551b08..d0798a85c60 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go
@@ -9637,8 +9637,9 @@ func (c *Pinpoint) UpdateEndpointRequest(input *UpdateEndpointInput) (req *reque
//
// Creates a new endpoint for an application or updates the settings and attributes
// of an existing endpoint for an application. You can also use this operation
-// to define custom attributes (Attributes, Metrics, and UserAttributes properties)
-// for an endpoint.
+// to define custom attributes for an endpoint. If an update includes one or
+// more values for a custom attribute, Amazon Pinpoint replaces (overwrites)
+// any existing values with the new values.
//
// 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
@@ -9737,8 +9738,9 @@ func (c *Pinpoint) UpdateEndpointsBatchRequest(input *UpdateEndpointsBatchInput)
//
// Creates a new batch of endpoints for an application or updates the settings
// and attributes of a batch of existing endpoints for an application. You can
-// also use this operation to define custom attributes (Attributes, Metrics,
-// and UserAttributes properties) for a batch of endpoints.
+// also use this operation to define custom attributes for a batch of endpoints.
+// If an update includes one or more values for a custom attribute, Amazon Pinpoint
+// replaces (overwrites) any existing values with the new values.
//
// 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
@@ -13039,7 +13041,7 @@ type ApplicationDateRangeKpiResponse struct {
// that the data was retrieved for. This value describes the associated metric
// and consists of two or more terms, which are comprised of lowercase alphanumeric
// characters, separated by a hyphen. For a list of possible values, see the
- // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/welcome.html).
+ // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html).
//
// KpiName is a required field
KpiName *string `type:"string" required:"true"`
@@ -13177,15 +13179,16 @@ type ApplicationSettingsResource struct {
// ApplicationId is a required field
ApplicationId *string `type:"string" required:"true"`
- // The settings for the AWS Lambda function to use by default as a code hook
- // for campaigns in the application.
+ // The settings for the AWS Lambda function to invoke by default as a code hook
+ // for campaigns in the application. You can use this hook to customize segments
+ // that are used by campaigns in the application.
CampaignHook *CampaignHook `type:"structure"`
// The date and time, in ISO 8601 format, when the application's settings were
// last modified.
LastModifiedDate *string `type:"string"`
- // The default sending limits for campaigns in the application.
+ // The default sending limits for campaigns and journeys in the application.
Limits *CampaignLimits `type:"structure"`
// The default quiet time for campaigns and journeys in the application. Quiet
@@ -13393,8 +13396,8 @@ func (s *AttributesResource) SetAttributes(v []*string) *AttributesResource {
// Provides information about an API request or response.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -13413,17 +13416,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13431,22 +13434,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the status and settings of the Baidu (Baidu Cloud Push) channel
@@ -13833,6 +13836,32 @@ func (s *BaseKpiResult) SetRows(v []*ResultRow) *BaseKpiResult {
return s
}
+// Specifies the contents of a message that's sent through a custom channel
+// to recipients of a campaign.
+type CampaignCustomMessage struct {
+ _ struct{} `type:"structure"`
+
+ // The raw, JSON-formatted string to use as the payload for the message. The
+ // maximum size is 5 KB.
+ Data *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CampaignCustomMessage) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CampaignCustomMessage) GoString() string {
+ return s.String()
+}
+
+// SetData sets the Data field's value.
+func (s *CampaignCustomMessage) SetData(v string) *CampaignCustomMessage {
+ s.Data = &v
+ return s
+}
+
// Provides the results of a query that retrieved the data for a standard metric
// that applies to a campaign, and provides information about that query.
type CampaignDateRangeKpiResponse struct {
@@ -13855,7 +13884,7 @@ type CampaignDateRangeKpiResponse struct {
// that the data was retrieved for. This value describes the associated metric
// and consists of two or more terms, which are comprised of lowercase alphanumeric
// characters, separated by a hyphen. For a list of possible values, see the
- // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/welcome.html).
+ // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html).
//
// KpiName is a required field
KpiName *string `type:"string" required:"true"`
@@ -14042,15 +14071,25 @@ func (s *CampaignEventFilter) SetFilterType(v string) *CampaignEventFilter {
return s
}
-// Specifies the AWS Lambda function to use as a code hook for a campaign.
+// Specifies settings for invoking an AWS Lambda function that customizes a
+// segment for a campaign.
type CampaignHook struct {
_ struct{} `type:"structure"`
// The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon
- // Pinpoint invokes to send messages for a campaign.
+ // Pinpoint invokes to customize a segment for a campaign.
LambdaFunctionName *string `type:"string"`
- // Specifies which Lambda mode to use when invoking the AWS Lambda function.
+ // The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible
+ // values are:
+ //
+ // * FILTER - Invoke the function to customize the segment that's used by
+ // a campaign.
+ //
+ // * DELIVERY - (Deprecated) Previously, invoked the function to send a campaign
+ // through a custom channel. This functionality is not supported anymore.
+ // To send a campaign through a custom channel, use the CustomDeliveryConfiguration
+ // and CampaignCustomMessage objects of the campaign.
Mode *string `type:"string" enum:"Mode"`
// The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function
@@ -14086,12 +14125,16 @@ func (s *CampaignHook) SetWebUrl(v string) *CampaignHook {
return s
}
-// Specifies limits on the messages that a campaign can send.
+// For a campaign, specifies limits on the messages that the campaign can send.
+// For an application, specifies the default limits for messages that campaigns
+// and journeys in the application can send.
type CampaignLimits struct {
_ struct{} `type:"structure"`
// The maximum number of messages that a campaign can send to a single endpoint
- // during a 24-hour period. The maximum value is 100.
+ // during a 24-hour period. For an application, this value specifies the default
+ // limit for the number of messages that campaigns and journeys can send to
+ // a single endpoint during a 24-hour period. The maximum value is 100.
Daily *int64 `type:"integer"`
// The maximum amount of time, in seconds, that a campaign can attempt to deliver
@@ -14099,12 +14142,15 @@ type CampaignLimits struct {
// is 60 seconds.
MaximumDuration *int64 `type:"integer"`
- // The maximum number of messages that a campaign can send each second. The
- // minimum value is 50. The maximum value is 20,000.
+ // The maximum number of messages that a campaign can send each second. For
+ // an application, this value specifies the default limit for the number of
+ // messages that campaigns and journeys can send each second. The minimum value
+ // is 50. The maximum value is 20,000.
MessagesPerSecond *int64 `type:"integer"`
// The maximum number of messages that a campaign can send to a single endpoint
- // during the course of the campaign. The maximum value is 100.
+ // during the course of the campaign. If a campaign recurs, this setting applies
+ // to all runs of the campaign. The maximum value is 100.
Total *int64 `type:"integer"`
}
@@ -14166,8 +14212,12 @@ type CampaignResponse struct {
// CreationDate is a required field
CreationDate *string `type:"string" required:"true"`
+ // The delivery configuration settings for sending the campaign through a custom
+ // channel.
+ CustomDeliveryConfiguration *CustomDeliveryConfiguration `type:"structure"`
+
// The current status of the campaign's default treatment. This value exists
- // only for campaigns that have more than one treatment, to support A/B testing.
+ // only for campaigns that have more than one treatment.
DefaultState *CampaignState `type:"structure"`
// The custom description of the campaign.
@@ -14178,6 +14228,7 @@ type CampaignResponse struct {
HoldoutPercent *int64 `type:"integer"`
// The settings for the AWS Lambda function to use as a code hook for the campaign.
+ // You can use this hook to customize the segment that's used by the campaign.
Hook *CampaignHook `type:"structure"`
// The unique identifier for the campaign.
@@ -14227,11 +14278,12 @@ type CampaignResponse struct {
// The message template that’s used for the campaign.
TemplateConfiguration *TemplateConfiguration `type:"structure"`
- // The custom description of a variation of the campaign that's used for A/B
- // testing.
+ // The custom description of the default treatment for the campaign.
TreatmentDescription *string `type:"string"`
- // The custom name of a variation of the campaign that's used for A/B testing.
+ // The custom name of the default treatment for the campaign, if the campaign
+ // has multiple treatments. A treatment is a variation of a campaign that's
+ // used for A/B testing.
TreatmentName *string `type:"string"`
// The version number of the campaign.
@@ -14272,6 +14324,12 @@ func (s *CampaignResponse) SetCreationDate(v string) *CampaignResponse {
return s
}
+// SetCustomDeliveryConfiguration sets the CustomDeliveryConfiguration field's value.
+func (s *CampaignResponse) SetCustomDeliveryConfiguration(v *CustomDeliveryConfiguration) *CampaignResponse {
+ s.CustomDeliveryConfiguration = v
+ return s
+}
+
// SetDefaultState sets the DefaultState field's value.
func (s *CampaignResponse) SetDefaultState(v *CampaignState) *CampaignResponse {
s.DefaultState = v
@@ -14438,9 +14496,12 @@ type CampaignState struct {
_ struct{} `type:"structure"`
// The current status of the campaign, or the current status of a treatment
- // that belongs to an A/B test campaign. If a campaign uses A/B testing, the
- // campaign has a status of COMPLETED only if all campaign treatments have a
- // status of COMPLETED.
+ // that belongs to an A/B test campaign.
+ //
+ // If a campaign uses A/B testing, the campaign has a status of COMPLETED only
+ // if all campaign treatments have a status of COMPLETED. If you delete the
+ // segment that's associated with a campaign, the campaign fails and has a status
+ // of DELETED.
CampaignStatus *string `type:"string" enum:"CampaignStatus"`
}
@@ -15378,14 +15439,15 @@ type CreateRecommenderConfiguration struct {
_ struct{} `type:"structure"`
// A map of key-value pairs that defines 1-10 custom endpoint or user attributes,
- // depending on the value for the RecommenderUserIdType property. Each of these
- // attributes temporarily stores a recommended item that's retrieved from the
- // recommender model and sent to an AWS Lambda function for additional processing.
- // Each attribute can be used as a message variable in a message template.
+ // depending on the value for the RecommendationProviderIdType property. Each
+ // of these attributes temporarily stores a recommended item that's retrieved
+ // from the recommender model and sent to an AWS Lambda function for additional
+ // processing. Each attribute can be used as a message variable in a message
+ // template.
//
// In the map, the key is the name of a custom attribute and the value is a
// custom display name for that attribute. The display name appears in the Attribute
- // finder pane of the template editor on the Amazon Pinpoint console. The following
+ // finder of the template editor on the Amazon Pinpoint console. The following
// restrictions apply to these names:
//
// * An attribute name must start with a letter or number and it can contain
@@ -15397,12 +15459,13 @@ type CreateRecommenderConfiguration struct {
// spaces, underscores (_), or hyphens (-).
//
// This object is required if the configuration invokes an AWS Lambda function
- // (LambdaFunctionArn) to process recommendation data. Otherwise, don't include
- // this object in your request.
+ // (RecommendationTransformerUri) to process recommendation data. Otherwise,
+ // don't include this object in your request.
Attributes map[string]*string `type:"map"`
// A custom description of the configuration for the recommender model. The
- // description can contain up to 128 characters.
+ // description can contain up to 128 characters. The characters can be letters,
+ // numbers, spaces, or the following symbols: _ ; () , ‐.
Description *string `type:"string"`
// A custom name of the configuration for the recommender model. The name must
@@ -15422,7 +15485,7 @@ type CreateRecommenderConfiguration struct {
// * PINPOINT_USER_ID - Associate each user in the model with a particular
// user and endpoint in Amazon Pinpoint. The data is correlated based on
// user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition
- // in Amazon Pinpoint has to specify a both a user ID (UserId) and an endpoint
+ // in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint
// ID. Otherwise, messages won’t be sent to the user's endpoint.
RecommendationProviderIdType *string `type:"string"`
@@ -15445,26 +15508,26 @@ type CreateRecommenderConfiguration struct {
RecommendationTransformerUri *string `type:"string"`
// A custom display name for the standard endpoint or user attribute (RecommendationItems)
- // that temporarily stores a recommended item for each endpoint or user, depending
- // on the value for the RecommenderUserIdType property. This value is required
- // if the configuration doesn't invoke an AWS Lambda function (LambdaFunctionArn)
+ // that temporarily stores recommended items for each endpoint or user, depending
+ // on the value for the RecommendationProviderIdType property. This value is
+ // required if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri)
// to perform additional processing of recommendation data.
//
- // This name appears in the Attribute finder pane of the template editor on
- // the Amazon Pinpoint console. The name can contain up to 25 characters. The
- // characters can be letters, numbers, spaces, underscores (_), or hyphens (-).
- // These restrictions don't apply to attribute values.
+ // This name appears in the Attribute finder of the template editor on the Amazon
+ // Pinpoint console. The name can contain up to 25 characters. The characters
+ // can be letters, numbers, spaces, underscores (_), or hyphens (-). These restrictions
+ // don't apply to attribute values.
RecommendationsDisplayName *string `type:"string"`
// The number of recommended items to retrieve from the model for each endpoint
- // or user, depending on the value for the RecommenderUserIdType property. This
- // number determines how many recommended attributes are available for use as
- // message variables in message templates. The minimum value is 1. The maximum
- // value is 5. The default value is 5.
+ // or user, depending on the value for the RecommendationProviderIdType property.
+ // This number determines how many recommended items are available for use in
+ // message variables. The minimum value is 1. The maximum value is 5. The default
+ // value is 5.
//
// To use multiple recommended items and custom attributes with message variables,
- // you have to use an AWS Lambda function (LambdaFunctionArn) to perform additional
- // processing of recommendation data.
+ // you have to use an AWS Lambda function (RecommendationTransformerUri) to
+ // perform additional processing of recommendation data.
RecommendationsPerMessage *int64 `type:"integer"`
}
@@ -15905,6 +15968,67 @@ func (s *CreateVoiceTemplateOutput) SetCreateTemplateMessageBody(v *CreateTempla
return s
}
+// Specifies the delivery configuration settings for sending a campaign or campaign
+// treatment through a custom channel. This object is required if you use the
+// CampaignCustomMessage object to define the message to send for the campaign
+// or campaign treatment.
+type CustomDeliveryConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // The destination to send the campaign or treatment to. This value can be one
+ // of the following:
+ //
+ // * The name or Amazon Resource Name (ARN) of an AWS Lambda function to
+ // invoke to handle delivery of the campaign or treatment.
+ //
+ // * The URL for a web application or service that supports HTTPS and can
+ // receive the message. The URL has to be a full URL, including the HTTPS
+ // protocol.
+ //
+ // DeliveryUri is a required field
+ DeliveryUri *string `type:"string" required:"true"`
+
+ // The types of endpoints to send the campaign or treatment to. Each valid value
+ // maps to a type of channel that you can associate with an endpoint by using
+ // the ChannelType property of an endpoint.
+ EndpointTypes []*string `type:"list"`
+}
+
+// String returns the string representation
+func (s CustomDeliveryConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CustomDeliveryConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CustomDeliveryConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CustomDeliveryConfiguration"}
+ if s.DeliveryUri == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryUri"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeliveryUri sets the DeliveryUri field's value.
+func (s *CustomDeliveryConfiguration) SetDeliveryUri(v string) *CustomDeliveryConfiguration {
+ s.DeliveryUri = &v
+ return s
+}
+
+// SetEndpointTypes sets the EndpointTypes field's value.
+func (s *CustomDeliveryConfiguration) SetEndpointTypes(v []*string) *CustomDeliveryConfiguration {
+ s.EndpointTypes = v
+ return s
+}
+
// Specifies the default message for all channels.
type DefaultMessage struct {
_ struct{} `type:"structure"`
@@ -17765,8 +17889,8 @@ func (s *DirectMessageConfiguration) SetVoiceMessage(v *VoiceMessage) *DirectMes
type EmailChannelRequest struct {
_ struct{} `type:"structure"`
- // The configuration set that you want to apply to email that you send through
- // the channel by using the Amazon Pinpoint Email API (emailAPIreference.html).
+ // The Amazon SES configuration set (https://docs.aws.amazon.com/ses/latest/APIReference/API_ConfigurationSet.html)
+ // that you want to apply to messages that you send through the channel.
ConfigurationSet *string `type:"string"`
// Specifies whether to enable the email channel for the application.
@@ -17855,8 +17979,8 @@ type EmailChannelResponse struct {
// to.
ApplicationId *string `type:"string"`
- // The configuration set that's applied to email that's sent through the channel
- // by using the Amazon Pinpoint Email API (emailAPIreference.html).
+ // The Amazon SES configuration set (https://docs.aws.amazon.com/ses/latest/APIReference/API_ConfigurationSet.html)
+ // that's applied to messages that are sent through the channel.
ConfigurationSet *string `type:"string"`
// The date and time, in ISO 8601 format, when the email channel was enabled.
@@ -17865,7 +17989,7 @@ type EmailChannelResponse struct {
// Specifies whether the email channel is enabled for the application.
Enabled *bool `type:"boolean"`
- // The verified email address that you send email from when you send email through
+ // The verified email address that email is sent from when you send email through
// the channel.
FromAddress *string `type:"string"`
@@ -17877,8 +18001,7 @@ type EmailChannelResponse struct {
Id *string `type:"string"`
// The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple
- // Email Service (Amazon SES), that you use when you send email through the
- // channel.
+ // Email Service (Amazon SES), that's used when you send email through the channel.
Identity *string `type:"string"`
// Specifies whether the email channel is archived.
@@ -17890,7 +18013,7 @@ type EmailChannelResponse struct {
// The date and time, in ISO 8601 format, when the email channel was last modified.
LastModifiedDate *string `type:"string"`
- // The maximum number of emails that you can send through the channel each second.
+ // The maximum number of emails that can be sent through the channel each second.
MessagesPerSecond *int64 `type:"integer"`
// The type of messaging or notification platform for the channel. For the email
@@ -18466,8 +18589,8 @@ type EndpointBatchItem struct {
// The unique identifier for the request to create or update the endpoint.
RequestId *string `type:"string"`
- // One or more custom user attributes that describe the user who's associated
- // with the endpoint.
+ // One or more custom attributes that describe the user who's associated with
+ // the endpoint.
User *EndpointUser `type:"structure"`
}
@@ -18954,8 +19077,8 @@ type EndpointRequest struct {
// The unique identifier for the most recent request to update the endpoint.
RequestId *string `type:"string"`
- // One or more custom user attributes that describe the user who's associated
- // with the endpoint.
+ // One or more custom attributes that describe the user who's associated with
+ // the endpoint.
User *EndpointUser `type:"structure"`
}
@@ -20234,8 +20357,8 @@ func (s *ExportJobsResponse) SetNextToken(v string) *ExportJobsResponse {
// Provides information about an API request or response.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -20254,17 +20377,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20272,22 +20395,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the status and settings of the GCM channel for an application.
@@ -24810,8 +24933,8 @@ func (s *ImportJobsResponse) SetNextToken(v string) *ImportJobsResponse {
// Provides information about an API request or response.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -24830,17 +24953,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -24848,22 +24971,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information about the results of a request to create or update an
@@ -24924,7 +25047,7 @@ type JourneyDateRangeKpiResponse struct {
// that the data was retrieved for. This value describes the associated metric
// and consists of two or more terms, which are comprised of lowercase alphanumeric
// characters, separated by a hyphen. For a list of possible values, see the
- // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/welcome.html).
+ // Amazon Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html).
//
// KpiName is a required field
KpiName *string `type:"string" required:"true"`
@@ -26092,31 +26215,38 @@ type MessageConfiguration struct {
_ struct{} `type:"structure"`
// The message that the campaign sends through the ADM (Amazon Device Messaging)
- // channel. This message overrides the default message.
+ // channel. If specified, this message overrides the default message.
ADMMessage *Message `type:"structure"`
// The message that the campaign sends through the APNs (Apple Push Notification
- // service) channel. This message overrides the default message.
+ // service) channel. If specified, this message overrides the default message.
APNSMessage *Message `type:"structure"`
// The message that the campaign sends through the Baidu (Baidu Cloud Push)
- // channel. This message overrides the default message.
+ // channel. If specified, this message overrides the default message.
BaiduMessage *Message `type:"structure"`
+ // The message that the campaign sends through a custom channel, as specified
+ // by the delivery configuration (CustomDeliveryConfiguration) settings for
+ // the campaign. If specified, this message overrides the default message.
+ CustomMessage *CampaignCustomMessage `type:"structure"`
+
// The default message that the campaign sends through all the channels that
// are configured for the campaign.
DefaultMessage *Message `type:"structure"`
- // The message that the campaign sends through the email channel.
+ // The message that the campaign sends through the email channel. If specified,
+ // this message overrides the default message.
EmailMessage *CampaignEmailMessage `type:"structure"`
// The message that the campaign sends through the GCM channel, which enables
// Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging
- // (FCM), formerly Google Cloud Messaging (GCM), service. This message overrides
- // the default message.
+ // (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this
+ // message overrides the default message.
GCMMessage *Message `type:"structure"`
- // The message that the campaign sends through the SMS channel.
+ // The message that the campaign sends through the SMS channel. If specified,
+ // this message overrides the default message.
SMSMessage *CampaignSmsMessage `type:"structure"`
}
@@ -26148,6 +26278,12 @@ func (s *MessageConfiguration) SetBaiduMessage(v *Message) *MessageConfiguration
return s
}
+// SetCustomMessage sets the CustomMessage field's value.
+func (s *MessageConfiguration) SetCustomMessage(v *CampaignCustomMessage) *MessageConfiguration {
+ s.CustomMessage = v
+ return s
+}
+
// SetDefaultMessage sets the DefaultMessage field's value.
func (s *MessageConfiguration) SetDefaultMessage(v *Message) *MessageConfiguration {
s.DefaultMessage = v
@@ -26418,8 +26554,8 @@ func (s *MessageResult) SetUpdatedToken(v string) *MessageResult {
// Provides information about an API request or response.
type MethodNotAllowedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -26438,17 +26574,17 @@ func (s MethodNotAllowedException) GoString() string {
func newErrorMethodNotAllowedException(v protocol.ResponseMetadata) error {
return &MethodNotAllowedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MethodNotAllowedException) Code() string {
+func (s *MethodNotAllowedException) Code() string {
return "MethodNotAllowedException"
}
// Message returns the exception's message.
-func (s MethodNotAllowedException) Message() string {
+func (s *MethodNotAllowedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26456,22 +26592,22 @@ func (s MethodNotAllowedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MethodNotAllowedException) OrigErr() error {
+func (s *MethodNotAllowedException) OrigErr() error {
return nil
}
-func (s MethodNotAllowedException) Error() string {
+func (s *MethodNotAllowedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MethodNotAllowedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MethodNotAllowedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MethodNotAllowedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MethodNotAllowedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies metric-based criteria for including or excluding endpoints from
@@ -26648,8 +26784,8 @@ func (s *MultiConditionalSplitActivity) SetEvaluationWaitTime(v *WaitTime) *Mult
// Provides information about an API request or response.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -26668,17 +26804,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26686,22 +26822,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies a phone number to validate and retrieve information about.
@@ -26893,8 +27029,8 @@ func (s *NumberValidateResponse) SetZipCode(v string) *NumberValidateResponse {
// Provides information about an API request or response.
type PayloadTooLargeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -26913,17 +27049,17 @@ func (s PayloadTooLargeException) GoString() string {
func newErrorPayloadTooLargeException(v protocol.ResponseMetadata) error {
return &PayloadTooLargeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PayloadTooLargeException) Code() string {
+func (s *PayloadTooLargeException) Code() string {
return "PayloadTooLargeException"
}
// Message returns the exception's message.
-func (s PayloadTooLargeException) Message() string {
+func (s *PayloadTooLargeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26931,22 +27067,22 @@ func (s PayloadTooLargeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PayloadTooLargeException) OrigErr() error {
+func (s *PayloadTooLargeException) OrigErr() error {
return nil
}
-func (s PayloadTooLargeException) Error() string {
+func (s *PayloadTooLargeException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PayloadTooLargeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PayloadTooLargeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PayloadTooLargeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PayloadTooLargeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PhoneNumberValidateInput struct {
@@ -27800,13 +27936,14 @@ type RecommenderConfigurationResponse struct {
_ struct{} `type:"structure"`
// A map that defines 1-10 custom endpoint or user attributes, depending on
- // the value for the RecommenderUserIdType property. Each of these attributes
+ // the value for the RecommendationProviderIdType property. Each of these attributes
// temporarily stores a recommended item that's retrieved from the recommender
// model and sent to an AWS Lambda function for additional processing. Each
// attribute can be used as a message variable in a message template.
//
// This value is null if the configuration doesn't invoke an AWS Lambda function
- // (LambdaFunctionArn) to perform additional processing of recommendation data.
+ // (RecommendationTransformerUri) to perform additional processing of recommendation
+ // data.
Attributes map[string]*string `type:"map"`
// The date, in extended ISO 8601 format, when the configuration was created
@@ -27868,18 +28005,19 @@ type RecommenderConfigurationResponse struct {
RecommendationTransformerUri *string `type:"string"`
// The custom display name for the standard endpoint or user attribute (RecommendationItems)
- // that temporarily stores a recommended item for each endpoint or user, depending
- // on the value for the RecommenderUserIdType property. This name appears in
- // the Attribute finder pane of the template editor on the Amazon Pinpoint console.
+ // that temporarily stores recommended items for each endpoint or user, depending
+ // on the value for the RecommendationProviderIdType property. This name appears
+ // in the Attribute finder of the template editor on the Amazon Pinpoint console.
//
// This value is null if the configuration doesn't invoke an AWS Lambda function
- // (LambdaFunctionArn) to perform additional processing of recommendation data.
+ // (RecommendationTransformerUri) to perform additional processing of recommendation
+ // data.
RecommendationsDisplayName *string `type:"string"`
// The number of recommended items that are retrieved from the model for each
- // endpoint or user, depending on the value for the RecommenderUserIdType property.
- // This number determines how many recommended attributes are available for
- // use as message variables in message templates.
+ // endpoint or user, depending on the value for the RecommendationProviderIdType
+ // property. This number determines how many recommended items are available
+ // for use in message variables.
RecommendationsPerMessage *int64 `type:"integer"`
}
@@ -28358,6 +28496,9 @@ type SMSMessage struct {
// your dedicated number.
Keyword *string `type:"string"`
+ // The URL of an image or video to display in the SMS message.
+ MediaUrl *string `type:"string"`
+
// The SMS message type. Valid values are: TRANSACTIONAL, the message is critical
// or time-sensitive, such as a one-time password that supports a customer transaction;
// and, PROMOTIONAL, the message is not critical or time-sensitive, such as
@@ -28401,6 +28542,12 @@ func (s *SMSMessage) SetKeyword(v string) *SMSMessage {
return s
}
+// SetMediaUrl sets the MediaUrl field's value.
+func (s *SMSMessage) SetMediaUrl(v string) *SMSMessage {
+ s.MediaUrl = &v
+ return s
+}
+
// SetMessageType sets the MessageType field's value.
func (s *SMSMessage) SetMessageType(v string) *SMSMessage {
s.MessageType = &v
@@ -30775,8 +30922,8 @@ func (s *TemplatesResponse) SetNextToken(v string) *TemplatesResponse {
// Provides information about an API request or response.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -30795,17 +30942,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30813,22 +30960,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the settings for a campaign treatment. A treatment is a variation
@@ -30836,6 +30983,11 @@ func (s TooManyRequestsException) RequestID() string {
type TreatmentResource struct {
_ struct{} `type:"structure"`
+ // The delivery configuration settings for sending the treatment through a custom
+ // channel. This object is required if the MessageConfiguration object for the
+ // treatment specifies a CustomMessage object.
+ CustomDeliveryConfiguration *CustomDeliveryConfiguration `type:"structure"`
+
// The unique identifier for the treatment.
//
// Id is a required field
@@ -30862,8 +31014,7 @@ type TreatmentResource struct {
// The custom description of the treatment.
TreatmentDescription *string `type:"string"`
- // The custom name of the treatment. A treatment is a variation of a campaign
- // that's used for A/B testing of a campaign.
+ // The custom name of the treatment.
TreatmentName *string `type:"string"`
}
@@ -30877,6 +31028,12 @@ func (s TreatmentResource) GoString() string {
return s.String()
}
+// SetCustomDeliveryConfiguration sets the CustomDeliveryConfiguration field's value.
+func (s *TreatmentResource) SetCustomDeliveryConfiguration(v *CustomDeliveryConfiguration) *TreatmentResource {
+ s.CustomDeliveryConfiguration = v
+ return s
+}
+
// SetId sets the Id field's value.
func (s *TreatmentResource) SetId(v string) *TreatmentResource {
s.Id = &v
@@ -32424,14 +32581,15 @@ type UpdateRecommenderConfiguration struct {
_ struct{} `type:"structure"`
// A map of key-value pairs that defines 1-10 custom endpoint or user attributes,
- // depending on the value for the RecommenderUserIdType property. Each of these
- // attributes temporarily stores a recommended item that's retrieved from the
- // recommender model and sent to an AWS Lambda function for additional processing.
- // Each attribute can be used as a message variable in a message template.
+ // depending on the value for the RecommendationProviderIdType property. Each
+ // of these attributes temporarily stores a recommended item that's retrieved
+ // from the recommender model and sent to an AWS Lambda function for additional
+ // processing. Each attribute can be used as a message variable in a message
+ // template.
//
// In the map, the key is the name of a custom attribute and the value is a
// custom display name for that attribute. The display name appears in the Attribute
- // finder pane of the template editor on the Amazon Pinpoint console. The following
+ // finder of the template editor on the Amazon Pinpoint console. The following
// restrictions apply to these names:
//
// * An attribute name must start with a letter or number and it can contain
@@ -32443,12 +32601,13 @@ type UpdateRecommenderConfiguration struct {
// spaces, underscores (_), or hyphens (-).
//
// This object is required if the configuration invokes an AWS Lambda function
- // (LambdaFunctionArn) to process recommendation data. Otherwise, don't include
- // this object in your request.
+ // (RecommendationTransformerUri) to process recommendation data. Otherwise,
+ // don't include this object in your request.
Attributes map[string]*string `type:"map"`
// A custom description of the configuration for the recommender model. The
- // description can contain up to 128 characters.
+ // description can contain up to 128 characters. The characters can be letters,
+ // numbers, spaces, or the following symbols: _ ; () , ‐.
Description *string `type:"string"`
// A custom name of the configuration for the recommender model. The name must
@@ -32468,7 +32627,7 @@ type UpdateRecommenderConfiguration struct {
// * PINPOINT_USER_ID - Associate each user in the model with a particular
// user and endpoint in Amazon Pinpoint. The data is correlated based on
// user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition
- // in Amazon Pinpoint has to specify a both a user ID (UserId) and an endpoint
+ // in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint
// ID. Otherwise, messages won’t be sent to the user's endpoint.
RecommendationProviderIdType *string `type:"string"`
@@ -32491,26 +32650,26 @@ type UpdateRecommenderConfiguration struct {
RecommendationTransformerUri *string `type:"string"`
// A custom display name for the standard endpoint or user attribute (RecommendationItems)
- // that temporarily stores a recommended item for each endpoint or user, depending
- // on the value for the RecommenderUserIdType property. This value is required
- // if the configuration doesn't invoke an AWS Lambda function (LambdaFunctionArn)
+ // that temporarily stores recommended items for each endpoint or user, depending
+ // on the value for the RecommendationProviderIdType property. This value is
+ // required if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri)
// to perform additional processing of recommendation data.
//
- // This name appears in the Attribute finder pane of the template editor on
- // the Amazon Pinpoint console. The name can contain up to 25 characters. The
- // characters can be letters, numbers, spaces, underscores (_), or hyphens (-).
- // These restrictions don't apply to attribute values.
+ // This name appears in the Attribute finder of the template editor on the Amazon
+ // Pinpoint console. The name can contain up to 25 characters. The characters
+ // can be letters, numbers, spaces, underscores (_), or hyphens (-). These restrictions
+ // don't apply to attribute values.
RecommendationsDisplayName *string `type:"string"`
// The number of recommended items to retrieve from the model for each endpoint
- // or user, depending on the value for the RecommenderUserIdType property. This
- // number determines how many recommended attributes are available for use as
- // message variables in message templates. The minimum value is 1. The maximum
- // value is 5. The default value is 5.
+ // or user, depending on the value for the RecommendationProviderIdType property.
+ // This number determines how many recommended items are available for use in
+ // message variables. The minimum value is 1. The maximum value is 5. The default
+ // value is 5.
//
// To use multiple recommended items and custom attributes with message variables,
- // you have to use an AWS Lambda function (LambdaFunctionArn) to perform additional
- // processing of recommendation data.
+ // you have to use an AWS Lambda function (RecommendationTransformerUri) to
+ // perform additional processing of recommendation data.
RecommendationsPerMessage *int64 `type:"integer"`
}
@@ -33734,18 +33893,20 @@ func (s *WaitTime) SetWaitUntil(v string) *WaitTime {
type WriteApplicationSettingsRequest struct {
_ struct{} `type:"structure"`
- // The settings for the AWS Lambda function to use by default as a code hook
- // for campaigns in the application. To override these settings for a specific
- // campaign, use the Campaign resource to define custom Lambda function settings
- // for the campaign.
+ // The settings for the AWS Lambda function to invoke by default as a code hook
+ // for campaigns in the application. You can use this hook to customize segments
+ // that are used by campaigns in the application.
+ //
+ // To override these settings and define custom settings for a specific campaign,
+ // use the CampaignHook object of the Campaign resource.
CampaignHook *CampaignHook `type:"structure"`
// Specifies whether to enable application-related alarms in Amazon CloudWatch.
CloudWatchMetricsEnabled *bool `type:"boolean"`
- // The default sending limits for campaigns in the application. To override
- // these limits for a specific campaign, use the Campaign resource to define
- // custom limits for the campaign.
+ // The default sending limits for campaigns and journeys in the application.
+ // To override these limits and define custom limits for a specific campaign
+ // or journey, use the Campaign resource or the Journey resource, respectively.
Limits *CampaignLimits `type:"structure"`
// The default quiet time for campaigns and journeys in the application. Quiet
@@ -33814,6 +33975,11 @@ type WriteCampaignRequest struct {
// in addition to the default treatment for the campaign.
AdditionalTreatments []*WriteTreatmentResource `type:"list"`
+ // The delivery configuration settings for sending the campaign through a custom
+ // channel. This object is required if the MessageConfiguration object for the
+ // campaign specifies a CustomMessage object.
+ CustomDeliveryConfiguration *CustomDeliveryConfiguration `type:"structure"`
+
// A custom description of the campaign.
Description *string `type:"string"`
@@ -33821,11 +33987,13 @@ type WriteCampaignRequest struct {
// messages from the campaign.
HoldoutPercent *int64 `type:"integer"`
- // The settings for the AWS Lambda function to use as a code hook for the campaign.
+ // The settings for the AWS Lambda function to invoke as a code hook for the
+ // campaign. You can use this hook to customize the segment that's used by the
+ // campaign.
Hook *CampaignHook `type:"structure"`
// Specifies whether to pause the campaign. A paused campaign doesn't run unless
- // you resume it by setting this value to false.
+ // you resume it by changing this value to false.
IsPaused *bool `type:"boolean"`
// The messaging limits for the campaign.
@@ -33854,10 +34022,12 @@ type WriteCampaignRequest struct {
// The message template to use for the campaign.
TemplateConfiguration *TemplateConfiguration `type:"structure"`
- // A custom description of a variation of the campaign to use for A/B testing.
+ // A custom description of the default treatment for the campaign.
TreatmentDescription *string `type:"string"`
- // A custom name for a variation of the campaign to use for A/B testing.
+ // A custom name of the default treatment for the campaign, if the campaign
+ // has multiple treatments. A treatment is a variation of a campaign that's
+ // used for A/B testing.
TreatmentName *string `type:"string"`
}
@@ -33884,6 +34054,11 @@ func (s *WriteCampaignRequest) Validate() error {
}
}
}
+ if s.CustomDeliveryConfiguration != nil {
+ if err := s.CustomDeliveryConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("CustomDeliveryConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
if s.Schedule != nil {
if err := s.Schedule.Validate(); err != nil {
invalidParams.AddNested("Schedule", err.(request.ErrInvalidParams))
@@ -33902,6 +34077,12 @@ func (s *WriteCampaignRequest) SetAdditionalTreatments(v []*WriteTreatmentResour
return s
}
+// SetCustomDeliveryConfiguration sets the CustomDeliveryConfiguration field's value.
+func (s *WriteCampaignRequest) SetCustomDeliveryConfiguration(v *CustomDeliveryConfiguration) *WriteCampaignRequest {
+ s.CustomDeliveryConfiguration = v
+ return s
+}
+
// SetDescription sets the Description field's value.
func (s *WriteCampaignRequest) SetDescription(v string) *WriteCampaignRequest {
s.Description = &v
@@ -34319,6 +34500,11 @@ func (s *WriteSegmentRequest) SetTags(v map[string]*string) *WriteSegmentRequest
type WriteTreatmentResource struct {
_ struct{} `type:"structure"`
+ // The delivery configuration settings for sending the treatment through a custom
+ // channel. This object is required if the MessageConfiguration object for the
+ // treatment specifies a CustomMessage object.
+ CustomDeliveryConfiguration *CustomDeliveryConfiguration `type:"structure"`
+
// The message configuration settings for the treatment.
MessageConfiguration *MessageConfiguration `type:"structure"`
@@ -34337,8 +34523,7 @@ type WriteTreatmentResource struct {
// A custom description of the treatment.
TreatmentDescription *string `type:"string"`
- // A custom name for the treatment. A treatment is a variation of a campaign
- // that's used for A/B testing of a campaign.
+ // A custom name for the treatment.
TreatmentName *string `type:"string"`
}
@@ -34358,6 +34543,11 @@ func (s *WriteTreatmentResource) Validate() error {
if s.SizePercent == nil {
invalidParams.Add(request.NewErrParamRequired("SizePercent"))
}
+ if s.CustomDeliveryConfiguration != nil {
+ if err := s.CustomDeliveryConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("CustomDeliveryConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
if s.Schedule != nil {
if err := s.Schedule.Validate(); err != nil {
invalidParams.AddNested("Schedule", err.(request.ErrInvalidParams))
@@ -34370,6 +34560,12 @@ func (s *WriteTreatmentResource) Validate() error {
return nil
}
+// SetCustomDeliveryConfiguration sets the CustomDeliveryConfiguration field's value.
+func (s *WriteTreatmentResource) SetCustomDeliveryConfiguration(v *CustomDeliveryConfiguration) *WriteTreatmentResource {
+ s.CustomDeliveryConfiguration = v
+ return s
+}
+
// SetMessageConfiguration sets the MessageConfiguration field's value.
func (s *WriteTreatmentResource) SetMessageConfiguration(v *MessageConfiguration) *WriteTreatmentResource {
s.MessageConfiguration = v
@@ -34525,6 +34721,41 @@ const (
DurationDay30 = "DAY_30"
)
+const (
+ // EndpointTypesElementGcm is a EndpointTypesElement enum value
+ EndpointTypesElementGcm = "GCM"
+
+ // EndpointTypesElementApns is a EndpointTypesElement enum value
+ EndpointTypesElementApns = "APNS"
+
+ // EndpointTypesElementApnsSandbox is a EndpointTypesElement enum value
+ EndpointTypesElementApnsSandbox = "APNS_SANDBOX"
+
+ // EndpointTypesElementApnsVoip is a EndpointTypesElement enum value
+ EndpointTypesElementApnsVoip = "APNS_VOIP"
+
+ // EndpointTypesElementApnsVoipSandbox is a EndpointTypesElement enum value
+ EndpointTypesElementApnsVoipSandbox = "APNS_VOIP_SANDBOX"
+
+ // EndpointTypesElementAdm is a EndpointTypesElement enum value
+ EndpointTypesElementAdm = "ADM"
+
+ // EndpointTypesElementSms is a EndpointTypesElement enum value
+ EndpointTypesElementSms = "SMS"
+
+ // EndpointTypesElementVoice is a EndpointTypesElement enum value
+ EndpointTypesElementVoice = "VOICE"
+
+ // EndpointTypesElementEmail is a EndpointTypesElement enum value
+ EndpointTypesElementEmail = "EMAIL"
+
+ // EndpointTypesElementBaidu is a EndpointTypesElement enum value
+ EndpointTypesElementBaidu = "BAIDU"
+
+ // EndpointTypesElementCustom is a EndpointTypesElement enum value
+ EndpointTypesElementCustom = "CUSTOM"
+)
+
const (
// FilterTypeSystem is a FilterType enum value
FilterTypeSystem = "SYSTEM"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go b/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go
index eddb51929b1..a1e8aa0a79a 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go
@@ -605,8 +605,8 @@ func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutp
// The pagination token expired. Try again without a pagination token.
type ExpiredNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -623,17 +623,17 @@ func (s ExpiredNextTokenException) GoString() string {
func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error {
return &ExpiredNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExpiredNextTokenException) Code() string {
+func (s *ExpiredNextTokenException) Code() string {
return "ExpiredNextTokenException"
}
// Message returns the exception's message.
-func (s ExpiredNextTokenException) Message() string {
+func (s *ExpiredNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -641,22 +641,22 @@ func (s ExpiredNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExpiredNextTokenException) OrigErr() error {
+func (s *ExpiredNextTokenException) OrigErr() error {
return nil
}
-func (s ExpiredNextTokenException) Error() string {
+func (s *ExpiredNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExpiredNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExpiredNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExpiredNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExpiredNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The constraints that you want all returned products to match.
@@ -981,8 +981,8 @@ func (s *GetProductsOutput) SetPriceList(v []aws.JSONValue) *GetProductsOutput {
// An error on the server occurred during the processing of your request. Try
// again later.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -999,17 +999,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1017,28 +1017,28 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The pagination token is invalid. Try again without a pagination token.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1055,17 +1055,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1073,28 +1073,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameters had an invalid value.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1111,17 +1111,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1129,28 +1129,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource can't be found.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1167,17 +1167,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1185,22 +1185,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The metadata for a service, such as the service code and available attribute
diff --git a/vendor/github.com/aws/aws-sdk-go/service/qldb/api.go b/vendor/github.com/aws/aws-sdk-go/service/qldb/api.go
index 0fcb1f12705..8a4e4d98b1d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/qldb/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/qldb/api.go
@@ -2348,8 +2348,8 @@ func (s *GetRevisionOutput) SetRevision(v *ValueHolder) *GetRevisionOutput {
// One or more parameters in the request aren't valid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -2369,17 +2369,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2387,22 +2387,22 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The information about a journal export job, including the ledger name, export
@@ -2567,8 +2567,8 @@ func (s *LedgerSummary) SetState(v string) *LedgerSummary {
// You have reached the limit on the maximum number of resources allowed.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -2588,17 +2588,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2606,22 +2606,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListJournalS3ExportsForLedgerInput struct {
@@ -2979,8 +2979,8 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3003,17 +3003,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3021,28 +3021,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource can't be modified at this time.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3065,17 +3065,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3083,28 +3083,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource doesn't exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3127,17 +3127,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3145,28 +3145,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because a condition wasn't satisfied in advance.
type ResourcePreconditionNotMetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3189,17 +3189,17 @@ func (s ResourcePreconditionNotMetException) GoString() string {
func newErrorResourcePreconditionNotMetException(v protocol.ResponseMetadata) error {
return &ResourcePreconditionNotMetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourcePreconditionNotMetException) Code() string {
+func (s *ResourcePreconditionNotMetException) Code() string {
return "ResourcePreconditionNotMetException"
}
// Message returns the exception's message.
-func (s ResourcePreconditionNotMetException) Message() string {
+func (s *ResourcePreconditionNotMetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3207,22 +3207,22 @@ func (s ResourcePreconditionNotMetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourcePreconditionNotMetException) OrigErr() error {
+func (s *ResourcePreconditionNotMetException) OrigErr() error {
return nil
}
-func (s ResourcePreconditionNotMetException) Error() string {
+func (s *ResourcePreconditionNotMetException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourcePreconditionNotMetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourcePreconditionNotMetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourcePreconditionNotMetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourcePreconditionNotMetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The encryption settings that are used by a journal export job to write data
diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go
index e4cfc186fcd..9fe23e9cd6f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go
@@ -7168,8 +7168,8 @@ func (c *QuickSight) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInp
// your policies have the correct permissions, and that you are using the correct
// access keys.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -7189,17 +7189,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7207,22 +7207,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The active AWS Identity and Access Management (IAM) policy assignment.
@@ -7993,8 +7993,8 @@ func (s *ColumnTag) SetColumnGeographicRole(v string) *ColumnTag {
// A resource is already in a state that indicates an action is happening that
// must complete before a new update can be applied.
type ConcurrentUpdatingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -8013,17 +8013,17 @@ func (s ConcurrentUpdatingException) GoString() string {
func newErrorConcurrentUpdatingException(v protocol.ResponseMetadata) error {
return &ConcurrentUpdatingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentUpdatingException) Code() string {
+func (s *ConcurrentUpdatingException) Code() string {
return "ConcurrentUpdatingException"
}
// Message returns the exception's message.
-func (s ConcurrentUpdatingException) Message() string {
+func (s *ConcurrentUpdatingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8031,28 +8031,28 @@ func (s ConcurrentUpdatingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentUpdatingException) OrigErr() error {
+func (s *ConcurrentUpdatingException) OrigErr() error {
return nil
}
-func (s ConcurrentUpdatingException) Error() string {
+func (s *ConcurrentUpdatingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentUpdatingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentUpdatingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentUpdatingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentUpdatingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Updating or deleting a resource can cause an inconsistent state.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -8072,17 +8072,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8090,22 +8090,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A transform operation that creates calculated columns. Columns created in
@@ -14208,8 +14208,8 @@ func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput {
// The domain specified isn't on the allow list. All domains for embedded dashboards
// must be added to the approved list by an Amazon QuickSight admin.
type DomainNotWhitelistedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -14229,17 +14229,17 @@ func (s DomainNotWhitelistedException) GoString() string {
func newErrorDomainNotWhitelistedException(v protocol.ResponseMetadata) error {
return &DomainNotWhitelistedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DomainNotWhitelistedException) Code() string {
+func (s *DomainNotWhitelistedException) Code() string {
return "DomainNotWhitelistedException"
}
// Message returns the exception's message.
-func (s DomainNotWhitelistedException) Message() string {
+func (s *DomainNotWhitelistedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14247,22 +14247,22 @@ func (s DomainNotWhitelistedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DomainNotWhitelistedException) OrigErr() error {
+func (s *DomainNotWhitelistedException) OrigErr() error {
return nil
}
-func (s DomainNotWhitelistedException) Error() string {
+func (s *DomainNotWhitelistedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DomainNotWhitelistedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DomainNotWhitelistedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DomainNotWhitelistedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DomainNotWhitelistedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Error information for the SPICE ingestion of a dataset.
@@ -14797,8 +14797,8 @@ func (s *IAMPolicyAssignmentSummary) SetAssignmentStatus(v string) *IAMPolicyAss
// The identity type specified isn't supported. Supported identity types include
// IAM and QUICKSIGHT.
type IdentityTypeNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -14818,17 +14818,17 @@ func (s IdentityTypeNotSupportedException) GoString() string {
func newErrorIdentityTypeNotSupportedException(v protocol.ResponseMetadata) error {
return &IdentityTypeNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdentityTypeNotSupportedException) Code() string {
+func (s *IdentityTypeNotSupportedException) Code() string {
return "IdentityTypeNotSupportedException"
}
// Message returns the exception's message.
-func (s IdentityTypeNotSupportedException) Message() string {
+func (s *IdentityTypeNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14836,22 +14836,22 @@ func (s IdentityTypeNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdentityTypeNotSupportedException) OrigErr() error {
+func (s *IdentityTypeNotSupportedException) OrigErr() error {
return nil
}
-func (s IdentityTypeNotSupportedException) Error() string {
+func (s *IdentityTypeNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdentityTypeNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdentityTypeNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdentityTypeNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdentityTypeNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the SPICE ingestion for a dataset.
@@ -15085,8 +15085,8 @@ func (s *IntegerParameter) SetValues(v []*int64) *IntegerParameter {
// An internal failure occurred.
type InternalFailureException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15106,17 +15106,17 @@ func (s InternalFailureException) GoString() string {
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalFailureException) Code() string {
+func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
-func (s InternalFailureException) Message() string {
+func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15124,28 +15124,28 @@ func (s InternalFailureException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalFailureException) OrigErr() error {
+func (s *InternalFailureException) OrigErr() error {
return nil
}
-func (s InternalFailureException) Error() string {
+func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalFailureException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalFailureException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalFailureException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalFailureException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The NextToken value isn't valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15165,17 +15165,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15183,28 +15183,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameters has a value that isn't valid.
type InvalidParameterValueException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15224,17 +15224,17 @@ func (s InvalidParameterValueException) GoString() string {
func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error {
return &InvalidParameterValueException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValueException) Code() string {
+func (s *InvalidParameterValueException) Code() string {
return "InvalidParameterValueException"
}
// Message returns the exception's message.
-func (s InvalidParameterValueException) Message() string {
+func (s *InvalidParameterValueException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15242,22 +15242,22 @@ func (s InvalidParameterValueException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValueException) OrigErr() error {
+func (s *InvalidParameterValueException) OrigErr() error {
return nil
}
-func (s InvalidParameterValueException) Error() string {
+func (s *InvalidParameterValueException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValueException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValueException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValueException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValueException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Jira parameters.
@@ -15394,8 +15394,8 @@ func (s *JoinInstruction) SetType(v string) *JoinInstruction {
// A limit is exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -15418,17 +15418,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15436,22 +15436,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListDashboardVersionsInput struct {
@@ -17973,8 +17973,8 @@ func (s *PostgreSqlParameters) SetPort(v int64) *PostgreSqlParameters {
// One or more preconditions aren't met.
type PreconditionNotMetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -17994,17 +17994,17 @@ func (s PreconditionNotMetException) GoString() string {
func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error {
return &PreconditionNotMetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreconditionNotMetException) Code() string {
+func (s *PreconditionNotMetException) Code() string {
return "PreconditionNotMetException"
}
// Message returns the exception's message.
-func (s PreconditionNotMetException) Message() string {
+func (s *PreconditionNotMetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18012,22 +18012,22 @@ func (s PreconditionNotMetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreconditionNotMetException) OrigErr() error {
+func (s *PreconditionNotMetException) OrigErr() error {
return nil
}
-func (s PreconditionNotMetException) Error() string {
+func (s *PreconditionNotMetException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreconditionNotMetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreconditionNotMetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreconditionNotMetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreconditionNotMetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Presto parameters.
@@ -18684,8 +18684,8 @@ func (s *RenameColumnOperation) SetNewColumnName(v string) *RenameColumnOperatio
// The resource specified already exists.
type ResourceExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -18708,17 +18708,17 @@ func (s ResourceExistsException) GoString() string {
func newErrorResourceExistsException(v protocol.ResponseMetadata) error {
return &ResourceExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceExistsException) Code() string {
+func (s *ResourceExistsException) Code() string {
return "ResourceExistsException"
}
// Message returns the exception's message.
-func (s ResourceExistsException) Message() string {
+func (s *ResourceExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18726,28 +18726,28 @@ func (s ResourceExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceExistsException) OrigErr() error {
+func (s *ResourceExistsException) OrigErr() error {
return nil
}
-func (s ResourceExistsException) Error() string {
+func (s *ResourceExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more resources can't be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -18770,17 +18770,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18788,22 +18788,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Permission for the resource.
@@ -18870,8 +18870,8 @@ func (s *ResourcePermission) SetPrincipal(v string) *ResourcePermission {
// This resource is currently unavailable.
type ResourceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -18894,17 +18894,17 @@ func (s ResourceUnavailableException) GoString() string {
func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error {
return &ResourceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceUnavailableException) Code() string {
+func (s *ResourceUnavailableException) Code() string {
return "ResourceUnavailableException"
}
// Message returns the exception's message.
-func (s ResourceUnavailableException) Message() string {
+func (s *ResourceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18912,22 +18912,22 @@ func (s ResourceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceUnavailableException) OrigErr() error {
+func (s *ResourceUnavailableException) OrigErr() error {
return nil
}
-func (s ResourceUnavailableException) Error() string {
+func (s *ResourceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about rows for a data set SPICE ingestion.
@@ -19326,8 +19326,8 @@ func (s *ServiceNowParameters) SetSiteBaseUrl(v string) *ServiceNowParameters {
// The number of minutes specified for the lifetime of a session isn't valid.
// The session lifetime must be 15-600 minutes.
type SessionLifetimeInMinutesInvalidException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -19347,17 +19347,17 @@ func (s SessionLifetimeInMinutesInvalidException) GoString() string {
func newErrorSessionLifetimeInMinutesInvalidException(v protocol.ResponseMetadata) error {
return &SessionLifetimeInMinutesInvalidException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SessionLifetimeInMinutesInvalidException) Code() string {
+func (s *SessionLifetimeInMinutesInvalidException) Code() string {
return "SessionLifetimeInMinutesInvalidException"
}
// Message returns the exception's message.
-func (s SessionLifetimeInMinutesInvalidException) Message() string {
+func (s *SessionLifetimeInMinutesInvalidException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19365,22 +19365,22 @@ func (s SessionLifetimeInMinutesInvalidException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SessionLifetimeInMinutesInvalidException) OrigErr() error {
+func (s *SessionLifetimeInMinutesInvalidException) OrigErr() error {
return nil
}
-func (s SessionLifetimeInMinutesInvalidException) Error() string {
+func (s *SessionLifetimeInMinutesInvalidException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SessionLifetimeInMinutesInvalidException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SessionLifetimeInMinutesInvalidException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SessionLifetimeInMinutesInvalidException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SessionLifetimeInMinutesInvalidException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Sheet controls option.
@@ -20514,8 +20514,8 @@ func (s *TeradataParameters) SetPort(v int64) *TeradataParameters {
// Access is throttled.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -20535,17 +20535,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20553,22 +20553,22 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A data transformation on a logical table. This is a variant type structure.
@@ -20747,8 +20747,8 @@ func (s *TwitterParameters) SetQuery(v string) *TwitterParameters {
// Amazon QuickSight currently has Standard Edition and Enterprise Edition.
// Not every operation and capability is available in every edition.
type UnsupportedUserEditionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -20768,17 +20768,17 @@ func (s UnsupportedUserEditionException) GoString() string {
func newErrorUnsupportedUserEditionException(v protocol.ResponseMetadata) error {
return &UnsupportedUserEditionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedUserEditionException) Code() string {
+func (s *UnsupportedUserEditionException) Code() string {
return "UnsupportedUserEditionException"
}
// Message returns the exception's message.
-func (s UnsupportedUserEditionException) Message() string {
+func (s *UnsupportedUserEditionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -20786,22 +20786,22 @@ func (s UnsupportedUserEditionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedUserEditionException) OrigErr() error {
+func (s *UnsupportedUserEditionException) OrigErr() error {
return nil
}
-func (s UnsupportedUserEditionException) Error() string {
+func (s *UnsupportedUserEditionException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedUserEditionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedUserEditionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedUserEditionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedUserEditionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -23267,8 +23267,8 @@ func (s *User) SetUserName(v string) *User {
// operation that requires finding a user based on a provided user name, such
// as DeleteUser, DescribeUser, and so on.
type UserNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -23288,17 +23288,17 @@ func (s UserNotFoundException) GoString() string {
func newErrorUserNotFoundException(v protocol.ResponseMetadata) error {
return &UserNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UserNotFoundException) Code() string {
+func (s *UserNotFoundException) Code() string {
return "QuickSightUserNotFoundException"
}
// Message returns the exception's message.
-func (s UserNotFoundException) Message() string {
+func (s *UserNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23306,22 +23306,22 @@ func (s UserNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UserNotFoundException) OrigErr() error {
+func (s *UserNotFoundException) OrigErr() error {
return nil
}
-func (s UserNotFoundException) Error() string {
+func (s *UserNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UserNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UserNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UserNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UserNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// VPC connection properties.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ram/api.go b/vendor/github.com/aws/aws-sdk-go/service/ram/api.go
index af4ed72da80..88d61c3784a 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ram/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ram/api.go
@@ -1005,6 +1005,9 @@ func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *
// * InvalidParameterException
// A parameter is not valid.
//
+// * ResourceArnNotFoundException
+// An Amazon Resource Name (ARN) was not found.
+//
// * ServerInternalException
// The service could not respond to the request due to an internal problem.
//
@@ -1309,6 +1312,9 @@ func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitati
// * MalformedArnException
// The format of an Amazon Resource Name (ARN) is not valid.
//
+// * UnknownResourceException
+// A specified resource was not found.
+//
// * InvalidNextTokenException
// The specified value for NextToken is not valid.
//
@@ -2051,6 +2057,94 @@ func (c *RAM) ListResourceSharePermissionsWithContext(ctx aws.Context, input *Li
return out, req.Send()
}
+const opListResourceTypes = "ListResourceTypes"
+
+// ListResourceTypesRequest generates a "aws/request.Request" representing the
+// client's request for the ListResourceTypes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListResourceTypes for more information on using the ListResourceTypes
+// 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 ListResourceTypesRequest method.
+// req, resp := client.ListResourceTypesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourceTypes
+func (c *RAM) ListResourceTypesRequest(input *ListResourceTypesInput) (req *request.Request, output *ListResourceTypesOutput) {
+ op := &request.Operation{
+ Name: opListResourceTypes,
+ HTTPMethod: "POST",
+ HTTPPath: "/listresourcetypes",
+ }
+
+ if input == nil {
+ input = &ListResourceTypesInput{}
+ }
+
+ output = &ListResourceTypesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListResourceTypes API operation for AWS Resource Access Manager.
+//
+// Lists the shareable resource types supported by AWS RAM.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Resource Access Manager's
+// API operation ListResourceTypes for usage and error information.
+//
+// Returned Error Types:
+// * InvalidNextTokenException
+// The specified value for NextToken is not valid.
+//
+// * InvalidParameterException
+// A parameter is not valid.
+//
+// * ServerInternalException
+// The service could not respond to the request due to an internal problem.
+//
+// * ServiceUnavailableException
+// The service is not available.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourceTypes
+func (c *RAM) ListResourceTypes(input *ListResourceTypesInput) (*ListResourceTypesOutput, error) {
+ req, out := c.ListResourceTypesRequest(input)
+ return out, req.Send()
+}
+
+// ListResourceTypesWithContext is the same as ListResourceTypes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListResourceTypes 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 *RAM) ListResourceTypesWithContext(ctx aws.Context, input *ListResourceTypesInput, opts ...request.Option) (*ListResourceTypesOutput, error) {
+ req, out := c.ListResourceTypesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListResources = "ListResources"
// ListResourcesRequest generates a "aws/request.Request" representing the
@@ -2288,6 +2382,9 @@ func (c *RAM) PromoteResourceShareCreatedFromPolicyRequest(input *PromoteResourc
// * ServiceUnavailableException
// The service is not available.
//
+// * UnknownResourceException
+// A specified resource was not found.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/PromoteResourceShareCreatedFromPolicy
func (c *RAM) PromoteResourceShareCreatedFromPolicy(input *PromoteResourceShareCreatedFromPolicyInput) (*PromoteResourceShareCreatedFromPolicyOutput, error) {
req, out := c.PromoteResourceShareCreatedFromPolicyRequest(input)
@@ -3971,8 +4068,8 @@ func (s *GetResourceSharesOutput) SetResourceShares(v []*ResourceShare) *GetReso
// one of the other input parameters is different from the previous call to
// the operation.
type IdempotentParameterMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3989,17 +4086,17 @@ func (s IdempotentParameterMismatchException) GoString() string {
func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatchException) Code() string {
+func (s *IdempotentParameterMismatchException) Code() string {
return "IdempotentParameterMismatchException"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatchException) Message() string {
+func (s *IdempotentParameterMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4007,28 +4104,28 @@ func (s IdempotentParameterMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatchException) OrigErr() error {
+func (s *IdempotentParameterMismatchException) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatchException) Error() string {
+func (s *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A client token is not valid.
type InvalidClientTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4045,17 +4142,17 @@ func (s InvalidClientTokenException) GoString() string {
func newErrorInvalidClientTokenException(v protocol.ResponseMetadata) error {
return &InvalidClientTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidClientTokenException) Code() string {
+func (s *InvalidClientTokenException) Code() string {
return "InvalidClientTokenException"
}
// Message returns the exception's message.
-func (s InvalidClientTokenException) Message() string {
+func (s *InvalidClientTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4063,28 +4160,28 @@ func (s InvalidClientTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidClientTokenException) OrigErr() error {
+func (s *InvalidClientTokenException) OrigErr() error {
return nil
}
-func (s InvalidClientTokenException) Error() string {
+func (s *InvalidClientTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidClientTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidClientTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidClientTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidClientTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified value for MaxResults is not valid.
type InvalidMaxResultsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4101,17 +4198,17 @@ func (s InvalidMaxResultsException) GoString() string {
func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error {
return &InvalidMaxResultsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidMaxResultsException) Code() string {
+func (s *InvalidMaxResultsException) Code() string {
return "InvalidMaxResultsException"
}
// Message returns the exception's message.
-func (s InvalidMaxResultsException) Message() string {
+func (s *InvalidMaxResultsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4119,28 +4216,28 @@ func (s InvalidMaxResultsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidMaxResultsException) OrigErr() error {
+func (s *InvalidMaxResultsException) OrigErr() error {
return nil
}
-func (s InvalidMaxResultsException) Error() string {
+func (s *InvalidMaxResultsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidMaxResultsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidMaxResultsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidMaxResultsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidMaxResultsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified value for NextToken is not valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4157,17 +4254,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4175,28 +4272,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A parameter is not valid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4213,17 +4310,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4231,28 +4328,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource type is not valid.
type InvalidResourceTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4269,17 +4366,17 @@ func (s InvalidResourceTypeException) GoString() string {
func newErrorInvalidResourceTypeException(v protocol.ResponseMetadata) error {
return &InvalidResourceTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceTypeException) Code() string {
+func (s *InvalidResourceTypeException) Code() string {
return "InvalidResourceTypeException"
}
// Message returns the exception's message.
-func (s InvalidResourceTypeException) Message() string {
+func (s *InvalidResourceTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4287,28 +4384,28 @@ func (s InvalidResourceTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceTypeException) OrigErr() error {
+func (s *InvalidResourceTypeException) OrigErr() error {
return nil
}
-func (s InvalidResourceTypeException) Error() string {
+func (s *InvalidResourceTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested state transition is not valid.
type InvalidStateTransitionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4325,17 +4422,17 @@ func (s InvalidStateTransitionException) GoString() string {
func newErrorInvalidStateTransitionException(v protocol.ResponseMetadata) error {
return &InvalidStateTransitionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateTransitionException) Code() string {
+func (s *InvalidStateTransitionException) Code() string {
return "InvalidStateTransitionException"
}
// Message returns the exception's message.
-func (s InvalidStateTransitionException) Message() string {
+func (s *InvalidStateTransitionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4343,22 +4440,22 @@ func (s InvalidStateTransitionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateTransitionException) OrigErr() error {
+func (s *InvalidStateTransitionException) OrigErr() error {
return nil
}
-func (s InvalidStateTransitionException) Error() string {
+func (s *InvalidStateTransitionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateTransitionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateTransitionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateTransitionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateTransitionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListPendingInvitationResourcesInput struct {
@@ -4569,9 +4666,11 @@ type ListPrincipalsInput struct {
// The resource type.
//
- // Valid values: ec2:CapacityReservation | ec2:Subnet | ec2:TrafficMirrorTarget
- // | ec2:TransitGateway | license-manager:LicenseConfiguration | rds:Cluster
- // | route53resolver:ResolverRule I resource-groups:Group
+ // Valid values: codebuild:Project | codebuild:ReportGroup | ec2:CapacityReservation
+ // | ec2:DedicatedHost | ec2:Subnet | ec2:TrafficMirrorTarget | ec2:TransitGateway
+ // | imagebuilder:Component | imagebuilder:Image | imagebuilder:ImageRecipe
+ // | license-manager:LicenseConfiguration I resource-groups:Group | rds:Cluster
+ // | route53resolver:ResolverRule
ResourceType *string `locationName:"resourceType" type:"string"`
}
@@ -4769,6 +4868,85 @@ func (s *ListResourceSharePermissionsOutput) SetPermissions(v []*ResourceSharePe
return s
}
+type ListResourceTypesInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return with a single call. To retrieve the
+ // remaining results, make another call with the returned nextToken value.
+ MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
+
+ // The token for the next page of results.
+ NextToken *string `locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s ListResourceTypesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListResourceTypesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListResourceTypesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListResourceTypesInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListResourceTypesInput) SetMaxResults(v int64) *ListResourceTypesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListResourceTypesInput) SetNextToken(v string) *ListResourceTypesInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListResourceTypesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+
+ // The shareable resource types supported by AWS RAM.
+ ResourceTypes []*ServiceNameAndResourceType `locationName:"resourceTypes" type:"list"`
+}
+
+// String returns the string representation
+func (s ListResourceTypesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListResourceTypesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListResourceTypesOutput) SetNextToken(v string) *ListResourceTypesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetResourceTypes sets the ResourceTypes field's value.
+func (s *ListResourceTypesOutput) SetResourceTypes(v []*ServiceNameAndResourceType) *ListResourceTypesOutput {
+ s.ResourceTypes = v
+ return s
+}
+
type ListResourcesInput struct {
_ struct{} `type:"structure"`
@@ -4795,9 +4973,11 @@ type ListResourcesInput struct {
// The resource type.
//
- // Valid values: ec2:CapacityReservation | ec2:Subnet | ec2:TrafficMirrorTarget
- // | ec2:TransitGateway | license-manager:LicenseConfiguration | rds:Cluster
- // | route53resolver:ResolverRule | resource-groups:Group
+ // Valid values: codebuild:Project | codebuild:ReportGroup | ec2:CapacityReservation
+ // | ec2:DedicatedHost | ec2:Subnet | ec2:TrafficMirrorTarget | ec2:TransitGateway
+ // | imagebuilder:Component | imagebuilder:Image | imagebuilder:ImageRecipe
+ // | license-manager:LicenseConfiguration I resource-groups:Group | rds:Cluster
+ // | route53resolver:ResolverRule
ResourceType *string `locationName:"resourceType" type:"string"`
}
@@ -4904,8 +5084,8 @@ func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput {
// The format of an Amazon Resource Name (ARN) is not valid.
type MalformedArnException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4922,17 +5102,17 @@ func (s MalformedArnException) GoString() string {
func newErrorMalformedArnException(v protocol.ResponseMetadata) error {
return &MalformedArnException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedArnException) Code() string {
+func (s *MalformedArnException) Code() string {
return "MalformedArnException"
}
// Message returns the exception's message.
-func (s MalformedArnException) Message() string {
+func (s *MalformedArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4940,28 +5120,28 @@ func (s MalformedArnException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedArnException) OrigErr() error {
+func (s *MalformedArnException) OrigErr() error {
return nil
}
-func (s MalformedArnException) Error() string {
+func (s *MalformedArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedArnException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedArnException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedArnException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedArnException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A required input parameter is missing.
type MissingRequiredParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4978,17 +5158,17 @@ func (s MissingRequiredParameterException) GoString() string {
func newErrorMissingRequiredParameterException(v protocol.ResponseMetadata) error {
return &MissingRequiredParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingRequiredParameterException) Code() string {
+func (s *MissingRequiredParameterException) Code() string {
return "MissingRequiredParameterException"
}
// Message returns the exception's message.
-func (s MissingRequiredParameterException) Message() string {
+func (s *MissingRequiredParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4996,28 +5176,28 @@ func (s MissingRequiredParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingRequiredParameterException) OrigErr() error {
+func (s *MissingRequiredParameterException) OrigErr() error {
return nil
}
-func (s MissingRequiredParameterException) Error() string {
+func (s *MissingRequiredParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingRequiredParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingRequiredParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingRequiredParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingRequiredParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested operation is not permitted.
type OperationNotPermittedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5034,17 +5214,17 @@ func (s OperationNotPermittedException) GoString() string {
func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error {
return &OperationNotPermittedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotPermittedException) Code() string {
+func (s *OperationNotPermittedException) Code() string {
return "OperationNotPermittedException"
}
// Message returns the exception's message.
-func (s OperationNotPermittedException) Message() string {
+func (s *OperationNotPermittedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5052,22 +5232,22 @@ func (s OperationNotPermittedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotPermittedException) OrigErr() error {
+func (s *OperationNotPermittedException) OrigErr() error {
return nil
}
-func (s OperationNotPermittedException) Error() string {
+func (s *OperationNotPermittedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotPermittedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotPermittedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotPermittedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotPermittedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a principal for use with AWS Resource Access Manager.
@@ -5363,8 +5543,8 @@ func (s *Resource) SetType(v string) *Resource {
// An Amazon Resource Name (ARN) was not found.
type ResourceArnNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5381,17 +5561,17 @@ func (s ResourceArnNotFoundException) GoString() string {
func newErrorResourceArnNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceArnNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceArnNotFoundException) Code() string {
+func (s *ResourceArnNotFoundException) Code() string {
return "ResourceArnNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceArnNotFoundException) Message() string {
+func (s *ResourceArnNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5399,22 +5579,22 @@ func (s ResourceArnNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceArnNotFoundException) OrigErr() error {
+func (s *ResourceArnNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceArnNotFoundException) Error() string {
+func (s *ResourceArnNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceArnNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceArnNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceArnNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceArnNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a resource share.
@@ -5726,8 +5906,8 @@ func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation {
// The invitation was already accepted.
type ResourceShareInvitationAlreadyAcceptedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5744,17 +5924,17 @@ func (s ResourceShareInvitationAlreadyAcceptedException) GoString() string {
func newErrorResourceShareInvitationAlreadyAcceptedException(v protocol.ResponseMetadata) error {
return &ResourceShareInvitationAlreadyAcceptedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceShareInvitationAlreadyAcceptedException) Code() string {
+func (s *ResourceShareInvitationAlreadyAcceptedException) Code() string {
return "ResourceShareInvitationAlreadyAcceptedException"
}
// Message returns the exception's message.
-func (s ResourceShareInvitationAlreadyAcceptedException) Message() string {
+func (s *ResourceShareInvitationAlreadyAcceptedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5762,28 +5942,28 @@ func (s ResourceShareInvitationAlreadyAcceptedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceShareInvitationAlreadyAcceptedException) OrigErr() error {
+func (s *ResourceShareInvitationAlreadyAcceptedException) OrigErr() error {
return nil
}
-func (s ResourceShareInvitationAlreadyAcceptedException) Error() string {
+func (s *ResourceShareInvitationAlreadyAcceptedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceShareInvitationAlreadyAcceptedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceShareInvitationAlreadyAcceptedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceShareInvitationAlreadyAcceptedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceShareInvitationAlreadyAcceptedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The invitation was already rejected.
type ResourceShareInvitationAlreadyRejectedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5800,17 +5980,17 @@ func (s ResourceShareInvitationAlreadyRejectedException) GoString() string {
func newErrorResourceShareInvitationAlreadyRejectedException(v protocol.ResponseMetadata) error {
return &ResourceShareInvitationAlreadyRejectedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceShareInvitationAlreadyRejectedException) Code() string {
+func (s *ResourceShareInvitationAlreadyRejectedException) Code() string {
return "ResourceShareInvitationAlreadyRejectedException"
}
// Message returns the exception's message.
-func (s ResourceShareInvitationAlreadyRejectedException) Message() string {
+func (s *ResourceShareInvitationAlreadyRejectedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5818,28 +5998,28 @@ func (s ResourceShareInvitationAlreadyRejectedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceShareInvitationAlreadyRejectedException) OrigErr() error {
+func (s *ResourceShareInvitationAlreadyRejectedException) OrigErr() error {
return nil
}
-func (s ResourceShareInvitationAlreadyRejectedException) Error() string {
+func (s *ResourceShareInvitationAlreadyRejectedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceShareInvitationAlreadyRejectedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceShareInvitationAlreadyRejectedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceShareInvitationAlreadyRejectedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceShareInvitationAlreadyRejectedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Amazon Resource Name (ARN) for an invitation was not found.
type ResourceShareInvitationArnNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5856,17 +6036,17 @@ func (s ResourceShareInvitationArnNotFoundException) GoString() string {
func newErrorResourceShareInvitationArnNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceShareInvitationArnNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceShareInvitationArnNotFoundException) Code() string {
+func (s *ResourceShareInvitationArnNotFoundException) Code() string {
return "ResourceShareInvitationArnNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceShareInvitationArnNotFoundException) Message() string {
+func (s *ResourceShareInvitationArnNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5874,28 +6054,28 @@ func (s ResourceShareInvitationArnNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceShareInvitationArnNotFoundException) OrigErr() error {
+func (s *ResourceShareInvitationArnNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceShareInvitationArnNotFoundException) Error() string {
+func (s *ResourceShareInvitationArnNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceShareInvitationArnNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceShareInvitationArnNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceShareInvitationArnNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceShareInvitationArnNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The invitation is expired.
type ResourceShareInvitationExpiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5912,17 +6092,17 @@ func (s ResourceShareInvitationExpiredException) GoString() string {
func newErrorResourceShareInvitationExpiredException(v protocol.ResponseMetadata) error {
return &ResourceShareInvitationExpiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceShareInvitationExpiredException) Code() string {
+func (s *ResourceShareInvitationExpiredException) Code() string {
return "ResourceShareInvitationExpiredException"
}
// Message returns the exception's message.
-func (s ResourceShareInvitationExpiredException) Message() string {
+func (s *ResourceShareInvitationExpiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5930,28 +6110,28 @@ func (s ResourceShareInvitationExpiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceShareInvitationExpiredException) OrigErr() error {
+func (s *ResourceShareInvitationExpiredException) OrigErr() error {
return nil
}
-func (s ResourceShareInvitationExpiredException) Error() string {
+func (s *ResourceShareInvitationExpiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceShareInvitationExpiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceShareInvitationExpiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceShareInvitationExpiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceShareInvitationExpiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource share exceeds the limit for your account.
type ResourceShareLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5968,17 +6148,17 @@ func (s ResourceShareLimitExceededException) GoString() string {
func newErrorResourceShareLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceShareLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceShareLimitExceededException) Code() string {
+func (s *ResourceShareLimitExceededException) Code() string {
return "ResourceShareLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceShareLimitExceededException) Message() string {
+func (s *ResourceShareLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5986,22 +6166,22 @@ func (s ResourceShareLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceShareLimitExceededException) OrigErr() error {
+func (s *ResourceShareLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceShareLimitExceededException) Error() string {
+func (s *ResourceShareLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceShareLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceShareLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceShareLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceShareLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about an AWS RAM permission.
@@ -6184,8 +6364,8 @@ func (s *ResourceSharePermissionSummary) SetVersion(v string) *ResourceSharePerm
// The service could not respond to the request due to an internal problem.
type ServerInternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6202,17 +6382,17 @@ func (s ServerInternalException) GoString() string {
func newErrorServerInternalException(v protocol.ResponseMetadata) error {
return &ServerInternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServerInternalException) Code() string {
+func (s *ServerInternalException) Code() string {
return "ServerInternalException"
}
// Message returns the exception's message.
-func (s ServerInternalException) Message() string {
+func (s *ServerInternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6220,28 +6400,62 @@ func (s ServerInternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServerInternalException) OrigErr() error {
+func (s *ServerInternalException) OrigErr() error {
return nil
}
-func (s ServerInternalException) Error() string {
+func (s *ServerInternalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServerInternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServerInternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServerInternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServerInternalException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Information about the shareable resource types and the AWS services to which
+// they belong.
+type ServiceNameAndResourceType struct {
+ _ struct{} `type:"structure"`
+
+ // The shareable resource types.
+ ResourceType *string `locationName:"resourceType" type:"string"`
+
+ // The name of the AWS services to which the resources belong.
+ ServiceName *string `locationName:"serviceName" type:"string"`
+}
+
+// String returns the string representation
+func (s ServiceNameAndResourceType) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ServiceNameAndResourceType) GoString() string {
+ return s.String()
+}
+
+// SetResourceType sets the ResourceType field's value.
+func (s *ServiceNameAndResourceType) SetResourceType(v string) *ServiceNameAndResourceType {
+ s.ResourceType = &v
+ return s
+}
+
+// SetServiceName sets the ServiceName field's value.
+func (s *ServiceNameAndResourceType) SetServiceName(v string) *ServiceNameAndResourceType {
+ s.ServiceName = &v
+ return s
}
// The service is not available.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6258,17 +6472,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6276,22 +6490,22 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a tag.
@@ -6362,8 +6576,8 @@ func (s *TagFilter) SetTagValues(v []*string) *TagFilter {
// The requested tags exceed the limit for your account.
type TagLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6380,17 +6594,17 @@ func (s TagLimitExceededException) GoString() string {
func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error {
return &TagLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagLimitExceededException) Code() string {
+func (s *TagLimitExceededException) Code() string {
return "TagLimitExceededException"
}
// Message returns the exception's message.
-func (s TagLimitExceededException) Message() string {
+func (s *TagLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6398,28 +6612,28 @@ func (s TagLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagLimitExceededException) OrigErr() error {
+func (s *TagLimitExceededException) OrigErr() error {
return nil
}
-func (s TagLimitExceededException) Error() string {
+func (s *TagLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified tag is a reserved word and cannot be used.
type TagPolicyViolationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6436,17 +6650,17 @@ func (s TagPolicyViolationException) GoString() string {
func newErrorTagPolicyViolationException(v protocol.ResponseMetadata) error {
return &TagPolicyViolationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagPolicyViolationException) Code() string {
+func (s *TagPolicyViolationException) Code() string {
return "TagPolicyViolationException"
}
// Message returns the exception's message.
-func (s TagPolicyViolationException) Message() string {
+func (s *TagPolicyViolationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6454,22 +6668,22 @@ func (s TagPolicyViolationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagPolicyViolationException) OrigErr() error {
+func (s *TagPolicyViolationException) OrigErr() error {
return nil
}
-func (s TagPolicyViolationException) Error() string {
+func (s *TagPolicyViolationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagPolicyViolationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagPolicyViolationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagPolicyViolationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagPolicyViolationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
@@ -6540,8 +6754,8 @@ func (s TagResourceOutput) GoString() string {
// A specified resource was not found.
type UnknownResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6558,17 +6772,17 @@ func (s UnknownResourceException) GoString() string {
func newErrorUnknownResourceException(v protocol.ResponseMetadata) error {
return &UnknownResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnknownResourceException) Code() string {
+func (s *UnknownResourceException) Code() string {
return "UnknownResourceException"
}
// Message returns the exception's message.
-func (s UnknownResourceException) Message() string {
+func (s *UnknownResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6576,22 +6790,22 @@ func (s UnknownResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnknownResourceException) OrigErr() error {
+func (s *UnknownResourceException) OrigErr() error {
return nil
}
-func (s UnknownResourceException) Error() string {
+func (s *UnknownResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnknownResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnknownResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnknownResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnknownResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go
index b9c5f9c6beb..2866909945c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go
@@ -347,11 +347,19 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ
// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
// DBInstanceIdentifier doesn't refer to an existing DB instance.
//
+// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
+// DBClusterIdentifier doesn't refer to an existing DB cluster.
+//
// * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
// DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
//
-// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
-// DBClusterIdentifier doesn't refer to an existing DB cluster.
+// * ErrCodeDBProxyNotFoundFault "DBProxyNotFoundFault"
+// The specified proxy name doesn't correspond to a proxy owned by your AWS
+// accoutn in the specified AWS Region.
+//
+// * ErrCodeDBProxyTargetGroupNotFoundFault "DBProxyTargetGroupNotFoundFault"
+// The specified target group isn't available for a proxy owned by your AWS
+// account in the specified AWS Region.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource
func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
@@ -1384,7 +1392,7 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.
// Creates a new Amazon Aurora DB cluster.
//
// You can use the ReplicationSourceIdentifier parameter to create the DB cluster
-// as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance.
+// as a read replica of another DB cluster or Amazon RDS MySQL DB instance.
// For cross-region replication where the DB cluster identified by ReplicationSourceIdentifier
// is encrypted, you must also specify the PreSignedUrl parameter.
//
@@ -1972,18 +1980,18 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl
// CreateDBInstanceReadReplica API operation for Amazon Relational Database Service.
//
-// Creates a new DB instance that acts as a Read Replica for an existing source
-// DB instance. You can create a Read Replica for a DB instance running MySQL,
-// MariaDB, Oracle, or PostgreSQL. For more information, see Working with Read
-// Replicas (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html)
+// Creates a new DB instance that acts as a read replica for an existing source
+// DB instance. You can create a read replica for a DB instance running MySQL,
+// MariaDB, Oracle, PostgreSQL, or SQL Server. For more information, see Working
+// with Read Replicas (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html)
// in the Amazon RDS User Guide.
//
-// Amazon Aurora doesn't support this action. You must call the CreateDBInstance
-// action to create a DB instance for an Aurora DB cluster.
+// Amazon Aurora doesn't support this action. Call the CreateDBInstance action
+// to create a DB instance for an Aurora DB cluster.
//
-// All Read Replica DB instances are created with backups disabled. All other
+// All read replica DB instances are created with backups disabled. All other
// DB instance attributes (including DB security groups and DB parameter groups)
-// are inherited from the source DB instance, except as specified following.
+// are inherited from the source DB instance, except as specified.
//
// Your source DB instance must have backup retention enabled.
//
@@ -3365,12 +3373,12 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques
// If the specified DB instance is part of an Amazon Aurora DB cluster, you
// can't delete the DB instance if both of the following conditions are true:
//
-// * The DB cluster is a Read Replica of another Amazon Aurora DB cluster.
+// * The DB cluster is a read replica of another Amazon Aurora DB cluster.
//
// * The DB instance is the only instance in the DB cluster.
//
// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster
-// API action to promote the DB cluster so it's no longer a Read Replica. After
+// API action to promote the DB cluster so it's no longer a read replica. After
// the promotion completes, then call the DeleteDBInstance API action to delete
// the final instance in the DB cluster.
//
@@ -8890,7 +8898,7 @@ func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (r
// DescribeSourceRegions API operation for Amazon Relational Database Service.
//
// Returns a list of the source AWS Regions where the current AWS Region can
-// create a Read Replica or copy a DB snapshot from. This API action supports
+// create a read replica or copy a DB snapshot from. This API action supports
// pagination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -9396,6 +9404,14 @@ func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *
// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
// DBClusterIdentifier doesn't refer to an existing DB cluster.
//
+// * ErrCodeDBProxyNotFoundFault "DBProxyNotFoundFault"
+// The specified proxy name doesn't correspond to a proxy owned by your AWS
+// accoutn in the specified AWS Region.
+//
+// * ErrCodeDBProxyTargetGroupNotFoundFault "DBProxyTargetGroupNotFoundFault"
+// The specified target group isn't available for a proxy owned by your AWS
+// account in the specified AWS Region.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource
func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
@@ -10525,8 +10541,8 @@ func (c *RDS) ModifyDBSnapshotRequest(input *ModifyDBSnapshotInput) (req *reques
// ModifyDBSnapshot API operation for Amazon Relational Database Service.
//
-// Updates a manual DB snapshot, which can be encrypted or not encrypted, with
-// a new engine version.
+// Updates a manual DB snapshot with a new engine version. The snapshot can
+// be encrypted or unencrypted, but not shared or public.
//
// Amazon RDS supports upgrading DB snapshots for MySQL, Oracle, and PostgreSQL.
//
@@ -11074,15 +11090,15 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re
// PromoteReadReplica API operation for Amazon Relational Database Service.
//
-// Promotes a Read Replica DB instance to a standalone DB instance.
+// Promotes a read replica DB instance to a standalone DB instance.
//
// * Backup duration is a function of the amount of changes to the database
-// since the previous backup. If you plan to promote a Read Replica to a
+// since the previous backup. If you plan to promote a read replica to a
// standalone instance, we recommend that you enable backups and complete
-// at least one backup prior to promotion. In addition, a Read Replica cannot
+// at least one backup prior to promotion. In addition, a read replica cannot
// be promoted to a standalone instance when it is in the backing-up status.
-// If you have enabled backups on your Read Replica, configure the automated
-// backup window so that daily backups do not interfere with Read Replica
+// If you have enabled backups on your read replica, configure the automated
+// backup window so that daily backups do not interfere with read replica
// promotion.
//
// * This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
@@ -11167,7 +11183,7 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus
// PromoteReadReplicaDBCluster API operation for Amazon Relational Database Service.
//
-// Promotes a Read Replica DB cluster to a standalone DB cluster.
+// Promotes a read replica DB cluster to a standalone DB cluster.
//
// This action only applies to Aurora DB clusters.
//
@@ -11909,6 +11925,14 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput)
// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
// DBClusterIdentifier doesn't refer to an existing DB cluster.
//
+// * ErrCodeDBProxyNotFoundFault "DBProxyNotFoundFault"
+// The specified proxy name doesn't correspond to a proxy owned by your AWS
+// accoutn in the specified AWS Region.
+//
+// * ErrCodeDBProxyTargetGroupNotFoundFault "DBProxyTargetGroupNotFoundFault"
+// The specified target group isn't available for a proxy owned by your AWS
+// account in the specified AWS Region.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource
func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
req, out := c.RemoveTagsFromResourceRequest(input)
@@ -12169,6 +12193,15 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input)
// Data to an Amazon Aurora MySQL DB Cluster (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.html)
// in the Amazon Aurora User Guide.
//
+// This action only restores the DB cluster, not the DB instances for that DB
+// cluster. You must invoke the CreateDBInstance action to create DB instances
+// for the restored DB cluster, specifying the identifier of the restored DB
+// cluster in DBClusterIdentifier. You can create DB instances only after the
+// RestoreDBClusterFromS3 action has completed and the DB cluster is available.
+//
+// For more information on Amazon Aurora, see What Is Amazon Aurora? (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
+// in the Amazon Aurora User Guide.
+//
// This action only applies to Aurora DB clusters.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -12296,16 +12329,19 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna
// RestoreDBClusterFromSnapshot API operation for Amazon Relational Database Service.
//
-// Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
+// Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This
+// action only applies to Aurora DB clusters.
//
-// If a DB snapshot is specified, the target DB cluster is created from the
-// source DB snapshot with a default configuration and default security group.
-//
-// If a DB cluster snapshot is specified, the target DB cluster is created from
-// the source DB cluster restore point with the same configuration as the original
-// source DB cluster. If you don't specify a security group, the new DB cluster
+// The target DB cluster is created from the source snapshot with a default
+// configuration. If you don't specify a security group, the new DB cluster
// is associated with the default security group.
//
+// This action only restores the DB cluster, not the DB instances for that DB
+// cluster. You must invoke the CreateDBInstance action to create DB instances
+// for the restored DB cluster, specifying the identifier of the restored DB
+// cluster in DBClusterIdentifier. You can create DB instances only after the
+// RestoreDBClusterFromSnapshot action has completed and the DB cluster is available.
+//
// For more information on Amazon Aurora, see What Is Amazon Aurora? (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
// in the Amazon Aurora User Guide.
//
@@ -13892,10 +13928,10 @@ func (c *RDS) StopDBInstanceWithContext(ctx aws.Context, input *StopDBInstanceIn
// default option groups. The used value is the count of nondefault DB option
// groups in the account.
//
-// * ReadReplicasPerMaster - The number of Read Replicas per DB instance.
-// The used value is the highest number of Read Replicas for a DB instance
+// * ReadReplicasPerMaster - The number of read replicas per DB instance.
+// The used value is the highest number of read replicas for a DB instance
// in the account. Other DB instances in the account might have a lower number
-// of Read Replicas.
+// of read replicas.
//
// * ReservedDBInstances - The number of reserved DB instances per account.
// The used value is the count of the active reserved DB instances in the
@@ -14782,16 +14818,16 @@ type CancelExportTaskOutput struct {
// The data exported from the snapshot. Valid values are the following:
//
- // * database - Export all the data of the snapshot.
+ // * database - Export all the data from a specified database.
//
- // * database.table [table-name] - Export a table of the snapshot.
+ // * database.table table-name - Export a table of the snapshot. This format
+ // is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.
//
- // * database.schema [schema-name] - Export a database schema of the snapshot.
- // This value isn't valid for RDS for MySQL, RDS for MariaDB, or Aurora MySQL.
+ // * database.schema schema-name - Export a database schema of the snapshot.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
//
- // * database.schema.table [table-name] - Export a table of the database
- // schema. This value isn't valid for RDS for MySQL, RDS for MariaDB, or
- // Aurora MySQL.
+ // * database.schema.table table-name - Export a table of the database schema.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
ExportOnly []*string `type:"list"`
// A unique identifier for the snapshot export task. This ID isn't an identifier
@@ -15129,6 +15165,8 @@ type ConnectionPoolConfiguration struct {
// statements, use semicolons as the separator. You can also include multiple
// variables in a single SET statement, such as SET x=1, y=2.
//
+ // InitQuery is not currently supported for PostgreSQL.
+ //
// Default: no initialization query
InitQuery *string `type:"string"`
@@ -15222,6 +15260,8 @@ type ConnectionPoolConfigurationInfo struct {
// is empty by default. For multiple statements, use semicolons as the separator.
// You can also include multiple variables in a single SET statement, such as
// SET x=1, y=2.
+ //
+ // InitQuery is not currently supported for PostgreSQL.
InitQuery *string `type:"string"`
// The maximum size of the connection pool for each target in a target group.
@@ -15451,7 +15491,7 @@ type CopyDBClusterSnapshotInput struct {
// DB cluster snapshot from another AWS Region. Don't specify PreSignedUrl when
// you are copying an encrypted DB cluster snapshot in the same AWS Region.
//
- // The pre-signed URL must be a valid request for the CopyDBSClusterSnapshot
+ // The pre-signed URL must be a valid request for the CopyDBClusterSnapshot
// API action that can be executed in the source AWS Region that contains the
// encrypted DB cluster snapshot to be copied. The pre-signed URL request must
// contain the following parameter values:
@@ -16525,7 +16565,7 @@ type CreateDBClusterInput struct {
//
// For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication
// to authenticate users that connect to the DB cluster. For more information,
- // see Using Kerberos Authentication for Aurora MySQL (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurmysql-kerberos.html)
+ // see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html)
// in the Amazon Aurora User Guide.
Domain *string `type:"string"`
@@ -16568,6 +16608,10 @@ type CreateDBClusterInput struct {
// The DB engine mode of the DB cluster, either provisioned, serverless, parallelquery,
// global, or multimaster.
//
+ // global engine mode only applies for global database clusters created with
+ // Aurora MySQL version 5.6.10a. For higher Aurora MySQL versions, the clusters
+ // in a global database use provisioned engine mode.
+ //
// Limitations and requirements apply to some DB engine modes. For more information,
// see the following sections in the Amazon Aurora User Guide:
//
@@ -16629,9 +16673,9 @@ type CreateDBClusterInput struct {
// AWS KMS creates the default encryption key for your AWS account. Your AWS
// account has a different default encryption key for each AWS Region.
//
- // If you create a Read Replica of an encrypted DB cluster in another AWS Region,
+ // If you create a read replica of an encrypted DB cluster in another AWS Region,
// you must set KmsKeyId to a KMS key ID that is valid in the destination AWS
- // Region. This key is used to encrypt the Read Replica in that AWS Region.
+ // Region. This key is used to encrypt the read replica in that AWS Region.
KmsKeyId *string `type:"string"`
// The password for the master database user. This password can contain any
@@ -16680,7 +16724,7 @@ type CreateDBClusterInput struct {
// called in the destination AWS Region, and the action contained in the
// pre-signed URL.
//
- // * DestinationRegion - The name of the AWS Region that Aurora Read Replica
+ // * DestinationRegion - The name of the AWS Region that Aurora read replica
// will be created in.
//
// * ReplicationSourceIdentifier - The DB cluster identifier for the encrypted
@@ -16735,7 +16779,7 @@ type CreateDBClusterInput struct {
PreferredMaintenanceWindow *string `type:"string"`
// The Amazon Resource Name (ARN) of the source DB instance or DB cluster if
- // this DB cluster is created as a Read Replica.
+ // this DB cluster is created as a read replica.
ReplicationSourceIdentifier *string `type:"string"`
// For DB clusters in serverless DB engine mode, the scaling properties of the
@@ -17347,7 +17391,7 @@ type CreateDBInstanceInput struct {
//
// * Must be a value from 0 to 35
//
- // * Can't be set to 0 if the DB instance is a source to Read Replicas
+ // * Can't be set to 0 if the DB instance is a source to read replicas
BackupRetentionPeriod *int64 `type:"integer"`
// For supported engines, indicates that the DB instance should be associated
@@ -17510,7 +17554,7 @@ type CreateDBInstanceInput struct {
// SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html)
// in the Amazon RDS User Guide.
//
- // For Oracle DB instance, Amazon RDS can use Kerberos Authentication to authenticate
+ // For Oracle DB instances, Amazon RDS can use Kerberos Authentication to authenticate
// users that connect to the DB instance. For more information, see Using Kerberos
// Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html)
// in the Amazon RDS User Guide.
@@ -17824,7 +17868,7 @@ type CreateDBInstanceInput struct {
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// Type: Integer
//
@@ -17832,7 +17876,7 @@ type CreateDBInstanceInput struct {
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// Type: Integer
//
@@ -17840,7 +17884,7 @@ type CreateDBInstanceInput struct {
//
// Default: 5432
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// Type: Integer
//
@@ -17848,20 +17892,20 @@ type CreateDBInstanceInput struct {
//
// Default: 1521
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// SQL Server
//
// Default: 1433
//
- // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
- // 49156.
+ // Valid values: 1150-65535 except 1234, 1434, 3260, 3343, 3389, 47001, and
+ // 49152-49156.
//
// Amazon Aurora
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// Type: Integer
Port *int64 `type:"integer"`
@@ -18324,12 +18368,12 @@ type CreateDBInstanceReadReplicaInput struct {
_ struct{} `type:"structure"`
// A value that indicates whether minor engine upgrades are applied automatically
- // to the Read Replica during the maintenance window.
+ // to the read replica during the maintenance window.
//
// Default: Inherits from the source DB instance
AutoMinorVersionUpgrade *bool `type:"boolean"`
- // The Availability Zone (AZ) where the Read Replica will be created.
+ // The Availability Zone (AZ) where the read replica will be created.
//
// Default: A random, system-chosen Availability Zone in the endpoint's AWS
// Region.
@@ -18337,11 +18381,11 @@ type CreateDBInstanceReadReplicaInput struct {
// Example: us-east-1d
AvailabilityZone *string `type:"string"`
- // A value that indicates whether to copy all tags from the Read Replica to
- // snapshots of the Read Replica. By default, tags are not copied.
+ // A value that indicates whether to copy all tags from the read replica to
+ // snapshots of the read replica. By default, tags are not copied.
CopyTagsToSnapshot *bool `type:"boolean"`
- // The compute and memory capacity of the Read Replica, for example, db.m4.large.
+ // The compute and memory capacity of the read replica, for example, db.m4.large.
// Not all DB instance classes are available in all AWS Regions, or for all
// database engines. For the full list of DB instance classes, and availability
// for your engine, see DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
@@ -18350,7 +18394,7 @@ type CreateDBInstanceReadReplicaInput struct {
// Default: Inherits from the source DB instance.
DBInstanceClass *string `type:"string"`
- // The DB instance identifier of the Read Replica. This identifier is the unique
+ // The DB instance identifier of the read replica. This identifier is the unique
// key that identifies a DB instance. This parameter is stored as a lowercase
// string.
//
@@ -18360,9 +18404,9 @@ type CreateDBInstanceReadReplicaInput struct {
// The name of the DB parameter group to associate with this DB instance.
//
// If you do not specify a value for DBParameterGroupName, then Amazon RDS uses
- // the DBParameterGroup of source DB instance for a same region Read Replica,
+ // the DBParameterGroup of source DB instance for a same region read replica,
// or the default DBParameterGroup for the specified DB engine for a cross region
- // Read Replica.
+ // read replica.
//
// Currently, specifying a parameter group for this operation is only supported
// for Oracle DB instances.
@@ -18390,10 +18434,10 @@ type CreateDBInstanceReadReplicaInput struct {
// * The specified DB subnet group must be in the same AWS Region in which
// the operation is running.
//
- // * All Read Replicas in one AWS Region that are created from the same source
+ // * All read replicas in one AWS Region that are created from the same source
// DB instance must either:> Specify DB subnet groups from the same VPC.
- // All these Read Replicas are created in the same VPC. Not specify a DB
- // subnet group. All these Read Replicas are created outside of any VPC.
+ // All these read replicas are created in the same VPC. Not specify a DB
+ // subnet group. All these read replicas are created outside of any VPC.
//
// Example: mySubnetgroup
DBSubnetGroupName *string `type:"string"`
@@ -18413,6 +18457,12 @@ type CreateDBInstanceReadReplicaInput struct {
// users that connect to the DB instance. For more information, see Using Kerberos
// Authentication with Amazon RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-kerberos.html)
// in the Amazon RDS User Guide.
+ //
+ // For Microsoft SQL Server DB instances, Amazon RDS can use Windows Authentication
+ // to authenticate users that connect to the DB instance. For more information,
+ // see Using Windows Authentication with an Amazon RDS DB Instance Running Microsoft
+ // SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerWinAuth.html)
+ // in the Amazon RDS User Guide.
Domain *string `type:"string"`
// Specify the name of the IAM role to be used when making API calls to the
@@ -18434,8 +18484,8 @@ type CreateDBInstanceReadReplicaInput struct {
// in the Amazon RDS User Guide.
EnableIAMDatabaseAuthentication *bool `type:"boolean"`
- // A value that indicates whether to enable Performance Insights for the Read
- // Replica.
+ // A value that indicates whether to enable Performance Insights for the read
+ // replica.
//
// For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
// in the Amazon RDS User Guide.
@@ -18445,24 +18495,24 @@ type CreateDBInstanceReadReplicaInput struct {
// initially allocated for the DB instance.
Iops *int64 `type:"integer"`
- // The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the Amazon
+ // The AWS KMS key ID for an encrypted read replica. The KMS key ID is the Amazon
// Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS
// encryption key.
//
- // If you create an encrypted Read Replica in the same AWS Region as the source
+ // If you create an encrypted read replica in the same AWS Region as the source
// DB instance, then you do not have to specify a value for this parameter.
- // The Read Replica is encrypted with the same KMS key as the source DB instance.
+ // The read replica is encrypted with the same KMS key as the source DB instance.
//
- // If you create an encrypted Read Replica in a different AWS Region, then you
+ // If you create an encrypted read replica in a different AWS Region, then you
// must specify a KMS key for the destination AWS Region. KMS encryption keys
// are specific to the AWS Region that they are created in, and you can't use
// encryption keys from one AWS Region in another AWS Region.
//
- // You can't create an encrypted Read Replica from an unencrypted DB instance.
+ // You can't create an encrypted read replica from an unencrypted DB instance.
KmsKeyId *string `type:"string"`
// The interval, in seconds, between points when Enhanced Monitoring metrics
- // are collected for the Read Replica. To disable collecting Enhanced Monitoring
+ // are collected for the read replica. To disable collecting Enhanced Monitoring
// metrics, specify 0. The default is 0.
//
// If MonitoringRoleArn is specified, then you must also set MonitoringInterval
@@ -18481,16 +18531,19 @@ type CreateDBInstanceReadReplicaInput struct {
// a MonitoringRoleArn value.
MonitoringRoleArn *string `type:"string"`
- // A value that indicates whether the Read Replica is in a Multi-AZ deployment.
+ // A value that indicates whether the read replica is in a Multi-AZ deployment.
//
- // You can create a Read Replica as a Multi-AZ DB instance. RDS creates a standby
+ // You can create a read replica as a Multi-AZ DB instance. RDS creates a standby
// of your replica in another Availability Zone for failover support for the
- // replica. Creating your Read Replica as a Multi-AZ DB instance is independent
+ // replica. Creating your read replica as a Multi-AZ DB instance is independent
// of whether the source database is a Multi-AZ DB instance.
MultiAZ *bool `type:"boolean"`
// The option group the DB instance is associated with. If omitted, the option
// group associated with the source instance is used.
+ //
+ // For SQL Server, you must use the option group associated with the source
+ // instance.
OptionGroupName *string `type:"string"`
// The AWS KMS key identifier for encryption of Performance Insights data. The
@@ -18517,16 +18570,16 @@ type CreateDBInstanceReadReplicaInput struct {
// The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica
// API action in the source AWS Region that contains the source DB instance.
//
- // You must specify this parameter when you create an encrypted Read Replica
+ // You must specify this parameter when you create an encrypted read replica
// from another AWS Region by using the Amazon RDS API. Don't specify PreSignedUrl
- // when you are creating an encrypted Read Replica in the same AWS Region.
+ // when you are creating an encrypted read replica in the same AWS Region.
//
// The presigned URL must be a valid request for the CreateDBInstanceReadReplica
// API action that can be executed in the source AWS Region that contains the
// encrypted source DB instance. The presigned URL request must contain the
// following parameter values:
//
- // * DestinationRegion - The AWS Region that the encrypted Read Replica is
+ // * DestinationRegion - The AWS Region that the encrypted read replica is
// created in. This AWS Region is the same one where the CreateDBInstanceReadReplica
// action is called that contains this presigned URL. For example, if you
// create an encrypted DB instance in the us-west-1 AWS Region, from a source
@@ -18537,14 +18590,14 @@ type CreateDBInstanceReadReplicaInput struct {
// be set to the us-east-1 AWS Region.
//
// * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
- // the Read Replica in the destination AWS Region. This is the same identifier
+ // the read replica in the destination AWS Region. This is the same identifier
// for both the CreateDBInstanceReadReplica action that is called in the
// destination AWS Region, and the action contained in the presigned URL.
//
// * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted
// DB instance to be replicated. This identifier must be in the Amazon Resource
// Name (ARN) format for the source AWS Region. For example, if you are creating
- // an encrypted Read Replica from a DB instance in the us-west-2 AWS Region,
+ // an encrypted read replica from a DB instance in the us-west-2 AWS Region,
// then your SourceDBInstanceIdentifier looks like the following example:
// arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115.
//
@@ -18554,8 +18607,11 @@ type CreateDBInstanceReadReplicaInput struct {
//
// If you are using an AWS SDK tool or the AWS CLI, you can specify SourceRegion
// (or --source-region for the AWS CLI) instead of specifying PreSignedUrl manually.
- // Specifying SourceRegion autogenerates a pre-signed URL that is a valid request
+ // Specifying SourceRegion autogenerates a presigned URL that is a valid request
// for the operation that can be executed in the source AWS Region.
+ //
+ // SourceRegion isn't supported for SQL Server, because SQL Server on Amazon
+ // RDS doesn't support cross-region read replicas.
PreSignedUrl *string `type:"string"`
// The number of CPU cores and the number of threads per core for the DB instance
@@ -18570,35 +18626,39 @@ type CreateDBInstanceReadReplicaInput struct {
// see CreateDBInstance.
PubliclyAccessible *bool `type:"boolean"`
- // The identifier of the DB instance that will act as the source for the Read
- // Replica. Each DB instance can have up to five Read Replicas.
+ // The identifier of the DB instance that will act as the source for the read
+ // replica. Each DB instance can have up to five read replicas.
//
// Constraints:
//
- // * Must be the identifier of an existing MySQL, MariaDB, Oracle, or PostgreSQL
- // DB instance.
+ // * Must be the identifier of an existing MySQL, MariaDB, Oracle, PostgreSQL,
+ // or SQL Server DB instance.
//
- // * Can specify a DB instance that is a MySQL Read Replica only if the source
+ // * Can specify a DB instance that is a MySQL read replica only if the source
// is running MySQL 5.6 or later.
//
- // * For the limitations of Oracle Read Replicas, see Read Replica Limitations
+ // * For the limitations of Oracle read replicas, see Read Replica Limitations
// with Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html)
// in the Amazon RDS User Guide.
//
- // * Can specify a DB instance that is a PostgreSQL DB instance only if the
- // source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region
- // replication).
+ // * For the limitations of SQL Server read replicas, see Read Replica Limitations
+ // with Microsoft SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.Limitations.html)
+ // in the Amazon RDS User Guide.
+ //
+ // * Can specify a PostgreSQL DB instance only if the source is running PostgreSQL
+ // 9.3.5 or later (9.4.7 and higher for cross-region replication).
//
- // * The specified DB instance must have automatic backups enabled, its backup
- // retention period must be greater than 0.
+ // * The specified DB instance must have automatic backups enabled, that
+ // is, its backup retention period must be greater than 0.
//
- // * If the source DB instance is in the same AWS Region as the Read Replica,
+ // * If the source DB instance is in the same AWS Region as the read replica,
// specify a valid DB instance identifier.
//
- // * If the source DB instance is in a different AWS Region than the Read
- // Replica, specify a valid DB instance ARN. For more information, go to
- // Constructing an ARN for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
- // in the Amazon RDS User Guide.
+ // * If the source DB instance is in a different AWS Region from the read
+ // replica, specify a valid DB instance ARN. For more information, see Constructing
+ // an ARN for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
+ // in the Amazon RDS User Guide. This doesn't apply to SQL Server, which
+ // doesn't support cross-region replicas.
//
// SourceDBInstanceIdentifier is a required field
SourceDBInstanceIdentifier *string `type:"string" required:"true"`
@@ -18608,7 +18668,7 @@ type CreateDBInstanceReadReplicaInput struct {
// have the same region as the source ARN.
SourceRegion *string `type:"string" ignore:"true"`
- // Specifies the storage type to be associated with the Read Replica.
+ // Specifies the storage type to be associated with the read replica.
//
// Valid values: standard | gp2 | io1
//
@@ -18625,7 +18685,7 @@ type CreateDBInstanceReadReplicaInput struct {
// its default processor features.
UseDefaultProcessorFeatures *bool `type:"boolean"`
- // A list of EC2 VPC security groups to associate with the Read Replica.
+ // A list of EC2 VPC security groups to associate with the read replica.
//
// Default: The default EC2 VPC security group for the DB subnet group's VPC.
VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
@@ -19022,8 +19082,8 @@ type CreateDBProxyInput struct {
// The kinds of databases that the proxy can connect to. This value determines
// which database network protocol the proxy recognizes when it interprets network
- // traffic to and from the database. Currently, this value is always MYSQL.
- // The engine family applies to both RDS MySQL and Aurora MySQL.
+ // traffic to and from the database. The engine family applies to MySQL and
+ // PostgreSQL for both RDS and Aurora.
//
// EngineFamily is a required field
EngineFamily *string `type:"string" required:"true" enum:"EngineFamily"`
@@ -20063,6 +20123,12 @@ type DBCluster struct {
// The DB engine mode of the DB cluster, either provisioned, serverless, parallelquery,
// global, or multimaster.
+ //
+ // global engine mode only applies for global database clusters created with
+ // Aurora MySQL version 5.6.10a. For higher Aurora MySQL versions, the clusters
+ // in a global database use provisioned engine mode. To check if a DB cluster
+ // is part of a global database, use DescribeGlobalClusters instead of checking
+ // the EngineMode return value from DescribeDBClusters.
EngineMode *string `type:"string"`
// Indicates the database engine version.
@@ -20114,7 +20180,7 @@ type DBCluster struct {
// in Universal Coordinated Time (UTC).
PreferredMaintenanceWindow *string `type:"string"`
- // Contains one or more identifiers of the Read Replicas associated with this
+ // Contains one or more identifiers of the read replicas associated with this
// DB cluster.
ReadReplicaIdentifiers []*string `locationNameList:"ReadReplicaIdentifier" type:"list"`
@@ -20132,7 +20198,7 @@ type DBCluster struct {
ReaderEndpoint *string `type:"string"`
// Contains the identifier of the source DB cluster if this DB cluster is a
- // Read Replica.
+ // read replica.
ReplicationSourceIdentifier *string `type:"string"`
// Shows the scaling configuration for an Aurora DB cluster in serverless DB
@@ -21159,6 +21225,10 @@ type DBEngineVersion struct {
SupportedCharacterSets []*CharacterSet `locationNameList:"CharacterSet" type:"list"`
// A list of the supported DB engine modes.
+ //
+ // global engine mode only applies for global database clusters created with
+ // Aurora MySQL version 5.6.10a. For higher Aurora MySQL versions, the clusters
+ // in a global database use provisioned engine mode.
SupportedEngineModes []*string `type:"list"`
// A list of features supported by the DB engine. Supported feature names include
@@ -21175,7 +21245,7 @@ type DBEngineVersion struct {
// log types specified by ExportableLogTypes to CloudWatch Logs.
SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"`
- // Indicates whether the database engine version supports Read Replicas.
+ // Indicates whether the database engine version supports read replicas.
SupportsReadReplica *bool `type:"boolean"`
// A list of engine versions that this database engine version can be upgraded
@@ -21337,6 +21407,9 @@ type DBInstance struct {
DBInstanceIdentifier *string `type:"string"`
// Specifies the current state of this database.
+ //
+ // For information about DB instance statuses, see DB Instance Status (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Status.html)
+ // in the Amazon RDS User Guide.
DBInstanceStatus *string `type:"string"`
// The meaning of this parameter differs according to the database engine you
@@ -21501,27 +21574,27 @@ type DBInstance struct {
PubliclyAccessible *bool `type:"boolean"`
// Contains one or more identifiers of Aurora DB clusters to which the RDS DB
- // instance is replicated as a Read Replica. For example, when you create an
- // Aurora Read Replica of an RDS MySQL DB instance, the Aurora MySQL DB cluster
- // for the Aurora Read Replica is shown. This output does not contain information
- // about cross region Aurora Read Replicas.
+ // instance is replicated as a read replica. For example, when you create an
+ // Aurora read replica of an RDS MySQL DB instance, the Aurora MySQL DB cluster
+ // for the Aurora read replica is shown. This output does not contain information
+ // about cross region Aurora read replicas.
//
- // Currently, each RDS DB instance can have only one Aurora Read Replica.
+ // Currently, each RDS DB instance can have only one Aurora read replica.
ReadReplicaDBClusterIdentifiers []*string `locationNameList:"ReadReplicaDBClusterIdentifier" type:"list"`
- // Contains one or more identifiers of the Read Replicas associated with this
+ // Contains one or more identifiers of the read replicas associated with this
// DB instance.
ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"`
// Contains the identifier of the source DB instance if this DB instance is
- // a Read Replica.
+ // a read replica.
ReadReplicaSourceDBInstanceIdentifier *string `type:"string"`
// If present, specifies the name of the secondary Availability Zone for a DB
// instance with multi-AZ support.
SecondaryAvailabilityZone *string `type:"string"`
- // The status of a Read Replica. If the instance isn't a Read Replica, this
+ // The status of a read replica. If the instance isn't a read replica, this
// is blank.
StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"`
@@ -22216,7 +22289,7 @@ type DBInstanceStatusInfo struct {
// if the instance is in an error state.
Normal *bool `type:"boolean"`
- // Status of the DB instance. For a StatusType of Read Replica, the values can
+ // Status of the DB instance. For a StatusType of read replica, the values can
// be replicating, replication stop point set, replication stop point reached,
// error, stopped, or terminated.
Status *string `type:"string"`
@@ -22423,8 +22496,7 @@ type DBProxy struct {
// value in the connection string for a database client application.
Endpoint *string `type:"string"`
- // Currently, this value is always MYSQL. The engine family applies to both
- // RDS MySQL and Aurora MySQL.
+ // The engine family applies to MySQL and PostgreSQL for both RDS and Aurora.
EngineFamily *string `type:"string"`
// The number of seconds a connection to the proxy can have no activity before
@@ -22581,6 +22653,9 @@ type DBProxyTarget struct {
// The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.
TargetArn *string `type:"string"`
+ // Information about the connection health of the RDS Proxy target.
+ TargetHealth *TargetHealth `type:"structure"`
+
// The DB cluster identifier when the target represents an Aurora DB cluster.
// This field is blank when the target represents an RDS DB instance.
TrackedClusterId *string `type:"string"`
@@ -22624,6 +22699,12 @@ func (s *DBProxyTarget) SetTargetArn(v string) *DBProxyTarget {
return s
}
+// SetTargetHealth sets the TargetHealth field's value.
+func (s *DBProxyTarget) SetTargetHealth(v *TargetHealth) *DBProxyTarget {
+ s.TargetHealth = v
+ return s
+}
+
// SetTrackedClusterId sets the TrackedClusterId field's value.
func (s *DBProxyTarget) SetTrackedClusterId(v string) *DBProxyTarget {
s.TrackedClusterId = &v
@@ -23856,7 +23937,7 @@ type DeleteDBInstanceInput struct {
//
// * Can't end with a hyphen or contain two consecutive hyphens.
//
- // * Can't be specified when deleting a Read Replica.
+ // * Can't be specified when deleting a read replica.
FinalDBSnapshotIdentifier *string `type:"string"`
// A value that indicates whether to skip the creation of a final DB snapshot
@@ -23868,7 +23949,7 @@ type DeleteDBInstanceInput struct {
// When a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore',
// or 'incompatible-network', it can only be deleted when skip is specified.
//
- // Specify skip when deleting a Read Replica.
+ // Specify skip when deleting a read replica.
//
// The FinalDBSnapshotIdentifier parameter must be specified if skip isn't specified.
SkipFinalSnapshot *bool `type:"boolean"`
@@ -28287,7 +28368,7 @@ type DescribeExportTasksInput struct {
// Default: 100
//
// Constraints: Minimum 20, maximum 100.
- MaxRecords *string `type:"string"`
+ MaxRecords *int64 `min:"20" type:"integer"`
// The Amazon Resource Name (ARN) of the snapshot exported to Amazon S3.
SourceArn *string `type:"string"`
@@ -28306,6 +28387,9 @@ func (s DescribeExportTasksInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeExportTasksInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
+ if s.MaxRecords != nil && *s.MaxRecords < 20 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 20))
+ }
if s.Filters != nil {
for i, v := range s.Filters {
if v == nil {
@@ -28342,7 +28426,7 @@ func (s *DescribeExportTasksInput) SetMarker(v string) *DescribeExportTasksInput
}
// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeExportTasksInput) SetMaxRecords(v string) *DescribeExportTasksInput {
+func (s *DescribeExportTasksInput) SetMaxRecords(v int64) *DescribeExportTasksInput {
s.MaxRecords = &v
return s
}
@@ -28893,6 +28977,13 @@ func (s *DescribeOptionGroupsOutput) SetOptionGroupsList(v []*OptionGroup) *Desc
type DescribeOrderableDBInstanceOptionsInput struct {
_ struct{} `type:"structure"`
+ // The Availability Zone group associated with a Local Zone. Specify this parameter
+ // to retrieve available offerings for the Local Zones in the group.
+ //
+ // Omit this parameter to show the available offerings in the specified AWS
+ // Region.
+ AvailabilityZoneGroup *string `type:"string"`
+
// The DB instance class filter value. Specify this parameter to show only the
// available offerings matching the specified DB instance class.
DBInstanceClass *string `type:"string"`
@@ -28964,6 +29055,12 @@ func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error {
return nil
}
+// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
+func (s *DescribeOrderableDBInstanceOptionsInput) SetAvailabilityZoneGroup(v string) *DescribeOrderableDBInstanceOptionsInput {
+ s.AvailabilityZoneGroup = &v
+ return s
+}
+
// SetDBInstanceClass sets the DBInstanceClass field's value.
func (s *DescribeOrderableDBInstanceOptionsInput) SetDBInstanceClass(v string) *DescribeOrderableDBInstanceOptionsInput {
s.DBInstanceClass = &v
@@ -29631,7 +29728,7 @@ type DescribeSourceRegionsOutput struct {
Marker *string `type:"string"`
// A list of SourceRegion instances that contains each source AWS Region that
- // the current AWS Region can get a Read Replica or a DB snapshot from.
+ // the current AWS Region can get a read replica or a DB snapshot from.
SourceRegions []*SourceRegion `locationNameList:"SourceRegion" type:"list"`
}
@@ -30332,16 +30429,16 @@ type ExportTask struct {
// The data exported from the snapshot. Valid values are the following:
//
- // * database - Export all the data of the snapshot.
+ // * database - Export all the data from a specified database.
//
- // * database.table [table-name] - Export a table of the snapshot.
+ // * database.table table-name - Export a table of the snapshot. This format
+ // is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.
//
- // * database.schema [schema-name] - Export a database schema of the snapshot.
- // This value isn't valid for RDS for MySQL, RDS for MariaDB, or Aurora MySQL.
+ // * database.schema schema-name - Export a database schema of the snapshot.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
//
- // * database.schema.table [table-name] - Export a table of the database
- // schema. This value isn't valid for RDS for MySQL, RDS for MariaDB, or
- // Aurora MySQL.
+ // * database.schema.table table-name - Export a table of the database schema.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
ExportOnly []*string `type:"list"`
// A unique identifier for the snapshot export task. This ID isn't an identifier
@@ -32321,13 +32418,13 @@ type ModifyDBInstanceInput struct {
//
// * Must be a value from 0 to 35
//
- // * Can be specified for a MySQL Read Replica only if the source is running
+ // * Can be specified for a MySQL read replica only if the source is running
// MySQL 5.6 or later
//
- // * Can be specified for a PostgreSQL Read Replica only if the source is
+ // * Can be specified for a PostgreSQL read replica only if the source is
// running PostgreSQL 9.3.5
//
- // * Can't be set to 0 if the DB instance is a source to Read Replicas
+ // * Can't be set to 0 if the DB instance is a source to read replicas
BackupRetentionPeriod *int64 `type:"integer"`
// Indicates the certificate that needs to be associated with the instance.
@@ -32419,19 +32516,19 @@ type ModifyDBInstanceInput struct {
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// MariaDB
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// PostgreSQL
//
// Default: 5432
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// Type: Integer
//
@@ -32439,20 +32536,20 @@ type ModifyDBInstanceInput struct {
//
// Default: 1521
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
//
// SQL Server
//
// Default: 1433
//
- // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
- // 49156.
+ // Valid values: 1150-65535 except 1234, 1434, 3260, 3343, 3389, 47001, and
+ // 49152-49156.
//
// Amazon Aurora
//
// Default: 3306
//
- // Valid Values: 1150-65535
+ // Valid values: 1150-65535
DBPortNumber *int64 `type:"integer"`
// A list of DB security groups to authorize on this DB instance. Changing this
@@ -32552,7 +32649,7 @@ type ModifyDBInstanceInput struct {
// While the migration takes place, nightly backups for the instance are suspended.
// No other Amazon RDS operations can take place for the instance, including
// modifying the instance, rebooting the instance, deleting the instance, creating
- // a Read Replica for the instance, and creating a DB snapshot of the instance.
+ // a read replica for the instance, and creating a DB snapshot of the instance.
//
// Constraints: For MariaDB, MySQL, Oracle, and PostgreSQL, the value supplied
// must be at least 10% greater than the current value. Values that are not
@@ -32764,7 +32861,7 @@ type ModifyDBInstanceInput struct {
// While the migration takes place, nightly backups for the instance are suspended.
// No other Amazon RDS operations can take place for the instance, including
// modifying the instance, rebooting the instance, deleting the instance, creating
- // a Read Replica for the instance, and creating a DB snapshot of the instance.
+ // a read replica for the instance, and creating a DB snapshot of the instance.
//
// Valid values: standard | gp2 | io1
//
@@ -34712,6 +34809,9 @@ func (s *OptionVersion) SetVersion(v string) *OptionVersion {
type OrderableDBInstanceOption struct {
_ struct{} `type:"structure"`
+ // The Availability Zone group for a DB instance.
+ AvailabilityZoneGroup *string `type:"string"`
+
// A list of Availability Zones for a DB instance.
AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
@@ -34752,13 +34852,17 @@ type OrderableDBInstanceOption struct {
// Indicates whether a DB instance is Multi-AZ capable.
MultiAZCapable *bool `type:"boolean"`
- // Indicates whether a DB instance can have a Read Replica.
+ // Indicates whether a DB instance can have a read replica.
ReadReplicaCapable *bool `type:"boolean"`
// Indicates the storage type for a DB instance.
StorageType *string `type:"string"`
// A list of the supported DB engine modes.
+ //
+ // global engine mode only applies for global database clusters created with
+ // Aurora MySQL version 5.6.10a. For higher Aurora MySQL versions, the clusters
+ // in a global database use provisioned engine mode.
SupportedEngineModes []*string `type:"list"`
// Indicates whether a DB instance supports Enhanced Monitoring at intervals
@@ -34777,8 +34881,8 @@ type OrderableDBInstanceOption struct {
// True if a DB instance supports Performance Insights, otherwise false.
SupportsPerformanceInsights *bool `type:"boolean"`
- // Whether or not Amazon RDS can automatically scale storage for DB instances
- // that use the specified instance class.
+ // Whether Amazon RDS can automatically scale storage for DB instances that
+ // use the specified DB instance class.
SupportsStorageAutoscaling *bool `type:"boolean"`
// Indicates whether a DB instance supports encrypted storage.
@@ -34798,6 +34902,12 @@ func (s OrderableDBInstanceOption) GoString() string {
return s.String()
}
+// SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
+func (s *OrderableDBInstanceOption) SetAvailabilityZoneGroup(v string) *OrderableDBInstanceOption {
+ s.AvailabilityZoneGroup = &v
+ return s
+}
+
// SetAvailabilityZones sets the AvailabilityZones field's value.
func (s *OrderableDBInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableDBInstanceOption {
s.AvailabilityZones = v
@@ -35405,12 +35515,12 @@ func (s *ProcessorFeature) SetValue(v string) *ProcessorFeature {
type PromoteReadReplicaDBClusterInput struct {
_ struct{} `type:"structure"`
- // The identifier of the DB cluster Read Replica to promote. This parameter
+ // The identifier of the DB cluster read replica to promote. This parameter
// isn't case-sensitive.
//
// Constraints:
//
- // * Must match the identifier of an existing DBCluster Read Replica.
+ // * Must match the identifier of an existing DB cluster read replica.
//
// Example: my-cluster-replica1
//
@@ -35486,14 +35596,14 @@ type PromoteReadReplicaInput struct {
//
// * Must be a value from 0 to 35.
//
- // * Can't be set to 0 if the DB instance is a source to Read Replicas.
+ // * Can't be set to 0 if the DB instance is a source to read replicas.
BackupRetentionPeriod *int64 `type:"integer"`
// The DB instance identifier. This value is stored as a lowercase string.
//
// Constraints:
//
- // * Must match the identifier of an existing Read Replica DB instance.
+ // * Must match the identifier of an existing read replica DB instance.
//
// Example: mydbinstance
//
@@ -36820,7 +36930,7 @@ type RestoreDBClusterFromS3Input struct {
//
// For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication
// to authenticate users that connect to the DB cluster. For more information,
- // see Using Kerberos Authentication for Aurora MySQL (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurmysql-kerberos.html)
+ // see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html)
// in the Amazon Aurora User Guide.
Domain *string `type:"string"`
@@ -37695,7 +37805,7 @@ type RestoreDBClusterToPointInTimeInput struct {
//
// For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication
// to authenticate users that connect to the DB cluster. For more information,
- // see Using Kerberos Authentication for Aurora MySQL (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurmysql-kerberos.html)
+ // see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html)
// in the Amazon Aurora User Guide.
Domain *string `type:"string"`
@@ -40195,16 +40305,16 @@ type StartExportTaskInput struct {
// The data to be exported from the snapshot. If this parameter is not provided,
// all the snapshot data is exported. Valid values are the following:
//
- // * database - Export all the data of the snapshot.
+ // * database - Export all the data from a specified database.
//
- // * database.table [table-name] - Export a table of the snapshot.
+ // * database.table table-name - Export a table of the snapshot. This format
+ // is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.
//
- // * database.schema [schema-name] - Export a database schema of the snapshot.
- // This value isn't valid for RDS for MySQL, RDS for MariaDB, or Aurora MySQL.
+ // * database.schema schema-name - Export a database schema of the snapshot.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
//
- // * database.schema.table [table-name] - Export a table of the database
- // schema. This value isn't valid for RDS for MySQL, RDS for MariaDB, or
- // Aurora MySQL.
+ // * database.schema.table table-name - Export a table of the database schema.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
ExportOnly []*string `type:"list"`
// A unique identifier for the snapshot export task. This ID isn't an identifier
@@ -40328,16 +40438,16 @@ type StartExportTaskOutput struct {
// The data exported from the snapshot. Valid values are the following:
//
- // * database - Export all the data of the snapshot.
+ // * database - Export all the data from a specified database.
//
- // * database.table [table-name] - Export a table of the snapshot.
+ // * database.table table-name - Export a table of the snapshot. This format
+ // is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL.
//
- // * database.schema [schema-name] - Export a database schema of the snapshot.
- // This value isn't valid for RDS for MySQL, RDS for MariaDB, or Aurora MySQL.
+ // * database.schema schema-name - Export a database schema of the snapshot.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
//
- // * database.schema.table [table-name] - Export a table of the database
- // schema. This value isn't valid for RDS for MySQL, RDS for MariaDB, or
- // Aurora MySQL.
+ // * database.schema.table table-name - Export a table of the database schema.
+ // This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
ExportOnly []*string `type:"list"`
// A unique identifier for the snapshot export task. This ID isn't an identifier
@@ -40805,6 +40915,57 @@ func (s *Tag) SetValue(v string) *Tag {
return s
}
+//
+// This is prerelease documentation for the RDS Database Proxy feature in preview
+// release. It is subject to change.
+//
+// Information about the connection health of an RDS Proxy target.
+type TargetHealth struct {
+ _ struct{} `type:"structure"`
+
+ // A description of the health of the RDS Proxy target. If the State is AVAILABLE,
+ // a description is not included.
+ Description *string `type:"string"`
+
+ // The reason for the current health State of the RDS Proxy target.
+ Reason *string `type:"string" enum:"TargetHealthReason"`
+
+ // The current state of the connection health lifecycle for the RDS Proxy target.
+ // The following is a typical lifecycle example for the states of an RDS Proxy
+ // target:
+ //
+ // registering > unavailable > available > unavailable > available
+ State *string `type:"string" enum:"TargetState"`
+}
+
+// String returns the string representation
+func (s TargetHealth) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TargetHealth) GoString() string {
+ return s.String()
+}
+
+// SetDescription sets the Description field's value.
+func (s *TargetHealth) SetDescription(v string) *TargetHealth {
+ s.Description = &v
+ return s
+}
+
+// SetReason sets the Reason field's value.
+func (s *TargetHealth) SetReason(v string) *TargetHealth {
+ s.Reason = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *TargetHealth) SetState(v string) *TargetHealth {
+ s.State = &v
+ return s
+}
+
// A time zone associated with a DBInstance or a DBSnapshot. This data type
// is an element in the response to the DescribeDBInstances, the DescribeDBSnapshots,
// and the DescribeDBEngineVersions actions.
@@ -41293,11 +41454,23 @@ const (
// DBProxyStatusDeleting is a DBProxyStatus enum value
DBProxyStatusDeleting = "deleting"
+
+ // DBProxyStatusSuspended is a DBProxyStatus enum value
+ DBProxyStatusSuspended = "suspended"
+
+ // DBProxyStatusSuspending is a DBProxyStatus enum value
+ DBProxyStatusSuspending = "suspending"
+
+ // DBProxyStatusReactivating is a DBProxyStatus enum value
+ DBProxyStatusReactivating = "reactivating"
)
const (
// EngineFamilyMysql is a EngineFamily enum value
EngineFamilyMysql = "MYSQL"
+
+ // EngineFamilyPostgresql is a EngineFamily enum value
+ EngineFamilyPostgresql = "POSTGRESQL"
)
const (
@@ -41328,6 +41501,31 @@ const (
SourceTypeDbClusterSnapshot = "db-cluster-snapshot"
)
+const (
+ // TargetHealthReasonUnreachable is a TargetHealthReason enum value
+ TargetHealthReasonUnreachable = "UNREACHABLE"
+
+ // TargetHealthReasonConnectionFailed is a TargetHealthReason enum value
+ TargetHealthReasonConnectionFailed = "CONNECTION_FAILED"
+
+ // TargetHealthReasonAuthFailure is a TargetHealthReason enum value
+ TargetHealthReasonAuthFailure = "AUTH_FAILURE"
+
+ // TargetHealthReasonPendingProxyCapacity is a TargetHealthReason enum value
+ TargetHealthReasonPendingProxyCapacity = "PENDING_PROXY_CAPACITY"
+)
+
+const (
+ // TargetStateRegistering is a TargetState enum value
+ TargetStateRegistering = "REGISTERING"
+
+ // TargetStateAvailable is a TargetState enum value
+ TargetStateAvailable = "AVAILABLE"
+
+ // TargetStateUnavailable is a TargetState enum value
+ TargetStateUnavailable = "UNAVAILABLE"
+)
+
const (
// TargetTypeRdsInstance is a TargetType enum value
TargetTypeRdsInstance = "RDS_INSTANCE"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go
index 81c956f56a9..a2985aeb536 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go
@@ -1843,7 +1843,8 @@ func (c *Redshift) CreateSnapshotScheduleRequest(input *CreateSnapshotScheduleIn
// CreateSnapshotSchedule API operation for Amazon Redshift.
//
-// Creates a snapshot schedule with the rate of every 12 hours.
+// Create a snapshot schedule that can be associated to a cluster and which
+// overrides the default system backup schedule.
//
// 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
@@ -1982,6 +1983,104 @@ func (c *Redshift) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput
return out, req.Send()
}
+const opCreateUsageLimit = "CreateUsageLimit"
+
+// CreateUsageLimitRequest generates a "aws/request.Request" representing the
+// client's request for the CreateUsageLimit operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateUsageLimit for more information on using the CreateUsageLimit
+// 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 CreateUsageLimitRequest method.
+// req, resp := client.CreateUsageLimitRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateUsageLimit
+func (c *Redshift) CreateUsageLimitRequest(input *CreateUsageLimitInput) (req *request.Request, output *CreateUsageLimitOutput) {
+ op := &request.Operation{
+ Name: opCreateUsageLimit,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateUsageLimitInput{}
+ }
+
+ output = &CreateUsageLimitOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateUsageLimit API operation for Amazon Redshift.
+//
+// Creates a usage limit for a specified Amazon Redshift feature on a cluster.
+// The usage limit is identified by the returned usage limit identifier.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Redshift's
+// API operation CreateUsageLimit for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeClusterNotFoundFault "ClusterNotFound"
+// The ClusterIdentifier parameter does not refer to an existing cluster.
+//
+// * ErrCodeInvalidClusterStateFault "InvalidClusterState"
+// The specified cluster is not in the available state.
+//
+// * ErrCodeLimitExceededFault "LimitExceededFault"
+// The encryption key has exceeded its grant limit in AWS KMS.
+//
+// * ErrCodeUsageLimitAlreadyExistsFault "UsageLimitAlreadyExists"
+// The usage limit already exists.
+//
+// * ErrCodeInvalidUsageLimitFault "InvalidUsageLimit"
+// The usage limit is not valid.
+//
+// * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
+// You have exceeded the number of tags allowed.
+//
+// * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
+// The requested operation isn't supported.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateUsageLimit
+func (c *Redshift) CreateUsageLimit(input *CreateUsageLimitInput) (*CreateUsageLimitOutput, error) {
+ req, out := c.CreateUsageLimitRequest(input)
+ return out, req.Send()
+}
+
+// CreateUsageLimitWithContext is the same as CreateUsageLimit with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateUsageLimit 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 *Redshift) CreateUsageLimitWithContext(ctx aws.Context, input *CreateUsageLimitInput, opts ...request.Option) (*CreateUsageLimitOutput, error) {
+ req, out := c.CreateUsageLimitRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteCluster = "DeleteCluster"
// DeleteClusterRequest generates a "aws/request.Request" representing the
@@ -3037,6 +3136,89 @@ func (c *Redshift) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput
return out, req.Send()
}
+const opDeleteUsageLimit = "DeleteUsageLimit"
+
+// DeleteUsageLimitRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteUsageLimit operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteUsageLimit for more information on using the DeleteUsageLimit
+// 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 DeleteUsageLimitRequest method.
+// req, resp := client.DeleteUsageLimitRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteUsageLimit
+func (c *Redshift) DeleteUsageLimitRequest(input *DeleteUsageLimitInput) (req *request.Request, output *DeleteUsageLimitOutput) {
+ op := &request.Operation{
+ Name: opDeleteUsageLimit,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteUsageLimitInput{}
+ }
+
+ output = &DeleteUsageLimitOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteUsageLimit API operation for Amazon Redshift.
+//
+// Deletes a usage limit from a cluster.
+//
+// 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 Redshift's
+// API operation DeleteUsageLimit for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeUsageLimitNotFoundFault "UsageLimitNotFound"
+// The usage limit identifier can't be found.
+//
+// * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
+// The requested operation isn't supported.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteUsageLimit
+func (c *Redshift) DeleteUsageLimit(input *DeleteUsageLimitInput) (*DeleteUsageLimitOutput, error) {
+ req, out := c.DeleteUsageLimitRequest(input)
+ return out, req.Send()
+}
+
+// DeleteUsageLimitWithContext is the same as DeleteUsageLimit with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteUsageLimit 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 *Redshift) DeleteUsageLimitWithContext(ctx aws.Context, input *DeleteUsageLimitInput, opts ...request.Option) (*DeleteUsageLimitOutput, error) {
+ req, out := c.DeleteUsageLimitRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeAccountAttributes = "DescribeAccountAttributes"
// DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
@@ -6458,6 +6640,160 @@ func (c *Redshift) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsI
return out, req.Send()
}
+const opDescribeUsageLimits = "DescribeUsageLimits"
+
+// DescribeUsageLimitsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeUsageLimits operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeUsageLimits for more information on using the DescribeUsageLimits
+// 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 DescribeUsageLimitsRequest method.
+// req, resp := client.DescribeUsageLimitsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeUsageLimits
+func (c *Redshift) DescribeUsageLimitsRequest(input *DescribeUsageLimitsInput) (req *request.Request, output *DescribeUsageLimitsOutput) {
+ op := &request.Operation{
+ Name: opDescribeUsageLimits,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"Marker"},
+ OutputTokens: []string{"Marker"},
+ LimitToken: "MaxRecords",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeUsageLimitsInput{}
+ }
+
+ output = &DescribeUsageLimitsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeUsageLimits API operation for Amazon Redshift.
+//
+// Shows usage limits on a cluster. Results are filtered based on the combination
+// of input usage limit identifier, cluster identifier, and feature type parameters:
+//
+// * If usage limit identifier, cluster identifier, and feature type are
+// not provided, then all usage limit objects for the current account in
+// the current region are returned.
+//
+// * If usage limit identifier is provided, then the corresponding usage
+// limit object is returned.
+//
+// * If cluster identifier is provided, then all usage limit objects for
+// the specified cluster are returned.
+//
+// * If cluster identifier and feature type are provided, then all usage
+// limit objects for the combination of cluster and feature are returned.
+//
+// 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 Redshift's
+// API operation DescribeUsageLimits for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeClusterNotFoundFault "ClusterNotFound"
+// The ClusterIdentifier parameter does not refer to an existing cluster.
+//
+// * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
+// The requested operation isn't supported.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeUsageLimits
+func (c *Redshift) DescribeUsageLimits(input *DescribeUsageLimitsInput) (*DescribeUsageLimitsOutput, error) {
+ req, out := c.DescribeUsageLimitsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeUsageLimitsWithContext is the same as DescribeUsageLimits with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeUsageLimits 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 *Redshift) DescribeUsageLimitsWithContext(ctx aws.Context, input *DescribeUsageLimitsInput, opts ...request.Option) (*DescribeUsageLimitsOutput, error) {
+ req, out := c.DescribeUsageLimitsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeUsageLimitsPages iterates over the pages of a DescribeUsageLimits operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeUsageLimits 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 DescribeUsageLimits operation.
+// pageNum := 0
+// err := client.DescribeUsageLimitsPages(params,
+// func(page *redshift.DescribeUsageLimitsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Redshift) DescribeUsageLimitsPages(input *DescribeUsageLimitsInput, fn func(*DescribeUsageLimitsOutput, bool) bool) error {
+ return c.DescribeUsageLimitsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeUsageLimitsPagesWithContext same as DescribeUsageLimitsPages 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 *Redshift) DescribeUsageLimitsPagesWithContext(ctx aws.Context, input *DescribeUsageLimitsInput, fn func(*DescribeUsageLimitsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeUsageLimitsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeUsageLimitsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeUsageLimitsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
const opDisableLogging = "DisableLogging"
// DisableLoggingRequest generates a "aws/request.Request" representing the
@@ -8204,51 +8540,137 @@ func (c *Redshift) ModifySnapshotScheduleWithContext(ctx aws.Context, input *Mod
return out, req.Send()
}
-const opPauseCluster = "PauseCluster"
+const opModifyUsageLimit = "ModifyUsageLimit"
-// PauseClusterRequest generates a "aws/request.Request" representing the
-// client's request for the PauseCluster operation. The "output" return
+// ModifyUsageLimitRequest generates a "aws/request.Request" representing the
+// client's request for the ModifyUsageLimit operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PauseCluster for more information on using the PauseCluster
+// See ModifyUsageLimit for more information on using the ModifyUsageLimit
// 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 PauseClusterRequest method.
-// req, resp := client.PauseClusterRequest(params)
+// // Example sending a request using the ModifyUsageLimitRequest method.
+// req, resp := client.ModifyUsageLimitRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PauseCluster
-func (c *Redshift) PauseClusterRequest(input *PauseClusterInput) (req *request.Request, output *PauseClusterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyUsageLimit
+func (c *Redshift) ModifyUsageLimitRequest(input *ModifyUsageLimitInput) (req *request.Request, output *ModifyUsageLimitOutput) {
op := &request.Operation{
- Name: opPauseCluster,
+ Name: opModifyUsageLimit,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PauseClusterInput{}
+ input = &ModifyUsageLimitInput{}
}
- output = &PauseClusterOutput{}
+ output = &ModifyUsageLimitOutput{}
req = c.newRequest(op, input, output)
return
}
-// PauseCluster API operation for Amazon Redshift.
+// ModifyUsageLimit API operation for Amazon Redshift.
//
-// Pauses a cluster.
+// Modifies a usage limit in a cluster. You can't modify the feature type or
+// period of a usage limit.
+//
+// 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 Redshift's
+// API operation ModifyUsageLimit for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInvalidUsageLimitFault "InvalidUsageLimit"
+// The usage limit is not valid.
+//
+// * ErrCodeUsageLimitNotFoundFault "UsageLimitNotFound"
+// The usage limit identifier can't be found.
+//
+// * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
+// The requested operation isn't supported.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyUsageLimit
+func (c *Redshift) ModifyUsageLimit(input *ModifyUsageLimitInput) (*ModifyUsageLimitOutput, error) {
+ req, out := c.ModifyUsageLimitRequest(input)
+ return out, req.Send()
+}
+
+// ModifyUsageLimitWithContext is the same as ModifyUsageLimit with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ModifyUsageLimit 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 *Redshift) ModifyUsageLimitWithContext(ctx aws.Context, input *ModifyUsageLimitInput, opts ...request.Option) (*ModifyUsageLimitOutput, error) {
+ req, out := c.ModifyUsageLimitRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPauseCluster = "PauseCluster"
+
+// PauseClusterRequest generates a "aws/request.Request" representing the
+// client's request for the PauseCluster operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PauseCluster for more information on using the PauseCluster
+// 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 PauseClusterRequest method.
+// req, resp := client.PauseClusterRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PauseCluster
+func (c *Redshift) PauseClusterRequest(input *PauseClusterInput) (req *request.Request, output *PauseClusterOutput) {
+ op := &request.Operation{
+ Name: opPauseCluster,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PauseClusterInput{}
+ }
+
+ output = &PauseClusterOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PauseCluster API operation for Amazon Redshift.
+//
+// Pauses a cluster.
//
// 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
@@ -8611,7 +9033,7 @@ func (c *Redshift) ResizeClusterRequest(input *ResizeClusterInput) (req *request
// Elastic resize operations have the following restrictions:
//
// * You can only resize clusters of the following types: dc2.large dc2.8xlarge
-// ds2.xlarge ds2.8xlarge ra3.16xlarge
+// ds2.xlarge ds2.8xlarge ra3.4xlarge ra3.16xlarge
//
// * The type of nodes that you add must match the node type for the cluster.
//
@@ -11608,7 +12030,7 @@ type CreateClusterInput struct {
// in the Amazon Redshift Cluster Management Guide.
//
// Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large
- // | dc2.8xlarge | ra3.16xlarge
+ // | dc2.8xlarge | ra3.4xlarge | ra3.16xlarge
//
// NodeType is a required field
NodeType *string `type:"string" required:"true"`
@@ -13284,6 +13706,216 @@ func (s CreateTagsOutput) GoString() string {
return s.String()
}
+type CreateUsageLimitInput struct {
+ _ struct{} `type:"structure"`
+
+ // The limit amount. If time-based, this amount is in minutes. If data-based,
+ // this amount is in terabytes (TB). The value must be a positive number.
+ //
+ // Amount is a required field
+ Amount *int64 `type:"long" required:"true"`
+
+ // The action that Amazon Redshift takes when the limit is reached. The default
+ // is log. For more information about this parameter, see UsageLimit.
+ BreachAction *string `type:"string" enum:"UsageLimitBreachAction"`
+
+ // The identifier of the cluster that you want to limit usage.
+ //
+ // ClusterIdentifier is a required field
+ ClusterIdentifier *string `type:"string" required:"true"`
+
+ // The Amazon Redshift feature that you want to limit.
+ //
+ // FeatureType is a required field
+ FeatureType *string `type:"string" required:"true" enum:"UsageLimitFeatureType"`
+
+ // The type of limit. Depending on the feature type, this can be based on a
+ // time duration or data size. If FeatureType is spectrum, then LimitType must
+ // be data-scanned. If FeatureType is concurrency-scaling, then LimitType must
+ // be time.
+ //
+ // LimitType is a required field
+ LimitType *string `type:"string" required:"true" enum:"UsageLimitLimitType"`
+
+ // The time period that the amount applies to. A weekly period begins on Sunday.
+ // The default is monthly.
+ Period *string `type:"string" enum:"UsageLimitPeriod"`
+
+ // A list of tag instances.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
+}
+
+// String returns the string representation
+func (s CreateUsageLimitInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateUsageLimitInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateUsageLimitInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateUsageLimitInput"}
+ if s.Amount == nil {
+ invalidParams.Add(request.NewErrParamRequired("Amount"))
+ }
+ if s.ClusterIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
+ }
+ if s.FeatureType == nil {
+ invalidParams.Add(request.NewErrParamRequired("FeatureType"))
+ }
+ if s.LimitType == nil {
+ invalidParams.Add(request.NewErrParamRequired("LimitType"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAmount sets the Amount field's value.
+func (s *CreateUsageLimitInput) SetAmount(v int64) *CreateUsageLimitInput {
+ s.Amount = &v
+ return s
+}
+
+// SetBreachAction sets the BreachAction field's value.
+func (s *CreateUsageLimitInput) SetBreachAction(v string) *CreateUsageLimitInput {
+ s.BreachAction = &v
+ return s
+}
+
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *CreateUsageLimitInput) SetClusterIdentifier(v string) *CreateUsageLimitInput {
+ s.ClusterIdentifier = &v
+ return s
+}
+
+// SetFeatureType sets the FeatureType field's value.
+func (s *CreateUsageLimitInput) SetFeatureType(v string) *CreateUsageLimitInput {
+ s.FeatureType = &v
+ return s
+}
+
+// SetLimitType sets the LimitType field's value.
+func (s *CreateUsageLimitInput) SetLimitType(v string) *CreateUsageLimitInput {
+ s.LimitType = &v
+ return s
+}
+
+// SetPeriod sets the Period field's value.
+func (s *CreateUsageLimitInput) SetPeriod(v string) *CreateUsageLimitInput {
+ s.Period = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateUsageLimitInput) SetTags(v []*Tag) *CreateUsageLimitInput {
+ s.Tags = v
+ return s
+}
+
+// Describes a usage limit object for a cluster.
+type CreateUsageLimitOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The limit amount. If time-based, this amount is in minutes. If data-based,
+ // this amount is in terabytes (TB).
+ Amount *int64 `type:"long"`
+
+ // The action that Amazon Redshift takes when the limit is reached. Possible
+ // values are:
+ //
+ // * log - To log an event in a system table. The default is log.
+ //
+ // * emit-metric - To emit CloudWatch metrics.
+ //
+ // * disable - To disable the feature until the next usage period begins.
+ BreachAction *string `type:"string" enum:"UsageLimitBreachAction"`
+
+ // The identifier of the cluster with a usage limit.
+ ClusterIdentifier *string `type:"string"`
+
+ // The Amazon Redshift feature to which the limit applies.
+ FeatureType *string `type:"string" enum:"UsageLimitFeatureType"`
+
+ // The type of limit. Depending on the feature type, this can be based on a
+ // time duration or data size.
+ LimitType *string `type:"string" enum:"UsageLimitLimitType"`
+
+ // The time period that the amount applies to. A weekly period begins on Sunday.
+ // The default is monthly.
+ Period *string `type:"string" enum:"UsageLimitPeriod"`
+
+ // A list of tag instances.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
+
+ // The identifier of the usage limit.
+ UsageLimitId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CreateUsageLimitOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateUsageLimitOutput) GoString() string {
+ return s.String()
+}
+
+// SetAmount sets the Amount field's value.
+func (s *CreateUsageLimitOutput) SetAmount(v int64) *CreateUsageLimitOutput {
+ s.Amount = &v
+ return s
+}
+
+// SetBreachAction sets the BreachAction field's value.
+func (s *CreateUsageLimitOutput) SetBreachAction(v string) *CreateUsageLimitOutput {
+ s.BreachAction = &v
+ return s
+}
+
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *CreateUsageLimitOutput) SetClusterIdentifier(v string) *CreateUsageLimitOutput {
+ s.ClusterIdentifier = &v
+ return s
+}
+
+// SetFeatureType sets the FeatureType field's value.
+func (s *CreateUsageLimitOutput) SetFeatureType(v string) *CreateUsageLimitOutput {
+ s.FeatureType = &v
+ return s
+}
+
+// SetLimitType sets the LimitType field's value.
+func (s *CreateUsageLimitOutput) SetLimitType(v string) *CreateUsageLimitOutput {
+ s.LimitType = &v
+ return s
+}
+
+// SetPeriod sets the Period field's value.
+func (s *CreateUsageLimitOutput) SetPeriod(v string) *CreateUsageLimitOutput {
+ s.Period = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateUsageLimitOutput) SetTags(v []*Tag) *CreateUsageLimitOutput {
+ s.Tags = v
+ return s
+}
+
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *CreateUsageLimitOutput) SetUsageLimitId(v string) *CreateUsageLimitOutput {
+ s.UsageLimitId = &v
+ return s
+}
+
// Describes the status of a cluster while it is in the process of resizing
// with an incremental resize.
type DataTransferProgress struct {
@@ -14238,6 +14870,58 @@ func (s DeleteTagsOutput) GoString() string {
return s.String()
}
+type DeleteUsageLimitInput struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier of the usage limit to delete.
+ //
+ // UsageLimitId is a required field
+ UsageLimitId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteUsageLimitInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteUsageLimitInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteUsageLimitInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteUsageLimitInput"}
+ if s.UsageLimitId == nil {
+ invalidParams.Add(request.NewErrParamRequired("UsageLimitId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *DeleteUsageLimitInput) SetUsageLimitId(v string) *DeleteUsageLimitInput {
+ s.UsageLimitId = &v
+ return s
+}
+
+type DeleteUsageLimitOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteUsageLimitOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteUsageLimitOutput) GoString() string {
+ return s.String()
+}
+
type DescribeAccountAttributesInput struct {
_ struct{} `type:"structure"`
@@ -17300,109 +17984,243 @@ type DescribeTagsInput struct {
// records have been retrieved for the request.
Marker *string `type:"string"`
- // The maximum number or response records to return in each call. If the number
+ // The maximum number or response records to return in each call. If the number
+ // of remaining response records exceeds the specified MaxRecords value, a value
+ // is returned in a marker field of the response. You can retrieve the next
+ // set of records by retrying the command with the returned marker value.
+ MaxRecords *int64 `type:"integer"`
+
+ // The Amazon Resource Name (ARN) for which you want to describe the tag or
+ // tags. For example, arn:aws:redshift:us-east-2:123456789:cluster:t1.
+ ResourceName *string `type:"string"`
+
+ // The type of resource with which you want to view tags. Valid resource types
+ // are:
+ //
+ // * Cluster
+ //
+ // * CIDR/IP
+ //
+ // * EC2 security group
+ //
+ // * Snapshot
+ //
+ // * Cluster security group
+ //
+ // * Subnet group
+ //
+ // * HSM connection
+ //
+ // * HSM certificate
+ //
+ // * Parameter group
+ //
+ // * Snapshot copy grant
+ //
+ // For more information about Amazon Redshift resource types and constructing
+ // ARNs, go to Specifying Policy Elements: Actions, Effects, Resources, and
+ // Principals (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-overview.html#redshift-iam-access-control-specify-actions)
+ // in the Amazon Redshift Cluster Management Guide.
+ ResourceType *string `type:"string"`
+
+ // A tag key or keys for which you want to return all matching resources that
+ // are associated with the specified key or keys. For example, suppose that
+ // you have resources tagged with keys called owner and environment. If you
+ // specify both of these tag keys in the request, Amazon Redshift returns a
+ // response with all resources that have either or both of these tag keys associated
+ // with them.
+ TagKeys []*string `locationNameList:"TagKey" type:"list"`
+
+ // A tag value or values for which you want to return all matching resources
+ // that are associated with the specified value or values. For example, suppose
+ // that you have resources tagged with values called admin and test. If you
+ // specify both of these tag values in the request, Amazon Redshift returns
+ // a response with all resources that have either or both of these tag values
+ // associated with them.
+ TagValues []*string `locationNameList:"TagValue" type:"list"`
+}
+
+// String returns the string representation
+func (s DescribeTagsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeTagsInput) GoString() string {
+ return s.String()
+}
+
+// SetMarker sets the Marker field's value.
+func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput {
+ s.Marker = &v
+ return s
+}
+
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput {
+ s.MaxRecords = &v
+ return s
+}
+
+// SetResourceName sets the ResourceName field's value.
+func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput {
+ s.ResourceName = &v
+ return s
+}
+
+// SetResourceType sets the ResourceType field's value.
+func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput {
+ s.ResourceType = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput {
+ s.TagKeys = v
+ return s
+}
+
+// SetTagValues sets the TagValues field's value.
+func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput {
+ s.TagValues = v
+ return s
+}
+
+type DescribeTagsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A value that indicates the starting point for the next set of response records
+ // in a subsequent request. If a value is returned in a response, you can retrieve
+ // the next set of records by providing this returned marker value in the Marker
+ // parameter and retrying the command. If the Marker field is empty, all response
+ // records have been retrieved for the request.
+ Marker *string `type:"string"`
+
+ // A list of tags with their associated resources.
+ TaggedResources []*TaggedResource `locationNameList:"TaggedResource" type:"list"`
+}
+
+// String returns the string representation
+func (s DescribeTagsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeTagsOutput) GoString() string {
+ return s.String()
+}
+
+// SetMarker sets the Marker field's value.
+func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput {
+ s.Marker = &v
+ return s
+}
+
+// SetTaggedResources sets the TaggedResources field's value.
+func (s *DescribeTagsOutput) SetTaggedResources(v []*TaggedResource) *DescribeTagsOutput {
+ s.TaggedResources = v
+ return s
+}
+
+type DescribeUsageLimitsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier of the cluster for which you want to describe usage limits.
+ ClusterIdentifier *string `type:"string"`
+
+ // The feature type for which you want to describe usage limits.
+ FeatureType *string `type:"string" enum:"UsageLimitFeatureType"`
+
+ // An optional parameter that specifies the starting point to return a set of
+ // response records. When the results of a DescribeUsageLimits request exceed
+ // the value specified in MaxRecords, AWS returns a value in the Marker field
+ // of the response. You can retrieve the next set of response records by providing
+ // the returned marker value in the Marker parameter and retrying the request.
+ Marker *string `type:"string"`
+
+ // The maximum number of response records to return in each call. If the number
// of remaining response records exceeds the specified MaxRecords value, a value
// is returned in a marker field of the response. You can retrieve the next
// set of records by retrying the command with the returned marker value.
- MaxRecords *int64 `type:"integer"`
-
- // The Amazon Resource Name (ARN) for which you want to describe the tag or
- // tags. For example, arn:aws:redshift:us-east-2:123456789:cluster:t1.
- ResourceName *string `type:"string"`
-
- // The type of resource with which you want to view tags. Valid resource types
- // are:
- //
- // * Cluster
- //
- // * CIDR/IP
- //
- // * EC2 security group
- //
- // * Snapshot
- //
- // * Cluster security group
- //
- // * Subnet group
- //
- // * HSM connection
//
- // * HSM certificate
- //
- // * Parameter group
- //
- // * Snapshot copy grant
+ // Default: 100
//
- // For more information about Amazon Redshift resource types and constructing
- // ARNs, go to Specifying Policy Elements: Actions, Effects, Resources, and
- // Principals (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-overview.html#redshift-iam-access-control-specify-actions)
- // in the Amazon Redshift Cluster Management Guide.
- ResourceType *string `type:"string"`
+ // Constraints: minimum 20, maximum 100.
+ MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching resources that
- // are associated with the specified key or keys. For example, suppose that
- // you have resources tagged with keys called owner and environment. If you
- // specify both of these tag keys in the request, Amazon Redshift returns a
- // response with all resources that have either or both of these tag keys associated
- // with them.
+ // A tag key or keys for which you want to return all matching usage limit objects
+ // that are associated with the specified key or keys. For example, suppose
+ // that you have parameter groups that are tagged with keys called owner and
+ // environment. If you specify both of these tag keys in the request, Amazon
+ // Redshift returns a response with the usage limit objects have either or both
+ // of these tag keys associated with them.
TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching resources
- // that are associated with the specified value or values. For example, suppose
- // that you have resources tagged with values called admin and test. If you
- // specify both of these tag values in the request, Amazon Redshift returns
- // a response with all resources that have either or both of these tag values
- // associated with them.
+ // A tag value or values for which you want to return all matching usage limit
+ // objects that are associated with the specified tag value or values. For example,
+ // suppose that you have parameter groups that are tagged with values called
+ // admin and test. If you specify both of these tag values in the request, Amazon
+ // Redshift returns a response with the usage limit objects that have either
+ // or both of these tag values associated with them.
TagValues []*string `locationNameList:"TagValue" type:"list"`
+
+ // The identifier of the usage limit to describe.
+ UsageLimitId *string `type:"string"`
}
// String returns the string representation
-func (s DescribeTagsInput) String() string {
+func (s DescribeUsageLimitsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeTagsInput) GoString() string {
+func (s DescribeUsageLimitsInput) GoString() string {
return s.String()
}
-// SetMarker sets the Marker field's value.
-func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput {
- s.Marker = &v
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *DescribeUsageLimitsInput) SetClusterIdentifier(v string) *DescribeUsageLimitsInput {
+ s.ClusterIdentifier = &v
return s
}
-// SetMaxRecords sets the MaxRecords field's value.
-func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput {
- s.MaxRecords = &v
+// SetFeatureType sets the FeatureType field's value.
+func (s *DescribeUsageLimitsInput) SetFeatureType(v string) *DescribeUsageLimitsInput {
+ s.FeatureType = &v
return s
}
-// SetResourceName sets the ResourceName field's value.
-func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput {
- s.ResourceName = &v
+// SetMarker sets the Marker field's value.
+func (s *DescribeUsageLimitsInput) SetMarker(v string) *DescribeUsageLimitsInput {
+ s.Marker = &v
return s
}
-// SetResourceType sets the ResourceType field's value.
-func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput {
- s.ResourceType = &v
+// SetMaxRecords sets the MaxRecords field's value.
+func (s *DescribeUsageLimitsInput) SetMaxRecords(v int64) *DescribeUsageLimitsInput {
+ s.MaxRecords = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
-func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput {
+func (s *DescribeUsageLimitsInput) SetTagKeys(v []*string) *DescribeUsageLimitsInput {
s.TagKeys = v
return s
}
// SetTagValues sets the TagValues field's value.
-func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput {
+func (s *DescribeUsageLimitsInput) SetTagValues(v []*string) *DescribeUsageLimitsInput {
s.TagValues = v
return s
}
-type DescribeTagsOutput struct {
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *DescribeUsageLimitsInput) SetUsageLimitId(v string) *DescribeUsageLimitsInput {
+ s.UsageLimitId = &v
+ return s
+}
+
+type DescribeUsageLimitsOutput struct {
_ struct{} `type:"structure"`
// A value that indicates the starting point for the next set of response records
@@ -17412,29 +18230,29 @@ type DescribeTagsOutput struct {
// records have been retrieved for the request.
Marker *string `type:"string"`
- // A list of tags with their associated resources.
- TaggedResources []*TaggedResource `locationNameList:"TaggedResource" type:"list"`
+ // Contains the output from the DescribeUsageLimits action.
+ UsageLimits []*UsageLimit `type:"list"`
}
// String returns the string representation
-func (s DescribeTagsOutput) String() string {
+func (s DescribeUsageLimitsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
-func (s DescribeTagsOutput) GoString() string {
+func (s DescribeUsageLimitsOutput) GoString() string {
return s.String()
}
// SetMarker sets the Marker field's value.
-func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput {
+func (s *DescribeUsageLimitsOutput) SetMarker(v string) *DescribeUsageLimitsOutput {
s.Marker = &v
return s
}
-// SetTaggedResources sets the TaggedResources field's value.
-func (s *DescribeTagsOutput) SetTaggedResources(v []*TaggedResource) *DescribeTagsOutput {
- s.TaggedResources = v
+// SetUsageLimits sets the UsageLimits field's value.
+func (s *DescribeUsageLimitsOutput) SetUsageLimits(v []*UsageLimit) *DescribeUsageLimitsOutput {
+ s.UsageLimits = v
return s
}
@@ -19112,7 +19930,7 @@ type ModifyClusterInput struct {
// in the Amazon Redshift Cluster Management Guide.
//
// Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large
- // | dc2.8xlarge | ra3.16xlarge
+ // | dc2.8xlarge | ra3.4xlarge | ra3.16xlarge
NodeType *string `type:"string"`
// The new number of nodes of the cluster. If you specify a new number of nodes,
@@ -20348,6 +21166,160 @@ func (s *ModifySnapshotScheduleOutput) SetTags(v []*Tag) *ModifySnapshotSchedule
return s
}
+type ModifyUsageLimitInput struct {
+ _ struct{} `type:"structure"`
+
+ // The new limit amount. For more information about this parameter, see UsageLimit.
+ Amount *int64 `type:"long"`
+
+ // The new action that Amazon Redshift takes when the limit is reached. For
+ // more information about this parameter, see UsageLimit.
+ BreachAction *string `type:"string" enum:"UsageLimitBreachAction"`
+
+ // The identifier of the usage limit to modify.
+ //
+ // UsageLimitId is a required field
+ UsageLimitId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ModifyUsageLimitInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ModifyUsageLimitInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ModifyUsageLimitInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ModifyUsageLimitInput"}
+ if s.UsageLimitId == nil {
+ invalidParams.Add(request.NewErrParamRequired("UsageLimitId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAmount sets the Amount field's value.
+func (s *ModifyUsageLimitInput) SetAmount(v int64) *ModifyUsageLimitInput {
+ s.Amount = &v
+ return s
+}
+
+// SetBreachAction sets the BreachAction field's value.
+func (s *ModifyUsageLimitInput) SetBreachAction(v string) *ModifyUsageLimitInput {
+ s.BreachAction = &v
+ return s
+}
+
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *ModifyUsageLimitInput) SetUsageLimitId(v string) *ModifyUsageLimitInput {
+ s.UsageLimitId = &v
+ return s
+}
+
+// Describes a usage limit object for a cluster.
+type ModifyUsageLimitOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The limit amount. If time-based, this amount is in minutes. If data-based,
+ // this amount is in terabytes (TB).
+ Amount *int64 `type:"long"`
+
+ // The action that Amazon Redshift takes when the limit is reached. Possible
+ // values are:
+ //
+ // * log - To log an event in a system table. The default is log.
+ //
+ // * emit-metric - To emit CloudWatch metrics.
+ //
+ // * disable - To disable the feature until the next usage period begins.
+ BreachAction *string `type:"string" enum:"UsageLimitBreachAction"`
+
+ // The identifier of the cluster with a usage limit.
+ ClusterIdentifier *string `type:"string"`
+
+ // The Amazon Redshift feature to which the limit applies.
+ FeatureType *string `type:"string" enum:"UsageLimitFeatureType"`
+
+ // The type of limit. Depending on the feature type, this can be based on a
+ // time duration or data size.
+ LimitType *string `type:"string" enum:"UsageLimitLimitType"`
+
+ // The time period that the amount applies to. A weekly period begins on Sunday.
+ // The default is monthly.
+ Period *string `type:"string" enum:"UsageLimitPeriod"`
+
+ // A list of tag instances.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
+
+ // The identifier of the usage limit.
+ UsageLimitId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ModifyUsageLimitOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ModifyUsageLimitOutput) GoString() string {
+ return s.String()
+}
+
+// SetAmount sets the Amount field's value.
+func (s *ModifyUsageLimitOutput) SetAmount(v int64) *ModifyUsageLimitOutput {
+ s.Amount = &v
+ return s
+}
+
+// SetBreachAction sets the BreachAction field's value.
+func (s *ModifyUsageLimitOutput) SetBreachAction(v string) *ModifyUsageLimitOutput {
+ s.BreachAction = &v
+ return s
+}
+
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *ModifyUsageLimitOutput) SetClusterIdentifier(v string) *ModifyUsageLimitOutput {
+ s.ClusterIdentifier = &v
+ return s
+}
+
+// SetFeatureType sets the FeatureType field's value.
+func (s *ModifyUsageLimitOutput) SetFeatureType(v string) *ModifyUsageLimitOutput {
+ s.FeatureType = &v
+ return s
+}
+
+// SetLimitType sets the LimitType field's value.
+func (s *ModifyUsageLimitOutput) SetLimitType(v string) *ModifyUsageLimitOutput {
+ s.LimitType = &v
+ return s
+}
+
+// SetPeriod sets the Period field's value.
+func (s *ModifyUsageLimitOutput) SetPeriod(v string) *ModifyUsageLimitOutput {
+ s.Period = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *ModifyUsageLimitOutput) SetTags(v []*Tag) *ModifyUsageLimitOutput {
+ s.Tags = v
+ return s
+}
+
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *ModifyUsageLimitOutput) SetUsageLimitId(v string) *ModifyUsageLimitOutput {
+ s.UsageLimitId = &v
+ return s
+}
+
// A list of node configurations.
type NodeConfigurationOption struct {
_ struct{} `type:"structure"`
@@ -21647,7 +22619,7 @@ type RestoreFromClusterSnapshotInput struct {
// If you have a DC instance type, you must restore into that same instance
// type and size. In other words, you can only restore a dc1.large instance
// type into another dc1.large instance type or dc2.large instance type. You
- // can't restore dc1.8xlarge to dc2.8xlarge. First restore to a dc1.8xlareg
+ // can't restore dc1.8xlarge to dc2.8xlarge. First restore to a dc1.8xlarge
// cluster, then resize to a dc2.8large cluster. For more information about
// node types, see About Clusters and Nodes (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-about-clusters-and-nodes)
// in the Amazon Redshift Cluster Management Guide.
@@ -23717,6 +24689,103 @@ func (s *UpdateTarget) SetSupportedOperations(v []*SupportedOperation) *UpdateTa
return s
}
+// Describes a usage limit object for a cluster.
+type UsageLimit struct {
+ _ struct{} `type:"structure"`
+
+ // The limit amount. If time-based, this amount is in minutes. If data-based,
+ // this amount is in terabytes (TB).
+ Amount *int64 `type:"long"`
+
+ // The action that Amazon Redshift takes when the limit is reached. Possible
+ // values are:
+ //
+ // * log - To log an event in a system table. The default is log.
+ //
+ // * emit-metric - To emit CloudWatch metrics.
+ //
+ // * disable - To disable the feature until the next usage period begins.
+ BreachAction *string `type:"string" enum:"UsageLimitBreachAction"`
+
+ // The identifier of the cluster with a usage limit.
+ ClusterIdentifier *string `type:"string"`
+
+ // The Amazon Redshift feature to which the limit applies.
+ FeatureType *string `type:"string" enum:"UsageLimitFeatureType"`
+
+ // The type of limit. Depending on the feature type, this can be based on a
+ // time duration or data size.
+ LimitType *string `type:"string" enum:"UsageLimitLimitType"`
+
+ // The time period that the amount applies to. A weekly period begins on Sunday.
+ // The default is monthly.
+ Period *string `type:"string" enum:"UsageLimitPeriod"`
+
+ // A list of tag instances.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
+
+ // The identifier of the usage limit.
+ UsageLimitId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s UsageLimit) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UsageLimit) GoString() string {
+ return s.String()
+}
+
+// SetAmount sets the Amount field's value.
+func (s *UsageLimit) SetAmount(v int64) *UsageLimit {
+ s.Amount = &v
+ return s
+}
+
+// SetBreachAction sets the BreachAction field's value.
+func (s *UsageLimit) SetBreachAction(v string) *UsageLimit {
+ s.BreachAction = &v
+ return s
+}
+
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *UsageLimit) SetClusterIdentifier(v string) *UsageLimit {
+ s.ClusterIdentifier = &v
+ return s
+}
+
+// SetFeatureType sets the FeatureType field's value.
+func (s *UsageLimit) SetFeatureType(v string) *UsageLimit {
+ s.FeatureType = &v
+ return s
+}
+
+// SetLimitType sets the LimitType field's value.
+func (s *UsageLimit) SetLimitType(v string) *UsageLimit {
+ s.LimitType = &v
+ return s
+}
+
+// SetPeriod sets the Period field's value.
+func (s *UsageLimit) SetPeriod(v string) *UsageLimit {
+ s.Period = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *UsageLimit) SetTags(v []*Tag) *UsageLimit {
+ s.Tags = v
+ return s
+}
+
+// SetUsageLimitId sets the UsageLimitId field's value.
+func (s *UsageLimit) SetUsageLimitId(v string) *UsageLimit {
+ s.UsageLimitId = &v
+ return s
+}
+
// Describes the members of a VPC security group.
type VpcSecurityGroupMembership struct {
_ struct{} `type:"structure"`
@@ -23912,3 +24981,41 @@ const (
// TableRestoreStatusTypeCanceled is a TableRestoreStatusType enum value
TableRestoreStatusTypeCanceled = "CANCELED"
)
+
+const (
+ // UsageLimitBreachActionLog is a UsageLimitBreachAction enum value
+ UsageLimitBreachActionLog = "log"
+
+ // UsageLimitBreachActionEmitMetric is a UsageLimitBreachAction enum value
+ UsageLimitBreachActionEmitMetric = "emit-metric"
+
+ // UsageLimitBreachActionDisable is a UsageLimitBreachAction enum value
+ UsageLimitBreachActionDisable = "disable"
+)
+
+const (
+ // UsageLimitFeatureTypeSpectrum is a UsageLimitFeatureType enum value
+ UsageLimitFeatureTypeSpectrum = "spectrum"
+
+ // UsageLimitFeatureTypeConcurrencyScaling is a UsageLimitFeatureType enum value
+ UsageLimitFeatureTypeConcurrencyScaling = "concurrency-scaling"
+)
+
+const (
+ // UsageLimitLimitTypeTime is a UsageLimitLimitType enum value
+ UsageLimitLimitTypeTime = "time"
+
+ // UsageLimitLimitTypeDataScanned is a UsageLimitLimitType enum value
+ UsageLimitLimitTypeDataScanned = "data-scanned"
+)
+
+const (
+ // UsageLimitPeriodDaily is a UsageLimitPeriod enum value
+ UsageLimitPeriodDaily = "daily"
+
+ // UsageLimitPeriodWeekly is a UsageLimitPeriod enum value
+ UsageLimitPeriodWeekly = "weekly"
+
+ // UsageLimitPeriodMonthly is a UsageLimitPeriod enum value
+ UsageLimitPeriodMonthly = "monthly"
+)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go
index f710284ae43..ada8b21cb9f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go
@@ -421,6 +421,12 @@ const (
// The tag is invalid.
ErrCodeInvalidTagFault = "InvalidTagFault"
+ // ErrCodeInvalidUsageLimitFault for service response error code
+ // "InvalidUsageLimit".
+ //
+ // The usage limit is not valid.
+ ErrCodeInvalidUsageLimitFault = "InvalidUsageLimit"
+
// ErrCodeInvalidVPCNetworkStateFault for service response error code
// "InvalidVPCNetworkStateFault".
//
@@ -695,4 +701,16 @@ const (
//
// A request option was specified that is not supported.
ErrCodeUnsupportedOptionFault = "UnsupportedOptionFault"
+
+ // ErrCodeUsageLimitAlreadyExistsFault for service response error code
+ // "UsageLimitAlreadyExists".
+ //
+ // The usage limit already exists.
+ ErrCodeUsageLimitAlreadyExistsFault = "UsageLimitAlreadyExists"
+
+ // ErrCodeUsageLimitNotFoundFault for service response error code
+ // "UsageLimitNotFound".
+ //
+ // The usage limit identifier can't be found.
+ ErrCodeUsageLimitNotFoundFault = "UsageLimitNotFound"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go b/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go
index 4fa97b4d5e4..c339a2c8eec 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go
@@ -1334,8 +1334,8 @@ func (c *ResourceGroups) UpdateGroupQueryWithContext(ctx aws.Context, input *Upd
// The request does not comply with validation rules that are defined for the
// request parameters.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1352,17 +1352,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1370,22 +1370,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateGroupInput struct {
@@ -1582,8 +1582,8 @@ func (s *DeleteGroupOutput) SetGroup(v *Group) *DeleteGroupOutput {
// The caller is not authorized to make the request.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -1600,17 +1600,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1618,22 +1618,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetGroupInput struct {
@@ -2017,8 +2017,8 @@ func (s *GroupQuery) SetResourceQuery(v *ResourceQuery) *GroupQuery {
// An internal error occurred while processing the request.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2035,17 +2035,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2053,22 +2053,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListGroupResourcesInput struct {
@@ -2324,8 +2324,8 @@ func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput {
// The request uses an HTTP method which is not allowed for the specified resource.
type MethodNotAllowedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2342,17 +2342,17 @@ func (s MethodNotAllowedException) GoString() string {
func newErrorMethodNotAllowedException(v protocol.ResponseMetadata) error {
return &MethodNotAllowedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MethodNotAllowedException) Code() string {
+func (s *MethodNotAllowedException) Code() string {
return "MethodNotAllowedException"
}
// Message returns the exception's message.
-func (s MethodNotAllowedException) Message() string {
+func (s *MethodNotAllowedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2360,28 +2360,28 @@ func (s MethodNotAllowedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MethodNotAllowedException) OrigErr() error {
+func (s *MethodNotAllowedException) OrigErr() error {
return nil
}
-func (s MethodNotAllowedException) Error() string {
+func (s *MethodNotAllowedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MethodNotAllowedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MethodNotAllowedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MethodNotAllowedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MethodNotAllowedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more resources specified in the request do not exist.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2398,17 +2398,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2416,22 +2416,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A two-part error structure that can occur in ListGroupResources or SearchResources
@@ -2859,8 +2859,8 @@ func (s *TagOutput) SetTags(v map[string]*string) *TagOutput {
// The caller has exceeded throttling limits.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2877,17 +2877,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2895,29 +2895,29 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request has not been applied because it lacks valid authentication credentials
// for the target resource.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" min:"1" type:"string"`
}
@@ -2934,17 +2934,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2952,22 +2952,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go b/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go
index 788e851250d..9fa40e1b910 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go
@@ -1212,8 +1212,8 @@ func (s *ComplianceDetails) SetNoncompliantKeys(v []*string) *ComplianceDetails
// The target of the operation is currently being modified by a different request.
// Try again later.
type ConcurrentModificationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1230,17 +1230,17 @@ func (s ConcurrentModificationException) GoString() string {
func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
return &ConcurrentModificationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConcurrentModificationException) Code() string {
+func (s *ConcurrentModificationException) Code() string {
return "ConcurrentModificationException"
}
// Message returns the exception's message.
-func (s ConcurrentModificationException) Message() string {
+func (s *ConcurrentModificationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1248,22 +1248,22 @@ func (s ConcurrentModificationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConcurrentModificationException) OrigErr() error {
+func (s *ConcurrentModificationException) OrigErr() error {
return nil
}
-func (s ConcurrentModificationException) Error() string {
+func (s *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConcurrentModificationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConcurrentModificationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConcurrentModificationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConcurrentModificationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was denied because performing this operation violates a constraint.
@@ -1282,8 +1282,8 @@ func (s ConcurrentModificationException) RequestID() string {
// * You must have a tag policy attached to the organization root, an OU,
// or an account.
type ConstraintViolationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1300,17 +1300,17 @@ func (s ConstraintViolationException) GoString() string {
func newErrorConstraintViolationException(v protocol.ResponseMetadata) error {
return &ConstraintViolationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConstraintViolationException) Code() string {
+func (s *ConstraintViolationException) Code() string {
return "ConstraintViolationException"
}
// Message returns the exception's message.
-func (s ConstraintViolationException) Message() string {
+func (s *ConstraintViolationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1318,22 +1318,22 @@ func (s ConstraintViolationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConstraintViolationException) OrigErr() error {
+func (s *ConstraintViolationException) OrigErr() error {
return nil
}
-func (s ConstraintViolationException) Error() string {
+func (s *ConstraintViolationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConstraintViolationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConstraintViolationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConstraintViolationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConstraintViolationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DescribeReportCreationInput struct {
@@ -1985,8 +1985,8 @@ func (s *GetTagValuesOutput) SetTagValues(v []*string) *GetTagValuesOutput {
// The request processing failed because of an unknown error, exception, or
// failure. You can retry the request.
type InternalServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2003,17 +2003,17 @@ func (s InternalServiceException) GoString() string {
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceException) Code() string {
+func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
-func (s InternalServiceException) Message() string {
+func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2021,22 +2021,22 @@ func (s InternalServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceException) OrigErr() error {
+func (s *InternalServiceException) OrigErr() error {
return nil
}
-func (s InternalServiceException) Error() string {
+func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This error indicates one of the following:
@@ -2054,8 +2054,8 @@ func (s InternalServiceException) RequestID() string {
// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report)
// in the AWS Organizations User Guide.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2072,17 +2072,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2090,29 +2090,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A PaginationToken is valid for a maximum of 15 minutes. Your request was
// denied because the specified PaginationToken has expired.
type PaginationTokenExpiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2129,17 +2129,17 @@ func (s PaginationTokenExpiredException) GoString() string {
func newErrorPaginationTokenExpiredException(v protocol.ResponseMetadata) error {
return &PaginationTokenExpiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PaginationTokenExpiredException) Code() string {
+func (s *PaginationTokenExpiredException) Code() string {
return "PaginationTokenExpiredException"
}
// Message returns the exception's message.
-func (s PaginationTokenExpiredException) Message() string {
+func (s *PaginationTokenExpiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2147,22 +2147,22 @@ func (s PaginationTokenExpiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PaginationTokenExpiredException) OrigErr() error {
+func (s *PaginationTokenExpiredException) OrigErr() error {
return nil
}
-func (s PaginationTokenExpiredException) Error() string {
+func (s *PaginationTokenExpiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PaginationTokenExpiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PaginationTokenExpiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PaginationTokenExpiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PaginationTokenExpiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A list of resource ARNs and the tags (keys and values) that are associated
@@ -2522,8 +2522,8 @@ func (s *TagResourcesOutput) SetFailedResourcesMap(v map[string]*FailureInfo) *T
// The request was denied to limit the frequency of submitted requests.
type ThrottledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2540,17 +2540,17 @@ func (s ThrottledException) GoString() string {
func newErrorThrottledException(v protocol.ResponseMetadata) error {
return &ThrottledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottledException) Code() string {
+func (s *ThrottledException) Code() string {
return "ThrottledException"
}
// Message returns the exception's message.
-func (s ThrottledException) Message() string {
+func (s *ThrottledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2558,22 +2558,22 @@ func (s ThrottledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottledException) OrigErr() error {
+func (s *ThrottledException) OrigErr() error {
return nil
}
-func (s ThrottledException) Error() string {
+func (s *ThrottledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourcesInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go
index c17f25d357d..38b6207b0bd 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go
@@ -60,13 +60,22 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste
// Associates an Amazon VPC with a private hosted zone.
//
// To perform the association, the VPC and the private hosted zone must already
-// exist. You can't convert a public hosted zone into a private hosted zone.
+// exist. Also, you can't convert a public hosted zone into a private hosted
+// zone.
+//
+// If you want to associate a VPC that was created by one AWS account with a
+// private hosted zone that was created by a different account, do one of the
+// following:
+//
+// * Use the AWS account that created the private hosted zone to submit a
+// CreateVPCAssociationAuthorization (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateVPCAssociationAuthorization.html)
+// request. Then use the account that created the VPC to submit an AssociateVPCWithHostedZone
+// request.
//
-// If you want to associate a VPC that was created by using one AWS account
-// with a private hosted zone that was created by using a different account,
-// the AWS account that created the private hosted zone must first submit a
-// CreateVPCAssociationAuthorization request. Then the account that created
-// the VPC must submit an AssociateVPCWithHostedZone request.
+// * If a subnet in the VPC was shared with another account, you can use
+// the account that the subnet was shared with to submit an AssociateVPCWithHostedZone
+// request. For more information about sharing subnets, see Working with
+// Shared VPCs (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html).
//
// 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
@@ -95,22 +104,22 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste
// 53 doesn't support associating a VPC with a public hosted zone.
//
// * ErrCodeConflictingDomainExists "ConflictingDomainExists"
-// The cause of this error depends on whether you're trying to create a public
-// or a private hosted zone:
-//
-// * Public hosted zone: Two hosted zones that have the same name or that
-// have a parent/child relationship (example.com and test.example.com) can't
-// have any common name servers. You tried to create a hosted zone that has
-// the same name as an existing hosted zone or that's the parent or child
-// of an existing hosted zone, and you specified a delegation set that shares
-// one or more name servers with the existing hosted zone. For more information,
-// see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
-//
-// * Private hosted zone: You specified an Amazon VPC that you're already
-// using for another hosted zone, and the domain that you specified for one
-// of the hosted zones is a subdomain of the domain that you specified for
-// the other hosted zone. For example, you can't use the same Amazon VPC
-// for the hosted zones for example.com and test.example.com.
+// The cause of this error depends on the operation that you're performing:
+//
+// * Create a public hosted zone: Two hosted zones that have the same name
+// or that have a parent/child relationship (example.com and test.example.com)
+// can't have any common name servers. You tried to create a hosted zone
+// that has the same name as an existing hosted zone or that's the parent
+// or child of an existing hosted zone, and you specified a delegation set
+// that shares one or more name servers with the existing hosted zone. For
+// more information, see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
+//
+// * Create a private hosted zone: A hosted zone with the specified name
+// already exists and is already associated with the Amazon VPC that you
+// specified.
+//
+// * Associate VPCs with a private hosted zone: The VPC that you specified
+// is already associated with another hosted zone that has the same name.
//
// * ErrCodeLimitsExceeded "LimitsExceeded"
// This operation can't be completed either because the current account has
@@ -195,27 +204,30 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet
// routes traffic for test.example.com to a web server that has an IP address
// of 192.0.2.44.
//
+// Deleting Resource Record Sets
+//
+// To delete a resource record set, you must specify all the same values that
+// you specified when you created it.
+//
// Change Batches and Transactional Changes
//
// The request body must include a document with a ChangeResourceRecordSetsRequest
// element. The request body contains a list of change items, known as a change
-// batch. Change batches are considered transactional changes. When using the
-// Amazon Route 53 API to change resource record sets, Route 53 either makes
-// all or none of the changes in a change batch request. This ensures that Route
-// 53 never partially implements the intended changes to the resource record
-// sets in a hosted zone.
-//
-// For example, a change batch request that deletes the CNAME record for www.example.com
-// and creates an alias resource record set for www.example.com. Route 53 deletes
-// the first resource record set and creates the second resource record set
-// in a single operation. If either the DELETE or the CREATE action fails, then
-// both changes (plus any other changes in the batch) fail, and the original
-// CNAME record continues to exist.
-//
-// Due to the nature of transactional changes, you can't delete the same resource
-// record set more than once in a single change batch. If you attempt to delete
-// the same change batch more than once, Route 53 returns an InvalidChangeBatch
-// error.
+// batch. Change batches are considered transactional changes. Route 53 validates
+// the changes in the request and then either makes all or none of the changes
+// in the change batch request. This ensures that DNS routing isn't adversely
+// affected by partial changes to the resource record sets in a hosted zone.
+//
+// For example, suppose a change batch request contains two changes: it deletes
+// the CNAME resource record set for www.example.com and creates an alias resource
+// record set for www.example.com. If validation for both records succeeds,
+// Route 53 deletes the first resource record set and creates the second resource
+// record set in a single operation. If validation for either the DELETE or
+// the CREATE action fails, then the request is canceled, and the original CNAME
+// record continues to exist.
+//
+// If you try to delete the same resource record set more than once in a single
+// change batch, Route 53 returns an InvalidChangeBatch error.
//
// Traffic Flow
//
@@ -226,7 +238,7 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet
// names (such as example.com) or subdomain names (such as www.example.com),
// in the same hosted zone or in multiple hosted zones. You can roll back the
// updates if the new configuration isn't performing as expected. For more information,
-// see Using Traffic Flow to Route DNS Traffic (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html)
+// see Using Traffic Flow to Route DNS Traffic (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/traffic-flow.html)
// in the Amazon Route 53 Developer Guide.
//
// Create, Delete, and Upsert
@@ -495,7 +507,7 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *
// of the Amazon EC2 StatusCheckFailed metric, add an alarm to the metric,
// and then create a health check that is based on the state of the alarm.
// For information about creating CloudWatch metrics and alarms by using
-// the CloudWatch console, see the Amazon CloudWatch User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html).
+// the CloudWatch console, see the Amazon CloudWatch User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html).
//
// 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
@@ -620,10 +632,10 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re
// * You can't create a hosted zone for a top-level domain (TLD) such as
// .com.
//
-// * For public hosted zones, Amazon Route 53 automatically creates a default
-// SOA record and four NS records for the zone. For more information about
-// SOA and NS records, see NS and SOA Records that Route 53 Creates for a
-// Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html)
+// * For public hosted zones, Route 53 automatically creates a default SOA
+// record and four NS records for the zone. For more information about SOA
+// and NS records, see NS and SOA Records that Route 53 Creates for a Hosted
+// Zone (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html)
// in the Amazon Route 53 Developer Guide. If you want to use the same name
// servers for multiple public hosted zones, you can optionally associate
// a reusable delegation set with the hosted zone. See the DelegationSetId
@@ -632,7 +644,7 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re
// * If your domain is registered with a registrar other than Route 53, you
// must update the name servers with your registrar to make Route 53 the
// DNS service for the domain. For more information, see Migrating DNS Service
-// for an Existing Domain to Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html)
+// for an Existing Domain to Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html)
// in the Amazon Route 53 Developer Guide.
//
// When you submit a CreateHostedZone request, the initial status of the hosted
@@ -689,22 +701,22 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re
// error, contact Customer Support.
//
// * ErrCodeConflictingDomainExists "ConflictingDomainExists"
-// The cause of this error depends on whether you're trying to create a public
-// or a private hosted zone:
-//
-// * Public hosted zone: Two hosted zones that have the same name or that
-// have a parent/child relationship (example.com and test.example.com) can't
-// have any common name servers. You tried to create a hosted zone that has
-// the same name as an existing hosted zone or that's the parent or child
-// of an existing hosted zone, and you specified a delegation set that shares
-// one or more name servers with the existing hosted zone. For more information,
-// see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
-//
-// * Private hosted zone: You specified an Amazon VPC that you're already
-// using for another hosted zone, and the domain that you specified for one
-// of the hosted zones is a subdomain of the domain that you specified for
-// the other hosted zone. For example, you can't use the same Amazon VPC
-// for the hosted zones for example.com and test.example.com.
+// The cause of this error depends on the operation that you're performing:
+//
+// * Create a public hosted zone: Two hosted zones that have the same name
+// or that have a parent/child relationship (example.com and test.example.com)
+// can't have any common name servers. You tried to create a hosted zone
+// that has the same name as an existing hosted zone or that's the parent
+// or child of an existing hosted zone, and you specified a delegation set
+// that shares one or more name servers with the existing hosted zone. For
+// more information, see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
+//
+// * Create a private hosted zone: A hosted zone with the specified name
+// already exists and is already associated with the Amazon VPC that you
+// specified.
+//
+// * Associate VPCs with a private hosted zone: The VPC that you specified
+// is already associated with another hosted zone that has the same name.
//
// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet"
// A reusable delegation set with the specified ID does not exist.
@@ -987,13 +999,16 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega
// CreateReusableDelegationSet API operation for Amazon Route 53.
//
// Creates a delegation set (a group of four name servers) that can be reused
-// by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet
-// marks the delegation set associated with that zone as reusable.
+// by multiple hosted zones that were created by the same AWS account.
+//
+// You can also create a reusable delegation set that uses the four name servers
+// that are associated with an existing hosted zone. Specify the hosted zone
+// ID in the CreateReusableDelegationSet request.
//
// You can't associate a reusable delegation set with a private hosted zone.
//
// For information about using a reusable delegation set to configure white
-// label name servers, see Configuring White Label Name Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html).
+// label name servers, see Configuring White Label Name Servers (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html).
//
// The process for migrating existing hosted zones to use a reusable delegation
// set is comparable to the process for configuring white label name servers.
@@ -1566,9 +1581,15 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *
// you delete a health check and you don't update the associated resource record
// sets, the future status of the health check can't be predicted and may change.
// This will affect the routing of DNS queries for your DNS failover configuration.
-// For more information, see Replacing and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html)
+// For more information, see Replacing and Deleting Health Checks (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html)
// in the Amazon Route 53 Developer Guide.
//
+// If you're using AWS Cloud Map and you configured Cloud Map to create a Route
+// 53 health check when you register an instance, you can't use the Route 53
+// DeleteHealthCheck command to delete the health check. The health check is
+// deleted automatically when you deregister the instance; there can be a delay
+// of several hours before the health check is deleted from Route 53.
+//
// 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.
@@ -2554,7 +2575,7 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req
//
// GetCheckerIpRanges still works, but we recommend that you download ip-ranges.json,
// which includes IP address ranges for all AWS services. For more information,
-// see IP Address Ranges of Amazon Route 53 Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html)
+// see IP Address Ranges of Amazon Route 53 Servers (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html)
// in the Amazon Route 53 Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -2657,7 +2678,9 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques
//
// Returned Error Codes:
// * ErrCodeNoSuchGeoLocation "NoSuchGeoLocation"
-// Amazon Route 53 doesn't support the specified geographic location.
+// Amazon Route 53 doesn't support the specified geographic location. For a
+// list of supported geolocation codes, see the GeoLocation (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html)
+// data type.
//
// * ErrCodeInvalidInput "InvalidInput"
// The input is not valid.
@@ -3817,6 +3840,9 @@ func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *re
// the subdivisions for that country are listed in alphabetical order immediately
// after the corresponding country.
//
+// For a list of supported geolocation codes, see the GeoLocation (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html)
+// data type.
+//
// 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.
@@ -4206,7 +4232,7 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput
//
// The labels are reversed and alphabetized using the escaped value. For more
// information about valid domain name formats, including internationalized
-// domain names, see DNS Domain Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
+// domain names, see DNS Domain Name Format (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
// in the Amazon Route 53 Developer Guide.
//
// Route 53 returns up to 100 items in each response. If you have a lot of hosted
@@ -4302,6 +4328,12 @@ func (c *Route53) ListQueryLoggingConfigsRequest(input *ListQueryLoggingConfigsI
Name: opListQueryLoggingConfigs,
HTTPMethod: "GET",
HTTPPath: "/2013-04-01/queryloggingconfig",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
}
if input == nil {
@@ -4364,6 +4396,58 @@ func (c *Route53) ListQueryLoggingConfigsWithContext(ctx aws.Context, input *Lis
return out, req.Send()
}
+// ListQueryLoggingConfigsPages iterates over the pages of a ListQueryLoggingConfigs operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListQueryLoggingConfigs 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 ListQueryLoggingConfigs operation.
+// pageNum := 0
+// err := client.ListQueryLoggingConfigsPages(params,
+// func(page *route53.ListQueryLoggingConfigsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Route53) ListQueryLoggingConfigsPages(input *ListQueryLoggingConfigsInput, fn func(*ListQueryLoggingConfigsOutput, bool) bool) error {
+ return c.ListQueryLoggingConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListQueryLoggingConfigsPagesWithContext same as ListQueryLoggingConfigsPages 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 *Route53) ListQueryLoggingConfigsPagesWithContext(ctx aws.Context, input *ListQueryLoggingConfigsInput, fn func(*ListQueryLoggingConfigsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListQueryLoggingConfigsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListQueryLoggingConfigsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListQueryLoggingConfigsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
const opListResourceRecordSets = "ListResourceRecordSets"
// ListResourceRecordSetsRequest generates a "aws/request.Request" representing the
@@ -5515,7 +5599,7 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *
// Updates an existing health check. Note that some values can't be updated.
//
// For more information about updating health checks, see Creating, Updating,
-// and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html)
+// and Deleting Health Checks (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html)
// in the Amazon Route 53 Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -5908,7 +5992,7 @@ type AlarmIdentifier struct {
// Route 53 supports CloudWatch alarms with the following features:
//
// * Standard-resolution metrics. High-resolution metrics aren't supported.
- // For more information, see High-Resolution Metrics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/publishingMetrics.html#high-resolution-metrics)
+ // For more information, see High-Resolution Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/publishingMetrics.html#high-resolution-metrics)
// in the Amazon CloudWatch User Guide.
//
// * Statistics: Average, Minimum, Maximum, Sum, and SampleCount. Extended
@@ -5921,9 +6005,8 @@ type AlarmIdentifier struct {
// determine whether this health check is healthy, the region that the alarm
// was created in.
//
- // For the current list of CloudWatch regions, see Amazon CloudWatch (http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region)
- // in the AWS Regions and Endpoints chapter of the Amazon Web Services General
- // Reference.
+ // For the current list of CloudWatch regions, see Amazon CloudWatch (https://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region)
+ // in the AWS Service Endpoints chapter of the Amazon Web Services General Reference.
//
// Region is a required field
Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"`
@@ -5983,7 +6066,7 @@ func (s *AlarmIdentifier) SetRegion(v string) *AlarmIdentifier {
// record sets in a private hosted zone is unsupported.
//
// * For information about creating failover resource record sets in a private
-// hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html).
+// hosted zone, see Configuring Failover in a Private Hosted Zone (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html).
type AliasTarget struct {
_ struct{} `type:"structure"`
@@ -6018,7 +6101,7 @@ type AliasTarget struct {
// the name of the resource record set. For example, if the name of the resource
// record set is acme.example.com, your CloudFront distribution must include
// acme.example.com as one of the alternate domain names. For more information,
- // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html)
+ // see Using Alternate Domain Names (CNAMEs) (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html)
// in the Amazon CloudFront Developer Guide.
//
// You can't create a resource record set in a private hosted zone to route
@@ -6051,17 +6134,17 @@ type AliasTarget struct {
//
// * AWS Management Console: For information about how to get the value by
// using the console, see Using Custom Domains with AWS Elastic Beanstalk
- // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html)
+ // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html)
// in the AWS Elastic Beanstalk Developer Guide.
//
// * Elastic Beanstalk API: Use the DescribeEnvironments action to get the
// value of the CNAME attribute. For more information, see DescribeEnvironments
- // (http://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html)
+ // (https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html)
// in the AWS Elastic Beanstalk API Reference.
//
// * AWS CLI: Use the describe-environments command to get the value of the
- // CNAME attribute. For more information, see describe-environments (http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html)
- // in the AWS Command Line Interface Reference.
+ // CNAME attribute. For more information, see describe-environments (https://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html)
+ // in the AWS CLI Command Reference.
//
// ELB load balancer
//
@@ -6077,22 +6160,31 @@ type AliasTarget struct {
//
// * Elastic Load Balancing API: Use DescribeLoadBalancers to get the value
// of DNSName. For more information, see the applicable guide: Classic Load
- // Balancers: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html)
- // Application and Network Load Balancers: DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
+ // Balancers: DescribeLoadBalancers (https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html)
+ // Application and Network Load Balancers: DescribeLoadBalancers (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
//
// * AWS CLI: Use describe-load-balancers to get the value of DNSName. For
// more information, see the applicable guide: Classic Load Balancers: describe-load-balancers
// (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html)
// Application and Network Load Balancers: describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html)
//
+ // AWS Global Accelerator accelerator
+ //
+ // Specify the DNS name for your accelerator:
+ //
+ // * Global Accelerator API: To get the DNS name, use DescribeAccelerator
+ // (https://docs.aws.amazon.com/global-accelerator/latest/api/API_DescribeAccelerator.html).
+ //
+ // * AWS CLI: To get the DNS name, use describe-accelerator (https://docs.aws.amazon.com/cli/latest/reference/globalaccelerator/describe-accelerator.html).
+ //
// Amazon S3 bucket that is configured as a static website
//
// Specify the domain name of the Amazon S3 website endpoint that you created
// the bucket in, for example, s3-website.us-east-2.amazonaws.com. For more
- // information about valid values, see the table Amazon Simple Storage Service
- // (S3) Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
+ // information about valid values, see the table Amazon S3 Website Endpoints
+ // (https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints)
// in the Amazon Web Services General Reference. For more information about
- // using S3 buckets for websites, see Getting Started with Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html)
+ // using S3 buckets for websites, see Getting Started with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html)
// in the Amazon Route 53 Developer Guide.
//
// Another Route 53 resource record set
@@ -6173,11 +6265,11 @@ type AliasTarget struct {
// records (for example, a group of weighted records) but is not another alias
// record, we recommend that you associate a health check with all of the records
// in the alias target. For more information, see What Happens When You Omit
- // Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting)
+ // Health Checks? (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting)
// in the Amazon Route 53 Developer Guide.
//
// For more information and examples, see Amazon Route 53 Health Checks and
- // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
+ // DNS Failover (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
// in the Amazon Route 53 Developer Guide.
//
// EvaluateTargetHealth is a required field
@@ -6210,8 +6302,8 @@ type AliasTarget struct {
//
// Specify the hosted zone ID for the region that you created the environment
// in. The environment must have a regionalized subdomain. For a list of regions
- // and the corresponding hosted zone IDs, see AWS Elastic Beanstalk (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region)
- // in the "AWS Regions and Endpoints" chapter of the Amazon Web Services General
+ // and the corresponding hosted zone IDs, see AWS Elastic Beanstalk (https://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region)
+ // in the "AWS Service Endpoints" chapter of the Amazon Web Services General
// Reference.
//
// ELB load balancer
@@ -6219,11 +6311,12 @@ type AliasTarget struct {
// Specify the value of the hosted zone ID for the load balancer. Use the following
// methods to get the hosted zone ID:
//
- // * Elastic Load Balancing (https://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region)
- // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services
- // General Reference: Use the value that corresponds with the region that
- // you created your load balancer in. Note that there are separate columns
- // for Application and Classic Load Balancers and for Network Load Balancers.
+ // * Service Endpoints (https://docs.aws.amazon.com/general/latest/gr/elb.html)
+ // table in the "Elastic Load Balancing Endpoints and Quotas" topic in the
+ // Amazon Web Services General Reference: Use the value that corresponds
+ // with the region that you created your load balancer in. Note that there
+ // are separate columns for Application and Classic Load Balancers and for
+ // Network Load Balancers.
//
// * AWS Management Console: Go to the Amazon EC2 page, choose Load Balancers
// in the navigation pane, select the load balancer, and get the value of
@@ -6231,9 +6324,9 @@ type AliasTarget struct {
//
// * Elastic Load Balancing API: Use DescribeLoadBalancers to get the applicable
// value. For more information, see the applicable guide: Classic Load Balancers:
- // Use DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html)
+ // Use DescribeLoadBalancers (https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html)
// to get the value of CanonicalHostedZoneNameId. Application and Network
- // Load Balancers: Use DescribeLoadBalancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
+ // Load Balancers: Use DescribeLoadBalancers (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
// to get the value of CanonicalHostedZoneId.
//
// * AWS CLI: Use describe-load-balancers to get the applicable value. For
@@ -6243,13 +6336,16 @@ type AliasTarget struct {
// Load Balancers: Use describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html)
// to get the value of CanonicalHostedZoneId.
//
+ // AWS Global Accelerator accelerator
+ //
+ // Specify Z2BJ6XQ5FK7U4H.
+ //
// An Amazon S3 bucket configured as a static website
//
// Specify the hosted zone ID for the region that you created the bucket in.
- // For more information about valid values, see the Amazon Simple Storage Service
- // Website Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
- // table in the "AWS Regions and Endpoints" chapter of the Amazon Web Services
- // General Reference.
+ // For more information about valid values, see the table Amazon S3 Website
+ // Endpoints (https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints)
+ // in the Amazon Web Services General Reference.
//
// Another Route 53 resource record set in your hosted zone
//
@@ -6822,7 +6918,7 @@ type CloudWatchAlarmConfiguration struct {
// For the metric that the CloudWatch alarm is associated with, a complex type
// that contains information about the dimensions for the metric. For information,
- // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html)
+ // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html)
// in the Amazon CloudWatch User Guide.
Dimensions []*Dimension `locationNameList:"Dimension" type:"list"`
@@ -6838,7 +6934,7 @@ type CloudWatchAlarmConfiguration struct {
MetricName *string `min:"1" type:"string" required:"true"`
// The namespace of the metric that the alarm is associated with. For more information,
- // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html)
+ // see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html)
// in the Amazon CloudWatch User Guide.
//
// Namespace is a required field
@@ -8521,17 +8617,39 @@ type GeoLocation struct {
// The two-letter code for the continent.
//
- // Valid values: AF | AN | AS | EU | OC | NA | SA
+ // Amazon Route 53 supports the following continent codes:
+ //
+ // * AF: Africa
+ //
+ // * AN: Antarctica
+ //
+ // * AS: Asia
+ //
+ // * EU: Europe
+ //
+ // * OC: Oceania
+ //
+ // * NA: North America
+ //
+ // * SA: South America
//
// Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
// returns an InvalidInput error.
ContinentCode *string `min:"2" type:"string"`
- // The two-letter code for the country.
+ // For geolocation resource record sets, the two-letter code for a country.
+ //
+ // Amazon Route 53 uses the two-letter country codes that are specified in ISO
+ // standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
CountryCode *string `min:"1" type:"string"`
- // The code for the subdivision. Route 53 currently supports only states in
- // the United States.
+ // For geolocation resource record sets, the two-letter code for a state of
+ // the United States. Route 53 doesn't support any other values for SubdivisionCode.
+ // For a list of state abbreviations, see Appendix B: Two–Letter State and
+ // Possession Abbreviations (https://pe.usps.com/text/pub28/28apb.htm) on the
+ // United States Postal Service website.
+ //
+ // If you specify subdivisioncode, you must also specify US for CountryCode.
SubdivisionCode *string `min:"1" type:"string"`
}
@@ -8874,7 +8992,8 @@ func (s *GetCheckerIpRangesOutput) SetCheckerIpRanges(v []*string) *GetCheckerIp
type GetGeoLocationInput struct {
_ struct{} `locationName:"GetGeoLocationRequest" type:"structure"`
- // Amazon Route 53 supports the following continent codes:
+ // For geolocation resource record sets, a two-letter abbreviation that identifies
+ // a continent. Amazon Route 53 supports the following continent codes:
//
// * AF: Africa
//
@@ -8895,10 +9014,12 @@ type GetGeoLocationInput struct {
// standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
CountryCode *string `location:"querystring" locationName:"countrycode" min:"1" type:"string"`
- // Amazon Route 53 uses the one- to three-letter subdivision codes that are
- // specified in ISO standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
- // Route 53 doesn't support subdivision codes for all countries. If you specify
- // subdivisioncode, you must also specify countrycode.
+ // For SubdivisionCode, Amazon Route 53 supports only states of the United States.
+ // For a list of state abbreviations, see Appendix B: Two–Letter State and
+ // Possession Abbreviations (https://pe.usps.com/text/pub28/28apb.htm) on the
+ // United States Postal Service website.
+ //
+ // If you specify subdivisioncode, you must also specify US for CountryCode.
SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" min:"1" type:"string"`
}
@@ -10068,7 +10189,7 @@ type HealthCheckConfig struct {
// The number of consecutive health checks that an endpoint must pass or fail
// for Amazon Route 53 to change the current status of the endpoint from unhealthy
// to healthy or vice versa. For more information, see How Amazon Route 53 Determines
- // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
+ // Whether an Endpoint Is Healthy (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
// in the Amazon Route 53 Developer Guide.
//
// If you don't specify a value for FailureThreshold, the default value is three
@@ -10212,8 +10333,11 @@ type HealthCheckConfig struct {
// You can't change the value of MeasureLatency after you create a health check.
MeasureLatency *bool `type:"boolean"`
- // The port on the endpoint on which you want Amazon Route 53 to perform health
- // checks. Specify a value for Port only when you specify a value for IPAddress.
+ // The port on the endpoint that you want Amazon Route 53 to perform health
+ // checks on.
+ //
+ // Don't specify a value for Port when you specify a value for Type of CLOUDWATCH_METRIC
+ // or CALCULATED.
Port *int64 `min:"1" type:"integer"`
// A complex type that contains one Region element for each region from which
@@ -10245,7 +10369,7 @@ type HealthCheckConfig struct {
// parameters, for example, /welcome.html?language=jp&login=y.
ResourcePath *string `type:"string"`
- // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that
+ // If the value of Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that
// you want Amazon Route 53 to search for in the response body from the specified
// resource. If the string appears in the response body, Route 53 considers
// the resource healthy.
@@ -10719,18 +10843,15 @@ type ListGeoLocationsInput struct {
// a page or more of results, if IsTruncated is true, and if NextCountryCode
// from the previous response has a value, enter that value in startcountrycode
// to return the next page of results.
- //
- // Route 53 uses the two-letter country codes that are specified in ISO standard
- // 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"`
- // The code for the subdivision (for example, state or province) with which
- // you want to start listing locations that Amazon Route 53 supports for geolocation.
- // If Route 53 has already returned a page or more of results, if IsTruncated
- // is true, and if NextSubdivisionCode from the previous response has a value,
- // enter that value in startsubdivisioncode to return the next page of results.
+ // The code for the state of the United States with which you want to start
+ // listing locations that Amazon Route 53 supports for geolocation. If Route
+ // 53 has already returned a page or more of results, if IsTruncated is true,
+ // and if NextSubdivisionCode from the previous response has a value, enter
+ // that value in startsubdivisioncode to return the next page of results.
//
- // To list subdivisions of a country, you must include both startcountrycode
+ // To list subdivisions (U.S. states), you must include both startcountrycode
// and startsubdivisioncode.
StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" min:"1" type:"string"`
}
@@ -11417,7 +11538,9 @@ type ListResourceRecordSetsInput struct {
StartRecordIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"`
// The first name in the lexicographic ordering of resource record sets that
- // you want to list.
+ // you want to list. If the specified record name doesn't exist, the results
+ // begin with the first resource record set that has a name greater than the
+ // value of name.
StartRecordName *string `location:"querystring" locationName:"name" type:"string"`
// The type of resource record set to begin the record listing from.
@@ -11438,9 +11561,9 @@ type ListResourceRecordSetsInput struct {
//
// * Elastic Load Balancing load balancer: A | AAAA
//
- // * Amazon S3 bucket: A
+ // * S3 bucket: A
//
- // * Amazon VPC interface VPC endpoint: A
+ // * VPC interface VPC endpoint: A
//
// * Another resource record set in this hosted zone: The type of the resource
// record set that the alias references.
@@ -12950,7 +13073,7 @@ type ResourceRecordSet struct {
// record sets in a private hosted zone is unsupported.
//
// * For information about creating failover resource record sets in a private
- // hosted zone, see Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
+ // hosted zone, see Configuring Failover in a Private Hosted Zone (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
// in the Amazon Route 53 Developer Guide.
AliasTarget *AliasTarget `type:"structure"`
@@ -12990,9 +13113,9 @@ type ResourceRecordSet struct {
// For more information about configuring failover for Route 53, see the following
// topics in the Amazon Route 53 Developer Guide:
//
- // * Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
+ // * Route 53 Health Checks and DNS Failover (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
//
- // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
+ // * Configuring Failover in a Private Hosted Zone (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
Failover *string `type:"string" enum:"ResourceRecordSetFailover"`
// Geolocation resource record sets only: A complex type that lets you control
@@ -13001,8 +13124,8 @@ type ResourceRecordSet struct {
// to a web server with an IP address of 192.0.2.111, create a resource record
// set with a Type of A and a ContinentCode of AF.
//
- // Creating geolocation and geolocation alias resource record sets in private
- // hosted zones is not supported.
+ // Although creating geolocation and geolocation alias resource record sets
+ // in a private hosted zone is allowed, it's not supported.
//
// If you create separate resource record sets for overlapping geographic regions
// (for example, one resource record set for a continent and one for a country
@@ -13021,11 +13144,12 @@ type ResourceRecordSet struct {
// addresses aren't mapped to geographic locations, so even if you create geolocation
// resource record sets that cover all seven continents, Route 53 will receive
// some DNS queries from locations that it can't identify. We recommend that
- // you create a resource record set for which the value of CountryCode is *,
- // which handles both queries that come from locations for which you haven't
- // created geolocation resource record sets and queries from IP addresses that
- // aren't mapped to a location. If you don't create a * resource record set,
- // Route 53 returns a "no answer" response for queries from those locations.
+ // you create a resource record set for which the value of CountryCode is *.
+ // Two groups of queries are routed to the resource that you specify in this
+ // record: queries that come from locations for which you haven't created geolocation
+ // resource record sets and queries from IP addresses that aren't mapped to
+ // a location. If you don't create a * resource record set, Route 53 returns
+ // a "no answer" response for queries from those locations.
//
// You can't create non-geolocation resource record sets that have the same
// values for the Name and Type elements as geolocation resource record sets.
@@ -13058,9 +13182,9 @@ type ResourceRecordSet struct {
//
// * How Amazon Route 53 Determines Whether an Endpoint Is Healthy (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
//
- // * Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
+ // * Route 53 Health Checks and DNS Failover (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
//
- // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
+ // * Configuring Failover in a Private Hosted Zone (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html)
//
// When to Specify HealthCheckId
//
@@ -13173,7 +13297,7 @@ type ResourceRecordSet struct {
//
// For information about how to specify characters other than a-z, 0-9, and
// - (hyphen) and how to specify internationalized domain names, see DNS Domain
- // Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
+ // Name Format (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
// in the Amazon Route 53 Developer Guide.
//
// You can use the asterisk (*) wildcard to replace the leftmost label in a
@@ -13203,8 +13327,8 @@ type ResourceRecordSet struct {
// and is referred to by an IP address or a DNS domain name, depending on the
// record type.
//
- // Creating latency and latency alias resource record sets in private hosted
- // zones is not supported.
+ // Although creating latency and latency alias resource record sets in a private
+ // hosted zone is allowed, it's not supported.
//
// When Amazon Route 53 receives a DNS query for a domain name and type for
// which you have created latency resource record sets, Route 53 selects the
@@ -13278,7 +13402,7 @@ type ResourceRecordSet struct {
TrafficPolicyInstanceId *string `min:"1" type:"string"`
// The DNS record type. For information about different record types and how
- // data is encoded for them, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
+ // data is encoded for them, see Supported DNS Resource Record Types (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
// in the Amazon Route 53 Developer Guide.
//
// Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX
@@ -13309,8 +13433,7 @@ type ResourceRecordSet struct {
// create two resource record sets to route traffic to your distribution,
// one with a value of A and one with a value of AAAA.
//
- // * AWS Elastic Beanstalk environment that has a regionalized subdomain:
- // A
+ // * Amazon API Gateway environment that has a regionalized subdomain: A
//
// * ELB load balancers: A | AAAA
//
@@ -13358,7 +13481,7 @@ type ResourceRecordSet struct {
// of DNS name and type, traffic is routed to all resources with equal probability.
// The effect of setting Weight to 0 is different when you associate health
// checks with weighted resource record sets. For more information, see Options
- // for Configuring Route 53 Active-Active and Active-Passive Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html)
+ // for Configuring Route 53 Active-Active and Active-Passive Failover (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html)
// in the Amazon Route 53 Developer Guide.
Weight *int64 `type:"long"`
}
@@ -14231,7 +14354,7 @@ type UpdateHealthCheckInput struct {
// The number of consecutive health checks that an endpoint must pass or fail
// for Amazon Route 53 to change the current status of the endpoint from unhealthy
// to healthy or vice versa. For more information, see How Amazon Route 53 Determines
- // Whether an Endpoint Is Healthy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
+ // Whether an Endpoint Is Healthy (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
// in the Amazon Route 53 Developer Guide.
//
// If you don't specify a value for FailureThreshold, the default value is three
@@ -14402,8 +14525,11 @@ type UpdateHealthCheckInput struct {
// would be considered healthy.
Inverted *bool `type:"boolean"`
- // The port on the endpoint on which you want Amazon Route 53 to perform health
- // checks.
+ // The port on the endpoint that you want Amazon Route 53 to perform health
+ // checks on.
+ //
+ // Don't specify a value for Port when you specify a value for Type of CLOUDWATCH_METRIC
+ // or CALCULATED.
Port *int64 `min:"1" type:"integer"`
// A complex type that contains one Region element for each region that you
@@ -14436,7 +14562,7 @@ type UpdateHealthCheckInput struct {
// Specify this value only if you want to change it.
ResourcePath *string `type:"string"`
- // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that
+ // If the value of Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that
// you want Amazon Route 53 to search for in the response body from the specified
// resource. If the string appears in the response body, Route 53 considers
// the resource healthy. (You can't change the value of Type when you update
@@ -15064,6 +15190,21 @@ const (
// CloudWatchRegionCnNorth1 is a CloudWatchRegion enum value
CloudWatchRegionCnNorth1 = "cn-north-1"
+
+ // CloudWatchRegionAfSouth1 is a CloudWatchRegion enum value
+ CloudWatchRegionAfSouth1 = "af-south-1"
+
+ // CloudWatchRegionUsGovWest1 is a CloudWatchRegion enum value
+ CloudWatchRegionUsGovWest1 = "us-gov-west-1"
+
+ // CloudWatchRegionUsGovEast1 is a CloudWatchRegion enum value
+ CloudWatchRegionUsGovEast1 = "us-gov-east-1"
+
+ // CloudWatchRegionUsIsoEast1 is a CloudWatchRegion enum value
+ CloudWatchRegionUsIsoEast1 = "us-iso-east-1"
+
+ // CloudWatchRegionUsIsobEast1 is a CloudWatchRegion enum value
+ CloudWatchRegionUsIsobEast1 = "us-isob-east-1"
)
const (
@@ -15271,6 +15412,9 @@ const (
// ResourceRecordSetRegionApSouth1 is a ResourceRecordSetRegion enum value
ResourceRecordSetRegionApSouth1 = "ap-south-1"
+
+ // ResourceRecordSetRegionAfSouth1 is a ResourceRecordSetRegion enum value
+ ResourceRecordSetRegionAfSouth1 = "af-south-1"
)
const (
@@ -15334,6 +15478,18 @@ const (
// VPCRegionMeSouth1 is a VPCRegion enum value
VPCRegionMeSouth1 = "me-south-1"
+ // VPCRegionUsGovWest1 is a VPCRegion enum value
+ VPCRegionUsGovWest1 = "us-gov-west-1"
+
+ // VPCRegionUsGovEast1 is a VPCRegion enum value
+ VPCRegionUsGovEast1 = "us-gov-east-1"
+
+ // VPCRegionUsIsoEast1 is a VPCRegion enum value
+ VPCRegionUsIsoEast1 = "us-iso-east-1"
+
+ // VPCRegionUsIsobEast1 is a VPCRegion enum value
+ VPCRegionUsIsobEast1 = "us-isob-east-1"
+
// VPCRegionApSoutheast1 is a VPCRegion enum value
VPCRegionApSoutheast1 = "ap-southeast-1"
@@ -15363,4 +15519,7 @@ const (
// VPCRegionCnNorth1 is a VPCRegion enum value
VPCRegionCnNorth1 = "cn-north-1"
+
+ // VPCRegionAfSouth1 is a VPCRegion enum value
+ VPCRegionAfSouth1 = "af-south-1"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go
index ce86bd613a4..23b4270b949 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go
@@ -14,22 +14,22 @@ const (
// ErrCodeConflictingDomainExists for service response error code
// "ConflictingDomainExists".
//
- // The cause of this error depends on whether you're trying to create a public
- // or a private hosted zone:
- //
- // * Public hosted zone: Two hosted zones that have the same name or that
- // have a parent/child relationship (example.com and test.example.com) can't
- // have any common name servers. You tried to create a hosted zone that has
- // the same name as an existing hosted zone or that's the parent or child
- // of an existing hosted zone, and you specified a delegation set that shares
- // one or more name servers with the existing hosted zone. For more information,
- // see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
- //
- // * Private hosted zone: You specified an Amazon VPC that you're already
- // using for another hosted zone, and the domain that you specified for one
- // of the hosted zones is a subdomain of the domain that you specified for
- // the other hosted zone. For example, you can't use the same Amazon VPC
- // for the hosted zones for example.com and test.example.com.
+ // The cause of this error depends on the operation that you're performing:
+ //
+ // * Create a public hosted zone: Two hosted zones that have the same name
+ // or that have a parent/child relationship (example.com and test.example.com)
+ // can't have any common name servers. You tried to create a hosted zone
+ // that has the same name as an existing hosted zone or that's the parent
+ // or child of an existing hosted zone, and you specified a delegation set
+ // that shares one or more name servers with the existing hosted zone. For
+ // more information, see CreateReusableDelegationSet (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html).
+ //
+ // * Create a private hosted zone: A hosted zone with the specified name
+ // already exists and is already associated with the Amazon VPC that you
+ // specified.
+ //
+ // * Associate VPCs with a private hosted zone: The VPC that you specified
+ // is already associated with another hosted zone that has the same name.
ErrCodeConflictingDomainExists = "ConflictingDomainExists"
// ErrCodeConflictingTypes for service response error code
@@ -240,7 +240,9 @@ const (
// ErrCodeNoSuchGeoLocation for service response error code
// "NoSuchGeoLocation".
//
- // Amazon Route 53 doesn't support the specified geographic location.
+ // Amazon Route 53 doesn't support the specified geographic location. For a
+ // list of supported geolocation codes, see the GeoLocation (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html)
+ // data type.
ErrCodeNoSuchGeoLocation = "NoSuchGeoLocation"
// ErrCodeNoSuchHealthCheck for service response error code
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go
new file mode 100644
index 00000000000..e3e02e0b0ce
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go
@@ -0,0 +1,7731 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package route53domains
+
+import (
+ "fmt"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/awsutil"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
+)
+
+const opAcceptDomainTransferFromAnotherAwsAccount = "AcceptDomainTransferFromAnotherAwsAccount"
+
+// AcceptDomainTransferFromAnotherAwsAccountRequest generates a "aws/request.Request" representing the
+// client's request for the AcceptDomainTransferFromAnotherAwsAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AcceptDomainTransferFromAnotherAwsAccount for more information on using the AcceptDomainTransferFromAnotherAwsAccount
+// 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 AcceptDomainTransferFromAnotherAwsAccountRequest method.
+// req, resp := client.AcceptDomainTransferFromAnotherAwsAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/AcceptDomainTransferFromAnotherAwsAccount
+func (c *Route53Domains) AcceptDomainTransferFromAnotherAwsAccountRequest(input *AcceptDomainTransferFromAnotherAwsAccountInput) (req *request.Request, output *AcceptDomainTransferFromAnotherAwsAccountOutput) {
+ op := &request.Operation{
+ Name: opAcceptDomainTransferFromAnotherAwsAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &AcceptDomainTransferFromAnotherAwsAccountInput{}
+ }
+
+ output = &AcceptDomainTransferFromAnotherAwsAccountOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AcceptDomainTransferFromAnotherAwsAccount API operation for Amazon Route 53 Domains.
+//
+// Accepts the transfer of a domain from another AWS account to the current
+// AWS account. You initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html).
+//
+// Use either ListOperations (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html)
+// or GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// to determine whether the operation succeeded. GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// provides additional information, for example, Domain Transfer from Aws Account
+// 111122223333 has been cancelled.
+//
+// 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 Route 53 Domains's
+// API operation AcceptDomainTransferFromAnotherAwsAccount for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * DomainLimitExceeded
+// The number of domains has exceeded the allowed threshold for the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/AcceptDomainTransferFromAnotherAwsAccount
+func (c *Route53Domains) AcceptDomainTransferFromAnotherAwsAccount(input *AcceptDomainTransferFromAnotherAwsAccountInput) (*AcceptDomainTransferFromAnotherAwsAccountOutput, error) {
+ req, out := c.AcceptDomainTransferFromAnotherAwsAccountRequest(input)
+ return out, req.Send()
+}
+
+// AcceptDomainTransferFromAnotherAwsAccountWithContext is the same as AcceptDomainTransferFromAnotherAwsAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AcceptDomainTransferFromAnotherAwsAccount 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 *Route53Domains) AcceptDomainTransferFromAnotherAwsAccountWithContext(ctx aws.Context, input *AcceptDomainTransferFromAnotherAwsAccountInput, opts ...request.Option) (*AcceptDomainTransferFromAnotherAwsAccountOutput, error) {
+ req, out := c.AcceptDomainTransferFromAnotherAwsAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCancelDomainTransferToAnotherAwsAccount = "CancelDomainTransferToAnotherAwsAccount"
+
+// CancelDomainTransferToAnotherAwsAccountRequest generates a "aws/request.Request" representing the
+// client's request for the CancelDomainTransferToAnotherAwsAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CancelDomainTransferToAnotherAwsAccount for more information on using the CancelDomainTransferToAnotherAwsAccount
+// 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 CancelDomainTransferToAnotherAwsAccountRequest method.
+// req, resp := client.CancelDomainTransferToAnotherAwsAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CancelDomainTransferToAnotherAwsAccount
+func (c *Route53Domains) CancelDomainTransferToAnotherAwsAccountRequest(input *CancelDomainTransferToAnotherAwsAccountInput) (req *request.Request, output *CancelDomainTransferToAnotherAwsAccountOutput) {
+ op := &request.Operation{
+ Name: opCancelDomainTransferToAnotherAwsAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CancelDomainTransferToAnotherAwsAccountInput{}
+ }
+
+ output = &CancelDomainTransferToAnotherAwsAccountOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CancelDomainTransferToAnotherAwsAccount API operation for Amazon Route 53 Domains.
+//
+// Cancels the transfer of a domain from the current AWS account to another
+// AWS account. You initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html).
+//
+// You must cancel the transfer before the other AWS account accepts the transfer
+// using AcceptDomainTransferFromAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html).
+//
+// Use either ListOperations (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html)
+// or GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// to determine whether the operation succeeded. GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// provides additional information, for example, Domain Transfer from Aws Account
+// 111122223333 has been cancelled.
+//
+// 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 Route 53 Domains's
+// API operation CancelDomainTransferToAnotherAwsAccount for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CancelDomainTransferToAnotherAwsAccount
+func (c *Route53Domains) CancelDomainTransferToAnotherAwsAccount(input *CancelDomainTransferToAnotherAwsAccountInput) (*CancelDomainTransferToAnotherAwsAccountOutput, error) {
+ req, out := c.CancelDomainTransferToAnotherAwsAccountRequest(input)
+ return out, req.Send()
+}
+
+// CancelDomainTransferToAnotherAwsAccountWithContext is the same as CancelDomainTransferToAnotherAwsAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CancelDomainTransferToAnotherAwsAccount 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 *Route53Domains) CancelDomainTransferToAnotherAwsAccountWithContext(ctx aws.Context, input *CancelDomainTransferToAnotherAwsAccountInput, opts ...request.Option) (*CancelDomainTransferToAnotherAwsAccountOutput, error) {
+ req, out := c.CancelDomainTransferToAnotherAwsAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCheckDomainAvailability = "CheckDomainAvailability"
+
+// CheckDomainAvailabilityRequest generates a "aws/request.Request" representing the
+// client's request for the CheckDomainAvailability operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CheckDomainAvailability for more information on using the CheckDomainAvailability
+// 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 CheckDomainAvailabilityRequest method.
+// req, resp := client.CheckDomainAvailabilityRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailability
+func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvailabilityInput) (req *request.Request, output *CheckDomainAvailabilityOutput) {
+ op := &request.Operation{
+ Name: opCheckDomainAvailability,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CheckDomainAvailabilityInput{}
+ }
+
+ output = &CheckDomainAvailabilityOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CheckDomainAvailability API operation for Amazon Route 53 Domains.
+//
+// This operation checks the availability of one domain name. Note that if the
+// availability status of a domain is pending, you must submit another request
+// to determine the availability of the domain name.
+//
+// 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 Route 53 Domains's
+// API operation CheckDomainAvailability for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailability
+func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error) {
+ req, out := c.CheckDomainAvailabilityRequest(input)
+ return out, req.Send()
+}
+
+// CheckDomainAvailabilityWithContext is the same as CheckDomainAvailability with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CheckDomainAvailability 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 *Route53Domains) CheckDomainAvailabilityWithContext(ctx aws.Context, input *CheckDomainAvailabilityInput, opts ...request.Option) (*CheckDomainAvailabilityOutput, error) {
+ req, out := c.CheckDomainAvailabilityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCheckDomainTransferability = "CheckDomainTransferability"
+
+// CheckDomainTransferabilityRequest generates a "aws/request.Request" representing the
+// client's request for the CheckDomainTransferability operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CheckDomainTransferability for more information on using the CheckDomainTransferability
+// 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 CheckDomainTransferabilityRequest method.
+// req, resp := client.CheckDomainTransferabilityRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainTransferability
+func (c *Route53Domains) CheckDomainTransferabilityRequest(input *CheckDomainTransferabilityInput) (req *request.Request, output *CheckDomainTransferabilityOutput) {
+ op := &request.Operation{
+ Name: opCheckDomainTransferability,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CheckDomainTransferabilityInput{}
+ }
+
+ output = &CheckDomainTransferabilityOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CheckDomainTransferability API operation for Amazon Route 53 Domains.
+//
+// Checks whether a domain name can be transferred to Amazon Route 53.
+//
+// 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 Route 53 Domains's
+// API operation CheckDomainTransferability for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainTransferability
+func (c *Route53Domains) CheckDomainTransferability(input *CheckDomainTransferabilityInput) (*CheckDomainTransferabilityOutput, error) {
+ req, out := c.CheckDomainTransferabilityRequest(input)
+ return out, req.Send()
+}
+
+// CheckDomainTransferabilityWithContext is the same as CheckDomainTransferability with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CheckDomainTransferability 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 *Route53Domains) CheckDomainTransferabilityWithContext(ctx aws.Context, input *CheckDomainTransferabilityInput, opts ...request.Option) (*CheckDomainTransferabilityOutput, error) {
+ req, out := c.CheckDomainTransferabilityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteTagsForDomain = "DeleteTagsForDomain"
+
+// DeleteTagsForDomainRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteTagsForDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteTagsForDomain for more information on using the DeleteTagsForDomain
+// 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 DeleteTagsForDomainRequest method.
+// req, resp := client.DeleteTagsForDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomain
+func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainInput) (req *request.Request, output *DeleteTagsForDomainOutput) {
+ op := &request.Operation{
+ Name: opDeleteTagsForDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteTagsForDomainInput{}
+ }
+
+ output = &DeleteTagsForDomainOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteTagsForDomain API operation for Amazon Route 53 Domains.
+//
+// This operation deletes the specified tags for a domain.
+//
+// All tag operations are eventually consistent; subsequent operations might
+// not immediately represent all issued operations.
+//
+// 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 Route 53 Domains's
+// API operation DeleteTagsForDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomain
+func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error) {
+ req, out := c.DeleteTagsForDomainRequest(input)
+ return out, req.Send()
+}
+
+// DeleteTagsForDomainWithContext is the same as DeleteTagsForDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteTagsForDomain 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 *Route53Domains) DeleteTagsForDomainWithContext(ctx aws.Context, input *DeleteTagsForDomainInput, opts ...request.Option) (*DeleteTagsForDomainOutput, error) {
+ req, out := c.DeleteTagsForDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDisableDomainAutoRenew = "DisableDomainAutoRenew"
+
+// DisableDomainAutoRenewRequest generates a "aws/request.Request" representing the
+// client's request for the DisableDomainAutoRenew operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisableDomainAutoRenew for more information on using the DisableDomainAutoRenew
+// 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 DisableDomainAutoRenewRequest method.
+// req, resp := client.DisableDomainAutoRenewRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenew
+func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoRenewInput) (req *request.Request, output *DisableDomainAutoRenewOutput) {
+ op := &request.Operation{
+ Name: opDisableDomainAutoRenew,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DisableDomainAutoRenewInput{}
+ }
+
+ output = &DisableDomainAutoRenewOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DisableDomainAutoRenew API operation for Amazon Route 53 Domains.
+//
+// This operation disables automatic renewal of domain registration for the
+// specified domain.
+//
+// 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 Route 53 Domains's
+// API operation DisableDomainAutoRenew for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenew
+func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error) {
+ req, out := c.DisableDomainAutoRenewRequest(input)
+ return out, req.Send()
+}
+
+// DisableDomainAutoRenewWithContext is the same as DisableDomainAutoRenew with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisableDomainAutoRenew 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 *Route53Domains) DisableDomainAutoRenewWithContext(ctx aws.Context, input *DisableDomainAutoRenewInput, opts ...request.Option) (*DisableDomainAutoRenewOutput, error) {
+ req, out := c.DisableDomainAutoRenewRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDisableDomainTransferLock = "DisableDomainTransferLock"
+
+// DisableDomainTransferLockRequest generates a "aws/request.Request" representing the
+// client's request for the DisableDomainTransferLock operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisableDomainTransferLock for more information on using the DisableDomainTransferLock
+// 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 DisableDomainTransferLockRequest method.
+// req, resp := client.DisableDomainTransferLockRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLock
+func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTransferLockInput) (req *request.Request, output *DisableDomainTransferLockOutput) {
+ op := &request.Operation{
+ Name: opDisableDomainTransferLock,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DisableDomainTransferLockInput{}
+ }
+
+ output = &DisableDomainTransferLockOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DisableDomainTransferLock API operation for Amazon Route 53 Domains.
+//
+// This operation removes the transfer lock on the domain (specifically the
+// clientTransferProhibited status) to allow domain transfers. We recommend
+// you refrain from performing this action unless you intend to transfer the
+// domain to a different registrar. Successful submission returns an operation
+// ID that you can use to track the progress and completion of the action. If
+// the request is not completed successfully, the domain registrant will be
+// notified by email.
+//
+// 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 Route 53 Domains's
+// API operation DisableDomainTransferLock for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLock
+func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error) {
+ req, out := c.DisableDomainTransferLockRequest(input)
+ return out, req.Send()
+}
+
+// DisableDomainTransferLockWithContext is the same as DisableDomainTransferLock with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisableDomainTransferLock 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 *Route53Domains) DisableDomainTransferLockWithContext(ctx aws.Context, input *DisableDomainTransferLockInput, opts ...request.Option) (*DisableDomainTransferLockOutput, error) {
+ req, out := c.DisableDomainTransferLockRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opEnableDomainAutoRenew = "EnableDomainAutoRenew"
+
+// EnableDomainAutoRenewRequest generates a "aws/request.Request" representing the
+// client's request for the EnableDomainAutoRenew operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See EnableDomainAutoRenew for more information on using the EnableDomainAutoRenew
+// 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 EnableDomainAutoRenewRequest method.
+// req, resp := client.EnableDomainAutoRenewRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenew
+func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRenewInput) (req *request.Request, output *EnableDomainAutoRenewOutput) {
+ op := &request.Operation{
+ Name: opEnableDomainAutoRenew,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &EnableDomainAutoRenewInput{}
+ }
+
+ output = &EnableDomainAutoRenewOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// EnableDomainAutoRenew API operation for Amazon Route 53 Domains.
+//
+// This operation configures Amazon Route 53 to automatically renew the specified
+// domain before the domain registration expires. The cost of renewing your
+// domain registration is billed to your AWS account.
+//
+// The period during which you can renew a domain name varies by TLD. For a
+// list of TLDs and their renewal policies, see Domains That You Can Register
+// with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+// in the Amazon Route 53 Developer Guide. Route 53 requires that you renew
+// before the end of the renewal period so we can complete processing before
+// the deadline.
+//
+// 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 Route 53 Domains's
+// API operation EnableDomainAutoRenew for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenew
+func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error) {
+ req, out := c.EnableDomainAutoRenewRequest(input)
+ return out, req.Send()
+}
+
+// EnableDomainAutoRenewWithContext is the same as EnableDomainAutoRenew with the addition of
+// the ability to pass a context and additional request options.
+//
+// See EnableDomainAutoRenew 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 *Route53Domains) EnableDomainAutoRenewWithContext(ctx aws.Context, input *EnableDomainAutoRenewInput, opts ...request.Option) (*EnableDomainAutoRenewOutput, error) {
+ req, out := c.EnableDomainAutoRenewRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opEnableDomainTransferLock = "EnableDomainTransferLock"
+
+// EnableDomainTransferLockRequest generates a "aws/request.Request" representing the
+// client's request for the EnableDomainTransferLock operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See EnableDomainTransferLock for more information on using the EnableDomainTransferLock
+// 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 EnableDomainTransferLockRequest method.
+// req, resp := client.EnableDomainTransferLockRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLock
+func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTransferLockInput) (req *request.Request, output *EnableDomainTransferLockOutput) {
+ op := &request.Operation{
+ Name: opEnableDomainTransferLock,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &EnableDomainTransferLockInput{}
+ }
+
+ output = &EnableDomainTransferLockOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// EnableDomainTransferLock API operation for Amazon Route 53 Domains.
+//
+// This operation sets the transfer lock on the domain (specifically the clientTransferProhibited
+// status) to prevent domain transfers. Successful submission returns an operation
+// ID that you can use to track the progress and completion of the action. If
+// the request is not completed successfully, the domain registrant will be
+// notified by email.
+//
+// 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 Route 53 Domains's
+// API operation EnableDomainTransferLock for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLock
+func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error) {
+ req, out := c.EnableDomainTransferLockRequest(input)
+ return out, req.Send()
+}
+
+// EnableDomainTransferLockWithContext is the same as EnableDomainTransferLock with the addition of
+// the ability to pass a context and additional request options.
+//
+// See EnableDomainTransferLock 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 *Route53Domains) EnableDomainTransferLockWithContext(ctx aws.Context, input *EnableDomainTransferLockInput, opts ...request.Option) (*EnableDomainTransferLockOutput, error) {
+ req, out := c.EnableDomainTransferLockRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetContactReachabilityStatus = "GetContactReachabilityStatus"
+
+// GetContactReachabilityStatusRequest generates a "aws/request.Request" representing the
+// client's request for the GetContactReachabilityStatus operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetContactReachabilityStatus for more information on using the GetContactReachabilityStatus
+// 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 GetContactReachabilityStatusRequest method.
+// req, resp := client.GetContactReachabilityStatusRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatus
+func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactReachabilityStatusInput) (req *request.Request, output *GetContactReachabilityStatusOutput) {
+ op := &request.Operation{
+ Name: opGetContactReachabilityStatus,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetContactReachabilityStatusInput{}
+ }
+
+ output = &GetContactReachabilityStatusOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetContactReachabilityStatus API operation for Amazon Route 53 Domains.
+//
+// For operations that require confirmation that the email address for the registrant
+// contact is valid, such as registering a new domain, this operation returns
+// information about whether the registrant contact has responded.
+//
+// If you want us to resend the email, use the ResendContactReachabilityEmail
+// operation.
+//
+// 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 Route 53 Domains's
+// API operation GetContactReachabilityStatus for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatus
+func (c *Route53Domains) GetContactReachabilityStatus(input *GetContactReachabilityStatusInput) (*GetContactReachabilityStatusOutput, error) {
+ req, out := c.GetContactReachabilityStatusRequest(input)
+ return out, req.Send()
+}
+
+// GetContactReachabilityStatusWithContext is the same as GetContactReachabilityStatus with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetContactReachabilityStatus 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 *Route53Domains) GetContactReachabilityStatusWithContext(ctx aws.Context, input *GetContactReachabilityStatusInput, opts ...request.Option) (*GetContactReachabilityStatusOutput, error) {
+ req, out := c.GetContactReachabilityStatusRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetDomainDetail = "GetDomainDetail"
+
+// GetDomainDetailRequest generates a "aws/request.Request" representing the
+// client's request for the GetDomainDetail operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetDomainDetail for more information on using the GetDomainDetail
+// 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 GetDomainDetailRequest method.
+// req, resp := client.GetDomainDetailRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetail
+func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (req *request.Request, output *GetDomainDetailOutput) {
+ op := &request.Operation{
+ Name: opGetDomainDetail,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetDomainDetailInput{}
+ }
+
+ output = &GetDomainDetailOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetDomainDetail API operation for Amazon Route 53 Domains.
+//
+// This operation returns detailed information about a specified domain that
+// is associated with the current AWS account. Contact information for the domain
+// is also returned as part of the output.
+//
+// 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 Route 53 Domains's
+// API operation GetDomainDetail for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetail
+func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error) {
+ req, out := c.GetDomainDetailRequest(input)
+ return out, req.Send()
+}
+
+// GetDomainDetailWithContext is the same as GetDomainDetail with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetDomainDetail 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 *Route53Domains) GetDomainDetailWithContext(ctx aws.Context, input *GetDomainDetailInput, opts ...request.Option) (*GetDomainDetailOutput, error) {
+ req, out := c.GetDomainDetailRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetDomainSuggestions = "GetDomainSuggestions"
+
+// GetDomainSuggestionsRequest generates a "aws/request.Request" representing the
+// client's request for the GetDomainSuggestions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetDomainSuggestions for more information on using the GetDomainSuggestions
+// 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 GetDomainSuggestionsRequest method.
+// req, resp := client.GetDomainSuggestionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestions
+func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestionsInput) (req *request.Request, output *GetDomainSuggestionsOutput) {
+ op := &request.Operation{
+ Name: opGetDomainSuggestions,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetDomainSuggestionsInput{}
+ }
+
+ output = &GetDomainSuggestionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetDomainSuggestions API operation for Amazon Route 53 Domains.
+//
+// The GetDomainSuggestions operation returns a list of suggested domain names.
+//
+// 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 Route 53 Domains's
+// API operation GetDomainSuggestions for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestions
+func (c *Route53Domains) GetDomainSuggestions(input *GetDomainSuggestionsInput) (*GetDomainSuggestionsOutput, error) {
+ req, out := c.GetDomainSuggestionsRequest(input)
+ return out, req.Send()
+}
+
+// GetDomainSuggestionsWithContext is the same as GetDomainSuggestions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetDomainSuggestions 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 *Route53Domains) GetDomainSuggestionsWithContext(ctx aws.Context, input *GetDomainSuggestionsInput, opts ...request.Option) (*GetDomainSuggestionsOutput, error) {
+ req, out := c.GetDomainSuggestionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetOperationDetail = "GetOperationDetail"
+
+// GetOperationDetailRequest generates a "aws/request.Request" representing the
+// client's request for the GetOperationDetail operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetOperationDetail for more information on using the GetOperationDetail
+// 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 GetOperationDetailRequest method.
+// req, resp := client.GetOperationDetailRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetail
+func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInput) (req *request.Request, output *GetOperationDetailOutput) {
+ op := &request.Operation{
+ Name: opGetOperationDetail,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetOperationDetailInput{}
+ }
+
+ output = &GetOperationDetailOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetOperationDetail API operation for Amazon Route 53 Domains.
+//
+// This operation returns the current status of an operation that is not completed.
+//
+// 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 Route 53 Domains's
+// API operation GetOperationDetail for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetOperationDetail
+func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error) {
+ req, out := c.GetOperationDetailRequest(input)
+ return out, req.Send()
+}
+
+// GetOperationDetailWithContext is the same as GetOperationDetail with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetOperationDetail 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 *Route53Domains) GetOperationDetailWithContext(ctx aws.Context, input *GetOperationDetailInput, opts ...request.Option) (*GetOperationDetailOutput, error) {
+ req, out := c.GetOperationDetailRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListDomains = "ListDomains"
+
+// ListDomainsRequest generates a "aws/request.Request" representing the
+// client's request for the ListDomains operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListDomains for more information on using the ListDomains
+// 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 ListDomainsRequest method.
+// req, resp := client.ListDomainsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomains
+func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
+ op := &request.Operation{
+ Name: opListDomains,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"Marker"},
+ OutputTokens: []string{"NextPageMarker"},
+ LimitToken: "MaxItems",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListDomainsInput{}
+ }
+
+ output = &ListDomainsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListDomains API operation for Amazon Route 53 Domains.
+//
+// This operation returns all the domain names registered with Amazon Route
+// 53 for the current AWS account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Route 53 Domains's
+// API operation ListDomains for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListDomains
+func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
+ req, out := c.ListDomainsRequest(input)
+ return out, req.Send()
+}
+
+// ListDomainsWithContext is the same as ListDomains with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListDomains 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 *Route53Domains) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) {
+ req, out := c.ListDomainsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListDomainsPages iterates over the pages of a ListDomains operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListDomains 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 ListDomains operation.
+// pageNum := 0
+// err := client.ListDomainsPages(params,
+// func(page *route53domains.ListDomainsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Route53Domains) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error {
+ return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListDomainsPagesWithContext same as ListDomainsPages 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 *Route53Domains) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListDomainsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListDomainsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListOperations = "ListOperations"
+
+// ListOperationsRequest generates a "aws/request.Request" representing the
+// client's request for the ListOperations operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListOperations for more information on using the ListOperations
+// 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 ListOperationsRequest method.
+// req, resp := client.ListOperationsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperations
+func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req *request.Request, output *ListOperationsOutput) {
+ op := &request.Operation{
+ Name: opListOperations,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"Marker"},
+ OutputTokens: []string{"NextPageMarker"},
+ LimitToken: "MaxItems",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListOperationsInput{}
+ }
+
+ output = &ListOperationsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListOperations API operation for Amazon Route 53 Domains.
+//
+// Returns information about all of the operations that return an operation
+// ID and that have ever been performed on domains that were registered by the
+// current account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Route 53 Domains's
+// API operation ListOperations for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListOperations
+func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) {
+ req, out := c.ListOperationsRequest(input)
+ return out, req.Send()
+}
+
+// ListOperationsWithContext is the same as ListOperations with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListOperations 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 *Route53Domains) ListOperationsWithContext(ctx aws.Context, input *ListOperationsInput, opts ...request.Option) (*ListOperationsOutput, error) {
+ req, out := c.ListOperationsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListOperationsPages iterates over the pages of a ListOperations operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListOperations 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 ListOperations operation.
+// pageNum := 0
+// err := client.ListOperationsPages(params,
+// func(page *route53domains.ListOperationsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Route53Domains) ListOperationsPages(input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool) error {
+ return c.ListOperationsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListOperationsPagesWithContext same as ListOperationsPages 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 *Route53Domains) ListOperationsPagesWithContext(ctx aws.Context, input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListOperationsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListOperationsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListOperationsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListTagsForDomain = "ListTagsForDomain"
+
+// ListTagsForDomainRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListTagsForDomain for more information on using the ListTagsForDomain
+// 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 ListTagsForDomainRequest method.
+// req, resp := client.ListTagsForDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomain
+func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) (req *request.Request, output *ListTagsForDomainOutput) {
+ op := &request.Operation{
+ Name: opListTagsForDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListTagsForDomainInput{}
+ }
+
+ output = &ListTagsForDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListTagsForDomain API operation for Amazon Route 53 Domains.
+//
+// This operation returns all of the tags that are associated with the specified
+// domain.
+//
+// All tag operations are eventually consistent; subsequent operations might
+// not immediately represent all issued operations.
+//
+// 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 Route 53 Domains's
+// API operation ListTagsForDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomain
+func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error) {
+ req, out := c.ListTagsForDomainRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForDomainWithContext is the same as ListTagsForDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForDomain 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 *Route53Domains) ListTagsForDomainWithContext(ctx aws.Context, input *ListTagsForDomainInput, opts ...request.Option) (*ListTagsForDomainOutput, error) {
+ req, out := c.ListTagsForDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRegisterDomain = "RegisterDomain"
+
+// RegisterDomainRequest generates a "aws/request.Request" representing the
+// client's request for the RegisterDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RegisterDomain for more information on using the RegisterDomain
+// 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 RegisterDomainRequest method.
+// req, resp := client.RegisterDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomain
+func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Request, output *RegisterDomainOutput) {
+ op := &request.Operation{
+ Name: opRegisterDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RegisterDomainInput{}
+ }
+
+ output = &RegisterDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RegisterDomain API operation for Amazon Route 53 Domains.
+//
+// This operation registers a domain. Domains are registered either by Amazon
+// Registrar (for .com, .net, and .org domains) or by our registrar associate,
+// Gandi (for all other domains). For some top-level domains (TLDs), this operation
+// requires extra parameters.
+//
+// When you register a domain, Amazon Route 53 does the following:
+//
+// * Creates a Route 53 hosted zone that has the same name as the domain.
+// Route 53 assigns four name servers to your hosted zone and automatically
+// updates your domain registration with the names of these name servers.
+//
+// * Enables autorenew, so your domain registration will renew automatically
+// each year. We'll notify you in advance of the renewal date so you can
+// choose whether to renew the registration.
+//
+// * Optionally enables privacy protection, so WHOIS queries return contact
+// information either for Amazon Registrar (for .com, .net, and .org domains)
+// or for our registrar associate, Gandi (for all other TLDs). If you don't
+// enable privacy protection, WHOIS queries return the information that you
+// entered for the registrant, admin, and tech contacts.
+//
+// * If registration is successful, returns an operation ID that you can
+// use to track the progress and completion of the action. If the request
+// is not completed successfully, the domain registrant is notified by email.
+//
+// * Charges your AWS account an amount based on the top-level domain. For
+// more information, see Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/).
+//
+// 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 Route 53 Domains's
+// API operation RegisterDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * DomainLimitExceeded
+// The number of domains has exceeded the allowed threshold for the account.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RegisterDomain
+func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) {
+ req, out := c.RegisterDomainRequest(input)
+ return out, req.Send()
+}
+
+// RegisterDomainWithContext is the same as RegisterDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RegisterDomain 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 *Route53Domains) RegisterDomainWithContext(ctx aws.Context, input *RegisterDomainInput, opts ...request.Option) (*RegisterDomainOutput, error) {
+ req, out := c.RegisterDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRejectDomainTransferFromAnotherAwsAccount = "RejectDomainTransferFromAnotherAwsAccount"
+
+// RejectDomainTransferFromAnotherAwsAccountRequest generates a "aws/request.Request" representing the
+// client's request for the RejectDomainTransferFromAnotherAwsAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RejectDomainTransferFromAnotherAwsAccount for more information on using the RejectDomainTransferFromAnotherAwsAccount
+// 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 RejectDomainTransferFromAnotherAwsAccountRequest method.
+// req, resp := client.RejectDomainTransferFromAnotherAwsAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RejectDomainTransferFromAnotherAwsAccount
+func (c *Route53Domains) RejectDomainTransferFromAnotherAwsAccountRequest(input *RejectDomainTransferFromAnotherAwsAccountInput) (req *request.Request, output *RejectDomainTransferFromAnotherAwsAccountOutput) {
+ op := &request.Operation{
+ Name: opRejectDomainTransferFromAnotherAwsAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RejectDomainTransferFromAnotherAwsAccountInput{}
+ }
+
+ output = &RejectDomainTransferFromAnotherAwsAccountOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RejectDomainTransferFromAnotherAwsAccount API operation for Amazon Route 53 Domains.
+//
+// Rejects the transfer of a domain from another AWS account to the current
+// AWS account. You initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html).
+//
+// Use either ListOperations (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html)
+// or GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// to determine whether the operation succeeded. GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// provides additional information, for example, Domain Transfer from Aws Account
+// 111122223333 has been cancelled.
+//
+// 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 Route 53 Domains's
+// API operation RejectDomainTransferFromAnotherAwsAccount for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RejectDomainTransferFromAnotherAwsAccount
+func (c *Route53Domains) RejectDomainTransferFromAnotherAwsAccount(input *RejectDomainTransferFromAnotherAwsAccountInput) (*RejectDomainTransferFromAnotherAwsAccountOutput, error) {
+ req, out := c.RejectDomainTransferFromAnotherAwsAccountRequest(input)
+ return out, req.Send()
+}
+
+// RejectDomainTransferFromAnotherAwsAccountWithContext is the same as RejectDomainTransferFromAnotherAwsAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RejectDomainTransferFromAnotherAwsAccount 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 *Route53Domains) RejectDomainTransferFromAnotherAwsAccountWithContext(ctx aws.Context, input *RejectDomainTransferFromAnotherAwsAccountInput, opts ...request.Option) (*RejectDomainTransferFromAnotherAwsAccountOutput, error) {
+ req, out := c.RejectDomainTransferFromAnotherAwsAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRenewDomain = "RenewDomain"
+
+// RenewDomainRequest generates a "aws/request.Request" representing the
+// client's request for the RenewDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RenewDomain for more information on using the RenewDomain
+// 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 RenewDomainRequest method.
+// req, resp := client.RenewDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomain
+func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *request.Request, output *RenewDomainOutput) {
+ op := &request.Operation{
+ Name: opRenewDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RenewDomainInput{}
+ }
+
+ output = &RenewDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RenewDomain API operation for Amazon Route 53 Domains.
+//
+// This operation renews a domain for the specified number of years. The cost
+// of renewing your domain is billed to your AWS account.
+//
+// We recommend that you renew your domain several weeks before the expiration
+// date. Some TLD registries delete domains before the expiration date if you
+// haven't renewed far enough in advance. For more information about renewing
+// domain registration, see Renewing Registration for a Domain (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html)
+// in the Amazon Route 53 Developer 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 Route 53 Domains's
+// API operation RenewDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RenewDomain
+func (c *Route53Domains) RenewDomain(input *RenewDomainInput) (*RenewDomainOutput, error) {
+ req, out := c.RenewDomainRequest(input)
+ return out, req.Send()
+}
+
+// RenewDomainWithContext is the same as RenewDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RenewDomain 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 *Route53Domains) RenewDomainWithContext(ctx aws.Context, input *RenewDomainInput, opts ...request.Option) (*RenewDomainOutput, error) {
+ req, out := c.RenewDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opResendContactReachabilityEmail = "ResendContactReachabilityEmail"
+
+// ResendContactReachabilityEmailRequest generates a "aws/request.Request" representing the
+// client's request for the ResendContactReachabilityEmail operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ResendContactReachabilityEmail for more information on using the ResendContactReachabilityEmail
+// 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 ResendContactReachabilityEmailRequest method.
+// req, resp := client.ResendContactReachabilityEmailRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmail
+func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendContactReachabilityEmailInput) (req *request.Request, output *ResendContactReachabilityEmailOutput) {
+ op := &request.Operation{
+ Name: opResendContactReachabilityEmail,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ResendContactReachabilityEmailInput{}
+ }
+
+ output = &ResendContactReachabilityEmailOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ResendContactReachabilityEmail API operation for Amazon Route 53 Domains.
+//
+// For operations that require confirmation that the email address for the registrant
+// contact is valid, such as registering a new domain, this operation resends
+// the confirmation email to the current email address for the registrant contact.
+//
+// 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 Route 53 Domains's
+// API operation ResendContactReachabilityEmail for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmail
+func (c *Route53Domains) ResendContactReachabilityEmail(input *ResendContactReachabilityEmailInput) (*ResendContactReachabilityEmailOutput, error) {
+ req, out := c.ResendContactReachabilityEmailRequest(input)
+ return out, req.Send()
+}
+
+// ResendContactReachabilityEmailWithContext is the same as ResendContactReachabilityEmail with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ResendContactReachabilityEmail 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 *Route53Domains) ResendContactReachabilityEmailWithContext(ctx aws.Context, input *ResendContactReachabilityEmailInput, opts ...request.Option) (*ResendContactReachabilityEmailOutput, error) {
+ req, out := c.ResendContactReachabilityEmailRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRetrieveDomainAuthCode = "RetrieveDomainAuthCode"
+
+// RetrieveDomainAuthCodeRequest generates a "aws/request.Request" representing the
+// client's request for the RetrieveDomainAuthCode operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RetrieveDomainAuthCode for more information on using the RetrieveDomainAuthCode
+// 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 RetrieveDomainAuthCodeRequest method.
+// req, resp := client.RetrieveDomainAuthCodeRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCode
+func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuthCodeInput) (req *request.Request, output *RetrieveDomainAuthCodeOutput) {
+ op := &request.Operation{
+ Name: opRetrieveDomainAuthCode,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RetrieveDomainAuthCodeInput{}
+ }
+
+ output = &RetrieveDomainAuthCodeOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RetrieveDomainAuthCode API operation for Amazon Route 53 Domains.
+//
+// This operation returns the AuthCode for the domain. To transfer a domain
+// to another registrar, you provide this value to the new registrar.
+//
+// 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 Route 53 Domains's
+// API operation RetrieveDomainAuthCode for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCode
+func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error) {
+ req, out := c.RetrieveDomainAuthCodeRequest(input)
+ return out, req.Send()
+}
+
+// RetrieveDomainAuthCodeWithContext is the same as RetrieveDomainAuthCode with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RetrieveDomainAuthCode 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 *Route53Domains) RetrieveDomainAuthCodeWithContext(ctx aws.Context, input *RetrieveDomainAuthCodeInput, opts ...request.Option) (*RetrieveDomainAuthCodeOutput, error) {
+ req, out := c.RetrieveDomainAuthCodeRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTransferDomain = "TransferDomain"
+
+// TransferDomainRequest generates a "aws/request.Request" representing the
+// client's request for the TransferDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TransferDomain for more information on using the TransferDomain
+// 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 TransferDomainRequest method.
+// req, resp := client.TransferDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomain
+func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req *request.Request, output *TransferDomainOutput) {
+ op := &request.Operation{
+ Name: opTransferDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TransferDomainInput{}
+ }
+
+ output = &TransferDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// TransferDomain API operation for Amazon Route 53 Domains.
+//
+// Transfers a domain from another registrar to Amazon Route 53. When the transfer
+// is complete, the domain is registered either with Amazon Registrar (for .com,
+// .net, and .org domains) or with our registrar associate, Gandi (for all other
+// TLDs).
+//
+// For more information about transferring domains, see the following topics:
+//
+// * For transfer requirements, a detailed procedure, and information about
+// viewing the status of a domain that you're transferring to Route 53, see
+// Transferring Registration for a Domain to Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html)
+// in the Amazon Route 53 Developer Guide.
+//
+// * For information about how to transfer a domain from one AWS account
+// to another, see TransferDomainToAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html).
+//
+// * For information about how to transfer a domain to another domain registrar,
+// see Transferring a Domain from Amazon Route 53 to Another Registrar (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-from-route-53.html)
+// in the Amazon Route 53 Developer Guide.
+//
+// If the registrar for your domain is also the DNS service provider for the
+// domain, we highly recommend that you transfer your DNS service to Route 53
+// or to another DNS service provider before you transfer your registration.
+// Some registrars provide free DNS service when you purchase a domain registration.
+// When you transfer the registration, the previous registrar will not renew
+// your domain registration and could end your DNS service at any time.
+//
+// If the registrar for your domain is also the DNS service provider for the
+// domain and you don't transfer DNS service to another provider, your website,
+// email, and the web applications associated with the domain might become unavailable.
+//
+// If the transfer is successful, this method returns an operation ID that you
+// can use to track the progress and completion of the action. If the transfer
+// doesn't complete successfully, the domain registrant will be notified by
+// email.
+//
+// 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 Route 53 Domains's
+// API operation TransferDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * DomainLimitExceeded
+// The number of domains has exceeded the allowed threshold for the account.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomain
+func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error) {
+ req, out := c.TransferDomainRequest(input)
+ return out, req.Send()
+}
+
+// TransferDomainWithContext is the same as TransferDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TransferDomain 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 *Route53Domains) TransferDomainWithContext(ctx aws.Context, input *TransferDomainInput, opts ...request.Option) (*TransferDomainOutput, error) {
+ req, out := c.TransferDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTransferDomainToAnotherAwsAccount = "TransferDomainToAnotherAwsAccount"
+
+// TransferDomainToAnotherAwsAccountRequest generates a "aws/request.Request" representing the
+// client's request for the TransferDomainToAnotherAwsAccount operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TransferDomainToAnotherAwsAccount for more information on using the TransferDomainToAnotherAwsAccount
+// 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 TransferDomainToAnotherAwsAccountRequest method.
+// req, resp := client.TransferDomainToAnotherAwsAccountRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomainToAnotherAwsAccount
+func (c *Route53Domains) TransferDomainToAnotherAwsAccountRequest(input *TransferDomainToAnotherAwsAccountInput) (req *request.Request, output *TransferDomainToAnotherAwsAccountOutput) {
+ op := &request.Operation{
+ Name: opTransferDomainToAnotherAwsAccount,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TransferDomainToAnotherAwsAccountInput{}
+ }
+
+ output = &TransferDomainToAnotherAwsAccountOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// TransferDomainToAnotherAwsAccount API operation for Amazon Route 53 Domains.
+//
+// Transfers a domain from the current AWS account to another AWS account. Note
+// the following:
+//
+// * The AWS account that you're transferring the domain to must accept the
+// transfer. If the other account doesn't accept the transfer within 3 days,
+// we cancel the transfer. See AcceptDomainTransferFromAnotherAwsAccount
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html).
+//
+// * You can cancel the transfer before the other account accepts it. See
+// CancelDomainTransferToAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_CancelDomainTransferToAnotherAwsAccount.html).
+//
+// * The other account can reject the transfer. See RejectDomainTransferFromAnotherAwsAccount
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_RejectDomainTransferFromAnotherAwsAccount.html).
+//
+// When you transfer a domain from one AWS account to another, Route 53 doesn't
+// transfer the hosted zone that is associated with the domain. DNS resolution
+// isn't affected if the domain and the hosted zone are owned by separate accounts,
+// so transferring the hosted zone is optional. For information about transferring
+// the hosted zone to another AWS account, see Migrating a Hosted Zone to a
+// Different AWS Account (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html)
+// in the Amazon Route 53 Developer Guide.
+//
+// Use either ListOperations (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html)
+// or GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// to determine whether the operation succeeded. GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// provides additional information, for example, Domain Transfer from Aws Account
+// 111122223333 has been cancelled.
+//
+// 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 Route 53 Domains's
+// API operation TransferDomainToAnotherAwsAccount for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/TransferDomainToAnotherAwsAccount
+func (c *Route53Domains) TransferDomainToAnotherAwsAccount(input *TransferDomainToAnotherAwsAccountInput) (*TransferDomainToAnotherAwsAccountOutput, error) {
+ req, out := c.TransferDomainToAnotherAwsAccountRequest(input)
+ return out, req.Send()
+}
+
+// TransferDomainToAnotherAwsAccountWithContext is the same as TransferDomainToAnotherAwsAccount with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TransferDomainToAnotherAwsAccount 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 *Route53Domains) TransferDomainToAnotherAwsAccountWithContext(ctx aws.Context, input *TransferDomainToAnotherAwsAccountInput, opts ...request.Option) (*TransferDomainToAnotherAwsAccountOutput, error) {
+ req, out := c.TransferDomainToAnotherAwsAccountRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateDomainContact = "UpdateDomainContact"
+
+// UpdateDomainContactRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateDomainContact operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateDomainContact for more information on using the UpdateDomainContact
+// 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 UpdateDomainContactRequest method.
+// req, resp := client.UpdateDomainContactRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContact
+func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactInput) (req *request.Request, output *UpdateDomainContactOutput) {
+ op := &request.Operation{
+ Name: opUpdateDomainContact,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateDomainContactInput{}
+ }
+
+ output = &UpdateDomainContactOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateDomainContact API operation for Amazon Route 53 Domains.
+//
+// This operation updates the contact information for a particular domain. You
+// must specify information for at least one contact: registrant, administrator,
+// or technical.
+//
+// If the update is successful, this method returns an operation ID that you
+// can use to track the progress and completion of the action. If the request
+// is not completed successfully, the domain registrant will be notified by
+// email.
+//
+// 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 Route 53 Domains's
+// API operation UpdateDomainContact for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContact
+func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error) {
+ req, out := c.UpdateDomainContactRequest(input)
+ return out, req.Send()
+}
+
+// UpdateDomainContactWithContext is the same as UpdateDomainContact with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateDomainContact 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 *Route53Domains) UpdateDomainContactWithContext(ctx aws.Context, input *UpdateDomainContactInput, opts ...request.Option) (*UpdateDomainContactOutput, error) {
+ req, out := c.UpdateDomainContactRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateDomainContactPrivacy = "UpdateDomainContactPrivacy"
+
+// UpdateDomainContactPrivacyRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateDomainContactPrivacy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateDomainContactPrivacy for more information on using the UpdateDomainContactPrivacy
+// 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 UpdateDomainContactPrivacyRequest method.
+// req, resp := client.UpdateDomainContactPrivacyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacy
+func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainContactPrivacyInput) (req *request.Request, output *UpdateDomainContactPrivacyOutput) {
+ op := &request.Operation{
+ Name: opUpdateDomainContactPrivacy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateDomainContactPrivacyInput{}
+ }
+
+ output = &UpdateDomainContactPrivacyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateDomainContactPrivacy API operation for Amazon Route 53 Domains.
+//
+// This operation updates the specified domain contact's privacy setting. When
+// privacy protection is enabled, contact information such as email address
+// is replaced either with contact information for Amazon Registrar (for .com,
+// .net, and .org domains) or with contact information for our registrar associate,
+// Gandi.
+//
+// This operation affects only the contact information for the specified contact
+// type (registrant, administrator, or tech). If the request succeeds, Amazon
+// Route 53 returns an operation ID that you can use with GetOperationDetail
+// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// to track the progress and completion of the action. If the request doesn't
+// complete successfully, the domain registrant will be notified by email.
+//
+// By disabling the privacy service via API, you consent to the publication
+// of the contact information provided for this domain via the public WHOIS
+// database. You certify that you are the registrant of this domain name and
+// have the authority to make this decision. You may withdraw your consent at
+// any time by enabling privacy protection using either UpdateDomainContactPrivacy
+// or the Route 53 console. Enabling privacy protection removes the contact
+// information provided for this domain from the WHOIS database. For more information
+// on our privacy practices, see https://aws.amazon.com/privacy/ (https://aws.amazon.com/privacy/).
+//
+// 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 Route 53 Domains's
+// API operation UpdateDomainContactPrivacy for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacy
+func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error) {
+ req, out := c.UpdateDomainContactPrivacyRequest(input)
+ return out, req.Send()
+}
+
+// UpdateDomainContactPrivacyWithContext is the same as UpdateDomainContactPrivacy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateDomainContactPrivacy 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 *Route53Domains) UpdateDomainContactPrivacyWithContext(ctx aws.Context, input *UpdateDomainContactPrivacyInput, opts ...request.Option) (*UpdateDomainContactPrivacyOutput, error) {
+ req, out := c.UpdateDomainContactPrivacyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateDomainNameservers = "UpdateDomainNameservers"
+
+// UpdateDomainNameserversRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateDomainNameservers operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateDomainNameservers for more information on using the UpdateDomainNameservers
+// 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 UpdateDomainNameserversRequest method.
+// req, resp := client.UpdateDomainNameserversRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameservers
+func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNameserversInput) (req *request.Request, output *UpdateDomainNameserversOutput) {
+ op := &request.Operation{
+ Name: opUpdateDomainNameservers,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateDomainNameserversInput{}
+ }
+
+ output = &UpdateDomainNameserversOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateDomainNameservers API operation for Amazon Route 53 Domains.
+//
+// This operation replaces the current set of name servers for the domain with
+// the specified set of name servers. If you use Amazon Route 53 as your DNS
+// service, specify the four name servers in the delegation set for the hosted
+// zone for the domain.
+//
+// If successful, this operation returns an operation ID that you can use to
+// track the progress and completion of the action. If the request is not completed
+// successfully, the domain registrant will be notified by email.
+//
+// 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 Route 53 Domains's
+// API operation UpdateDomainNameservers for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * DuplicateRequest
+// The request is already in progress for the domain.
+//
+// * TLDRulesViolation
+// The top-level domain does not support this operation.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameservers
+func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error) {
+ req, out := c.UpdateDomainNameserversRequest(input)
+ return out, req.Send()
+}
+
+// UpdateDomainNameserversWithContext is the same as UpdateDomainNameservers with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateDomainNameservers 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 *Route53Domains) UpdateDomainNameserversWithContext(ctx aws.Context, input *UpdateDomainNameserversInput, opts ...request.Option) (*UpdateDomainNameserversOutput, error) {
+ req, out := c.UpdateDomainNameserversRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateTagsForDomain = "UpdateTagsForDomain"
+
+// UpdateTagsForDomainRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateTagsForDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateTagsForDomain for more information on using the UpdateTagsForDomain
+// 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 UpdateTagsForDomainRequest method.
+// req, resp := client.UpdateTagsForDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomain
+func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainInput) (req *request.Request, output *UpdateTagsForDomainOutput) {
+ op := &request.Operation{
+ Name: opUpdateTagsForDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateTagsForDomainInput{}
+ }
+
+ output = &UpdateTagsForDomainOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UpdateTagsForDomain API operation for Amazon Route 53 Domains.
+//
+// This operation adds or updates tags for a specified domain.
+//
+// All tag operations are eventually consistent; subsequent operations might
+// not immediately represent all issued operations.
+//
+// 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 Route 53 Domains's
+// API operation UpdateTagsForDomain for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// * OperationLimitExceeded
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+//
+// * UnsupportedTLD
+// Amazon Route 53 does not support this top-level domain (TLD).
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomain
+func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error) {
+ req, out := c.UpdateTagsForDomainRequest(input)
+ return out, req.Send()
+}
+
+// UpdateTagsForDomainWithContext is the same as UpdateTagsForDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateTagsForDomain 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 *Route53Domains) UpdateTagsForDomainWithContext(ctx aws.Context, input *UpdateTagsForDomainInput, opts ...request.Option) (*UpdateTagsForDomainOutput, error) {
+ req, out := c.UpdateTagsForDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opViewBilling = "ViewBilling"
+
+// ViewBillingRequest generates a "aws/request.Request" representing the
+// client's request for the ViewBilling operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ViewBilling for more information on using the ViewBilling
+// 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 ViewBillingRequest method.
+// req, resp := client.ViewBillingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBilling
+func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *request.Request, output *ViewBillingOutput) {
+ op := &request.Operation{
+ Name: opViewBilling,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ViewBillingInput{}
+ }
+
+ output = &ViewBillingOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ViewBilling API operation for Amazon Route 53 Domains.
+//
+// Returns all the domain-related billing records for the current AWS account
+// for a specified period
+//
+// 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 Route 53 Domains's
+// API operation ViewBilling for usage and error information.
+//
+// Returned Error Types:
+// * InvalidInput
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ViewBilling
+func (c *Route53Domains) ViewBilling(input *ViewBillingInput) (*ViewBillingOutput, error) {
+ req, out := c.ViewBillingRequest(input)
+ return out, req.Send()
+}
+
+// ViewBillingWithContext is the same as ViewBilling with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ViewBilling 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 *Route53Domains) ViewBillingWithContext(ctx aws.Context, input *ViewBillingInput, opts ...request.Option) (*ViewBillingOutput, error) {
+ req, out := c.ViewBillingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// The AcceptDomainTransferFromAnotherAwsAccount request includes the following
+// elements.
+type AcceptDomainTransferFromAnotherAwsAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that was specified when another AWS account submitted
+ // a TransferDomainToAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html)
+ // request.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The password that was returned by the TransferDomainToAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html)
+ // request.
+ //
+ // Password is a required field
+ Password *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AcceptDomainTransferFromAnotherAwsAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AcceptDomainTransferFromAnotherAwsAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AcceptDomainTransferFromAnotherAwsAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AcceptDomainTransferFromAnotherAwsAccountInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.Password == nil {
+ invalidParams.Add(request.NewErrParamRequired("Password"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *AcceptDomainTransferFromAnotherAwsAccountInput) SetDomainName(v string) *AcceptDomainTransferFromAnotherAwsAccountInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetPassword sets the Password field's value.
+func (s *AcceptDomainTransferFromAnotherAwsAccountInput) SetPassword(v string) *AcceptDomainTransferFromAnotherAwsAccountInput {
+ s.Password = &v
+ return s
+}
+
+// The AcceptDomainTransferFromAnotherAwsAccount response includes the following
+// element.
+type AcceptDomainTransferFromAnotherAwsAccountOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ OperationId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s AcceptDomainTransferFromAnotherAwsAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AcceptDomainTransferFromAnotherAwsAccountOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *AcceptDomainTransferFromAnotherAwsAccountOutput) SetOperationId(v string) *AcceptDomainTransferFromAnotherAwsAccountOutput {
+ s.OperationId = &v
+ return s
+}
+
+// Information for one billing record.
+type BillingRecord struct {
+ _ struct{} `type:"structure"`
+
+ // The date that the operation was billed, in Unix format.
+ BillDate *time.Time `type:"timestamp"`
+
+ // The name of the domain that the billing record applies to. If the domain
+ // name contains characters other than a-z, 0-9, and - (hyphen), such as an
+ // internationalized domain name, then this value is in Punycode. For more information,
+ // see DNS Domain Name Format (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
+ // in the Amazon Route 53 Developer Guide.
+ DomainName *string `type:"string"`
+
+ // The ID of the invoice that is associated with the billing record.
+ InvoiceId *string `type:"string"`
+
+ // The operation that you were charged for.
+ Operation *string `type:"string" enum:"OperationType"`
+
+ // The price that you were charged for the operation, in US dollars.
+ //
+ // Example value: 12.0
+ Price *float64 `type:"double"`
+}
+
+// String returns the string representation
+func (s BillingRecord) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BillingRecord) GoString() string {
+ return s.String()
+}
+
+// SetBillDate sets the BillDate field's value.
+func (s *BillingRecord) SetBillDate(v time.Time) *BillingRecord {
+ s.BillDate = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *BillingRecord) SetDomainName(v string) *BillingRecord {
+ s.DomainName = &v
+ return s
+}
+
+// SetInvoiceId sets the InvoiceId field's value.
+func (s *BillingRecord) SetInvoiceId(v string) *BillingRecord {
+ s.InvoiceId = &v
+ return s
+}
+
+// SetOperation sets the Operation field's value.
+func (s *BillingRecord) SetOperation(v string) *BillingRecord {
+ s.Operation = &v
+ return s
+}
+
+// SetPrice sets the Price field's value.
+func (s *BillingRecord) SetPrice(v float64) *BillingRecord {
+ s.Price = &v
+ return s
+}
+
+// The CancelDomainTransferToAnotherAwsAccount request includes the following
+// element.
+type CancelDomainTransferToAnotherAwsAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain for which you want to cancel the transfer to another
+ // AWS account.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s CancelDomainTransferToAnotherAwsAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CancelDomainTransferToAnotherAwsAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CancelDomainTransferToAnotherAwsAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CancelDomainTransferToAnotherAwsAccountInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *CancelDomainTransferToAnotherAwsAccountInput) SetDomainName(v string) *CancelDomainTransferToAnotherAwsAccountInput {
+ s.DomainName = &v
+ return s
+}
+
+// The CancelDomainTransferToAnotherAwsAccount response includes the following
+// element.
+type CancelDomainTransferToAnotherAwsAccountOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier that TransferDomainToAnotherAwsAccount returned to track the
+ // progress of the request. Because the transfer request was canceled, the value
+ // is no longer valid, and you can't use GetOperationDetail to query the operation
+ // status.
+ OperationId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CancelDomainTransferToAnotherAwsAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CancelDomainTransferToAnotherAwsAccountOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *CancelDomainTransferToAnotherAwsAccountOutput) SetOperationId(v string) *CancelDomainTransferToAnotherAwsAccountOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The CheckDomainAvailability request contains the following elements.
+type CheckDomainAvailabilityInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to get availability for. The top-level
+ // domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list
+ // of supported TLDs, see Domains that You Can Register with Amazon Route 53
+ // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // The domain name can contain only the following characters:
+ //
+ // * Letters a through z. Domain names are not case sensitive.
+ //
+ // * Numbers 0 through 9.
+ //
+ // * Hyphen (-). You can't specify a hyphen at the beginning or end of a
+ // label.
+ //
+ // * Period (.) to separate the labels in the name, such as the . in example.com.
+ //
+ // Internationalized domain names are not supported for some top-level domains.
+ // To determine whether the TLD that you want to use supports internationalized
+ // domain names, see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html).
+ // For more information, see Formatting Internationalized Domain Names (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns).
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // Reserved for future use.
+ IdnLangCode *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CheckDomainAvailabilityInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CheckDomainAvailabilityInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CheckDomainAvailabilityInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CheckDomainAvailabilityInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *CheckDomainAvailabilityInput) SetDomainName(v string) *CheckDomainAvailabilityInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetIdnLangCode sets the IdnLangCode field's value.
+func (s *CheckDomainAvailabilityInput) SetIdnLangCode(v string) *CheckDomainAvailabilityInput {
+ s.IdnLangCode = &v
+ return s
+}
+
+// The CheckDomainAvailability response includes the following elements.
+type CheckDomainAvailabilityOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Whether the domain name is available for registering.
+ //
+ // You can register only domains designated as AVAILABLE.
+ //
+ // Valid values:
+ //
+ // AVAILABLE
+ //
+ // The domain name is available.
+ //
+ // AVAILABLE_RESERVED
+ //
+ // The domain name is reserved under specific conditions.
+ //
+ // AVAILABLE_PREORDER
+ //
+ // The domain name is available and can be preordered.
+ //
+ // DONT_KNOW
+ //
+ // The TLD registry didn't reply with a definitive answer about whether the
+ // domain name is available. Route 53 can return this response for a variety
+ // of reasons, for example, the registry is performing maintenance. Try again
+ // later.
+ //
+ // PENDING
+ //
+ // The TLD registry didn't return a response in the expected amount of time.
+ // When the response is delayed, it usually takes just a few extra seconds.
+ // You can resubmit the request immediately.
+ //
+ // RESERVED
+ //
+ // The domain name has been reserved for another person or organization.
+ //
+ // UNAVAILABLE
+ //
+ // The domain name is not available.
+ //
+ // UNAVAILABLE_PREMIUM
+ //
+ // The domain name is not available.
+ //
+ // UNAVAILABLE_RESTRICTED
+ //
+ // The domain name is forbidden.
+ //
+ // Availability is a required field
+ Availability *string `type:"string" required:"true" enum:"DomainAvailability"`
+}
+
+// String returns the string representation
+func (s CheckDomainAvailabilityOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CheckDomainAvailabilityOutput) GoString() string {
+ return s.String()
+}
+
+// SetAvailability sets the Availability field's value.
+func (s *CheckDomainAvailabilityOutput) SetAvailability(v string) *CheckDomainAvailabilityOutput {
+ s.Availability = &v
+ return s
+}
+
+// The CheckDomainTransferability request contains the following elements.
+type CheckDomainTransferabilityInput struct {
+ _ struct{} `type:"structure"`
+
+ // If the registrar for the top-level domain (TLD) requires an authorization
+ // code to transfer the domain, the code that you got from the current registrar
+ // for the domain.
+ AuthCode *string `type:"string" sensitive:"true"`
+
+ // The name of the domain that you want to transfer to Route 53. The top-level
+ // domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list
+ // of supported TLDs, see Domains that You Can Register with Amazon Route 53
+ // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // The domain name can contain only the following characters:
+ //
+ // * Letters a through z. Domain names are not case sensitive.
+ //
+ // * Numbers 0 through 9.
+ //
+ // * Hyphen (-). You can't specify a hyphen at the beginning or end of a
+ // label.
+ //
+ // * Period (.) to separate the labels in the name, such as the . in example.com.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s CheckDomainTransferabilityInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CheckDomainTransferabilityInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CheckDomainTransferabilityInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CheckDomainTransferabilityInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAuthCode sets the AuthCode field's value.
+func (s *CheckDomainTransferabilityInput) SetAuthCode(v string) *CheckDomainTransferabilityInput {
+ s.AuthCode = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *CheckDomainTransferabilityInput) SetDomainName(v string) *CheckDomainTransferabilityInput {
+ s.DomainName = &v
+ return s
+}
+
+// The CheckDomainTransferability response includes the following elements.
+type CheckDomainTransferabilityOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A complex type that contains information about whether the specified domain
+ // can be transferred to Route 53.
+ //
+ // Transferability is a required field
+ Transferability *DomainTransferability `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s CheckDomainTransferabilityOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CheckDomainTransferabilityOutput) GoString() string {
+ return s.String()
+}
+
+// SetTransferability sets the Transferability field's value.
+func (s *CheckDomainTransferabilityOutput) SetTransferability(v *DomainTransferability) *CheckDomainTransferabilityOutput {
+ s.Transferability = v
+ return s
+}
+
+// ContactDetail includes the following elements.
+type ContactDetail struct {
+ _ struct{} `type:"structure" sensitive:"true"`
+
+ // First line of the contact's address.
+ AddressLine1 *string `type:"string"`
+
+ // Second line of contact's address, if any.
+ AddressLine2 *string `type:"string"`
+
+ // The city of the contact's address.
+ City *string `type:"string"`
+
+ // Indicates whether the contact is a person, company, association, or public
+ // organization. Note the following:
+ //
+ // * If you specify a value other than PERSON, you must also specify a value
+ // for OrganizationName.
+ //
+ // * For some TLDs, the privacy protection available depends on the value
+ // that you specify for Contact Type. For the privacy protection settings
+ // for your TLD, see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide
+ //
+ // * For .es domains, if you specify PERSON, you must specify INDIVIDUAL
+ // for the value of ES_LEGAL_FORM.
+ ContactType *string `type:"string" enum:"ContactType"`
+
+ // Code for the country of the contact's address.
+ CountryCode *string `type:"string" enum:"CountryCode"`
+
+ // Email address of the contact.
+ Email *string `type:"string"`
+
+ // A list of name-value pairs for parameters required by certain top-level domains.
+ ExtraParams []*ExtraParam `type:"list"`
+
+ // Fax number of the contact.
+ //
+ // Constraints: Phone number must be specified in the format "+[country dialing
+ // code].[number including any area code]". For example, a US phone number might
+ // appear as "+1.1234567890".
+ Fax *string `type:"string"`
+
+ // First name of contact.
+ FirstName *string `type:"string"`
+
+ // Last name of contact.
+ LastName *string `type:"string"`
+
+ // Name of the organization for contact types other than PERSON.
+ OrganizationName *string `type:"string"`
+
+ // The phone number of the contact.
+ //
+ // Constraints: Phone number must be specified in the format "+[country dialing
+ // code].[number including any area code>]". For example, a US phone number
+ // might appear as "+1.1234567890".
+ PhoneNumber *string `type:"string"`
+
+ // The state or province of the contact's city.
+ State *string `type:"string"`
+
+ // The zip or postal code of the contact's address.
+ ZipCode *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ContactDetail) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ContactDetail) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ContactDetail) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ContactDetail"}
+ if s.ExtraParams != nil {
+ for i, v := range s.ExtraParams {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtraParams", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAddressLine1 sets the AddressLine1 field's value.
+func (s *ContactDetail) SetAddressLine1(v string) *ContactDetail {
+ s.AddressLine1 = &v
+ return s
+}
+
+// SetAddressLine2 sets the AddressLine2 field's value.
+func (s *ContactDetail) SetAddressLine2(v string) *ContactDetail {
+ s.AddressLine2 = &v
+ return s
+}
+
+// SetCity sets the City field's value.
+func (s *ContactDetail) SetCity(v string) *ContactDetail {
+ s.City = &v
+ return s
+}
+
+// SetContactType sets the ContactType field's value.
+func (s *ContactDetail) SetContactType(v string) *ContactDetail {
+ s.ContactType = &v
+ return s
+}
+
+// SetCountryCode sets the CountryCode field's value.
+func (s *ContactDetail) SetCountryCode(v string) *ContactDetail {
+ s.CountryCode = &v
+ return s
+}
+
+// SetEmail sets the Email field's value.
+func (s *ContactDetail) SetEmail(v string) *ContactDetail {
+ s.Email = &v
+ return s
+}
+
+// SetExtraParams sets the ExtraParams field's value.
+func (s *ContactDetail) SetExtraParams(v []*ExtraParam) *ContactDetail {
+ s.ExtraParams = v
+ return s
+}
+
+// SetFax sets the Fax field's value.
+func (s *ContactDetail) SetFax(v string) *ContactDetail {
+ s.Fax = &v
+ return s
+}
+
+// SetFirstName sets the FirstName field's value.
+func (s *ContactDetail) SetFirstName(v string) *ContactDetail {
+ s.FirstName = &v
+ return s
+}
+
+// SetLastName sets the LastName field's value.
+func (s *ContactDetail) SetLastName(v string) *ContactDetail {
+ s.LastName = &v
+ return s
+}
+
+// SetOrganizationName sets the OrganizationName field's value.
+func (s *ContactDetail) SetOrganizationName(v string) *ContactDetail {
+ s.OrganizationName = &v
+ return s
+}
+
+// SetPhoneNumber sets the PhoneNumber field's value.
+func (s *ContactDetail) SetPhoneNumber(v string) *ContactDetail {
+ s.PhoneNumber = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *ContactDetail) SetState(v string) *ContactDetail {
+ s.State = &v
+ return s
+}
+
+// SetZipCode sets the ZipCode field's value.
+func (s *ContactDetail) SetZipCode(v string) *ContactDetail {
+ s.ZipCode = &v
+ return s
+}
+
+// The DeleteTagsForDomainRequest includes the following elements.
+type DeleteTagsForDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // The domain for which you want to delete one or more tags.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // A list of tag keys to delete.
+ //
+ // TagsToDelete is a required field
+ TagsToDelete []*string `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteTagsForDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteTagsForDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteTagsForDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteTagsForDomainInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.TagsToDelete == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagsToDelete"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DeleteTagsForDomainInput) SetDomainName(v string) *DeleteTagsForDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetTagsToDelete sets the TagsToDelete field's value.
+func (s *DeleteTagsForDomainInput) SetTagsToDelete(v []*string) *DeleteTagsForDomainInput {
+ s.TagsToDelete = v
+ return s
+}
+
+type DeleteTagsForDomainOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteTagsForDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteTagsForDomainOutput) GoString() string {
+ return s.String()
+}
+
+type DisableDomainAutoRenewInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to disable automatic renewal for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DisableDomainAutoRenewInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableDomainAutoRenewInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisableDomainAutoRenewInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisableDomainAutoRenewInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DisableDomainAutoRenewInput) SetDomainName(v string) *DisableDomainAutoRenewInput {
+ s.DomainName = &v
+ return s
+}
+
+type DisableDomainAutoRenewOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DisableDomainAutoRenewOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableDomainAutoRenewOutput) GoString() string {
+ return s.String()
+}
+
+// The DisableDomainTransferLock request includes the following element.
+type DisableDomainTransferLockInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to remove the transfer lock for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DisableDomainTransferLockInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableDomainTransferLockInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisableDomainTransferLockInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisableDomainTransferLockInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DisableDomainTransferLockInput) SetDomainName(v string) *DisableDomainTransferLockInput {
+ s.DomainName = &v
+ return s
+}
+
+// The DisableDomainTransferLock response includes the following element.
+type DisableDomainTransferLockOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DisableDomainTransferLockOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisableDomainTransferLockOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *DisableDomainTransferLockOutput) SetOperationId(v string) *DisableDomainTransferLockOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The number of domains has exceeded the allowed threshold for the account.
+type DomainLimitExceeded struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The number of domains has exceeded the allowed threshold for the account.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s DomainLimitExceeded) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainLimitExceeded) GoString() string {
+ return s.String()
+}
+
+func newErrorDomainLimitExceeded(v protocol.ResponseMetadata) error {
+ return &DomainLimitExceeded{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *DomainLimitExceeded) Code() string {
+ return "DomainLimitExceeded"
+}
+
+// Message returns the exception's message.
+func (s *DomainLimitExceeded) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *DomainLimitExceeded) OrigErr() error {
+ return nil
+}
+
+func (s *DomainLimitExceeded) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *DomainLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *DomainLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Information about one suggested domain name.
+type DomainSuggestion struct {
+ _ struct{} `type:"structure"`
+
+ // Whether the domain name is available for registering.
+ //
+ // You can register only the domains that are designated as AVAILABLE.
+ //
+ // Valid values:
+ //
+ // AVAILABLE
+ //
+ // The domain name is available.
+ //
+ // AVAILABLE_RESERVED
+ //
+ // The domain name is reserved under specific conditions.
+ //
+ // AVAILABLE_PREORDER
+ //
+ // The domain name is available and can be preordered.
+ //
+ // DONT_KNOW
+ //
+ // The TLD registry didn't reply with a definitive answer about whether the
+ // domain name is available. Route 53 can return this response for a variety
+ // of reasons, for example, the registry is performing maintenance. Try again
+ // later.
+ //
+ // PENDING
+ //
+ // The TLD registry didn't return a response in the expected amount of time.
+ // When the response is delayed, it usually takes just a few extra seconds.
+ // You can resubmit the request immediately.
+ //
+ // RESERVED
+ //
+ // The domain name has been reserved for another person or organization.
+ //
+ // UNAVAILABLE
+ //
+ // The domain name is not available.
+ //
+ // UNAVAILABLE_PREMIUM
+ //
+ // The domain name is not available.
+ //
+ // UNAVAILABLE_RESTRICTED
+ //
+ // The domain name is forbidden.
+ Availability *string `type:"string"`
+
+ // A suggested domain name.
+ DomainName *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DomainSuggestion) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainSuggestion) GoString() string {
+ return s.String()
+}
+
+// SetAvailability sets the Availability field's value.
+func (s *DomainSuggestion) SetAvailability(v string) *DomainSuggestion {
+ s.Availability = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DomainSuggestion) SetDomainName(v string) *DomainSuggestion {
+ s.DomainName = &v
+ return s
+}
+
+// Summary information about one domain.
+type DomainSummary struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether the domain is automatically renewed upon expiration.
+ AutoRenew *bool `type:"boolean"`
+
+ // The name of the domain that the summary information applies to.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // Expiration date of the domain in Unix time format and Coordinated Universal
+ // Time (UTC).
+ Expiry *time.Time `type:"timestamp"`
+
+ // Indicates whether a domain is locked from unauthorized transfer to another
+ // party.
+ TransferLock *bool `type:"boolean"`
+}
+
+// String returns the string representation
+func (s DomainSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainSummary) GoString() string {
+ return s.String()
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *DomainSummary) SetAutoRenew(v bool) *DomainSummary {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *DomainSummary) SetDomainName(v string) *DomainSummary {
+ s.DomainName = &v
+ return s
+}
+
+// SetExpiry sets the Expiry field's value.
+func (s *DomainSummary) SetExpiry(v time.Time) *DomainSummary {
+ s.Expiry = &v
+ return s
+}
+
+// SetTransferLock sets the TransferLock field's value.
+func (s *DomainSummary) SetTransferLock(v bool) *DomainSummary {
+ s.TransferLock = &v
+ return s
+}
+
+// A complex type that contains information about whether the specified domain
+// can be transferred to Route 53.
+type DomainTransferability struct {
+ _ struct{} `type:"structure"`
+
+ // Whether the domain name can be transferred to Route 53.
+ //
+ // You can transfer only domains that have a value of TRANSFERABLE for Transferable.
+ //
+ // Valid values:
+ //
+ // TRANSFERABLE
+ //
+ // The domain name can be transferred to Route 53.
+ //
+ // UNTRANSFERRABLE
+ //
+ // The domain name can't be transferred to Route 53.
+ //
+ // DONT_KNOW
+ //
+ // Reserved for future use.
+ Transferable *string `type:"string" enum:"Transferable"`
+}
+
+// String returns the string representation
+func (s DomainTransferability) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainTransferability) GoString() string {
+ return s.String()
+}
+
+// SetTransferable sets the Transferable field's value.
+func (s *DomainTransferability) SetTransferable(v string) *DomainTransferability {
+ s.Transferable = &v
+ return s
+}
+
+// The request is already in progress for the domain.
+type DuplicateRequest struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The request is already in progress for the domain.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s DuplicateRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DuplicateRequest) GoString() string {
+ return s.String()
+}
+
+func newErrorDuplicateRequest(v protocol.ResponseMetadata) error {
+ return &DuplicateRequest{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *DuplicateRequest) Code() string {
+ return "DuplicateRequest"
+}
+
+// Message returns the exception's message.
+func (s *DuplicateRequest) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *DuplicateRequest) OrigErr() error {
+ return nil
+}
+
+func (s *DuplicateRequest) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *DuplicateRequest) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *DuplicateRequest) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type EnableDomainAutoRenewInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to enable automatic renewal for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s EnableDomainAutoRenewInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableDomainAutoRenewInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *EnableDomainAutoRenewInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "EnableDomainAutoRenewInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *EnableDomainAutoRenewInput) SetDomainName(v string) *EnableDomainAutoRenewInput {
+ s.DomainName = &v
+ return s
+}
+
+type EnableDomainAutoRenewOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s EnableDomainAutoRenewOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableDomainAutoRenewOutput) GoString() string {
+ return s.String()
+}
+
+// A request to set the transfer lock for the specified domain.
+type EnableDomainTransferLockInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to set the transfer lock for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s EnableDomainTransferLockInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableDomainTransferLockInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *EnableDomainTransferLockInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "EnableDomainTransferLockInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *EnableDomainTransferLockInput) SetDomainName(v string) *EnableDomainTransferLockInput {
+ s.DomainName = &v
+ return s
+}
+
+// The EnableDomainTransferLock response includes the following elements.
+type EnableDomainTransferLockOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To use this ID to query
+ // the operation status, use GetOperationDetail.
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s EnableDomainTransferLockOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s EnableDomainTransferLockOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *EnableDomainTransferLockOutput) SetOperationId(v string) *EnableDomainTransferLockOutput {
+ s.OperationId = &v
+ return s
+}
+
+// ExtraParam includes the following elements.
+type ExtraParam struct {
+ _ struct{} `type:"structure"`
+
+ // The name of an additional parameter that is required by a top-level domain.
+ // Here are the top-level domains that require additional parameters and the
+ // names of the parameters that they require:
+ //
+ // .com.au and .net.au
+ //
+ // * AU_ID_NUMBER
+ //
+ // * AU_ID_TYPE Valid values include the following: ABN (Australian business
+ // number) ACN (Australian company number) TM (Trademark number)
+ //
+ // .ca
+ //
+ // * BRAND_NUMBER
+ //
+ // * CA_BUSINESS_ENTITY_TYPE Valid values include the following: BANK (Bank)
+ // COMMERCIAL_COMPANY (Commercial company) COMPANY (Company) COOPERATION
+ // (Cooperation) COOPERATIVE (Cooperative) COOPRIX (Cooprix) CORP (Corporation)
+ // CREDIT_UNION (Credit union) FOMIA (Federation of mutual insurance associations)
+ // INC (Incorporated) LTD (Limited) LTEE (Limitée) LLC (Limited liability
+ // corporation) LLP (Limited liability partnership) LTE (Lte.) MBA (Mutual
+ // benefit association) MIC (Mutual insurance company) NFP (Not-for-profit
+ // corporation) SA (S.A.) SAVINGS_COMPANY (Savings company) SAVINGS_UNION
+ // (Savings union) SARL (Société à responsabilité limitée) TRUST (Trust)
+ // ULC (Unlimited liability corporation)
+ //
+ // * CA_LEGAL_TYPE When ContactType is PERSON, valid values include the following:
+ // ABO (Aboriginal Peoples indigenous to Canada) CCT (Canadian citizen) LGR
+ // (Legal Representative of a Canadian Citizen or Permanent Resident) RES
+ // (Permanent resident of Canada) When ContactType is a value other than
+ // PERSON, valid values include the following: ASS (Canadian unincorporated
+ // association) CCO (Canadian corporation) EDU (Canadian educational institution)
+ // GOV (Government or government entity in Canada) HOP (Canadian Hospital)
+ // INB (Indian Band recognized by the Indian Act of Canada) LAM (Canadian
+ // Library, Archive, or Museum) MAJ (Her/His Majesty the Queen/King) OMK
+ // (Official mark registered in Canada) PLT (Canadian Political Party) PRT
+ // (Partnership Registered in Canada) TDM (Trademark registered in Canada)
+ // TRD (Canadian Trade Union) TRS (Trust established in Canada)
+ //
+ // .es
+ //
+ // * ES_IDENTIFICATION Specify the applicable value: For contacts inside
+ // Spain: Enter your passport ID. For contacts outside of Spain: Enter the
+ // VAT identification number for the company. For .es domains, the value
+ // of ContactType must be PERSON.
+ //
+ // * ES_IDENTIFICATION_TYPE Valid values include the following: DNI_AND_NIF
+ // (For Spanish contacts) NIE (For foreigners with legal residence) OTHER
+ // (For contacts outside of Spain)
+ //
+ // * ES_LEGAL_FORM Valid values include the following: ASSOCIATION CENTRAL_GOVERNMENT_BODY
+ // CIVIL_SOCIETY COMMUNITY_OF_OWNERS COMMUNITY_PROPERTY CONSULATE COOPERATIVE
+ // DESIGNATION_OF_ORIGIN_SUPERVISORY_COUNCIL ECONOMIC_INTEREST_GROUP EMBASSY
+ // ENTITY_MANAGING_NATURAL_AREAS FARM_PARTNERSHIP FOUNDATION GENERAL_AND_LIMITED_PARTNERSHIP
+ // GENERAL_PARTNERSHIP INDIVIDUAL LIMITED_COMPANY LOCAL_AUTHORITY LOCAL_PUBLIC_ENTITY
+ // MUTUAL_INSURANCE_COMPANY NATIONAL_PUBLIC_ENTITY ORDER_OR_RELIGIOUS_INSTITUTION
+ // OTHERS (Only for contacts outside of Spain) POLITICAL_PARTY PROFESSIONAL_ASSOCIATION
+ // PUBLIC_LAW_ASSOCIATION PUBLIC_LIMITED_COMPANY REGIONAL_GOVERNMENT_BODY
+ // REGIONAL_PUBLIC_ENTITY SAVINGS_BANK SPANISH_OFFICE SPORTS_ASSOCIATION
+ // SPORTS_FEDERATION SPORTS_LIMITED_COMPANY TEMPORARY_ALLIANCE_OF_ENTERPRISES
+ // TRADE_UNION WORKER_OWNED_COMPANY WORKER_OWNED_LIMITED_COMPANY
+ //
+ // .fi
+ //
+ // * BIRTH_DATE_IN_YYYY_MM_DD
+ //
+ // * FI_BUSINESS_NUMBER
+ //
+ // * FI_ID_NUMBER
+ //
+ // * FI_NATIONALITY Valid values include the following: FINNISH NOT_FINNISH
+ //
+ // * FI_ORGANIZATION_TYPE Valid values include the following: COMPANY CORPORATION
+ // GOVERNMENT INSTITUTION POLITICAL_PARTY PUBLIC_COMMUNITY TOWNSHIP
+ //
+ // .fr
+ //
+ // * BIRTH_CITY
+ //
+ // * BIRTH_COUNTRY
+ //
+ // * BIRTH_DATE_IN_YYYY_MM_DD
+ //
+ // * BIRTH_DEPARTMENT: Specify the INSEE code that corresponds with the department
+ // where the contact was born. If the contact was born somewhere other than
+ // France or its overseas departments, specify 99. For more information,
+ // including a list of departments and the corresponding INSEE numbers, see
+ // the Wikipedia entry Departments of France (https://en.wikipedia.org/wiki/Departments_of_France).
+ //
+ // * BRAND_NUMBER
+ //
+ // .it
+ //
+ // * IT_NATIONALITY
+ //
+ // * IT_PIN
+ //
+ // * IT_REGISTRANT_ENTITY_TYPE Valid values include the following: FOREIGNERS
+ // FREELANCE_WORKERS (Freelance workers and professionals) ITALIAN_COMPANIES
+ // (Italian companies and one-person companies) NON_PROFIT_ORGANIZATIONS
+ // OTHER_SUBJECTS PUBLIC_ORGANIZATIONS
+ //
+ // .ru
+ //
+ // * BIRTH_DATE_IN_YYYY_MM_DD
+ //
+ // * RU_PASSPORT_DATA
+ //
+ // .se
+ //
+ // * BIRTH_COUNTRY
+ //
+ // * SE_ID_NUMBER
+ //
+ // .sg
+ //
+ // * SG_ID_NUMBER
+ //
+ // .co.uk, .me.uk, and .org.uk
+ //
+ // * UK_CONTACT_TYPE Valid values include the following: CRC (UK Corporation
+ // by Royal Charter) FCORP (Non-UK Corporation) FIND (Non-UK Individual,
+ // representing self) FOTHER (Non-UK Entity that does not fit into any other
+ // category) GOV (UK Government Body) IND (UK Individual (representing self))
+ // IP (UK Industrial/Provident Registered Company) LLP (UK Limited Liability
+ // Partnership) LTD (UK Limited Company) OTHER (UK Entity that does not fit
+ // into any other category) PLC (UK Public Limited Company) PTNR (UK Partnership)
+ // RCHAR (UK Registered Charity) SCH (UK School) STAT (UK Statutory Body)
+ // STRA (UK Sole Trader)
+ //
+ // * UK_COMPANY_NUMBER
+ //
+ // In addition, many TLDs require a VAT_NUMBER.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"ExtraParamName"`
+
+ // The value that corresponds with the name of an extra parameter.
+ //
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ExtraParam) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExtraParam) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExtraParam) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExtraParam"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *ExtraParam) SetName(v string) *ExtraParam {
+ s.Name = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *ExtraParam) SetValue(v string) *ExtraParam {
+ s.Value = &v
+ return s
+}
+
+type GetContactReachabilityStatusInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain for which you want to know whether the registrant
+ // contact has confirmed that the email address is valid.
+ DomainName *string `locationName:"domainName" type:"string"`
+}
+
+// String returns the string representation
+func (s GetContactReachabilityStatusInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetContactReachabilityStatusInput) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetContactReachabilityStatusInput) SetDomainName(v string) *GetContactReachabilityStatusInput {
+ s.DomainName = &v
+ return s
+}
+
+type GetContactReachabilityStatusOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The domain name for which you requested the reachability status.
+ DomainName *string `locationName:"domainName" type:"string"`
+
+ // Whether the registrant contact has responded. Values include the following:
+ //
+ // PENDING
+ //
+ // We sent the confirmation email and haven't received a response yet.
+ //
+ // DONE
+ //
+ // We sent the email and got confirmation from the registrant contact.
+ //
+ // EXPIRED
+ //
+ // The time limit expired before the registrant contact responded.
+ Status *string `locationName:"status" type:"string" enum:"ReachabilityStatus"`
+}
+
+// String returns the string representation
+func (s GetContactReachabilityStatusOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetContactReachabilityStatusOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetContactReachabilityStatusOutput) SetDomainName(v string) *GetContactReachabilityStatusOutput {
+ s.DomainName = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *GetContactReachabilityStatusOutput) SetStatus(v string) *GetContactReachabilityStatusOutput {
+ s.Status = &v
+ return s
+}
+
+// The GetDomainDetail request includes the following element.
+type GetDomainDetailInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to get detailed information about.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetDomainDetailInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainDetailInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetDomainDetailInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDomainDetailInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetDomainDetailInput) SetDomainName(v string) *GetDomainDetailInput {
+ s.DomainName = &v
+ return s
+}
+
+// The GetDomainDetail response includes the following elements.
+type GetDomainDetailOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Email address to contact to report incorrect contact information for a domain,
+ // to report that the domain is being used to send spam, to report that someone
+ // is cybersquatting on a domain name, or report some other type of abuse.
+ AbuseContactEmail *string `type:"string"`
+
+ // Phone number for reporting abuse.
+ AbuseContactPhone *string `type:"string"`
+
+ // Provides details about the domain administrative contact.
+ //
+ // AdminContact is a required field
+ AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Specifies whether contact information is concealed from WHOIS queries. If
+ // the value is true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If the value is false, WHOIS queries
+ // return the information that you entered for the admin contact.
+ AdminPrivacy *bool `type:"boolean"`
+
+ // Specifies whether the domain registration is set to renew automatically.
+ AutoRenew *bool `type:"boolean"`
+
+ // The date when the domain was created as found in the response to a WHOIS
+ // query. The date and time is in Unix time format and Coordinated Universal
+ // time (UTC).
+ CreationDate *time.Time `type:"timestamp"`
+
+ // Reserved for future use.
+ DnsSec *string `type:"string"`
+
+ // The name of a domain.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The date when the registration for the domain is set to expire. The date
+ // and time is in Unix time format and Coordinated Universal time (UTC).
+ ExpirationDate *time.Time `type:"timestamp"`
+
+ // The name of the domain.
+ //
+ // Nameservers is a required field
+ Nameservers []*Nameserver `type:"list" required:"true"`
+
+ // Provides details about the domain registrant.
+ //
+ // RegistrantContact is a required field
+ RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Specifies whether contact information is concealed from WHOIS queries. If
+ // the value is true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If the value is false, WHOIS queries
+ // return the information that you entered for the registrant contact (domain
+ // owner).
+ RegistrantPrivacy *bool `type:"boolean"`
+
+ // Name of the registrar of the domain as identified in the registry. Domains
+ // with a .com, .net, or .org TLD are registered by Amazon Registrar. All other
+ // domains are registered by our registrar associate, Gandi. The value for domains
+ // that are registered by Gandi is "GANDI SAS".
+ RegistrarName *string `type:"string"`
+
+ // Web address of the registrar.
+ RegistrarUrl *string `type:"string"`
+
+ // Reserved for future use.
+ RegistryDomainId *string `type:"string"`
+
+ // Reseller of the domain. Domains registered or transferred using Route 53
+ // domains will have "Amazon" as the reseller.
+ Reseller *string `type:"string"`
+
+ // An array of domain name status codes, also known as Extensible Provisioning
+ // Protocol (EPP) status codes.
+ //
+ // ICANN, the organization that maintains a central database of domain names,
+ // has developed a set of domain name status codes that tell you the status
+ // of a variety of operations on a domain name, for example, registering a domain
+ // name, transferring a domain name to another registrar, renewing the registration
+ // for a domain name, and so on. All registrars use this same set of status
+ // codes.
+ //
+ // For a current list of domain name status codes and an explanation of what
+ // each code means, go to the ICANN website (https://www.icann.org/) and search
+ // for epp status codes. (Search on the ICANN website; web searches sometimes
+ // return an old version of the document.)
+ StatusList []*string `type:"list"`
+
+ // Provides details about the domain technical contact.
+ //
+ // TechContact is a required field
+ TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Specifies whether contact information is concealed from WHOIS queries. If
+ // the value is true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If the value is false, WHOIS queries
+ // return the information that you entered for the technical contact.
+ TechPrivacy *bool `type:"boolean"`
+
+ // The last updated date of the domain as found in the response to a WHOIS query.
+ // The date and time is in Unix time format and Coordinated Universal time (UTC).
+ UpdatedDate *time.Time `type:"timestamp"`
+
+ // The fully qualified name of the WHOIS server that can answer the WHOIS query
+ // for the domain.
+ WhoIsServer *string `type:"string"`
+}
+
+// String returns the string representation
+func (s GetDomainDetailOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainDetailOutput) GoString() string {
+ return s.String()
+}
+
+// SetAbuseContactEmail sets the AbuseContactEmail field's value.
+func (s *GetDomainDetailOutput) SetAbuseContactEmail(v string) *GetDomainDetailOutput {
+ s.AbuseContactEmail = &v
+ return s
+}
+
+// SetAbuseContactPhone sets the AbuseContactPhone field's value.
+func (s *GetDomainDetailOutput) SetAbuseContactPhone(v string) *GetDomainDetailOutput {
+ s.AbuseContactPhone = &v
+ return s
+}
+
+// SetAdminContact sets the AdminContact field's value.
+func (s *GetDomainDetailOutput) SetAdminContact(v *ContactDetail) *GetDomainDetailOutput {
+ s.AdminContact = v
+ return s
+}
+
+// SetAdminPrivacy sets the AdminPrivacy field's value.
+func (s *GetDomainDetailOutput) SetAdminPrivacy(v bool) *GetDomainDetailOutput {
+ s.AdminPrivacy = &v
+ return s
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *GetDomainDetailOutput) SetAutoRenew(v bool) *GetDomainDetailOutput {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetCreationDate sets the CreationDate field's value.
+func (s *GetDomainDetailOutput) SetCreationDate(v time.Time) *GetDomainDetailOutput {
+ s.CreationDate = &v
+ return s
+}
+
+// SetDnsSec sets the DnsSec field's value.
+func (s *GetDomainDetailOutput) SetDnsSec(v string) *GetDomainDetailOutput {
+ s.DnsSec = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetDomainDetailOutput) SetDomainName(v string) *GetDomainDetailOutput {
+ s.DomainName = &v
+ return s
+}
+
+// SetExpirationDate sets the ExpirationDate field's value.
+func (s *GetDomainDetailOutput) SetExpirationDate(v time.Time) *GetDomainDetailOutput {
+ s.ExpirationDate = &v
+ return s
+}
+
+// SetNameservers sets the Nameservers field's value.
+func (s *GetDomainDetailOutput) SetNameservers(v []*Nameserver) *GetDomainDetailOutput {
+ s.Nameservers = v
+ return s
+}
+
+// SetRegistrantContact sets the RegistrantContact field's value.
+func (s *GetDomainDetailOutput) SetRegistrantContact(v *ContactDetail) *GetDomainDetailOutput {
+ s.RegistrantContact = v
+ return s
+}
+
+// SetRegistrantPrivacy sets the RegistrantPrivacy field's value.
+func (s *GetDomainDetailOutput) SetRegistrantPrivacy(v bool) *GetDomainDetailOutput {
+ s.RegistrantPrivacy = &v
+ return s
+}
+
+// SetRegistrarName sets the RegistrarName field's value.
+func (s *GetDomainDetailOutput) SetRegistrarName(v string) *GetDomainDetailOutput {
+ s.RegistrarName = &v
+ return s
+}
+
+// SetRegistrarUrl sets the RegistrarUrl field's value.
+func (s *GetDomainDetailOutput) SetRegistrarUrl(v string) *GetDomainDetailOutput {
+ s.RegistrarUrl = &v
+ return s
+}
+
+// SetRegistryDomainId sets the RegistryDomainId field's value.
+func (s *GetDomainDetailOutput) SetRegistryDomainId(v string) *GetDomainDetailOutput {
+ s.RegistryDomainId = &v
+ return s
+}
+
+// SetReseller sets the Reseller field's value.
+func (s *GetDomainDetailOutput) SetReseller(v string) *GetDomainDetailOutput {
+ s.Reseller = &v
+ return s
+}
+
+// SetStatusList sets the StatusList field's value.
+func (s *GetDomainDetailOutput) SetStatusList(v []*string) *GetDomainDetailOutput {
+ s.StatusList = v
+ return s
+}
+
+// SetTechContact sets the TechContact field's value.
+func (s *GetDomainDetailOutput) SetTechContact(v *ContactDetail) *GetDomainDetailOutput {
+ s.TechContact = v
+ return s
+}
+
+// SetTechPrivacy sets the TechPrivacy field's value.
+func (s *GetDomainDetailOutput) SetTechPrivacy(v bool) *GetDomainDetailOutput {
+ s.TechPrivacy = &v
+ return s
+}
+
+// SetUpdatedDate sets the UpdatedDate field's value.
+func (s *GetDomainDetailOutput) SetUpdatedDate(v time.Time) *GetDomainDetailOutput {
+ s.UpdatedDate = &v
+ return s
+}
+
+// SetWhoIsServer sets the WhoIsServer field's value.
+func (s *GetDomainDetailOutput) SetWhoIsServer(v string) *GetDomainDetailOutput {
+ s.WhoIsServer = &v
+ return s
+}
+
+type GetDomainSuggestionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // A domain name that you want to use as the basis for a list of possible domain
+ // names. The top-level domain (TLD), such as .com, must be a TLD that Route
+ // 53 supports. For a list of supported TLDs, see Domains that You Can Register
+ // with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // The domain name can contain only the following characters:
+ //
+ // * Letters a through z. Domain names are not case sensitive.
+ //
+ // * Numbers 0 through 9.
+ //
+ // * Hyphen (-). You can't specify a hyphen at the beginning or end of a
+ // label.
+ //
+ // * Period (.) to separate the labels in the name, such as the . in example.com.
+ //
+ // Internationalized domain names are not supported for some top-level domains.
+ // To determine whether the TLD that you want to use supports internationalized
+ // domain names, see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html).
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // If OnlyAvailable is true, Route 53 returns only domain names that are available.
+ // If OnlyAvailable is false, Route 53 returns domain names without checking
+ // whether they're available to be registered. To determine whether the domain
+ // is available, you can call checkDomainAvailability for each suggestion.
+ //
+ // OnlyAvailable is a required field
+ OnlyAvailable *bool `type:"boolean" required:"true"`
+
+ // The number of suggested domain names that you want Route 53 to return. Specify
+ // a value between 1 and 50.
+ //
+ // SuggestionCount is a required field
+ SuggestionCount *int64 `type:"integer" required:"true"`
+}
+
+// String returns the string representation
+func (s GetDomainSuggestionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainSuggestionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetDomainSuggestionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDomainSuggestionsInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.OnlyAvailable == nil {
+ invalidParams.Add(request.NewErrParamRequired("OnlyAvailable"))
+ }
+ if s.SuggestionCount == nil {
+ invalidParams.Add(request.NewErrParamRequired("SuggestionCount"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetDomainSuggestionsInput) SetDomainName(v string) *GetDomainSuggestionsInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetOnlyAvailable sets the OnlyAvailable field's value.
+func (s *GetDomainSuggestionsInput) SetOnlyAvailable(v bool) *GetDomainSuggestionsInput {
+ s.OnlyAvailable = &v
+ return s
+}
+
+// SetSuggestionCount sets the SuggestionCount field's value.
+func (s *GetDomainSuggestionsInput) SetSuggestionCount(v int64) *GetDomainSuggestionsInput {
+ s.SuggestionCount = &v
+ return s
+}
+
+type GetDomainSuggestionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of possible domain names. If you specified true for OnlyAvailable
+ // in the request, the list contains only domains that are available for registration.
+ SuggestionsList []*DomainSuggestion `type:"list"`
+}
+
+// String returns the string representation
+func (s GetDomainSuggestionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainSuggestionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetSuggestionsList sets the SuggestionsList field's value.
+func (s *GetDomainSuggestionsOutput) SetSuggestionsList(v []*DomainSuggestion) *GetDomainSuggestionsOutput {
+ s.SuggestionsList = v
+ return s
+}
+
+// The GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html)
+// request includes the following element.
+type GetOperationDetailInput struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier for the operation for which you want to get the status. Route
+ // 53 returned the identifier in the response to the original request.
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetOperationDetailInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetOperationDetailInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetOperationDetailInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetOperationDetailInput"}
+ if s.OperationId == nil {
+ invalidParams.Add(request.NewErrParamRequired("OperationId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *GetOperationDetailInput) SetOperationId(v string) *GetOperationDetailInput {
+ s.OperationId = &v
+ return s
+}
+
+// The GetOperationDetail response includes the following elements.
+type GetOperationDetailOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of a domain.
+ DomainName *string `type:"string"`
+
+ // Detailed information on the status including possible errors.
+ Message *string `type:"string"`
+
+ // The identifier for the operation.
+ OperationId *string `type:"string"`
+
+ // The current status of the requested operation in the system.
+ Status *string `type:"string" enum:"OperationStatus"`
+
+ // The date when the request was submitted.
+ SubmittedDate *time.Time `type:"timestamp"`
+
+ // The type of operation that was requested.
+ Type *string `type:"string" enum:"OperationType"`
+}
+
+// String returns the string representation
+func (s GetOperationDetailOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetOperationDetailOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *GetOperationDetailOutput) SetDomainName(v string) *GetOperationDetailOutput {
+ s.DomainName = &v
+ return s
+}
+
+// SetMessage sets the Message field's value.
+func (s *GetOperationDetailOutput) SetMessage(v string) *GetOperationDetailOutput {
+ s.Message = &v
+ return s
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *GetOperationDetailOutput) SetOperationId(v string) *GetOperationDetailOutput {
+ s.OperationId = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *GetOperationDetailOutput) SetStatus(v string) *GetOperationDetailOutput {
+ s.Status = &v
+ return s
+}
+
+// SetSubmittedDate sets the SubmittedDate field's value.
+func (s *GetOperationDetailOutput) SetSubmittedDate(v time.Time) *GetOperationDetailOutput {
+ s.SubmittedDate = &v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *GetOperationDetailOutput) SetType(v string) *GetOperationDetailOutput {
+ s.Type = &v
+ return s
+}
+
+// The requested item is not acceptable. For example, for APIs that accept a
+// domain name, the request might specify a domain name that doesn't belong
+// to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+// the password might be invalid.
+type InvalidInput struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The requested item is not acceptable. For example, for an OperationId it
+ // might refer to the ID of an operation that is already completed. For a domain
+ // name, it might not be a valid domain name or belong to the requester account.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s InvalidInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s InvalidInput) GoString() string {
+ return s.String()
+}
+
+func newErrorInvalidInput(v protocol.ResponseMetadata) error {
+ return &InvalidInput{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *InvalidInput) Code() string {
+ return "InvalidInput"
+}
+
+// Message returns the exception's message.
+func (s *InvalidInput) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *InvalidInput) OrigErr() error {
+ return nil
+}
+
+func (s *InvalidInput) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *InvalidInput) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *InvalidInput) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The ListDomains request includes the following elements.
+type ListDomainsInput struct {
+ _ struct{} `type:"structure"`
+
+ // For an initial request for a list of domains, omit this element. If the number
+ // of domains that are associated with the current AWS account is greater than
+ // the value that you specified for MaxItems, you can use Marker to return additional
+ // domains. Get the value of NextPageMarker from the previous response, and
+ // submit another request that includes the value of NextPageMarker in the Marker
+ // element.
+ //
+ // Constraints: The marker must match the value specified in the previous request.
+ Marker *string `type:"string"`
+
+ // Number of domains to be returned.
+ //
+ // Default: 20
+ MaxItems *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s ListDomainsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsInput) GoString() string {
+ return s.String()
+}
+
+// SetMarker sets the Marker field's value.
+func (s *ListDomainsInput) SetMarker(v string) *ListDomainsInput {
+ s.Marker = &v
+ return s
+}
+
+// SetMaxItems sets the MaxItems field's value.
+func (s *ListDomainsInput) SetMaxItems(v int64) *ListDomainsInput {
+ s.MaxItems = &v
+ return s
+}
+
+// The ListDomains response includes the following elements.
+type ListDomainsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A summary of domains.
+ //
+ // Domains is a required field
+ Domains []*DomainSummary `type:"list" required:"true"`
+
+ // If there are more domains than you specified for MaxItems in the request,
+ // submit another request and include the value of NextPageMarker in the value
+ // of Marker.
+ NextPageMarker *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ListDomainsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomains sets the Domains field's value.
+func (s *ListDomainsOutput) SetDomains(v []*DomainSummary) *ListDomainsOutput {
+ s.Domains = v
+ return s
+}
+
+// SetNextPageMarker sets the NextPageMarker field's value.
+func (s *ListDomainsOutput) SetNextPageMarker(v string) *ListDomainsOutput {
+ s.NextPageMarker = &v
+ return s
+}
+
+// The ListOperations request includes the following elements.
+type ListOperationsInput struct {
+ _ struct{} `type:"structure"`
+
+ // For an initial request for a list of operations, omit this element. If the
+ // number of operations that are not yet complete is greater than the value
+ // that you specified for MaxItems, you can use Marker to return additional
+ // operations. Get the value of NextPageMarker from the previous response, and
+ // submit another request that includes the value of NextPageMarker in the Marker
+ // element.
+ Marker *string `type:"string"`
+
+ // Number of domains to be returned.
+ //
+ // Default: 20
+ MaxItems *int64 `type:"integer"`
+
+ // An optional parameter that lets you get information about all the operations
+ // that you submitted after a specified date and time. Specify the date and
+ // time in Unix time format and Coordinated Universal time (UTC).
+ SubmittedSince *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation
+func (s ListOperationsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListOperationsInput) GoString() string {
+ return s.String()
+}
+
+// SetMarker sets the Marker field's value.
+func (s *ListOperationsInput) SetMarker(v string) *ListOperationsInput {
+ s.Marker = &v
+ return s
+}
+
+// SetMaxItems sets the MaxItems field's value.
+func (s *ListOperationsInput) SetMaxItems(v int64) *ListOperationsInput {
+ s.MaxItems = &v
+ return s
+}
+
+// SetSubmittedSince sets the SubmittedSince field's value.
+func (s *ListOperationsInput) SetSubmittedSince(v time.Time) *ListOperationsInput {
+ s.SubmittedSince = &v
+ return s
+}
+
+// The ListOperations response includes the following elements.
+type ListOperationsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // If there are more operations than you specified for MaxItems in the request,
+ // submit another request and include the value of NextPageMarker in the value
+ // of Marker.
+ NextPageMarker *string `type:"string"`
+
+ // Lists summaries of the operations.
+ //
+ // Operations is a required field
+ Operations []*OperationSummary `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s ListOperationsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListOperationsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextPageMarker sets the NextPageMarker field's value.
+func (s *ListOperationsOutput) SetNextPageMarker(v string) *ListOperationsOutput {
+ s.NextPageMarker = &v
+ return s
+}
+
+// SetOperations sets the Operations field's value.
+func (s *ListOperationsOutput) SetOperations(v []*OperationSummary) *ListOperationsOutput {
+ s.Operations = v
+ return s
+}
+
+// The ListTagsForDomainRequest includes the following elements.
+type ListTagsForDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // The domain for which you want to get a list of tags.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ListTagsForDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForDomainInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *ListTagsForDomainInput) SetDomainName(v string) *ListTagsForDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// The ListTagsForDomain response includes the following elements.
+type ListTagsForDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of the tags that are associated with the specified domain.
+ //
+ // TagList is a required field
+ TagList []*Tag `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s ListTagsForDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetTagList sets the TagList field's value.
+func (s *ListTagsForDomainOutput) SetTagList(v []*Tag) *ListTagsForDomainOutput {
+ s.TagList = v
+ return s
+}
+
+// Nameserver includes the following elements.
+type Nameserver struct {
+ _ struct{} `type:"structure"`
+
+ // Glue IP address of a name server entry. Glue IP addresses are required only
+ // when the name of the name server is a subdomain of the domain. For example,
+ // if your domain is example.com and the name server for the domain is ns.example.com,
+ // you need to specify the IP address for ns.example.com.
+ //
+ // Constraints: The list can contain only one IPv4 and one IPv6 address.
+ GlueIps []*string `type:"list"`
+
+ // The fully qualified host name of the name server.
+ //
+ // Constraint: Maximum 255 characters
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s Nameserver) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Nameserver) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Nameserver) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Nameserver"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGlueIps sets the GlueIps field's value.
+func (s *Nameserver) SetGlueIps(v []*string) *Nameserver {
+ s.GlueIps = v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *Nameserver) SetName(v string) *Nameserver {
+ s.Name = &v
+ return s
+}
+
+// The number of operations or jobs running exceeded the allowed threshold for
+// the account.
+type OperationLimitExceeded struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The number of operations or jobs running exceeded the allowed threshold for
+ // the account.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s OperationLimitExceeded) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s OperationLimitExceeded) GoString() string {
+ return s.String()
+}
+
+func newErrorOperationLimitExceeded(v protocol.ResponseMetadata) error {
+ return &OperationLimitExceeded{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *OperationLimitExceeded) Code() string {
+ return "OperationLimitExceeded"
+}
+
+// Message returns the exception's message.
+func (s *OperationLimitExceeded) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *OperationLimitExceeded) OrigErr() error {
+ return nil
+}
+
+func (s *OperationLimitExceeded) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *OperationLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *OperationLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// OperationSummary includes the following elements.
+type OperationSummary struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier returned to track the requested action.
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+
+ // The current status of the requested operation in the system.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"OperationStatus"`
+
+ // The date when the request was submitted.
+ //
+ // SubmittedDate is a required field
+ SubmittedDate *time.Time `type:"timestamp" required:"true"`
+
+ // Type of the action requested.
+ //
+ // Type is a required field
+ Type *string `type:"string" required:"true" enum:"OperationType"`
+}
+
+// String returns the string representation
+func (s OperationSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s OperationSummary) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *OperationSummary) SetOperationId(v string) *OperationSummary {
+ s.OperationId = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *OperationSummary) SetStatus(v string) *OperationSummary {
+ s.Status = &v
+ return s
+}
+
+// SetSubmittedDate sets the SubmittedDate field's value.
+func (s *OperationSummary) SetSubmittedDate(v time.Time) *OperationSummary {
+ s.SubmittedDate = &v
+ return s
+}
+
+// SetType sets the Type field's value.
+func (s *OperationSummary) SetType(v string) *OperationSummary {
+ s.Type = &v
+ return s
+}
+
+// The RegisterDomain request includes the following elements.
+type RegisterDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // Provides detailed contact information. For information about the values that
+ // you specify for each element, see ContactDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
+ //
+ // AdminContact is a required field
+ AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Indicates whether the domain will be automatically renewed (true) or not
+ // (false). Autorenewal only takes effect after the account is charged.
+ //
+ // Default: true
+ AutoRenew *bool `type:"boolean"`
+
+ // The domain name that you want to register. The top-level domain (TLD), such
+ // as .com, must be a TLD that Route 53 supports. For a list of supported TLDs,
+ // see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // The domain name can contain only the following characters:
+ //
+ // * Letters a through z. Domain names are not case sensitive.
+ //
+ // * Numbers 0 through 9.
+ //
+ // * Hyphen (-). You can't specify a hyphen at the beginning or end of a
+ // label.
+ //
+ // * Period (.) to separate the labels in the name, such as the . in example.com.
+ //
+ // Internationalized domain names are not supported for some top-level domains.
+ // To determine whether the TLD that you want to use supports internationalized
+ // domain names, see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html).
+ // For more information, see Formatting Internationalized Domain Names (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns).
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The number of years that you want to register the domain for. Domains are
+ // registered for a minimum of one year. The maximum period depends on the top-level
+ // domain. For the range of valid values for your domain, see Domains that You
+ // Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // Default: 1
+ //
+ // DurationInYears is a required field
+ DurationInYears *int64 `min:"1" type:"integer" required:"true"`
+
+ // Reserved for future use.
+ IdnLangCode *string `type:"string"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the admin contact.
+ //
+ // Default: true
+ PrivacyProtectAdminContact *bool `type:"boolean"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the registrant contact (the domain
+ // owner).
+ //
+ // Default: true
+ PrivacyProtectRegistrantContact *bool `type:"boolean"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the technical contact.
+ //
+ // Default: true
+ PrivacyProtectTechContact *bool `type:"boolean"`
+
+ // Provides detailed contact information. For information about the values that
+ // you specify for each element, see ContactDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
+ //
+ // RegistrantContact is a required field
+ RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Provides detailed contact information. For information about the values that
+ // you specify for each element, see ContactDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
+ //
+ // TechContact is a required field
+ TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+}
+
+// String returns the string representation
+func (s RegisterDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RegisterDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RegisterDomainInput"}
+ if s.AdminContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("AdminContact"))
+ }
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DurationInYears == nil {
+ invalidParams.Add(request.NewErrParamRequired("DurationInYears"))
+ }
+ if s.DurationInYears != nil && *s.DurationInYears < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("DurationInYears", 1))
+ }
+ if s.RegistrantContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("RegistrantContact"))
+ }
+ if s.TechContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("TechContact"))
+ }
+ if s.AdminContact != nil {
+ if err := s.AdminContact.Validate(); err != nil {
+ invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.RegistrantContact != nil {
+ if err := s.RegistrantContact.Validate(); err != nil {
+ invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.TechContact != nil {
+ if err := s.TechContact.Validate(); err != nil {
+ invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminContact sets the AdminContact field's value.
+func (s *RegisterDomainInput) SetAdminContact(v *ContactDetail) *RegisterDomainInput {
+ s.AdminContact = v
+ return s
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *RegisterDomainInput) SetAutoRenew(v bool) *RegisterDomainInput {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RegisterDomainInput) SetDomainName(v string) *RegisterDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetDurationInYears sets the DurationInYears field's value.
+func (s *RegisterDomainInput) SetDurationInYears(v int64) *RegisterDomainInput {
+ s.DurationInYears = &v
+ return s
+}
+
+// SetIdnLangCode sets the IdnLangCode field's value.
+func (s *RegisterDomainInput) SetIdnLangCode(v string) *RegisterDomainInput {
+ s.IdnLangCode = &v
+ return s
+}
+
+// SetPrivacyProtectAdminContact sets the PrivacyProtectAdminContact field's value.
+func (s *RegisterDomainInput) SetPrivacyProtectAdminContact(v bool) *RegisterDomainInput {
+ s.PrivacyProtectAdminContact = &v
+ return s
+}
+
+// SetPrivacyProtectRegistrantContact sets the PrivacyProtectRegistrantContact field's value.
+func (s *RegisterDomainInput) SetPrivacyProtectRegistrantContact(v bool) *RegisterDomainInput {
+ s.PrivacyProtectRegistrantContact = &v
+ return s
+}
+
+// SetPrivacyProtectTechContact sets the PrivacyProtectTechContact field's value.
+func (s *RegisterDomainInput) SetPrivacyProtectTechContact(v bool) *RegisterDomainInput {
+ s.PrivacyProtectTechContact = &v
+ return s
+}
+
+// SetRegistrantContact sets the RegistrantContact field's value.
+func (s *RegisterDomainInput) SetRegistrantContact(v *ContactDetail) *RegisterDomainInput {
+ s.RegistrantContact = v
+ return s
+}
+
+// SetTechContact sets the TechContact field's value.
+func (s *RegisterDomainInput) SetTechContact(v *ContactDetail) *RegisterDomainInput {
+ s.TechContact = v
+ return s
+}
+
+// The RegisterDomain response includes the following element.
+type RegisterDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RegisterDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RegisterDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *RegisterDomainOutput) SetOperationId(v string) *RegisterDomainOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The RejectDomainTransferFromAnotherAwsAccount request includes the following
+// element.
+type RejectDomainTransferFromAnotherAwsAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that was specified when another AWS account submitted
+ // a TransferDomainToAnotherAwsAccount (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html)
+ // request.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RejectDomainTransferFromAnotherAwsAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RejectDomainTransferFromAnotherAwsAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RejectDomainTransferFromAnotherAwsAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RejectDomainTransferFromAnotherAwsAccountInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RejectDomainTransferFromAnotherAwsAccountInput) SetDomainName(v string) *RejectDomainTransferFromAnotherAwsAccountInput {
+ s.DomainName = &v
+ return s
+}
+
+// The RejectDomainTransferFromAnotherAwsAccount response includes the following
+// element.
+type RejectDomainTransferFromAnotherAwsAccountOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier that TransferDomainToAnotherAwsAccount returned to track the
+ // progress of the request. Because the transfer request was rejected, the value
+ // is no longer valid, and you can't use GetOperationDetail to query the operation
+ // status.
+ OperationId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s RejectDomainTransferFromAnotherAwsAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RejectDomainTransferFromAnotherAwsAccountOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *RejectDomainTransferFromAnotherAwsAccountOutput) SetOperationId(v string) *RejectDomainTransferFromAnotherAwsAccountOutput {
+ s.OperationId = &v
+ return s
+}
+
+// A RenewDomain request includes the number of years that you want to renew
+// for and the current expiration year.
+type RenewDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // The year when the registration for the domain is set to expire. This value
+ // must match the current expiration date for the domain.
+ //
+ // CurrentExpiryYear is a required field
+ CurrentExpiryYear *int64 `type:"integer" required:"true"`
+
+ // The name of the domain that you want to renew.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The number of years that you want to renew the domain for. The maximum number
+ // of years depends on the top-level domain. For the range of valid values for
+ // your domain, see Domains that You Can Register with Amazon Route 53 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // Default: 1
+ DurationInYears *int64 `min:"1" type:"integer"`
+}
+
+// String returns the string representation
+func (s RenewDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RenewDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RenewDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RenewDomainInput"}
+ if s.CurrentExpiryYear == nil {
+ invalidParams.Add(request.NewErrParamRequired("CurrentExpiryYear"))
+ }
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DurationInYears != nil && *s.DurationInYears < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("DurationInYears", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCurrentExpiryYear sets the CurrentExpiryYear field's value.
+func (s *RenewDomainInput) SetCurrentExpiryYear(v int64) *RenewDomainInput {
+ s.CurrentExpiryYear = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RenewDomainInput) SetDomainName(v string) *RenewDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetDurationInYears sets the DurationInYears field's value.
+func (s *RenewDomainInput) SetDurationInYears(v int64) *RenewDomainInput {
+ s.DurationInYears = &v
+ return s
+}
+
+type RenewDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RenewDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RenewDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *RenewDomainOutput) SetOperationId(v string) *RenewDomainOutput {
+ s.OperationId = &v
+ return s
+}
+
+type ResendContactReachabilityEmailInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain for which you want Route 53 to resend a confirmation
+ // email to the registrant contact.
+ DomainName *string `locationName:"domainName" type:"string"`
+}
+
+// String returns the string representation
+func (s ResendContactReachabilityEmailInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResendContactReachabilityEmailInput) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *ResendContactReachabilityEmailInput) SetDomainName(v string) *ResendContactReachabilityEmailInput {
+ s.DomainName = &v
+ return s
+}
+
+type ResendContactReachabilityEmailOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The domain name for which you requested a confirmation email.
+ DomainName *string `locationName:"domainName" type:"string"`
+
+ // The email address for the registrant contact at the time that we sent the
+ // verification email.
+ EmailAddress *string `locationName:"emailAddress" type:"string"`
+
+ // True if the email address for the registrant contact has already been verified,
+ // and false otherwise. If the email address has already been verified, we don't
+ // send another confirmation email.
+ IsAlreadyVerified *bool `locationName:"isAlreadyVerified" type:"boolean"`
+}
+
+// String returns the string representation
+func (s ResendContactReachabilityEmailOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResendContactReachabilityEmailOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *ResendContactReachabilityEmailOutput) SetDomainName(v string) *ResendContactReachabilityEmailOutput {
+ s.DomainName = &v
+ return s
+}
+
+// SetEmailAddress sets the EmailAddress field's value.
+func (s *ResendContactReachabilityEmailOutput) SetEmailAddress(v string) *ResendContactReachabilityEmailOutput {
+ s.EmailAddress = &v
+ return s
+}
+
+// SetIsAlreadyVerified sets the IsAlreadyVerified field's value.
+func (s *ResendContactReachabilityEmailOutput) SetIsAlreadyVerified(v bool) *ResendContactReachabilityEmailOutput {
+ s.IsAlreadyVerified = &v
+ return s
+}
+
+// A request for the authorization code for the specified domain. To transfer
+// a domain to another registrar, you provide this value to the new registrar.
+type RetrieveDomainAuthCodeInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to get an authorization code for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s RetrieveDomainAuthCodeInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RetrieveDomainAuthCodeInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RetrieveDomainAuthCodeInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RetrieveDomainAuthCodeInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RetrieveDomainAuthCodeInput) SetDomainName(v string) *RetrieveDomainAuthCodeInput {
+ s.DomainName = &v
+ return s
+}
+
+// The RetrieveDomainAuthCode response includes the following element.
+type RetrieveDomainAuthCodeOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The authorization code for the domain.
+ //
+ // AuthCode is a required field
+ AuthCode *string `type:"string" required:"true" sensitive:"true"`
+}
+
+// String returns the string representation
+func (s RetrieveDomainAuthCodeOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RetrieveDomainAuthCodeOutput) GoString() string {
+ return s.String()
+}
+
+// SetAuthCode sets the AuthCode field's value.
+func (s *RetrieveDomainAuthCodeOutput) SetAuthCode(v string) *RetrieveDomainAuthCodeOutput {
+ s.AuthCode = &v
+ return s
+}
+
+// The top-level domain does not support this operation.
+type TLDRulesViolation struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The top-level domain does not support this operation.
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s TLDRulesViolation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TLDRulesViolation) GoString() string {
+ return s.String()
+}
+
+func newErrorTLDRulesViolation(v protocol.ResponseMetadata) error {
+ return &TLDRulesViolation{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TLDRulesViolation) Code() string {
+ return "TLDRulesViolation"
+}
+
+// Message returns the exception's message.
+func (s *TLDRulesViolation) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TLDRulesViolation) OrigErr() error {
+ return nil
+}
+
+func (s *TLDRulesViolation) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TLDRulesViolation) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TLDRulesViolation) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Each tag includes the following elements.
+type Tag struct {
+ _ struct{} `type:"structure"`
+
+ // The key (name) of a tag.
+ //
+ // Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"
+ //
+ // Constraints: Each key can be 1-128 characters long.
+ Key *string `type:"string"`
+
+ // The value of a tag.
+ //
+ // Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"
+ //
+ // Constraints: Each value can be 0-256 characters long.
+ Value *string `type:"string"`
+}
+
+// String returns the string representation
+func (s Tag) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Tag) GoString() string {
+ return s.String()
+}
+
+// SetKey sets the Key field's value.
+func (s *Tag) SetKey(v string) *Tag {
+ s.Key = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *Tag) SetValue(v string) *Tag {
+ s.Value = &v
+ return s
+}
+
+// The TransferDomain request includes the following elements.
+type TransferDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // Provides detailed contact information.
+ //
+ // AdminContact is a required field
+ AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // The authorization code for the domain. You get this value from the current
+ // registrar.
+ AuthCode *string `type:"string" sensitive:"true"`
+
+ // Indicates whether the domain will be automatically renewed (true) or not
+ // (false). Autorenewal only takes effect after the account is charged.
+ //
+ // Default: true
+ AutoRenew *bool `type:"boolean"`
+
+ // The name of the domain that you want to transfer to Route 53. The top-level
+ // domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list
+ // of supported TLDs, see Domains that You Can Register with Amazon Route 53
+ // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
+ // in the Amazon Route 53 Developer Guide.
+ //
+ // The domain name can contain only the following characters:
+ //
+ // * Letters a through z. Domain names are not case sensitive.
+ //
+ // * Numbers 0 through 9.
+ //
+ // * Hyphen (-). You can't specify a hyphen at the beginning or end of a
+ // label.
+ //
+ // * Period (.) to separate the labels in the name, such as the . in example.com.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The number of years that you want to register the domain for. Domains are
+ // registered for a minimum of one year. The maximum period depends on the top-level
+ // domain.
+ //
+ // Default: 1
+ //
+ // DurationInYears is a required field
+ DurationInYears *int64 `min:"1" type:"integer" required:"true"`
+
+ // Reserved for future use.
+ IdnLangCode *string `type:"string"`
+
+ // Contains details for the host and glue IP addresses.
+ Nameservers []*Nameserver `type:"list"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the admin contact.
+ //
+ // Default: true
+ PrivacyProtectAdminContact *bool `type:"boolean"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the registrant contact (domain
+ // owner).
+ //
+ // Default: true
+ PrivacyProtectRegistrantContact *bool `type:"boolean"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the technical contact.
+ //
+ // Default: true
+ PrivacyProtectTechContact *bool `type:"boolean"`
+
+ // Provides detailed contact information.
+ //
+ // RegistrantContact is a required field
+ RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+
+ // Provides detailed contact information.
+ //
+ // TechContact is a required field
+ TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"`
+}
+
+// String returns the string representation
+func (s TransferDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TransferDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TransferDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TransferDomainInput"}
+ if s.AdminContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("AdminContact"))
+ }
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.DurationInYears == nil {
+ invalidParams.Add(request.NewErrParamRequired("DurationInYears"))
+ }
+ if s.DurationInYears != nil && *s.DurationInYears < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("DurationInYears", 1))
+ }
+ if s.RegistrantContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("RegistrantContact"))
+ }
+ if s.TechContact == nil {
+ invalidParams.Add(request.NewErrParamRequired("TechContact"))
+ }
+ if s.AdminContact != nil {
+ if err := s.AdminContact.Validate(); err != nil {
+ invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Nameservers != nil {
+ for i, v := range s.Nameservers {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Nameservers", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.RegistrantContact != nil {
+ if err := s.RegistrantContact.Validate(); err != nil {
+ invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.TechContact != nil {
+ if err := s.TechContact.Validate(); err != nil {
+ invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminContact sets the AdminContact field's value.
+func (s *TransferDomainInput) SetAdminContact(v *ContactDetail) *TransferDomainInput {
+ s.AdminContact = v
+ return s
+}
+
+// SetAuthCode sets the AuthCode field's value.
+func (s *TransferDomainInput) SetAuthCode(v string) *TransferDomainInput {
+ s.AuthCode = &v
+ return s
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *TransferDomainInput) SetAutoRenew(v bool) *TransferDomainInput {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *TransferDomainInput) SetDomainName(v string) *TransferDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetDurationInYears sets the DurationInYears field's value.
+func (s *TransferDomainInput) SetDurationInYears(v int64) *TransferDomainInput {
+ s.DurationInYears = &v
+ return s
+}
+
+// SetIdnLangCode sets the IdnLangCode field's value.
+func (s *TransferDomainInput) SetIdnLangCode(v string) *TransferDomainInput {
+ s.IdnLangCode = &v
+ return s
+}
+
+// SetNameservers sets the Nameservers field's value.
+func (s *TransferDomainInput) SetNameservers(v []*Nameserver) *TransferDomainInput {
+ s.Nameservers = v
+ return s
+}
+
+// SetPrivacyProtectAdminContact sets the PrivacyProtectAdminContact field's value.
+func (s *TransferDomainInput) SetPrivacyProtectAdminContact(v bool) *TransferDomainInput {
+ s.PrivacyProtectAdminContact = &v
+ return s
+}
+
+// SetPrivacyProtectRegistrantContact sets the PrivacyProtectRegistrantContact field's value.
+func (s *TransferDomainInput) SetPrivacyProtectRegistrantContact(v bool) *TransferDomainInput {
+ s.PrivacyProtectRegistrantContact = &v
+ return s
+}
+
+// SetPrivacyProtectTechContact sets the PrivacyProtectTechContact field's value.
+func (s *TransferDomainInput) SetPrivacyProtectTechContact(v bool) *TransferDomainInput {
+ s.PrivacyProtectTechContact = &v
+ return s
+}
+
+// SetRegistrantContact sets the RegistrantContact field's value.
+func (s *TransferDomainInput) SetRegistrantContact(v *ContactDetail) *TransferDomainInput {
+ s.RegistrantContact = v
+ return s
+}
+
+// SetTechContact sets the TechContact field's value.
+func (s *TransferDomainInput) SetTechContact(v *ContactDetail) *TransferDomainInput {
+ s.TechContact = v
+ return s
+}
+
+// The TransferDomain response includes the following element.
+type TransferDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s TransferDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TransferDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *TransferDomainOutput) SetOperationId(v string) *TransferDomainOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The TransferDomainToAnotherAwsAccount request includes the following elements.
+type TransferDomainToAnotherAwsAccountInput struct {
+ _ struct{} `type:"structure"`
+
+ // The account ID of the AWS account that you want to transfer the domain to,
+ // for example, 111122223333.
+ //
+ // AccountId is a required field
+ AccountId *string `type:"string" required:"true"`
+
+ // The name of the domain that you want to transfer from the current AWS account
+ // to another account.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s TransferDomainToAnotherAwsAccountInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TransferDomainToAnotherAwsAccountInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TransferDomainToAnotherAwsAccountInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TransferDomainToAnotherAwsAccountInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *TransferDomainToAnotherAwsAccountInput) SetAccountId(v string) *TransferDomainToAnotherAwsAccountInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *TransferDomainToAnotherAwsAccountInput) SetDomainName(v string) *TransferDomainToAnotherAwsAccountInput {
+ s.DomainName = &v
+ return s
+}
+
+// The TransferDomainToAnotherAwsAccount response includes the following elements.
+type TransferDomainToAnotherAwsAccountOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ OperationId *string `type:"string"`
+
+ // To finish transferring a domain to another AWS account, the account that
+ // the domain is being transferred to must submit an AcceptDomainTransferFromAnotherAwsAccount
+ // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html)
+ // request. The request must include the value of the Password element that
+ // was returned in the TransferDomainToAnotherAwsAccount response.
+ Password *string `type:"string"`
+}
+
+// String returns the string representation
+func (s TransferDomainToAnotherAwsAccountOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TransferDomainToAnotherAwsAccountOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *TransferDomainToAnotherAwsAccountOutput) SetOperationId(v string) *TransferDomainToAnotherAwsAccountOutput {
+ s.OperationId = &v
+ return s
+}
+
+// SetPassword sets the Password field's value.
+func (s *TransferDomainToAnotherAwsAccountOutput) SetPassword(v string) *TransferDomainToAnotherAwsAccountOutput {
+ s.Password = &v
+ return s
+}
+
+// Amazon Route 53 does not support this top-level domain (TLD).
+type UnsupportedTLD struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // Amazon Route 53 does not support this top-level domain (TLD).
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s UnsupportedTLD) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UnsupportedTLD) GoString() string {
+ return s.String()
+}
+
+func newErrorUnsupportedTLD(v protocol.ResponseMetadata) error {
+ return &UnsupportedTLD{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *UnsupportedTLD) Code() string {
+ return "UnsupportedTLD"
+}
+
+// Message returns the exception's message.
+func (s *UnsupportedTLD) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *UnsupportedTLD) OrigErr() error {
+ return nil
+}
+
+func (s *UnsupportedTLD) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *UnsupportedTLD) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *UnsupportedTLD) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The UpdateDomainContact request includes the following elements.
+type UpdateDomainContactInput struct {
+ _ struct{} `type:"structure"`
+
+ // Provides detailed contact information.
+ AdminContact *ContactDetail `type:"structure" sensitive:"true"`
+
+ // The name of the domain that you want to update contact information for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // Provides detailed contact information.
+ RegistrantContact *ContactDetail `type:"structure" sensitive:"true"`
+
+ // Provides detailed contact information.
+ TechContact *ContactDetail `type:"structure" sensitive:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDomainContactInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainContactInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateDomainContactInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateDomainContactInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.AdminContact != nil {
+ if err := s.AdminContact.Validate(); err != nil {
+ invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.RegistrantContact != nil {
+ if err := s.RegistrantContact.Validate(); err != nil {
+ invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.TechContact != nil {
+ if err := s.TechContact.Validate(); err != nil {
+ invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminContact sets the AdminContact field's value.
+func (s *UpdateDomainContactInput) SetAdminContact(v *ContactDetail) *UpdateDomainContactInput {
+ s.AdminContact = v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *UpdateDomainContactInput) SetDomainName(v string) *UpdateDomainContactInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetRegistrantContact sets the RegistrantContact field's value.
+func (s *UpdateDomainContactInput) SetRegistrantContact(v *ContactDetail) *UpdateDomainContactInput {
+ s.RegistrantContact = v
+ return s
+}
+
+// SetTechContact sets the TechContact field's value.
+func (s *UpdateDomainContactInput) SetTechContact(v *ContactDetail) *UpdateDomainContactInput {
+ s.TechContact = v
+ return s
+}
+
+// The UpdateDomainContact response includes the following element.
+type UpdateDomainContactOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDomainContactOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainContactOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *UpdateDomainContactOutput) SetOperationId(v string) *UpdateDomainContactOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The UpdateDomainContactPrivacy request includes the following elements.
+type UpdateDomainContactPrivacyInput struct {
+ _ struct{} `type:"structure"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the admin contact.
+ AdminPrivacy *bool `type:"boolean"`
+
+ // The name of the domain that you want to update the privacy setting for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the registrant contact (domain
+ // owner).
+ RegistrantPrivacy *bool `type:"boolean"`
+
+ // Whether you want to conceal contact information from WHOIS queries. If you
+ // specify true, WHOIS ("who is") queries return contact information either
+ // for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
+ // associate, Gandi (for all other TLDs). If you specify false, WHOIS queries
+ // return the information that you entered for the technical contact.
+ TechPrivacy *bool `type:"boolean"`
+}
+
+// String returns the string representation
+func (s UpdateDomainContactPrivacyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainContactPrivacyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateDomainContactPrivacyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateDomainContactPrivacyInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdminPrivacy sets the AdminPrivacy field's value.
+func (s *UpdateDomainContactPrivacyInput) SetAdminPrivacy(v bool) *UpdateDomainContactPrivacyInput {
+ s.AdminPrivacy = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *UpdateDomainContactPrivacyInput) SetDomainName(v string) *UpdateDomainContactPrivacyInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetRegistrantPrivacy sets the RegistrantPrivacy field's value.
+func (s *UpdateDomainContactPrivacyInput) SetRegistrantPrivacy(v bool) *UpdateDomainContactPrivacyInput {
+ s.RegistrantPrivacy = &v
+ return s
+}
+
+// SetTechPrivacy sets the TechPrivacy field's value.
+func (s *UpdateDomainContactPrivacyInput) SetTechPrivacy(v bool) *UpdateDomainContactPrivacyInput {
+ s.TechPrivacy = &v
+ return s
+}
+
+// The UpdateDomainContactPrivacy response includes the following element.
+type UpdateDomainContactPrivacyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To use this ID to query
+ // the operation status, use GetOperationDetail.
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDomainContactPrivacyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainContactPrivacyOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *UpdateDomainContactPrivacyOutput) SetOperationId(v string) *UpdateDomainContactPrivacyOutput {
+ s.OperationId = &v
+ return s
+}
+
+// Replaces the current set of name servers for the domain with the specified
+// set of name servers. If you use Amazon Route 53 as your DNS service, specify
+// the four name servers in the delegation set for the hosted zone for the domain.
+//
+// If successful, this operation returns an operation ID that you can use to
+// track the progress and completion of the action. If the request is not completed
+// successfully, the domain registrant will be notified by email.
+type UpdateDomainNameserversInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the domain that you want to change name servers for.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // The authorization key for .fi domains
+ //
+ // Deprecated: FIAuthKey has been deprecated
+ FIAuthKey *string `deprecated:"true" type:"string"`
+
+ // A list of new name servers for the domain.
+ //
+ // Nameservers is a required field
+ Nameservers []*Nameserver `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDomainNameserversInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainNameserversInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateDomainNameserversInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateDomainNameserversInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+ if s.Nameservers == nil {
+ invalidParams.Add(request.NewErrParamRequired("Nameservers"))
+ }
+ if s.Nameservers != nil {
+ for i, v := range s.Nameservers {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Nameservers", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *UpdateDomainNameserversInput) SetDomainName(v string) *UpdateDomainNameserversInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetFIAuthKey sets the FIAuthKey field's value.
+func (s *UpdateDomainNameserversInput) SetFIAuthKey(v string) *UpdateDomainNameserversInput {
+ s.FIAuthKey = &v
+ return s
+}
+
+// SetNameservers sets the Nameservers field's value.
+func (s *UpdateDomainNameserversInput) SetNameservers(v []*Nameserver) *UpdateDomainNameserversInput {
+ s.Nameservers = v
+ return s
+}
+
+// The UpdateDomainNameservers response includes the following element.
+type UpdateDomainNameserversOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Identifier for tracking the progress of the request. To query the operation
+ // status, use GetOperationDetail (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html).
+ //
+ // OperationId is a required field
+ OperationId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateDomainNameserversOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateDomainNameserversOutput) GoString() string {
+ return s.String()
+}
+
+// SetOperationId sets the OperationId field's value.
+func (s *UpdateDomainNameserversOutput) SetOperationId(v string) *UpdateDomainNameserversOutput {
+ s.OperationId = &v
+ return s
+}
+
+// The UpdateTagsForDomainRequest includes the following elements.
+type UpdateTagsForDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // The domain for which you want to add or update tags.
+ //
+ // DomainName is a required field
+ DomainName *string `type:"string" required:"true"`
+
+ // A list of the tag keys and values that you want to add or update. If you
+ // specify a key that already exists, the corresponding value will be replaced.
+ TagsToUpdate []*Tag `type:"list"`
+}
+
+// String returns the string representation
+func (s UpdateTagsForDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateTagsForDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateTagsForDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateTagsForDomainInput"}
+ if s.DomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DomainName"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *UpdateTagsForDomainInput) SetDomainName(v string) *UpdateTagsForDomainInput {
+ s.DomainName = &v
+ return s
+}
+
+// SetTagsToUpdate sets the TagsToUpdate field's value.
+func (s *UpdateTagsForDomainInput) SetTagsToUpdate(v []*Tag) *UpdateTagsForDomainInput {
+ s.TagsToUpdate = v
+ return s
+}
+
+type UpdateTagsForDomainOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateTagsForDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateTagsForDomainOutput) GoString() string {
+ return s.String()
+}
+
+// The ViewBilling request includes the following elements.
+type ViewBillingInput struct {
+ _ struct{} `type:"structure"`
+
+ // The end date and time for the time period for which you want a list of billing
+ // records. Specify the date and time in Unix time format and Coordinated Universal
+ // time (UTC).
+ End *time.Time `type:"timestamp"`
+
+ // For an initial request for a list of billing records, omit this element.
+ // If the number of billing records that are associated with the current AWS
+ // account during the specified period is greater than the value that you specified
+ // for MaxItems, you can use Marker to return additional billing records. Get
+ // the value of NextPageMarker from the previous response, and submit another
+ // request that includes the value of NextPageMarker in the Marker element.
+ //
+ // Constraints: The marker must match the value of NextPageMarker that was returned
+ // in the previous response.
+ Marker *string `type:"string"`
+
+ // The number of billing records to be returned.
+ //
+ // Default: 20
+ MaxItems *int64 `type:"integer"`
+
+ // The beginning date and time for the time period for which you want a list
+ // of billing records. Specify the date and time in Unix time format and Coordinated
+ // Universal time (UTC).
+ Start *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation
+func (s ViewBillingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ViewBillingInput) GoString() string {
+ return s.String()
+}
+
+// SetEnd sets the End field's value.
+func (s *ViewBillingInput) SetEnd(v time.Time) *ViewBillingInput {
+ s.End = &v
+ return s
+}
+
+// SetMarker sets the Marker field's value.
+func (s *ViewBillingInput) SetMarker(v string) *ViewBillingInput {
+ s.Marker = &v
+ return s
+}
+
+// SetMaxItems sets the MaxItems field's value.
+func (s *ViewBillingInput) SetMaxItems(v int64) *ViewBillingInput {
+ s.MaxItems = &v
+ return s
+}
+
+// SetStart sets the Start field's value.
+func (s *ViewBillingInput) SetStart(v time.Time) *ViewBillingInput {
+ s.Start = &v
+ return s
+}
+
+// The ViewBilling response includes the following elements.
+type ViewBillingOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A summary of billing records.
+ BillingRecords []*BillingRecord `type:"list"`
+
+ // If there are more billing records than you specified for MaxItems in the
+ // request, submit another request and include the value of NextPageMarker in
+ // the value of Marker.
+ NextPageMarker *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ViewBillingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ViewBillingOutput) GoString() string {
+ return s.String()
+}
+
+// SetBillingRecords sets the BillingRecords field's value.
+func (s *ViewBillingOutput) SetBillingRecords(v []*BillingRecord) *ViewBillingOutput {
+ s.BillingRecords = v
+ return s
+}
+
+// SetNextPageMarker sets the NextPageMarker field's value.
+func (s *ViewBillingOutput) SetNextPageMarker(v string) *ViewBillingOutput {
+ s.NextPageMarker = &v
+ return s
+}
+
+const (
+ // ContactTypePerson is a ContactType enum value
+ ContactTypePerson = "PERSON"
+
+ // ContactTypeCompany is a ContactType enum value
+ ContactTypeCompany = "COMPANY"
+
+ // ContactTypeAssociation is a ContactType enum value
+ ContactTypeAssociation = "ASSOCIATION"
+
+ // ContactTypePublicBody is a ContactType enum value
+ ContactTypePublicBody = "PUBLIC_BODY"
+
+ // ContactTypeReseller is a ContactType enum value
+ ContactTypeReseller = "RESELLER"
+)
+
+const (
+ // CountryCodeAd is a CountryCode enum value
+ CountryCodeAd = "AD"
+
+ // CountryCodeAe is a CountryCode enum value
+ CountryCodeAe = "AE"
+
+ // CountryCodeAf is a CountryCode enum value
+ CountryCodeAf = "AF"
+
+ // CountryCodeAg is a CountryCode enum value
+ CountryCodeAg = "AG"
+
+ // CountryCodeAi is a CountryCode enum value
+ CountryCodeAi = "AI"
+
+ // CountryCodeAl is a CountryCode enum value
+ CountryCodeAl = "AL"
+
+ // CountryCodeAm is a CountryCode enum value
+ CountryCodeAm = "AM"
+
+ // CountryCodeAn is a CountryCode enum value
+ CountryCodeAn = "AN"
+
+ // CountryCodeAo is a CountryCode enum value
+ CountryCodeAo = "AO"
+
+ // CountryCodeAq is a CountryCode enum value
+ CountryCodeAq = "AQ"
+
+ // CountryCodeAr is a CountryCode enum value
+ CountryCodeAr = "AR"
+
+ // CountryCodeAs is a CountryCode enum value
+ CountryCodeAs = "AS"
+
+ // CountryCodeAt is a CountryCode enum value
+ CountryCodeAt = "AT"
+
+ // CountryCodeAu is a CountryCode enum value
+ CountryCodeAu = "AU"
+
+ // CountryCodeAw is a CountryCode enum value
+ CountryCodeAw = "AW"
+
+ // CountryCodeAz is a CountryCode enum value
+ CountryCodeAz = "AZ"
+
+ // CountryCodeBa is a CountryCode enum value
+ CountryCodeBa = "BA"
+
+ // CountryCodeBb is a CountryCode enum value
+ CountryCodeBb = "BB"
+
+ // CountryCodeBd is a CountryCode enum value
+ CountryCodeBd = "BD"
+
+ // CountryCodeBe is a CountryCode enum value
+ CountryCodeBe = "BE"
+
+ // CountryCodeBf is a CountryCode enum value
+ CountryCodeBf = "BF"
+
+ // CountryCodeBg is a CountryCode enum value
+ CountryCodeBg = "BG"
+
+ // CountryCodeBh is a CountryCode enum value
+ CountryCodeBh = "BH"
+
+ // CountryCodeBi is a CountryCode enum value
+ CountryCodeBi = "BI"
+
+ // CountryCodeBj is a CountryCode enum value
+ CountryCodeBj = "BJ"
+
+ // CountryCodeBl is a CountryCode enum value
+ CountryCodeBl = "BL"
+
+ // CountryCodeBm is a CountryCode enum value
+ CountryCodeBm = "BM"
+
+ // CountryCodeBn is a CountryCode enum value
+ CountryCodeBn = "BN"
+
+ // CountryCodeBo is a CountryCode enum value
+ CountryCodeBo = "BO"
+
+ // CountryCodeBr is a CountryCode enum value
+ CountryCodeBr = "BR"
+
+ // CountryCodeBs is a CountryCode enum value
+ CountryCodeBs = "BS"
+
+ // CountryCodeBt is a CountryCode enum value
+ CountryCodeBt = "BT"
+
+ // CountryCodeBw is a CountryCode enum value
+ CountryCodeBw = "BW"
+
+ // CountryCodeBy is a CountryCode enum value
+ CountryCodeBy = "BY"
+
+ // CountryCodeBz is a CountryCode enum value
+ CountryCodeBz = "BZ"
+
+ // CountryCodeCa is a CountryCode enum value
+ CountryCodeCa = "CA"
+
+ // CountryCodeCc is a CountryCode enum value
+ CountryCodeCc = "CC"
+
+ // CountryCodeCd is a CountryCode enum value
+ CountryCodeCd = "CD"
+
+ // CountryCodeCf is a CountryCode enum value
+ CountryCodeCf = "CF"
+
+ // CountryCodeCg is a CountryCode enum value
+ CountryCodeCg = "CG"
+
+ // CountryCodeCh is a CountryCode enum value
+ CountryCodeCh = "CH"
+
+ // CountryCodeCi is a CountryCode enum value
+ CountryCodeCi = "CI"
+
+ // CountryCodeCk is a CountryCode enum value
+ CountryCodeCk = "CK"
+
+ // CountryCodeCl is a CountryCode enum value
+ CountryCodeCl = "CL"
+
+ // CountryCodeCm is a CountryCode enum value
+ CountryCodeCm = "CM"
+
+ // CountryCodeCn is a CountryCode enum value
+ CountryCodeCn = "CN"
+
+ // CountryCodeCo is a CountryCode enum value
+ CountryCodeCo = "CO"
+
+ // CountryCodeCr is a CountryCode enum value
+ CountryCodeCr = "CR"
+
+ // CountryCodeCu is a CountryCode enum value
+ CountryCodeCu = "CU"
+
+ // CountryCodeCv is a CountryCode enum value
+ CountryCodeCv = "CV"
+
+ // CountryCodeCx is a CountryCode enum value
+ CountryCodeCx = "CX"
+
+ // CountryCodeCy is a CountryCode enum value
+ CountryCodeCy = "CY"
+
+ // CountryCodeCz is a CountryCode enum value
+ CountryCodeCz = "CZ"
+
+ // CountryCodeDe is a CountryCode enum value
+ CountryCodeDe = "DE"
+
+ // CountryCodeDj is a CountryCode enum value
+ CountryCodeDj = "DJ"
+
+ // CountryCodeDk is a CountryCode enum value
+ CountryCodeDk = "DK"
+
+ // CountryCodeDm is a CountryCode enum value
+ CountryCodeDm = "DM"
+
+ // CountryCodeDo is a CountryCode enum value
+ CountryCodeDo = "DO"
+
+ // CountryCodeDz is a CountryCode enum value
+ CountryCodeDz = "DZ"
+
+ // CountryCodeEc is a CountryCode enum value
+ CountryCodeEc = "EC"
+
+ // CountryCodeEe is a CountryCode enum value
+ CountryCodeEe = "EE"
+
+ // CountryCodeEg is a CountryCode enum value
+ CountryCodeEg = "EG"
+
+ // CountryCodeEr is a CountryCode enum value
+ CountryCodeEr = "ER"
+
+ // CountryCodeEs is a CountryCode enum value
+ CountryCodeEs = "ES"
+
+ // CountryCodeEt is a CountryCode enum value
+ CountryCodeEt = "ET"
+
+ // CountryCodeFi is a CountryCode enum value
+ CountryCodeFi = "FI"
+
+ // CountryCodeFj is a CountryCode enum value
+ CountryCodeFj = "FJ"
+
+ // CountryCodeFk is a CountryCode enum value
+ CountryCodeFk = "FK"
+
+ // CountryCodeFm is a CountryCode enum value
+ CountryCodeFm = "FM"
+
+ // CountryCodeFo is a CountryCode enum value
+ CountryCodeFo = "FO"
+
+ // CountryCodeFr is a CountryCode enum value
+ CountryCodeFr = "FR"
+
+ // CountryCodeGa is a CountryCode enum value
+ CountryCodeGa = "GA"
+
+ // CountryCodeGb is a CountryCode enum value
+ CountryCodeGb = "GB"
+
+ // CountryCodeGd is a CountryCode enum value
+ CountryCodeGd = "GD"
+
+ // CountryCodeGe is a CountryCode enum value
+ CountryCodeGe = "GE"
+
+ // CountryCodeGh is a CountryCode enum value
+ CountryCodeGh = "GH"
+
+ // CountryCodeGi is a CountryCode enum value
+ CountryCodeGi = "GI"
+
+ // CountryCodeGl is a CountryCode enum value
+ CountryCodeGl = "GL"
+
+ // CountryCodeGm is a CountryCode enum value
+ CountryCodeGm = "GM"
+
+ // CountryCodeGn is a CountryCode enum value
+ CountryCodeGn = "GN"
+
+ // CountryCodeGq is a CountryCode enum value
+ CountryCodeGq = "GQ"
+
+ // CountryCodeGr is a CountryCode enum value
+ CountryCodeGr = "GR"
+
+ // CountryCodeGt is a CountryCode enum value
+ CountryCodeGt = "GT"
+
+ // CountryCodeGu is a CountryCode enum value
+ CountryCodeGu = "GU"
+
+ // CountryCodeGw is a CountryCode enum value
+ CountryCodeGw = "GW"
+
+ // CountryCodeGy is a CountryCode enum value
+ CountryCodeGy = "GY"
+
+ // CountryCodeHk is a CountryCode enum value
+ CountryCodeHk = "HK"
+
+ // CountryCodeHn is a CountryCode enum value
+ CountryCodeHn = "HN"
+
+ // CountryCodeHr is a CountryCode enum value
+ CountryCodeHr = "HR"
+
+ // CountryCodeHt is a CountryCode enum value
+ CountryCodeHt = "HT"
+
+ // CountryCodeHu is a CountryCode enum value
+ CountryCodeHu = "HU"
+
+ // CountryCodeId is a CountryCode enum value
+ CountryCodeId = "ID"
+
+ // CountryCodeIe is a CountryCode enum value
+ CountryCodeIe = "IE"
+
+ // CountryCodeIl is a CountryCode enum value
+ CountryCodeIl = "IL"
+
+ // CountryCodeIm is a CountryCode enum value
+ CountryCodeIm = "IM"
+
+ // CountryCodeIn is a CountryCode enum value
+ CountryCodeIn = "IN"
+
+ // CountryCodeIq is a CountryCode enum value
+ CountryCodeIq = "IQ"
+
+ // CountryCodeIr is a CountryCode enum value
+ CountryCodeIr = "IR"
+
+ // CountryCodeIs is a CountryCode enum value
+ CountryCodeIs = "IS"
+
+ // CountryCodeIt is a CountryCode enum value
+ CountryCodeIt = "IT"
+
+ // CountryCodeJm is a CountryCode enum value
+ CountryCodeJm = "JM"
+
+ // CountryCodeJo is a CountryCode enum value
+ CountryCodeJo = "JO"
+
+ // CountryCodeJp is a CountryCode enum value
+ CountryCodeJp = "JP"
+
+ // CountryCodeKe is a CountryCode enum value
+ CountryCodeKe = "KE"
+
+ // CountryCodeKg is a CountryCode enum value
+ CountryCodeKg = "KG"
+
+ // CountryCodeKh is a CountryCode enum value
+ CountryCodeKh = "KH"
+
+ // CountryCodeKi is a CountryCode enum value
+ CountryCodeKi = "KI"
+
+ // CountryCodeKm is a CountryCode enum value
+ CountryCodeKm = "KM"
+
+ // CountryCodeKn is a CountryCode enum value
+ CountryCodeKn = "KN"
+
+ // CountryCodeKp is a CountryCode enum value
+ CountryCodeKp = "KP"
+
+ // CountryCodeKr is a CountryCode enum value
+ CountryCodeKr = "KR"
+
+ // CountryCodeKw is a CountryCode enum value
+ CountryCodeKw = "KW"
+
+ // CountryCodeKy is a CountryCode enum value
+ CountryCodeKy = "KY"
+
+ // CountryCodeKz is a CountryCode enum value
+ CountryCodeKz = "KZ"
+
+ // CountryCodeLa is a CountryCode enum value
+ CountryCodeLa = "LA"
+
+ // CountryCodeLb is a CountryCode enum value
+ CountryCodeLb = "LB"
+
+ // CountryCodeLc is a CountryCode enum value
+ CountryCodeLc = "LC"
+
+ // CountryCodeLi is a CountryCode enum value
+ CountryCodeLi = "LI"
+
+ // CountryCodeLk is a CountryCode enum value
+ CountryCodeLk = "LK"
+
+ // CountryCodeLr is a CountryCode enum value
+ CountryCodeLr = "LR"
+
+ // CountryCodeLs is a CountryCode enum value
+ CountryCodeLs = "LS"
+
+ // CountryCodeLt is a CountryCode enum value
+ CountryCodeLt = "LT"
+
+ // CountryCodeLu is a CountryCode enum value
+ CountryCodeLu = "LU"
+
+ // CountryCodeLv is a CountryCode enum value
+ CountryCodeLv = "LV"
+
+ // CountryCodeLy is a CountryCode enum value
+ CountryCodeLy = "LY"
+
+ // CountryCodeMa is a CountryCode enum value
+ CountryCodeMa = "MA"
+
+ // CountryCodeMc is a CountryCode enum value
+ CountryCodeMc = "MC"
+
+ // CountryCodeMd is a CountryCode enum value
+ CountryCodeMd = "MD"
+
+ // CountryCodeMe is a CountryCode enum value
+ CountryCodeMe = "ME"
+
+ // CountryCodeMf is a CountryCode enum value
+ CountryCodeMf = "MF"
+
+ // CountryCodeMg is a CountryCode enum value
+ CountryCodeMg = "MG"
+
+ // CountryCodeMh is a CountryCode enum value
+ CountryCodeMh = "MH"
+
+ // CountryCodeMk is a CountryCode enum value
+ CountryCodeMk = "MK"
+
+ // CountryCodeMl is a CountryCode enum value
+ CountryCodeMl = "ML"
+
+ // CountryCodeMm is a CountryCode enum value
+ CountryCodeMm = "MM"
+
+ // CountryCodeMn is a CountryCode enum value
+ CountryCodeMn = "MN"
+
+ // CountryCodeMo is a CountryCode enum value
+ CountryCodeMo = "MO"
+
+ // CountryCodeMp is a CountryCode enum value
+ CountryCodeMp = "MP"
+
+ // CountryCodeMr is a CountryCode enum value
+ CountryCodeMr = "MR"
+
+ // CountryCodeMs is a CountryCode enum value
+ CountryCodeMs = "MS"
+
+ // CountryCodeMt is a CountryCode enum value
+ CountryCodeMt = "MT"
+
+ // CountryCodeMu is a CountryCode enum value
+ CountryCodeMu = "MU"
+
+ // CountryCodeMv is a CountryCode enum value
+ CountryCodeMv = "MV"
+
+ // CountryCodeMw is a CountryCode enum value
+ CountryCodeMw = "MW"
+
+ // CountryCodeMx is a CountryCode enum value
+ CountryCodeMx = "MX"
+
+ // CountryCodeMy is a CountryCode enum value
+ CountryCodeMy = "MY"
+
+ // CountryCodeMz is a CountryCode enum value
+ CountryCodeMz = "MZ"
+
+ // CountryCodeNa is a CountryCode enum value
+ CountryCodeNa = "NA"
+
+ // CountryCodeNc is a CountryCode enum value
+ CountryCodeNc = "NC"
+
+ // CountryCodeNe is a CountryCode enum value
+ CountryCodeNe = "NE"
+
+ // CountryCodeNg is a CountryCode enum value
+ CountryCodeNg = "NG"
+
+ // CountryCodeNi is a CountryCode enum value
+ CountryCodeNi = "NI"
+
+ // CountryCodeNl is a CountryCode enum value
+ CountryCodeNl = "NL"
+
+ // CountryCodeNo is a CountryCode enum value
+ CountryCodeNo = "NO"
+
+ // CountryCodeNp is a CountryCode enum value
+ CountryCodeNp = "NP"
+
+ // CountryCodeNr is a CountryCode enum value
+ CountryCodeNr = "NR"
+
+ // CountryCodeNu is a CountryCode enum value
+ CountryCodeNu = "NU"
+
+ // CountryCodeNz is a CountryCode enum value
+ CountryCodeNz = "NZ"
+
+ // CountryCodeOm is a CountryCode enum value
+ CountryCodeOm = "OM"
+
+ // CountryCodePa is a CountryCode enum value
+ CountryCodePa = "PA"
+
+ // CountryCodePe is a CountryCode enum value
+ CountryCodePe = "PE"
+
+ // CountryCodePf is a CountryCode enum value
+ CountryCodePf = "PF"
+
+ // CountryCodePg is a CountryCode enum value
+ CountryCodePg = "PG"
+
+ // CountryCodePh is a CountryCode enum value
+ CountryCodePh = "PH"
+
+ // CountryCodePk is a CountryCode enum value
+ CountryCodePk = "PK"
+
+ // CountryCodePl is a CountryCode enum value
+ CountryCodePl = "PL"
+
+ // CountryCodePm is a CountryCode enum value
+ CountryCodePm = "PM"
+
+ // CountryCodePn is a CountryCode enum value
+ CountryCodePn = "PN"
+
+ // CountryCodePr is a CountryCode enum value
+ CountryCodePr = "PR"
+
+ // CountryCodePt is a CountryCode enum value
+ CountryCodePt = "PT"
+
+ // CountryCodePw is a CountryCode enum value
+ CountryCodePw = "PW"
+
+ // CountryCodePy is a CountryCode enum value
+ CountryCodePy = "PY"
+
+ // CountryCodeQa is a CountryCode enum value
+ CountryCodeQa = "QA"
+
+ // CountryCodeRo is a CountryCode enum value
+ CountryCodeRo = "RO"
+
+ // CountryCodeRs is a CountryCode enum value
+ CountryCodeRs = "RS"
+
+ // CountryCodeRu is a CountryCode enum value
+ CountryCodeRu = "RU"
+
+ // CountryCodeRw is a CountryCode enum value
+ CountryCodeRw = "RW"
+
+ // CountryCodeSa is a CountryCode enum value
+ CountryCodeSa = "SA"
+
+ // CountryCodeSb is a CountryCode enum value
+ CountryCodeSb = "SB"
+
+ // CountryCodeSc is a CountryCode enum value
+ CountryCodeSc = "SC"
+
+ // CountryCodeSd is a CountryCode enum value
+ CountryCodeSd = "SD"
+
+ // CountryCodeSe is a CountryCode enum value
+ CountryCodeSe = "SE"
+
+ // CountryCodeSg is a CountryCode enum value
+ CountryCodeSg = "SG"
+
+ // CountryCodeSh is a CountryCode enum value
+ CountryCodeSh = "SH"
+
+ // CountryCodeSi is a CountryCode enum value
+ CountryCodeSi = "SI"
+
+ // CountryCodeSk is a CountryCode enum value
+ CountryCodeSk = "SK"
+
+ // CountryCodeSl is a CountryCode enum value
+ CountryCodeSl = "SL"
+
+ // CountryCodeSm is a CountryCode enum value
+ CountryCodeSm = "SM"
+
+ // CountryCodeSn is a CountryCode enum value
+ CountryCodeSn = "SN"
+
+ // CountryCodeSo is a CountryCode enum value
+ CountryCodeSo = "SO"
+
+ // CountryCodeSr is a CountryCode enum value
+ CountryCodeSr = "SR"
+
+ // CountryCodeSt is a CountryCode enum value
+ CountryCodeSt = "ST"
+
+ // CountryCodeSv is a CountryCode enum value
+ CountryCodeSv = "SV"
+
+ // CountryCodeSy is a CountryCode enum value
+ CountryCodeSy = "SY"
+
+ // CountryCodeSz is a CountryCode enum value
+ CountryCodeSz = "SZ"
+
+ // CountryCodeTc is a CountryCode enum value
+ CountryCodeTc = "TC"
+
+ // CountryCodeTd is a CountryCode enum value
+ CountryCodeTd = "TD"
+
+ // CountryCodeTg is a CountryCode enum value
+ CountryCodeTg = "TG"
+
+ // CountryCodeTh is a CountryCode enum value
+ CountryCodeTh = "TH"
+
+ // CountryCodeTj is a CountryCode enum value
+ CountryCodeTj = "TJ"
+
+ // CountryCodeTk is a CountryCode enum value
+ CountryCodeTk = "TK"
+
+ // CountryCodeTl is a CountryCode enum value
+ CountryCodeTl = "TL"
+
+ // CountryCodeTm is a CountryCode enum value
+ CountryCodeTm = "TM"
+
+ // CountryCodeTn is a CountryCode enum value
+ CountryCodeTn = "TN"
+
+ // CountryCodeTo is a CountryCode enum value
+ CountryCodeTo = "TO"
+
+ // CountryCodeTr is a CountryCode enum value
+ CountryCodeTr = "TR"
+
+ // CountryCodeTt is a CountryCode enum value
+ CountryCodeTt = "TT"
+
+ // CountryCodeTv is a CountryCode enum value
+ CountryCodeTv = "TV"
+
+ // CountryCodeTw is a CountryCode enum value
+ CountryCodeTw = "TW"
+
+ // CountryCodeTz is a CountryCode enum value
+ CountryCodeTz = "TZ"
+
+ // CountryCodeUa is a CountryCode enum value
+ CountryCodeUa = "UA"
+
+ // CountryCodeUg is a CountryCode enum value
+ CountryCodeUg = "UG"
+
+ // CountryCodeUs is a CountryCode enum value
+ CountryCodeUs = "US"
+
+ // CountryCodeUy is a CountryCode enum value
+ CountryCodeUy = "UY"
+
+ // CountryCodeUz is a CountryCode enum value
+ CountryCodeUz = "UZ"
+
+ // CountryCodeVa is a CountryCode enum value
+ CountryCodeVa = "VA"
+
+ // CountryCodeVc is a CountryCode enum value
+ CountryCodeVc = "VC"
+
+ // CountryCodeVe is a CountryCode enum value
+ CountryCodeVe = "VE"
+
+ // CountryCodeVg is a CountryCode enum value
+ CountryCodeVg = "VG"
+
+ // CountryCodeVi is a CountryCode enum value
+ CountryCodeVi = "VI"
+
+ // CountryCodeVn is a CountryCode enum value
+ CountryCodeVn = "VN"
+
+ // CountryCodeVu is a CountryCode enum value
+ CountryCodeVu = "VU"
+
+ // CountryCodeWf is a CountryCode enum value
+ CountryCodeWf = "WF"
+
+ // CountryCodeWs is a CountryCode enum value
+ CountryCodeWs = "WS"
+
+ // CountryCodeYe is a CountryCode enum value
+ CountryCodeYe = "YE"
+
+ // CountryCodeYt is a CountryCode enum value
+ CountryCodeYt = "YT"
+
+ // CountryCodeZa is a CountryCode enum value
+ CountryCodeZa = "ZA"
+
+ // CountryCodeZm is a CountryCode enum value
+ CountryCodeZm = "ZM"
+
+ // CountryCodeZw is a CountryCode enum value
+ CountryCodeZw = "ZW"
+)
+
+const (
+ // DomainAvailabilityAvailable is a DomainAvailability enum value
+ DomainAvailabilityAvailable = "AVAILABLE"
+
+ // DomainAvailabilityAvailableReserved is a DomainAvailability enum value
+ DomainAvailabilityAvailableReserved = "AVAILABLE_RESERVED"
+
+ // DomainAvailabilityAvailablePreorder is a DomainAvailability enum value
+ DomainAvailabilityAvailablePreorder = "AVAILABLE_PREORDER"
+
+ // DomainAvailabilityUnavailable is a DomainAvailability enum value
+ DomainAvailabilityUnavailable = "UNAVAILABLE"
+
+ // DomainAvailabilityUnavailablePremium is a DomainAvailability enum value
+ DomainAvailabilityUnavailablePremium = "UNAVAILABLE_PREMIUM"
+
+ // DomainAvailabilityUnavailableRestricted is a DomainAvailability enum value
+ DomainAvailabilityUnavailableRestricted = "UNAVAILABLE_RESTRICTED"
+
+ // DomainAvailabilityReserved is a DomainAvailability enum value
+ DomainAvailabilityReserved = "RESERVED"
+
+ // DomainAvailabilityDontKnow is a DomainAvailability enum value
+ DomainAvailabilityDontKnow = "DONT_KNOW"
+)
+
+const (
+ // ExtraParamNameDunsNumber is a ExtraParamName enum value
+ ExtraParamNameDunsNumber = "DUNS_NUMBER"
+
+ // ExtraParamNameBrandNumber is a ExtraParamName enum value
+ ExtraParamNameBrandNumber = "BRAND_NUMBER"
+
+ // ExtraParamNameBirthDepartment is a ExtraParamName enum value
+ ExtraParamNameBirthDepartment = "BIRTH_DEPARTMENT"
+
+ // ExtraParamNameBirthDateInYyyyMmDd is a ExtraParamName enum value
+ ExtraParamNameBirthDateInYyyyMmDd = "BIRTH_DATE_IN_YYYY_MM_DD"
+
+ // ExtraParamNameBirthCountry is a ExtraParamName enum value
+ ExtraParamNameBirthCountry = "BIRTH_COUNTRY"
+
+ // ExtraParamNameBirthCity is a ExtraParamName enum value
+ ExtraParamNameBirthCity = "BIRTH_CITY"
+
+ // ExtraParamNameDocumentNumber is a ExtraParamName enum value
+ ExtraParamNameDocumentNumber = "DOCUMENT_NUMBER"
+
+ // ExtraParamNameAuIdNumber is a ExtraParamName enum value
+ ExtraParamNameAuIdNumber = "AU_ID_NUMBER"
+
+ // ExtraParamNameAuIdType is a ExtraParamName enum value
+ ExtraParamNameAuIdType = "AU_ID_TYPE"
+
+ // ExtraParamNameCaLegalType is a ExtraParamName enum value
+ ExtraParamNameCaLegalType = "CA_LEGAL_TYPE"
+
+ // ExtraParamNameCaBusinessEntityType is a ExtraParamName enum value
+ ExtraParamNameCaBusinessEntityType = "CA_BUSINESS_ENTITY_TYPE"
+
+ // ExtraParamNameCaLegalRepresentative is a ExtraParamName enum value
+ ExtraParamNameCaLegalRepresentative = "CA_LEGAL_REPRESENTATIVE"
+
+ // ExtraParamNameCaLegalRepresentativeCapacity is a ExtraParamName enum value
+ ExtraParamNameCaLegalRepresentativeCapacity = "CA_LEGAL_REPRESENTATIVE_CAPACITY"
+
+ // ExtraParamNameEsIdentification is a ExtraParamName enum value
+ ExtraParamNameEsIdentification = "ES_IDENTIFICATION"
+
+ // ExtraParamNameEsIdentificationType is a ExtraParamName enum value
+ ExtraParamNameEsIdentificationType = "ES_IDENTIFICATION_TYPE"
+
+ // ExtraParamNameEsLegalForm is a ExtraParamName enum value
+ ExtraParamNameEsLegalForm = "ES_LEGAL_FORM"
+
+ // ExtraParamNameFiBusinessNumber is a ExtraParamName enum value
+ ExtraParamNameFiBusinessNumber = "FI_BUSINESS_NUMBER"
+
+ // ExtraParamNameFiIdNumber is a ExtraParamName enum value
+ ExtraParamNameFiIdNumber = "FI_ID_NUMBER"
+
+ // ExtraParamNameFiNationality is a ExtraParamName enum value
+ ExtraParamNameFiNationality = "FI_NATIONALITY"
+
+ // ExtraParamNameFiOrganizationType is a ExtraParamName enum value
+ ExtraParamNameFiOrganizationType = "FI_ORGANIZATION_TYPE"
+
+ // ExtraParamNameItNationality is a ExtraParamName enum value
+ ExtraParamNameItNationality = "IT_NATIONALITY"
+
+ // ExtraParamNameItPin is a ExtraParamName enum value
+ ExtraParamNameItPin = "IT_PIN"
+
+ // ExtraParamNameItRegistrantEntityType is a ExtraParamName enum value
+ ExtraParamNameItRegistrantEntityType = "IT_REGISTRANT_ENTITY_TYPE"
+
+ // ExtraParamNameRuPassportData is a ExtraParamName enum value
+ ExtraParamNameRuPassportData = "RU_PASSPORT_DATA"
+
+ // ExtraParamNameSeIdNumber is a ExtraParamName enum value
+ ExtraParamNameSeIdNumber = "SE_ID_NUMBER"
+
+ // ExtraParamNameSgIdNumber is a ExtraParamName enum value
+ ExtraParamNameSgIdNumber = "SG_ID_NUMBER"
+
+ // ExtraParamNameVatNumber is a ExtraParamName enum value
+ ExtraParamNameVatNumber = "VAT_NUMBER"
+
+ // ExtraParamNameUkContactType is a ExtraParamName enum value
+ ExtraParamNameUkContactType = "UK_CONTACT_TYPE"
+
+ // ExtraParamNameUkCompanyNumber is a ExtraParamName enum value
+ ExtraParamNameUkCompanyNumber = "UK_COMPANY_NUMBER"
+)
+
+const (
+ // OperationStatusSubmitted is a OperationStatus enum value
+ OperationStatusSubmitted = "SUBMITTED"
+
+ // OperationStatusInProgress is a OperationStatus enum value
+ OperationStatusInProgress = "IN_PROGRESS"
+
+ // OperationStatusError is a OperationStatus enum value
+ OperationStatusError = "ERROR"
+
+ // OperationStatusSuccessful is a OperationStatus enum value
+ OperationStatusSuccessful = "SUCCESSFUL"
+
+ // OperationStatusFailed is a OperationStatus enum value
+ OperationStatusFailed = "FAILED"
+)
+
+const (
+ // OperationTypeRegisterDomain is a OperationType enum value
+ OperationTypeRegisterDomain = "REGISTER_DOMAIN"
+
+ // OperationTypeDeleteDomain is a OperationType enum value
+ OperationTypeDeleteDomain = "DELETE_DOMAIN"
+
+ // OperationTypeTransferInDomain is a OperationType enum value
+ OperationTypeTransferInDomain = "TRANSFER_IN_DOMAIN"
+
+ // OperationTypeUpdateDomainContact is a OperationType enum value
+ OperationTypeUpdateDomainContact = "UPDATE_DOMAIN_CONTACT"
+
+ // OperationTypeUpdateNameserver is a OperationType enum value
+ OperationTypeUpdateNameserver = "UPDATE_NAMESERVER"
+
+ // OperationTypeChangePrivacyProtection is a OperationType enum value
+ OperationTypeChangePrivacyProtection = "CHANGE_PRIVACY_PROTECTION"
+
+ // OperationTypeDomainLock is a OperationType enum value
+ OperationTypeDomainLock = "DOMAIN_LOCK"
+
+ // OperationTypeEnableAutorenew is a OperationType enum value
+ OperationTypeEnableAutorenew = "ENABLE_AUTORENEW"
+
+ // OperationTypeDisableAutorenew is a OperationType enum value
+ OperationTypeDisableAutorenew = "DISABLE_AUTORENEW"
+
+ // OperationTypeAddDnssec is a OperationType enum value
+ OperationTypeAddDnssec = "ADD_DNSSEC"
+
+ // OperationTypeRemoveDnssec is a OperationType enum value
+ OperationTypeRemoveDnssec = "REMOVE_DNSSEC"
+
+ // OperationTypeExpireDomain is a OperationType enum value
+ OperationTypeExpireDomain = "EXPIRE_DOMAIN"
+
+ // OperationTypeTransferOutDomain is a OperationType enum value
+ OperationTypeTransferOutDomain = "TRANSFER_OUT_DOMAIN"
+
+ // OperationTypeChangeDomainOwner is a OperationType enum value
+ OperationTypeChangeDomainOwner = "CHANGE_DOMAIN_OWNER"
+
+ // OperationTypeRenewDomain is a OperationType enum value
+ OperationTypeRenewDomain = "RENEW_DOMAIN"
+
+ // OperationTypePushDomain is a OperationType enum value
+ OperationTypePushDomain = "PUSH_DOMAIN"
+
+ // OperationTypeInternalTransferOutDomain is a OperationType enum value
+ OperationTypeInternalTransferOutDomain = "INTERNAL_TRANSFER_OUT_DOMAIN"
+
+ // OperationTypeInternalTransferInDomain is a OperationType enum value
+ OperationTypeInternalTransferInDomain = "INTERNAL_TRANSFER_IN_DOMAIN"
+)
+
+const (
+ // ReachabilityStatusPending is a ReachabilityStatus enum value
+ ReachabilityStatusPending = "PENDING"
+
+ // ReachabilityStatusDone is a ReachabilityStatus enum value
+ ReachabilityStatusDone = "DONE"
+
+ // ReachabilityStatusExpired is a ReachabilityStatus enum value
+ ReachabilityStatusExpired = "EXPIRED"
+)
+
+// Whether the domain name can be transferred to Route 53.
+//
+// You can transfer only domains that have a value of TRANSFERABLE for Transferable.
+//
+// Valid values:
+//
+// TRANSFERABLE
+//
+// The domain name can be transferred to Route 53.
+//
+// UNTRANSFERRABLE
+//
+// The domain name can't be transferred to Route 53.
+//
+// DONT_KNOW
+//
+// Reserved for future use.
+const (
+ // TransferableTransferable is a Transferable enum value
+ TransferableTransferable = "TRANSFERABLE"
+
+ // TransferableUntransferable is a Transferable enum value
+ TransferableUntransferable = "UNTRANSFERABLE"
+
+ // TransferableDontKnow is a Transferable enum value
+ TransferableDontKnow = "DONT_KNOW"
+)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/doc.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/doc.go
new file mode 100644
index 00000000000..b6b057326ad
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/doc.go
@@ -0,0 +1,29 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package route53domains provides the client and types for making API
+// requests to Amazon Route 53 Domains.
+//
+// Amazon Route 53 API actions let you register domain names and perform related
+// operations.
+//
+// See https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15 for more information on this service.
+//
+// See route53domains package documentation for more information.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/route53domains/
+//
+// Using the Client
+//
+// To contact Amazon Route 53 Domains with the SDK use the New function to create
+// a new service client. With that client you can make API requests to the service.
+// These clients are safe to use concurrently.
+//
+// See the SDK's documentation for more information on how to use the SDK.
+// https://docs.aws.amazon.com/sdk-for-go/api/
+//
+// See aws.Config documentation for more information on configuring SDK clients.
+// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
+//
+// See the Amazon Route 53 Domains client Route53Domains for more
+// information on creating client for this service.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/route53domains/#New
+package route53domains
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go
new file mode 100644
index 00000000000..e41328ae06b
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/errors.go
@@ -0,0 +1,59 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package route53domains
+
+import (
+ "github.com/aws/aws-sdk-go/private/protocol"
+)
+
+const (
+
+ // ErrCodeDomainLimitExceeded for service response error code
+ // "DomainLimitExceeded".
+ //
+ // The number of domains has exceeded the allowed threshold for the account.
+ ErrCodeDomainLimitExceeded = "DomainLimitExceeded"
+
+ // ErrCodeDuplicateRequest for service response error code
+ // "DuplicateRequest".
+ //
+ // The request is already in progress for the domain.
+ ErrCodeDuplicateRequest = "DuplicateRequest"
+
+ // ErrCodeInvalidInput for service response error code
+ // "InvalidInput".
+ //
+ // The requested item is not acceptable. For example, for APIs that accept a
+ // domain name, the request might specify a domain name that doesn't belong
+ // to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount,
+ // the password might be invalid.
+ ErrCodeInvalidInput = "InvalidInput"
+
+ // ErrCodeOperationLimitExceeded for service response error code
+ // "OperationLimitExceeded".
+ //
+ // The number of operations or jobs running exceeded the allowed threshold for
+ // the account.
+ ErrCodeOperationLimitExceeded = "OperationLimitExceeded"
+
+ // ErrCodeTLDRulesViolation for service response error code
+ // "TLDRulesViolation".
+ //
+ // The top-level domain does not support this operation.
+ ErrCodeTLDRulesViolation = "TLDRulesViolation"
+
+ // ErrCodeUnsupportedTLD for service response error code
+ // "UnsupportedTLD".
+ //
+ // Amazon Route 53 does not support this top-level domain (TLD).
+ ErrCodeUnsupportedTLD = "UnsupportedTLD"
+)
+
+var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "DomainLimitExceeded": newErrorDomainLimitExceeded,
+ "DuplicateRequest": newErrorDuplicateRequest,
+ "InvalidInput": newErrorInvalidInput,
+ "OperationLimitExceeded": newErrorOperationLimitExceeded,
+ "TLDRulesViolation": newErrorTLDRulesViolation,
+ "UnsupportedTLD": newErrorUnsupportedTLD,
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go
new file mode 100644
index 00000000000..9081130fa97
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go
@@ -0,0 +1,103 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package route53domains
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/client"
+ "github.com/aws/aws-sdk-go/aws/client/metadata"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/aws/signer/v4"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
+)
+
+// Route53Domains provides the API operation methods for making requests to
+// Amazon Route 53 Domains. See this package's package overview docs
+// for details on the service.
+//
+// Route53Domains methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type Route53Domains struct {
+ *client.Client
+}
+
+// Used for custom client initialization logic
+var initClient func(*client.Client)
+
+// Used for custom request initialization logic
+var initRequest func(*request.Request)
+
+// Service information constants
+const (
+ ServiceName = "route53domains" // Name of service.
+ EndpointsID = ServiceName // ID to lookup a service endpoint with.
+ ServiceID = "Route 53 Domains" // ServiceID is a unique identifier of a specific service.
+)
+
+// New creates a new instance of the Route53Domains client with a session.
+// If additional configuration is needed for the client instance use the optional
+// aws.Config parameter to add your extra config.
+//
+// Example:
+// mySession := session.Must(session.NewSession())
+//
+// // Create a Route53Domains client from just a session.
+// svc := route53domains.New(mySession)
+//
+// // Create a Route53Domains client with additional configuration
+// svc := route53domains.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
+func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Domains {
+ c := p.ClientConfig(EndpointsID, cfgs...)
+ return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
+}
+
+// newClient creates, initializes and returns a new service client instance.
+func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Route53Domains {
+ svc := &Route53Domains{
+ Client: client.New(
+ cfg,
+ metadata.ClientInfo{
+ ServiceName: ServiceName,
+ ServiceID: ServiceID,
+ SigningName: signingName,
+ SigningRegion: signingRegion,
+ PartitionID: partitionID,
+ Endpoint: endpoint,
+ APIVersion: "2014-05-15",
+ JSONVersion: "1.1",
+ TargetPrefix: "Route53Domains_v20140515",
+ },
+ handlers,
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(
+ protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
+ )
+
+ // Run custom client initialization if present
+ if initClient != nil {
+ initClient(svc.Client)
+ }
+
+ return svc
+}
+
+// newRequest creates a new request for a Route53Domains operation and runs any
+// custom request initialization.
+func (c *Route53Domains) newRequest(op *request.Operation, params, data interface{}) *request.Request {
+ req := c.NewRequest(op, params, data)
+
+ // Run custom request initialization if present
+ if initRequest != nil {
+ initRequest(req)
+ }
+
+ return req
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go
index 721af4756d7..d2c81e00493 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go
@@ -3412,8 +3412,8 @@ func (s *GetResolverRulePolicyOutput) SetResolverRulePolicy(v string) *GetResolv
// We encountered an unknown error. Try again in a few minutes.
type InternalServiceErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3430,17 +3430,17 @@ func (s InternalServiceErrorException) GoString() string {
func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error {
return &InternalServiceErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceErrorException) Code() string {
+func (s *InternalServiceErrorException) Code() string {
return "InternalServiceErrorException"
}
// Message returns the exception's message.
-func (s InternalServiceErrorException) Message() string {
+func (s *InternalServiceErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3448,28 +3448,28 @@ func (s InternalServiceErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceErrorException) OrigErr() error {
+func (s *InternalServiceErrorException) OrigErr() error {
return nil
}
-func (s InternalServiceErrorException) Error() string {
+func (s *InternalServiceErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The value that you specified for NextToken in a List request isn't valid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3486,17 +3486,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3504,28 +3504,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more parameters in this request are not valid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// For an InvalidParameterException error, the name of the parameter that's
// invalid.
@@ -3546,17 +3546,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3564,28 +3564,28 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resolver rule policy is invalid.
type InvalidPolicyDocument struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3602,17 +3602,17 @@ func (s InvalidPolicyDocument) GoString() string {
func newErrorInvalidPolicyDocument(v protocol.ResponseMetadata) error {
return &InvalidPolicyDocument{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPolicyDocument) Code() string {
+func (s *InvalidPolicyDocument) Code() string {
return "InvalidPolicyDocument"
}
// Message returns the exception's message.
-func (s InvalidPolicyDocument) Message() string {
+func (s *InvalidPolicyDocument) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3620,28 +3620,28 @@ func (s InvalidPolicyDocument) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPolicyDocument) OrigErr() error {
+func (s *InvalidPolicyDocument) OrigErr() error {
return nil
}
-func (s InvalidPolicyDocument) Error() string {
+func (s *InvalidPolicyDocument) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPolicyDocument) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPolicyDocument) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPolicyDocument) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPolicyDocument) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is invalid.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3658,17 +3658,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3676,28 +3676,28 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified tag is invalid.
type InvalidTagException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3714,17 +3714,17 @@ func (s InvalidTagException) GoString() string {
func newErrorInvalidTagException(v protocol.ResponseMetadata) error {
return &InvalidTagException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTagException) Code() string {
+func (s *InvalidTagException) Code() string {
return "InvalidTagException"
}
// Message returns the exception's message.
-func (s InvalidTagException) Message() string {
+func (s *InvalidTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3732,22 +3732,22 @@ func (s InvalidTagException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTagException) OrigErr() error {
+func (s *InvalidTagException) OrigErr() error {
return nil
}
-func (s InvalidTagException) Error() string {
+func (s *InvalidTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTagException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTagException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTagException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTagException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// In an CreateResolverEndpoint request, a subnet and IP address that you want
@@ -3952,8 +3952,8 @@ func (s *IpAddressUpdate) SetSubnetId(v string) *IpAddressUpdate {
// The request caused one or more limits to be exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -3974,17 +3974,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3992,22 +3992,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListResolverEndpointIpAddressesInput struct {
@@ -5088,8 +5088,8 @@ func (s *ResolverRuleConfig) SetTargetIps(v []*TargetAddress) *ResolverRuleConfi
// The resource that you tried to create already exists.
type ResourceExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -5110,17 +5110,17 @@ func (s ResourceExistsException) GoString() string {
func newErrorResourceExistsException(v protocol.ResponseMetadata) error {
return &ResourceExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceExistsException) Code() string {
+func (s *ResourceExistsException) Code() string {
return "ResourceExistsException"
}
// Message returns the exception's message.
-func (s ResourceExistsException) Message() string {
+func (s *ResourceExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5128,28 +5128,28 @@ func (s ResourceExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceExistsException) OrigErr() error {
+func (s *ResourceExistsException) OrigErr() error {
return nil
}
-func (s ResourceExistsException) Error() string {
+func (s *ResourceExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource that you tried to update or delete is currently in use.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -5170,17 +5170,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5188,28 +5188,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource doesn't exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -5230,17 +5230,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5248,28 +5248,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource isn't available.
type ResourceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -5290,17 +5290,17 @@ func (s ResourceUnavailableException) GoString() string {
func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error {
return &ResourceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceUnavailableException) Code() string {
+func (s *ResourceUnavailableException) Code() string {
return "ResourceUnavailableException"
}
// Message returns the exception's message.
-func (s ResourceUnavailableException) Message() string {
+func (s *ResourceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5308,22 +5308,22 @@ func (s ResourceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceUnavailableException) OrigErr() error {
+func (s *ResourceUnavailableException) OrigErr() error {
return nil
}
-func (s ResourceUnavailableException) Error() string {
+func (s *ResourceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One tag that you want to add to the specified resource. A tag consists of
@@ -5500,8 +5500,8 @@ func (s *TargetAddress) SetPort(v int64) *TargetAddress {
// The request was throttled. Try again in a few minutes.
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5518,17 +5518,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5536,28 +5536,28 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource doesn't exist.
type UnknownResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5574,17 +5574,17 @@ func (s UnknownResourceException) GoString() string {
func newErrorUnknownResourceException(v protocol.ResponseMetadata) error {
return &UnknownResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnknownResourceException) Code() string {
+func (s *UnknownResourceException) Code() string {
return "UnknownResourceException"
}
// Message returns the exception's message.
-func (s UnknownResourceException) Message() string {
+func (s *UnknownResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5592,22 +5592,22 @@ func (s UnknownResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnknownResourceException) OrigErr() error {
+func (s *UnknownResourceException) OrigErr() error {
return nil
}
-func (s UnknownResourceException) Error() string {
+func (s *UnknownResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnknownResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnknownResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnknownResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnknownResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go
index 8ed2975d8ea..8770d404119 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go
@@ -625,6 +625,7 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker, cleanup func()) (*UploadO
Key: u.in.Key,
})
getReq.Config.Credentials = credentials.AnonymousCredentials
+ getReq.SetContext(u.ctx)
uploadLocation, _, _ := getReq.PresignRequest(1)
return &UploadOutput{
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go
index f6a69aed11b..247770e4c88 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go
@@ -2,6 +2,7 @@ package s3
import (
"bytes"
+ "io"
"io/ioutil"
"net/http"
@@ -24,17 +25,18 @@ func copyMultipartStatusOKUnmarhsalError(r *request.Request) {
r.HTTPResponse.Body = ioutil.NopCloser(body)
defer body.Seek(0, sdkio.SeekStart)
- if body.Len() == 0 {
- // If there is no body don't attempt to parse the body.
- return
- }
-
unmarshalError(r)
if err, ok := r.Error.(awserr.Error); ok && err != nil {
- if err.Code() == request.ErrCodeSerialization {
+ if err.Code() == request.ErrCodeSerialization &&
+ err.OrigErr() != io.EOF {
r.Error = nil
return
}
- r.HTTPResponse.StatusCode = http.StatusServiceUnavailable
+ // if empty payload
+ if err.OrigErr() == io.EOF {
+ r.HTTPResponse.StatusCode = http.StatusInternalServerError
+ } else {
+ r.HTTPResponse.StatusCode = http.StatusServiceUnavailable
+ }
}
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go
index 5b63fac72ff..6eecf669107 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go
@@ -1,6 +1,7 @@
package s3
import (
+ "bytes"
"encoding/xml"
"fmt"
"io"
@@ -45,17 +46,24 @@ func unmarshalError(r *request.Request) {
// Attempt to parse error from body if it is known
var errResp xmlErrorResponse
- err := xmlutil.UnmarshalXMLError(&errResp, r.HTTPResponse.Body)
- if err == io.EOF {
- // Only capture the error if an unmarshal error occurs that is not EOF,
- // because S3 might send an error without a error message which causes
- // the XML unmarshal to fail with EOF.
- err = nil
+ var err error
+ if r.HTTPResponse.StatusCode >= 200 && r.HTTPResponse.StatusCode < 300 {
+ err = s3unmarshalXMLError(&errResp, r.HTTPResponse.Body)
+ } else {
+ err = xmlutil.UnmarshalXMLError(&errResp, r.HTTPResponse.Body)
}
+
if err != nil {
+ var errorMsg string
+ if err == io.EOF {
+ errorMsg = "empty response payload"
+ } else {
+ errorMsg = "failed to unmarshal error message"
+ }
+
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization,
- "failed to unmarshal error message", err),
+ errorMsg, err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
@@ -86,3 +94,21 @@ type RequestFailure interface {
// Host ID is the S3 Host ID needed for debug, and contacting support
HostID() string
}
+
+// s3unmarshalXMLError is s3 specific xml error unmarshaler
+// for 200 OK errors and response payloads.
+// This function differs from the xmlUtil.UnmarshalXMLError
+// func. It does not ignore the EOF error and passes it up.
+// Related to bug fix for `s3 200 OK response with empty payload`
+func s3unmarshalXMLError(v interface{}, stream io.Reader) error {
+ var errBuf bytes.Buffer
+ body := io.TeeReader(stream, &errBuf)
+
+ err := xml.NewDecoder(body).Decode(v)
+ if err != nil && err != io.EOF {
+ return awserr.NewUnmarshalError(err,
+ "failed to unmarshal error message", errBuf.Bytes())
+ }
+
+ return err
+}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go
index fa5f473c8e3..675e4c5c770 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go
@@ -330,6 +330,91 @@ func (c *S3Control) DeleteAccessPointPolicyWithContext(ctx aws.Context, input *D
return out, req.Send()
}
+const opDeleteJobTagging = "DeleteJobTagging"
+
+// DeleteJobTaggingRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteJobTagging operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteJobTagging for more information on using the DeleteJobTagging
+// 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 DeleteJobTaggingRequest method.
+// req, resp := client.DeleteJobTaggingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteJobTagging
+func (c *S3Control) DeleteJobTaggingRequest(input *DeleteJobTaggingInput) (req *request.Request, output *DeleteJobTaggingOutput) {
+ op := &request.Operation{
+ Name: opDeleteJobTagging,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v20180820/jobs/{id}/tagging",
+ }
+
+ if input == nil {
+ input = &DeleteJobTaggingInput{}
+ }
+
+ output = &DeleteJobTaggingOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// DeleteJobTagging API operation for AWS S3 Control.
+//
+// Delete the tags on a Amazon S3 batch operations job, if any.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation DeleteJobTagging for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInternalServiceException "InternalServiceException"
+//
+// * ErrCodeTooManyRequestsException "TooManyRequestsException"
+//
+// * ErrCodeNotFoundException "NotFoundException"
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteJobTagging
+func (c *S3Control) DeleteJobTagging(input *DeleteJobTaggingInput) (*DeleteJobTaggingOutput, error) {
+ req, out := c.DeleteJobTaggingRequest(input)
+ return out, req.Send()
+}
+
+// DeleteJobTaggingWithContext is the same as DeleteJobTagging with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteJobTagging 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 *S3Control) DeleteJobTaggingWithContext(ctx aws.Context, input *DeleteJobTaggingInput, opts ...request.Option) (*DeleteJobTaggingOutput, error) {
+ req, out := c.DeleteJobTaggingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeletePublicAccessBlock = "DeletePublicAccessBlock"
// DeletePublicAccessBlockRequest generates a "aws/request.Request" representing the
@@ -725,6 +810,90 @@ func (c *S3Control) GetAccessPointPolicyStatusWithContext(ctx aws.Context, input
return out, req.Send()
}
+const opGetJobTagging = "GetJobTagging"
+
+// GetJobTaggingRequest generates a "aws/request.Request" representing the
+// client's request for the GetJobTagging operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetJobTagging for more information on using the GetJobTagging
+// 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 GetJobTaggingRequest method.
+// req, resp := client.GetJobTaggingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetJobTagging
+func (c *S3Control) GetJobTaggingRequest(input *GetJobTaggingInput) (req *request.Request, output *GetJobTaggingOutput) {
+ op := &request.Operation{
+ Name: opGetJobTagging,
+ HTTPMethod: "GET",
+ HTTPPath: "/v20180820/jobs/{id}/tagging",
+ }
+
+ if input == nil {
+ input = &GetJobTaggingInput{}
+ }
+
+ output = &GetJobTaggingOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// GetJobTagging API operation for AWS S3 Control.
+//
+// Retrieve the tags on a Amazon S3 batch operations job.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation GetJobTagging for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInternalServiceException "InternalServiceException"
+//
+// * ErrCodeTooManyRequestsException "TooManyRequestsException"
+//
+// * ErrCodeNotFoundException "NotFoundException"
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetJobTagging
+func (c *S3Control) GetJobTagging(input *GetJobTaggingInput) (*GetJobTaggingOutput, error) {
+ req, out := c.GetJobTaggingRequest(input)
+ return out, req.Send()
+}
+
+// GetJobTaggingWithContext is the same as GetJobTagging with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetJobTagging 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 *S3Control) GetJobTaggingWithContext(ctx aws.Context, input *GetJobTaggingInput, opts ...request.Option) (*GetJobTaggingOutput, error) {
+ req, out := c.GetJobTaggingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetPublicAccessBlock = "GetPublicAccessBlock"
// GetPublicAccessBlockRequest generates a "aws/request.Request" representing the
@@ -1168,6 +1337,93 @@ func (c *S3Control) PutAccessPointPolicyWithContext(ctx aws.Context, input *PutA
return out, req.Send()
}
+const opPutJobTagging = "PutJobTagging"
+
+// PutJobTaggingRequest generates a "aws/request.Request" representing the
+// client's request for the PutJobTagging operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutJobTagging for more information on using the PutJobTagging
+// 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 PutJobTaggingRequest method.
+// req, resp := client.PutJobTaggingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutJobTagging
+func (c *S3Control) PutJobTaggingRequest(input *PutJobTaggingInput) (req *request.Request, output *PutJobTaggingOutput) {
+ op := &request.Operation{
+ Name: opPutJobTagging,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v20180820/jobs/{id}/tagging",
+ }
+
+ if input == nil {
+ input = &PutJobTaggingInput{}
+ }
+
+ output = &PutJobTaggingOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// PutJobTagging API operation for AWS S3 Control.
+//
+// Replace the set of tags on a Amazon S3 batch operations job.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation PutJobTagging for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInternalServiceException "InternalServiceException"
+//
+// * ErrCodeTooManyRequestsException "TooManyRequestsException"
+//
+// * ErrCodeNotFoundException "NotFoundException"
+//
+// * ErrCodeTooManyTagsException "TooManyTagsException"
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutJobTagging
+func (c *S3Control) PutJobTagging(input *PutJobTaggingInput) (*PutJobTaggingOutput, error) {
+ req, out := c.PutJobTaggingRequest(input)
+ return out, req.Send()
+}
+
+// PutJobTaggingWithContext is the same as PutJobTagging with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutJobTagging 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 *S3Control) PutJobTaggingWithContext(ctx aws.Context, input *PutJobTaggingInput, opts ...request.Option) (*PutJobTaggingOutput, error) {
+ req, out := c.PutJobTaggingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opPutPublicAccessBlock = "PutPublicAccessBlock"
// PutPublicAccessBlockRequest generates a "aws/request.Request" representing the
@@ -1654,6 +1910,9 @@ type CreateJobInput struct {
//
// RoleArn is a required field
RoleArn *string `min:"1" type:"string" required:"true"`
+
+ // An optional set of tags to associate with the job when it is created.
+ Tags []*S3Tag `type:"list"`
}
// String returns the string representation
@@ -1714,6 +1973,16 @@ func (s *CreateJobInput) Validate() error {
invalidParams.AddNested("Report", err.(request.ErrInvalidParams))
}
}
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -1775,6 +2044,12 @@ func (s *CreateJobInput) SetRoleArn(v string) *CreateJobInput {
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateJobInput) SetTags(v []*S3Tag) *CreateJobInput {
+ s.Tags = v
+ return s
+}
+
func (s *CreateJobInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
@@ -1961,6 +2236,85 @@ func (s DeleteAccessPointPolicyOutput) GoString() string {
return s.String()
}
+type DeleteJobTaggingInput struct {
+ _ struct{} `locationName:"DeleteJobTaggingRequest" type:"structure"`
+
+ // The account ID for the Amazon Web Services account associated with the Amazon
+ // S3 batch operations job you want to remove tags from.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The ID for the job whose tags you want to delete.
+ //
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteJobTaggingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteJobTaggingInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteJobTaggingInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
+ }
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteJobTaggingInput) SetAccountId(v string) *DeleteJobTaggingInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetJobId sets the JobId field's value.
+func (s *DeleteJobTaggingInput) SetJobId(v string) *DeleteJobTaggingInput {
+ s.JobId = &v
+ return s
+}
+
+func (s *DeleteJobTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type DeleteJobTaggingOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteJobTaggingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteJobTaggingOutput) GoString() string {
+ return s.String()
+}
+
type DeletePublicAccessBlockInput struct {
_ struct{} `locationName:"DeletePublicAccessBlockRequest" type:"structure"`
@@ -2425,6 +2779,94 @@ func (s *GetAccessPointPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *Get
return s
}
+type GetJobTaggingInput struct {
+ _ struct{} `locationName:"GetJobTaggingRequest" type:"structure"`
+
+ // The account ID for the Amazon Web Services account associated with the Amazon
+ // S3 batch operations job you want to retrieve tags for.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The ID for the job whose tags you want to retrieve.
+ //
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetJobTaggingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetJobTaggingInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetJobTaggingInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
+ }
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *GetJobTaggingInput) SetAccountId(v string) *GetJobTaggingInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetJobId sets the JobId field's value.
+func (s *GetJobTaggingInput) SetJobId(v string) *GetJobTaggingInput {
+ s.JobId = &v
+ return s
+}
+
+func (s *GetJobTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type GetJobTaggingOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The set of tags associated with the job.
+ Tags []*S3Tag `type:"list"`
+}
+
+// String returns the string representation
+func (s GetJobTaggingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetJobTaggingOutput) GoString() string {
+ return s.String()
+}
+
+// SetTags sets the Tags field's value.
+func (s *GetJobTaggingOutput) SetTags(v []*S3Tag) *GetJobTaggingOutput {
+ s.Tags = v
+ return s
+}
+
type GetPublicAccessBlockInput struct {
_ struct{} `locationName:"GetPublicAccessBlockRequest" type:"structure"`
@@ -3695,6 +4137,109 @@ func (s PutAccessPointPolicyOutput) GoString() string {
return s.String()
}
+type PutJobTaggingInput struct {
+ _ struct{} `locationName:"PutJobTaggingRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // The account ID for the Amazon Web Services account associated with the Amazon
+ // S3 batch operations job you want to replace tags on.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The ID for the job whose tags you want to replace.
+ //
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+
+ // The set of tags to associate with the job.
+ //
+ // Tags is a required field
+ Tags []*S3Tag `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s PutJobTaggingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutJobTaggingInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutJobTaggingInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
+ }
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *PutJobTaggingInput) SetAccountId(v string) *PutJobTaggingInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetJobId sets the JobId field's value.
+func (s *PutJobTaggingInput) SetJobId(v string) *PutJobTaggingInput {
+ s.JobId = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *PutJobTaggingInput) SetTags(v []*S3Tag) *PutJobTaggingInput {
+ s.Tags = v
+ return s
+}
+
+func (s *PutJobTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type PutJobTaggingOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s PutJobTaggingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutJobTaggingOutput) GoString() string {
+ return s.String()
+}
+
type PutPublicAccessBlockInput struct {
_ struct{} `locationName:"PutPublicAccessBlockRequest" type:"structure" payload:"PublicAccessBlockConfiguration"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go
index 8f93d6b7707..cc36c98f478 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go
@@ -42,4 +42,8 @@ const (
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
ErrCodeTooManyRequestsException = "TooManyRequestsException"
+
+ // ErrCodeTooManyTagsException for service response error code
+ // "TooManyTagsException".
+ ErrCodeTooManyTagsException = "TooManyTagsException"
)
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go
index 9106e36ca89..0a749943fc0 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go
@@ -398,6 +398,13 @@ func (c *SageMaker) CreateAutoMLJobRequest(input *CreateAutoMLJobInput) (req *re
//
// Creates an AutoPilot job.
//
+// After you run an AutoPilot job, you can find the best performing model by
+// calling , and then deploy that model by following the steps described in
+// Step 6.1: Deploy the Model to Amazon SageMaker Hosting Services (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html).
+//
+// For information about how to use AutoPilot, see Use AutoPilot to Automate
+// Model Development (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html).
+//
// 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.
@@ -764,8 +771,7 @@ func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *requ
//
// Creates an endpoint using the endpoint configuration specified in the request.
// Amazon SageMaker uses the endpoint to provision resources and deploy models.
-// You create the endpoint configuration with the CreateEndpointConfig (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html)
-// API.
+// You create the endpoint configuration with the CreateEndpointConfig API.
//
// Use this API to deploy models using Amazon SageMaker hosting services.
//
@@ -785,8 +791,7 @@ func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *requ
// When Amazon SageMaker receives the request, it sets the endpoint status to
// Creating. After it creates the endpoint, it sets the status to InService.
// Amazon SageMaker can then process incoming requests for inferences. To check
-// the status of an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
-// API.
+// the status of an endpoint, use the DescribeEndpoint API.
//
// If any of the models hosted at this endpoint get model data from an Amazon
// S3 location, Amazon SageMaker uses AWS Security Token Service to download
@@ -877,8 +882,7 @@ func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput
// Creates an endpoint configuration that Amazon SageMaker hosting services
// uses to deploy models. In the configuration, you identify one or more models,
// created using the CreateModel API, to deploy and the resources that you want
-// Amazon SageMaker to provision. Then you call the CreateEndpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
-// API.
+// Amazon SageMaker to provision. Then you call the CreateEndpoint API.
//
// Use this API if you want to use Amazon SageMaker hosting services to deploy
// models into production.
@@ -2032,9 +2036,9 @@ func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresi
// IP addresses that you want to have access to the notebook instance. For more
// information, see Limit Access to a Notebook Instance by IP Address (https://docs.aws.amazon.com/sagemaker/latest/dg/security_iam_id-based-policy-examples.html#nbi-ip-filter).
//
-// The URL that you get from a call to is valid only for 5 minutes. If you try
-// to use the URL after the 5-minute limit expires, you are directed to the
-// AWS console sign-in page.
+// The URL that you get from a call to CreatePresignedNotebookInstanceUrl is
+// valid only for 5 minutes. If you try to use the URL after the 5-minute limit
+// expires, you are directed to the AWS console sign-in page.
//
// 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
@@ -3442,9 +3446,9 @@ func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Re
// DeleteModel API operation for Amazon SageMaker Service.
//
// Deletes a model. The DeleteModel API deletes only the model entry that was
-// created in Amazon SageMaker when you called the CreateModel (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
-// API. It does not delete model artifacts, inference code, or the IAM role
-// that you specified when creating the model.
+// created in Amazon SageMaker when you called the CreateModel API. It does
+// not delete model artifacts, inference code, or the IAM role that you specified
+// when creating the model.
//
// 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
@@ -8635,8 +8639,7 @@ func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Requ
// ListModels API operation for Amazon SageMaker Service.
//
-// Lists models created with the CreateModel (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
-// API.
+// Lists models created with the CreateModel API.
//
// 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
@@ -10725,9 +10728,9 @@ func (c *SageMaker) SearchRequest(input *SearchInput) (req *request.Request, out
// Search API operation for Amazon SageMaker Service.
//
-// Finds Amazon SageMaker resources that match a search query. Matching resource
-// objects are returned as a list of SearchResult objects in the response. You
-// can sort the search results by any resource property in a ascending or descending
+// Finds Amazon SageMaker resources that match a search query. Matching resources
+// are returned as a list of SearchRecord objects in the response. You can sort
+// the search results by any resource property in a ascending or descending
// order.
//
// You can query against the following value types: numeric, text, Boolean,
@@ -11942,8 +11945,7 @@ func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *requ
//
// When Amazon SageMaker receives the request, it sets the endpoint status to
// Updating. After updating the endpoint, it sets the status to InService. To
-// check the status of an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
-// API.
+// check the status of an endpoint, use the DescribeEndpoint API.
//
// You must not delete an EndpointConfig in use by an endpoint that is live
// or while the UpdateEndpoint or CreateEndpoint operations are being performed
@@ -12031,8 +12033,7 @@ func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpo
// endpoint, or capacity of one variant associated with an existing endpoint.
// When it receives the request, Amazon SageMaker sets the endpoint status to
// Updating. After updating the endpoint, it sets the status to InService. To
-// check the status of an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
-// API.
+// check the status of an endpoint, use the DescribeEndpoint API.
//
// 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
@@ -12904,8 +12905,7 @@ func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput {
return s
}
-// Specifies the training algorithm to use in a CreateTrainingJob (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html)
-// request.
+// Specifies the training algorithm to use in a CreateTrainingJob request.
//
// For more information about algorithms provided by Amazon SageMaker, see Algorithms
// (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information
@@ -13369,6 +13369,21 @@ type AnnotationConsolidationConfig struct {
// arn:aws:lambda:eu-west-2:487402164563:function:ACS-ImageMultiClass arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-ImageMultiClass
// arn:aws:lambda:ca-central-1:918755190332:function:ACS-ImageMultiClass
//
+ // * Multi-label image classification - Uses a variant of the Expectation
+ // Maximization approach to estimate the true classes of an image based on
+ // annotations from individual workers. arn:aws:lambda:us-east-1:432418664414:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:us-east-2:266458841044:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:us-west-2:081040173940:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:eu-west-1:568282634449:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ap-south-1:565803892007:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:eu-central-1:203001061592:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:eu-west-2:487402164563:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-ImageMultiClassMultiLabel
+ // arn:aws:lambda:ca-central-1:918755190332:function:ACS-ImageMultiClassMultiLabel
+ //
// * Semantic segmentation - Treats each pixel in an image as a multi-class
// classification and treats pixel annotations from workers as "votes" for
// the correct label. arn:aws:lambda:us-east-1:432418664414:function:ACS-SemanticSegmentation
@@ -13395,6 +13410,21 @@ type AnnotationConsolidationConfig struct {
// arn:aws:lambda:eu-west-2:487402164563:function:ACS-TextMultiClass arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-TextMultiClass
// arn:aws:lambda:ca-central-1:918755190332:function:ACS-TextMultiClass
//
+ // * Multi-label text classification - Uses a variant of the Expectation
+ // Maximization approach to estimate the true classes of text based on annotations
+ // from individual workers. arn:aws:lambda:us-east-1:432418664414:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:us-east-2:266458841044:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:us-west-2:081040173940:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:eu-west-1:568282634449:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ap-south-1:565803892007:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:eu-central-1:203001061592:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:eu-west-2:487402164563:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-TextMultiClassMultiLabel
+ // arn:aws:lambda:ca-central-1:918755190332:function:ACS-TextMultiClassMultiLabel
+ //
// * Named entity recognition - Groups similar selections and calculates
// aggregate boundaries, resolving to most-assigned label. arn:aws:lambda:us-east-1:432418664414:function:ACS-NamedEntityRecognition
// arn:aws:lambda:us-east-2:266458841044:function:ACS-NamedEntityRecognition
@@ -14017,7 +14047,9 @@ func (s *AutoMLContainerDefinition) SetModelDataUrl(v string) *AutoMLContainerDe
type AutoMLDataSource struct {
_ struct{} `type:"structure"`
- // The Amazon S3 location of the data.
+ // The Amazon S3 location of the input data.
+ //
+ // The input data must be in CSV format and contain at least 1000 rows.
//
// S3DataSource is a required field
S3DataSource *AutoMLS3DataSource `type:"structure" required:"true"`
@@ -15280,8 +15312,8 @@ func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJob
// There was a conflict when you attempted to modify an experiment, trial, or
// trial component.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -15298,17 +15330,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15316,22 +15348,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the container, as part of model definition.
@@ -15924,6 +15956,7 @@ type CreateAutoMLJobInput struct {
GenerateCandidateDefinitionsOnly *bool `type:"boolean"`
// Similar to InputDataConfig supported by Tuning. Format(s) supported: CSV.
+ // Minimum of 1000 rows.
//
// InputDataConfig is a required field
InputDataConfig []*AutoMLChannel `min:"1" type:"list" required:"true"`
@@ -16523,7 +16556,6 @@ type CreateEndpointConfigInput struct {
DataCaptureConfig *DataCaptureConfig `type:"structure"`
// The name of the endpoint configuration. You specify this name in a CreateEndpoint
- // (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
// request.
//
// EndpointConfigName is a required field
@@ -16687,8 +16719,7 @@ func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpo
type CreateEndpointInput struct {
_ struct{} `type:"structure"`
- // The name of an endpoint configuration. For more information, see CreateEndpointConfig
- // (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html).
+ // The name of an endpoint configuration. For more information, see CreateEndpointConfig.
//
// EndpointConfigName is a required field
EndpointConfigName *string `type:"string" required:"true"`
@@ -16908,6 +16939,10 @@ type CreateFlowDefinitionInput struct {
// HumanLoopConfig is a required field
HumanLoopConfig *HumanLoopConfig `type:"structure" required:"true"`
+ // Container for configuring the source of human task requests. Use to specify
+ // if Amazon Rekognition or Amazon Textract is used as an integration source.
+ HumanLoopRequestSource *HumanLoopRequestSource `type:"structure"`
+
// An object containing information about where the human review results will
// be uploaded.
//
@@ -16967,6 +17002,11 @@ func (s *CreateFlowDefinitionInput) Validate() error {
invalidParams.AddNested("HumanLoopConfig", err.(request.ErrInvalidParams))
}
}
+ if s.HumanLoopRequestSource != nil {
+ if err := s.HumanLoopRequestSource.Validate(); err != nil {
+ invalidParams.AddNested("HumanLoopRequestSource", err.(request.ErrInvalidParams))
+ }
+ }
if s.OutputConfig != nil {
if err := s.OutputConfig.Validate(); err != nil {
invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams))
@@ -17007,6 +17047,12 @@ func (s *CreateFlowDefinitionInput) SetHumanLoopConfig(v *HumanLoopConfig) *Crea
return s
}
+// SetHumanLoopRequestSource sets the HumanLoopRequestSource field's value.
+func (s *CreateFlowDefinitionInput) SetHumanLoopRequestSource(v *HumanLoopRequestSource) *CreateFlowDefinitionInput {
+ s.HumanLoopRequestSource = v
+ return s
+}
+
// SetOutputConfig sets the OutputConfig field's value.
func (s *CreateFlowDefinitionInput) SetOutputConfig(v *FlowDefinitionOutputConfig) *CreateFlowDefinitionInput {
s.OutputConfig = v
@@ -17163,7 +17209,7 @@ type CreateHyperParameterTuningJobInput struct {
// The HyperParameterTuningJobConfig object that describes the tuning job, including
// the search strategy, the objective metric used to evaluate training jobs,
// ranges of parameters to search, and resource limits for the tuning job. For
- // more information, see automatic-model-tuning
+ // more information, see How Hyperparameter Tuning Works (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html).
//
// HyperParameterTuningJobConfig is a required field
HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"`
@@ -17640,10 +17686,9 @@ type CreateModelInput struct {
// in the AWS Billing and Cost Management User Guide.
Tags []*Tag `type:"list"`
- // A VpcConfig (https://docs.aws.amazon.com/sagemaker/latest/dg/API_VpcConfig.html)
- // object that specifies the VPC that you want your model to connect to. Control
- // access to and from your model container by configuring the VPC. VpcConfig
- // is used in hosting services and in batch transform. For more information,
+ // A VpcConfig object that specifies the VPC that you want your model to connect
+ // to. Control access to and from your model container by configuring the VPC.
+ // VpcConfig is used in hosting services and in batch transform. For more information,
// see Protect Endpoints by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
// and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private
// Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html).
@@ -17930,7 +17975,7 @@ type CreateMonitoringScheduleInput struct {
MonitoringScheduleName *string `min:"1" type:"string" required:"true"`
// (Optional) An array of key-value pairs. For more information, see Using Cost
- // Allocation Tags (https://docs-aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
+ // Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
// in the AWS Billing and Cost Management User Guide.
Tags []*Tag `type:"list"`
}
@@ -18585,7 +18630,7 @@ type CreateProcessingJobInput struct {
StoppingCondition *ProcessingStoppingCondition `type:"structure"`
// (Optional) An array of key-value pairs. For more information, see Using Cost
- // Allocation Tags (https://docs-aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
+ // Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
// in the AWS Billing and Cost Management User Guide.
Tags []*Tag `type:"list"`
}
@@ -19179,8 +19224,8 @@ type CreateTransformJobInput struct {
// request. A record is a single unit of input data that inference can be made
// on. For example, a single line in a CSV file is a record.
//
- // To enable the batch strategy, you must set the SplitType property of the
- // DataProcessing object to Line, RecordIO, or TFRecord.
+ // To enable the batch strategy, you must set the SplitType property to Line,
+ // RecordIO, or TFRecord.
//
// To use only one record when making an HTTP invocation request to a container,
// set BatchStrategy to SingleRecord and SplitType to Line.
@@ -23275,6 +23320,10 @@ type DescribeFlowDefinitionOutput struct {
// HumanLoopConfig is a required field
HumanLoopConfig *HumanLoopConfig `type:"structure" required:"true"`
+ // Container for configuring the source of human task requests. Used to specify
+ // if Amazon Rekognition or Amazon Textract is used as an integration source.
+ HumanLoopRequestSource *HumanLoopRequestSource `type:"structure"`
+
// An object containing information about the output file.
//
// OutputConfig is a required field
@@ -23339,6 +23388,12 @@ func (s *DescribeFlowDefinitionOutput) SetHumanLoopConfig(v *HumanLoopConfig) *D
return s
}
+// SetHumanLoopRequestSource sets the HumanLoopRequestSource field's value.
+func (s *DescribeFlowDefinitionOutput) SetHumanLoopRequestSource(v *HumanLoopRequestSource) *DescribeFlowDefinitionOutput {
+ s.HumanLoopRequestSource = v
+ return s
+}
+
// SetOutputConfig sets the OutputConfig field's value.
func (s *DescribeFlowDefinitionOutput) SetOutputConfig(v *FlowDefinitionOutputConfig) *DescribeFlowDefinitionOutput {
s.OutputConfig = v
@@ -26934,7 +26989,7 @@ func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary {
return s
}
-// A summary of the properties of an experiment as returned by the Search API.
+// The properties of an experiment as returned by the Search API.
type Experiment struct {
_ struct{} `type:"structure"`
@@ -27296,15 +27351,11 @@ func (s *FileSystemDataSource) SetFileSystemType(v string) *FileSystemDataSource
}
// A conditional statement for a search expression that includes a resource
-// property, a Boolean operator, and a value.
-//
-// If you don't specify an Operator and a Value, the filter searches for only
-// the specified property. For example, defining a Filter for the FailureReason
-// for the TrainingJob Resource searches for training job objects that have
-// a value in the FailureReason field.
+// property, a Boolean operator, and a value. Resources that match the statement
+// are returned in the results from the Search API.
//
// If you specify a Value, but not an Operator, Amazon SageMaker uses the equals
-// operator as the default.
+// operator.
//
// In search, there are several property types:
//
@@ -27318,7 +27369,7 @@ func (s *FileSystemDataSource) SetFileSystemType(v string) *FileSystemDataSource
//
// "Name": "Metrics.accuracy",
//
-// "Operator": "GREATER_THAN",
+// "Operator": "GreaterThan",
//
// "Value": "0.9"
//
@@ -27337,7 +27388,7 @@ func (s *FileSystemDataSource) SetFileSystemType(v string) *FileSystemDataSource
//
// "Name": "HyperParameters.learning_rate",
//
-// "Operator": "LESS_THAN",
+// "Operator": "LessThan",
//
// "Value": "0.5"
//
@@ -27345,13 +27396,12 @@ func (s *FileSystemDataSource) SetFileSystemType(v string) *FileSystemDataSource
//
// Tags
//
-// To define a tag filter, enter a value with the form "Tags.".
+// To define a tag filter, enter a value with the form Tags..
type Filter struct {
_ struct{} `type:"structure"`
- // A property name. For example, TrainingJobName. For the list of valid property
- // names returned in a search result for each supported resource, see TrainingJob
- // properties. You must specify a valid property name for the resource.
+ // A resource property name. For example, TrainingJobName. For valid property
+ // names, see SearchRecord. You must specify a valid property for the resource.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -27361,44 +27411,53 @@ type Filter struct {
//
// Equals
//
- // The specified resource in Name equals the specified Value.
+ // The value of Name equals Value.
//
// NotEquals
//
- // The specified resource in Name does not equal the specified Value.
+ // The value of Name doesn't equal Value.
//
// GreaterThan
//
- // The specified resource in Name is greater than the specified Value. Not supported
- // for text-based properties.
+ // The value of Name is greater than Value. Not supported for text properties.
//
// GreaterThanOrEqualTo
//
- // The specified resource in Name is greater than or equal to the specified
- // Value. Not supported for text-based properties.
+ // The value of Name is greater than or equal to Value. Not supported for text
+ // properties.
//
// LessThan
//
- // The specified resource in Name is less than the specified Value. Not supported
- // for text-based properties.
+ // The value of Name is less than Value. Not supported for text properties.
//
// LessThanOrEqualTo
//
- // The specified resource in Name is less than or equal to the specified Value.
- // Not supported for text-based properties.
+ // The value of Name is less than or equal to Value. Not supported for text
+ // properties.
//
// Contains
//
- // Only supported for text-based properties. The word-list of the property contains
- // the specified Value. A SearchExpression can include only one Contains operator.
+ // The value of Name contains the string Value. A SearchExpression can include
+ // only one Contains operator. Only supported for text properties.
+ //
+ // Exists
+ //
+ // The Name property exists.
//
- // If you have specified a filter Value, the default is Equals.
+ // NotExists
+ //
+ // The Name property does not exist.
+ //
+ // In
+ //
+ // The value of Name is one of the comma delimited strings in Value. Only supported
+ // for text properties.
Operator *string `type:"string" enum:"Operator"`
- // A value used with Resource and Operator to determine if objects satisfy the
- // filter's condition. For numerical properties, Value must be an integer or
- // floating-point decimal. For timestamp properties, Value must be an ISO 8601
- // date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS.
+ // A value used with Name and Operator to determine which resources satisfy
+ // the filter's condition. For numerical properties, Value must be an integer
+ // or floating-point decimal. For timestamp properties, Value must be an ISO
+ // 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS.
Value *string `min:"1" type:"string"`
}
@@ -27665,7 +27724,7 @@ func (s *FlowDefinitionSummary) SetFlowDefinitionStatus(v string) *FlowDefinitio
type GetSearchSuggestionsInput struct {
_ struct{} `type:"structure"`
- // The name of the Amazon SageMaker resource to Search for.
+ // The name of the Amazon SageMaker resource to search for.
//
// Resource is a required field
Resource *string `type:"string" required:"true" enum:"ResourceType"`
@@ -27846,13 +27905,17 @@ func (s *GitConfigForUpdate) SetSecretArn(v string) *GitConfigForUpdate {
return s
}
-// Defines under what conditions SageMaker creates a human loop. Used within .
+// Defines under what conditions SageMaker creates a human loop. Used within
+// . See for the required format of activation conditions.
type HumanLoopActivationConditionsConfig struct {
_ struct{} `type:"structure"`
// JSON expressing use-case specific conditions declaratively. If any condition
// is matched, atomic tasks are created against the configured work team. The
- // set of conditions is different for Rekognition and Textract.
+ // set of conditions is different for Rekognition and Textract. For more information
+ // about how to structure the JSON, see JSON Schema for Human Loop Activation
+ // Conditions in Amazon Augmented AI (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-human-fallback-conditions-json-schema.html)
+ // in the Amazon SageMaker Developer Guide.
//
// HumanLoopActivationConditions is a required field
HumanLoopActivationConditions aws.JSONValue `type:"jsonvalue" required:"true"`
@@ -27898,11 +27961,6 @@ type HumanLoopActivationConfig struct {
//
// HumanLoopActivationConditionsConfig is a required field
HumanLoopActivationConditionsConfig *HumanLoopActivationConditionsConfig `type:"structure" required:"true"`
-
- // Container for configuring the source of human task requests.
- //
- // HumanLoopRequestSource is a required field
- HumanLoopRequestSource *HumanLoopRequestSource `type:"structure" required:"true"`
}
// String returns the string representation
@@ -27921,19 +27979,11 @@ func (s *HumanLoopActivationConfig) Validate() error {
if s.HumanLoopActivationConditionsConfig == nil {
invalidParams.Add(request.NewErrParamRequired("HumanLoopActivationConditionsConfig"))
}
- if s.HumanLoopRequestSource == nil {
- invalidParams.Add(request.NewErrParamRequired("HumanLoopRequestSource"))
- }
if s.HumanLoopActivationConditionsConfig != nil {
if err := s.HumanLoopActivationConditionsConfig.Validate(); err != nil {
invalidParams.AddNested("HumanLoopActivationConditionsConfig", err.(request.ErrInvalidParams))
}
}
- if s.HumanLoopRequestSource != nil {
- if err := s.HumanLoopRequestSource.Validate(); err != nil {
- invalidParams.AddNested("HumanLoopRequestSource", err.(request.ErrInvalidParams))
- }
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -27947,12 +27997,6 @@ func (s *HumanLoopActivationConfig) SetHumanLoopActivationConditionsConfig(v *Hu
return s
}
-// SetHumanLoopRequestSource sets the HumanLoopRequestSource field's value.
-func (s *HumanLoopActivationConfig) SetHumanLoopRequestSource(v *HumanLoopRequestSource) *HumanLoopActivationConfig {
- s.HumanLoopRequestSource = v
- return s
-}
-
// Describes the work to be performed by human workers.
type HumanLoopConfig struct {
_ struct{} `type:"structure"`
@@ -28383,10 +28427,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-east-1:432418664414:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-east-1:432418664414:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:us-east-1:432418664414:function:PRE-VerificationBoundingBox
@@ -28403,10 +28451,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-east-2:266458841044:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-east-2:266458841044:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:us-east-2:266458841044:function:PRE-VerificationBoundingBox
@@ -28423,10 +28475,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-west-2:081040173940:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:us-west-2:081040173940:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:us-west-2:081040173940:function:PRE-VerificationBoundingBox
@@ -28443,10 +28499,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ca-central-1:918755190332:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ca-central-1:918755190332:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ca-central-1:918755190332:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ca-central-1:918755190332:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ca-central-1:918755190332:function:PRE-VerificationBoundingBox
@@ -28463,10 +28523,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-west-1:568282634449:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-west-1:568282634449:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:eu-west-1:568282634449:function:PRE-VerificationBoundingBox
@@ -28483,10 +28547,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:eu-west-2:487402164563:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-west-2:487402164563:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:eu-west-2:487402164563:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-west-2:487402164563:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:eu-west-2:487402164563:function:PRE-VerificationBoundingBox
@@ -28503,10 +28571,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:eu-central-1:203001061592:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-central-1:203001061592:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:eu-central-1:203001061592:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:eu-central-1:203001061592:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:eu-central-1:203001061592:function:PRE-VerificationBoundingBox
@@ -28523,10 +28595,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-VerificationBoundingBox
@@ -28543,10 +28619,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-VerificationBoundingBox
@@ -28563,10 +28643,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ap-south-1:565803892007:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-south-1:565803892007:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ap-south-1:565803892007:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-south-1:565803892007:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ap-south-1:565803892007:function:PRE-VerificationBoundingBox
@@ -28583,10 +28667,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-VerificationBoundingBox
@@ -28603,10 +28691,14 @@ type HumanTaskConfig struct {
//
// * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-ImageMultiClass
//
+ // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-ImageMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-SemanticSegmentation
//
// * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-TextMultiClass
//
+ // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-TextMultiClassMultiLabel
+ //
// * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-NamedEntityRecognition
//
// * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-VerificationBoundingBox
@@ -28626,7 +28718,7 @@ type HumanTaskConfig struct {
// The length of time that a task remains available for labeling by human workers.
// If you choose the Amazon Mechanical Turk workforce, the maximum is 12 hours
- // (43200). The default value is 864000 seconds (1 day). For private and vendor
+ // (43200). The default value is 864000 seconds (10 days). For private and vendor
// workforces, the maximum is as listed.
TaskAvailabilityLifetimeInSeconds *int64 `min:"60" type:"integer"`
@@ -36954,22 +37046,16 @@ func (s *MonitoringStoppingCondition) SetMaxRuntimeInSeconds(v int64) *Monitorin
return s
}
-// Defines a list of NestedFilters objects. To satisfy the conditions specified
-// in the NestedFilters call, a resource must satisfy the conditions of all
-// of the filters.
+// A list of nested Filter objects. A resource must satisfy the conditions of
+// all filters to be included in the results returned from the Search API.
//
-// For example, you could define a NestedFilters using the training job's InputDataConfig
-// property to filter on Channel objects.
+// For example, to filter on a training job's InputDataConfig property with
+// a specific channel name and S3Uri prefix, define the following filters:
//
-// A NestedFilters object contains multiple filters. For example, to find all
-// training jobs whose name contains train and that have cat/data in their S3Uri
-// (specified in InputDataConfig), you need to create a NestedFilters object
-// that specifies the InputDataConfig property with the following Filter objects:
+// * '{Name:"InputDataConfig.ChannelName", "Operator":"Equals", "Value":"train"}',
//
-// * '{Name:"InputDataConfig.ChannelName", "Operator":"EQUALS", "Value":"train"}',
-//
-// * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"CONTAINS",
-// "Value":"cat/data"}'
+// * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"Contains",
+// "Value":"mybucket/catdata"}'
type NestedFilters struct {
_ struct{} `type:"structure"`
@@ -37918,6 +38004,232 @@ func (s *ProcessingInput) SetS3Input(v *ProcessingS3Input) *ProcessingInput {
return s
}
+// An Amazon SageMaker processing job that is used to analyze data and evaluate
+// models. For more information, see Process Data and Evaluate Models (https://docs.aws.amazon.com/sagemaker/latest/dg/processing-job.html).
+type ProcessingJob struct {
+ _ struct{} `type:"structure"`
+
+ // Configuration to run a processing job in a specified container image.
+ AppSpecification *AppSpecification `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the AutoML job associated with this processing
+ // job.
+ AutoMLJobArn *string `min:"1" type:"string"`
+
+ // The time the processing job was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // Sets the environment variables in the Docker container.
+ Environment map[string]*string `type:"map"`
+
+ // A string, up to one KB in size, that contains metadata from the processing
+ // container when the processing job exits.
+ ExitMessage *string `type:"string"`
+
+ // Configuration for the experiment.
+ ExperimentConfig *ExperimentConfig `type:"structure"`
+
+ // A string, up to one KB in size, that contains the reason a processing job
+ // failed, if it failed.
+ FailureReason *string `type:"string"`
+
+ // The time the processing job was last modified.
+ LastModifiedTime *time.Time `type:"timestamp"`
+
+ // The ARN of a monitoring schedule for an endpoint associated with this processing
+ // job.
+ MonitoringScheduleArn *string `type:"string"`
+
+ // Networking options for a job, such as network traffic encryption between
+ // containers, whether to allow inbound and outbound network calls to and from
+ // containers, and the VPC subnets and security groups to use for VPC-enabled
+ // jobs.
+ NetworkConfig *NetworkConfig `type:"structure"`
+
+ // The time that the processing job ended.
+ ProcessingEndTime *time.Time `type:"timestamp"`
+
+ // For each input, data is downloaded from S3 into the processing container
+ // before the processing job begins running if "S3InputMode" is set to File.
+ ProcessingInputs []*ProcessingInput `type:"list"`
+
+ // The ARN of the processing job.
+ ProcessingJobArn *string `type:"string"`
+
+ // The name of the processing job.
+ ProcessingJobName *string `min:"1" type:"string"`
+
+ // The status of the processing job.
+ ProcessingJobStatus *string `type:"string" enum:"ProcessingJobStatus"`
+
+ // The output configuration for the processing job.
+ ProcessingOutputConfig *ProcessingOutputConfig `type:"structure"`
+
+ // Identifies the resources, ML compute instances, and ML storage volumes to
+ // deploy for a processing job. In distributed training, you specify more than
+ // one instance.
+ ProcessingResources *ProcessingResources `type:"structure"`
+
+ // The time that the processing job started.
+ ProcessingStartTime *time.Time `type:"timestamp"`
+
+ // The ARN of the role used to create the processing job.
+ RoleArn *string `min:"20" type:"string"`
+
+ // Specifies a time limit for how long the processing job is allowed to run.
+ StoppingCondition *ProcessingStoppingCondition `type:"structure"`
+
+ // An array of key-value pairs. For more information, see Using Cost Allocation
+ // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
+ // in the AWS Billing and Cost Management User Guide.
+ Tags []*Tag `type:"list"`
+
+ // The ARN of the training job associated with this processing job.
+ TrainingJobArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ProcessingJob) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ProcessingJob) GoString() string {
+ return s.String()
+}
+
+// SetAppSpecification sets the AppSpecification field's value.
+func (s *ProcessingJob) SetAppSpecification(v *AppSpecification) *ProcessingJob {
+ s.AppSpecification = v
+ return s
+}
+
+// SetAutoMLJobArn sets the AutoMLJobArn field's value.
+func (s *ProcessingJob) SetAutoMLJobArn(v string) *ProcessingJob {
+ s.AutoMLJobArn = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *ProcessingJob) SetCreationTime(v time.Time) *ProcessingJob {
+ s.CreationTime = &v
+ return s
+}
+
+// SetEnvironment sets the Environment field's value.
+func (s *ProcessingJob) SetEnvironment(v map[string]*string) *ProcessingJob {
+ s.Environment = v
+ return s
+}
+
+// SetExitMessage sets the ExitMessage field's value.
+func (s *ProcessingJob) SetExitMessage(v string) *ProcessingJob {
+ s.ExitMessage = &v
+ return s
+}
+
+// SetExperimentConfig sets the ExperimentConfig field's value.
+func (s *ProcessingJob) SetExperimentConfig(v *ExperimentConfig) *ProcessingJob {
+ s.ExperimentConfig = v
+ return s
+}
+
+// SetFailureReason sets the FailureReason field's value.
+func (s *ProcessingJob) SetFailureReason(v string) *ProcessingJob {
+ s.FailureReason = &v
+ return s
+}
+
+// SetLastModifiedTime sets the LastModifiedTime field's value.
+func (s *ProcessingJob) SetLastModifiedTime(v time.Time) *ProcessingJob {
+ s.LastModifiedTime = &v
+ return s
+}
+
+// SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value.
+func (s *ProcessingJob) SetMonitoringScheduleArn(v string) *ProcessingJob {
+ s.MonitoringScheduleArn = &v
+ return s
+}
+
+// SetNetworkConfig sets the NetworkConfig field's value.
+func (s *ProcessingJob) SetNetworkConfig(v *NetworkConfig) *ProcessingJob {
+ s.NetworkConfig = v
+ return s
+}
+
+// SetProcessingEndTime sets the ProcessingEndTime field's value.
+func (s *ProcessingJob) SetProcessingEndTime(v time.Time) *ProcessingJob {
+ s.ProcessingEndTime = &v
+ return s
+}
+
+// SetProcessingInputs sets the ProcessingInputs field's value.
+func (s *ProcessingJob) SetProcessingInputs(v []*ProcessingInput) *ProcessingJob {
+ s.ProcessingInputs = v
+ return s
+}
+
+// SetProcessingJobArn sets the ProcessingJobArn field's value.
+func (s *ProcessingJob) SetProcessingJobArn(v string) *ProcessingJob {
+ s.ProcessingJobArn = &v
+ return s
+}
+
+// SetProcessingJobName sets the ProcessingJobName field's value.
+func (s *ProcessingJob) SetProcessingJobName(v string) *ProcessingJob {
+ s.ProcessingJobName = &v
+ return s
+}
+
+// SetProcessingJobStatus sets the ProcessingJobStatus field's value.
+func (s *ProcessingJob) SetProcessingJobStatus(v string) *ProcessingJob {
+ s.ProcessingJobStatus = &v
+ return s
+}
+
+// SetProcessingOutputConfig sets the ProcessingOutputConfig field's value.
+func (s *ProcessingJob) SetProcessingOutputConfig(v *ProcessingOutputConfig) *ProcessingJob {
+ s.ProcessingOutputConfig = v
+ return s
+}
+
+// SetProcessingResources sets the ProcessingResources field's value.
+func (s *ProcessingJob) SetProcessingResources(v *ProcessingResources) *ProcessingJob {
+ s.ProcessingResources = v
+ return s
+}
+
+// SetProcessingStartTime sets the ProcessingStartTime field's value.
+func (s *ProcessingJob) SetProcessingStartTime(v time.Time) *ProcessingJob {
+ s.ProcessingStartTime = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *ProcessingJob) SetRoleArn(v string) *ProcessingJob {
+ s.RoleArn = &v
+ return s
+}
+
+// SetStoppingCondition sets the StoppingCondition field's value.
+func (s *ProcessingJob) SetStoppingCondition(v *ProcessingStoppingCondition) *ProcessingJob {
+ s.StoppingCondition = v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *ProcessingJob) SetTags(v []*Tag) *ProcessingJob {
+ s.Tags = v
+ return s
+}
+
+// SetTrainingJobArn sets the TrainingJobArn field's value.
+func (s *ProcessingJob) SetTrainingJobArn(v string) *ProcessingJob {
+ s.TrainingJobArn = &v
+ return s
+}
+
// Summary of information about a processing job.
type ProcessingJobSummary struct {
_ struct{} `type:"structure"`
@@ -38193,7 +38505,7 @@ type ProcessingS3Input struct {
// LocalPath is a required field
LocalPath *string `type:"string" required:"true"`
- // Whether to use Gzip compresion for Amazon S3 storage.
+ // Whether to use Gzip compression for Amazon S3 storage.
S3CompressionType *string `type:"string" enum:"ProcessingS3CompressionType"`
// Whether the data stored in Amazon S3 is FullyReplicated or ShardedByS3Key.
@@ -38209,7 +38521,7 @@ type ProcessingS3Input struct {
// S3DataType is a required field
S3DataType *string `type:"string" required:"true" enum:"ProcessingS3DataType"`
- // Wether to use File or Pipe input mode. In File mode, Amazon SageMaker copies
+ // Whether to use File or Pipe input mode. In File mode, Amazon SageMaker copies
// the data from the input source onto the local Amazon Elastic Block Store
// (Amazon EBS) volumes before starting your training algorithm. This is the
// most commonly used input mode. In Pipe mode, Amazon SageMaker streams input
@@ -39254,8 +39566,8 @@ func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig {
// Resource being accessed is in use.
type ResourceInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39272,17 +39584,17 @@ func (s ResourceInUse) GoString() string {
func newErrorResourceInUse(v protocol.ResponseMetadata) error {
return &ResourceInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUse) Code() string {
+func (s *ResourceInUse) Code() string {
return "ResourceInUse"
}
// Message returns the exception's message.
-func (s ResourceInUse) Message() string {
+func (s *ResourceInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39290,29 +39602,29 @@ func (s ResourceInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUse) OrigErr() error {
+func (s *ResourceInUse) OrigErr() error {
return nil
}
-func (s ResourceInUse) Error() string {
+func (s *ResourceInUse) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have exceeded an Amazon SageMaker resource limit. For example, you might
// have too many training jobs created.
type ResourceLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39329,17 +39641,17 @@ func (s ResourceLimitExceeded) GoString() string {
func newErrorResourceLimitExceeded(v protocol.ResponseMetadata) error {
return &ResourceLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceeded) Code() string {
+func (s *ResourceLimitExceeded) Code() string {
return "ResourceLimitExceeded"
}
// Message returns the exception's message.
-func (s ResourceLimitExceeded) Message() string {
+func (s *ResourceLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39347,22 +39659,22 @@ func (s ResourceLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceeded) OrigErr() error {
+func (s *ResourceLimitExceeded) OrigErr() error {
return nil
}
-func (s ResourceLimitExceeded) Error() string {
+func (s *ResourceLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the maximum number of training jobs and parallel training jobs
@@ -39429,8 +39741,8 @@ func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits {
// Resource being access is not found.
type ResourceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39447,17 +39759,17 @@ func (s ResourceNotFound) GoString() string {
func newErrorResourceNotFound(v protocol.ResponseMetadata) error {
return &ResourceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFound) Code() string {
+func (s *ResourceNotFound) Code() string {
return "ResourceNotFound"
}
// Message returns the exception's message.
-func (s ResourceNotFound) Message() string {
+func (s *ResourceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39465,33 +39777,35 @@ func (s ResourceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFound) OrigErr() error {
+func (s *ResourceNotFound) OrigErr() error {
return nil
}
-func (s ResourceNotFound) Error() string {
+func (s *ResourceNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
-// The instance type and quantity.
+// The instance type and the Amazon Resource Name (ARN) of the image created
+// on the instance. The ARN is stored as metadata in Amazon SageMaker Studio
+// notebooks.
type ResourceSpec struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the environment.
- EnvironmentArn *string `type:"string"`
-
// The instance type.
InstanceType *string `type:"string" enum:"AppInstanceType"`
+
+ // The Amazon Resource Name (ARN) of the image created on the instance.
+ SageMakerImageArn *string `type:"string"`
}
// String returns the string representation
@@ -39504,18 +39818,18 @@ func (s ResourceSpec) GoString() string {
return s.String()
}
-// SetEnvironmentArn sets the EnvironmentArn field's value.
-func (s *ResourceSpec) SetEnvironmentArn(v string) *ResourceSpec {
- s.EnvironmentArn = &v
- return s
-}
-
// SetInstanceType sets the InstanceType field's value.
func (s *ResourceSpec) SetInstanceType(v string) *ResourceSpec {
s.InstanceType = &v
return s
}
+// SetSageMakerImageArn sets the SageMakerImageArn field's value.
+func (s *ResourceSpec) SetSageMakerImageArn(v string) *ResourceSpec {
+ s.SageMakerImageArn = &v
+ return s
+}
+
// The retention policy.
type RetentionPolicy struct {
_ struct{} `type:"structure"`
@@ -39850,13 +40164,12 @@ func (s *SearchExpression) SetSubExpressions(v []*SearchExpression) *SearchExpre
type SearchInput struct {
_ struct{} `type:"structure"`
- // The maximum number of results to return in a SearchResponse.
+ // The maximum number of results to return.
MaxResults *int64 `min:"1" type:"integer"`
- // If more than MaxResults resource objects match the specified SearchExpression,
- // the SearchResponse includes a NextToken. The NextToken can be passed to the
- // next SearchRequest to continue retrieving results for the specified SearchExpression
- // and Sort parameters.
+ // If more than MaxResults resources match the specified SearchExpression, the
+ // response includes a NextToken. The NextToken can be passed to the next SearchRequest
+ // to continue retrieving results.
NextToken *string `type:"string"`
// The name of the Amazon SageMaker resource to search for.
@@ -39864,8 +40177,8 @@ type SearchInput struct {
// Resource is a required field
Resource *string `type:"string" required:"true" enum:"ResourceType"`
- // A Boolean conditional statement. Resource objects must satisfy this condition
- // to be included in search results. You must provide at least one subexpression,
+ // A Boolean conditional statement. Resources must satisfy this condition to
+ // be included in search results. You must provide at least one subexpression,
// filter, or nested filter. The maximum number of recursive SubExpressions,
// NestedFilters, and Filters that can be included in a SearchExpression object
// is 50.
@@ -39958,7 +40271,7 @@ type SearchOutput struct {
// in the next request.
NextToken *string `type:"string"`
- // A list of SearchResult objects.
+ // A list of SearchRecord objects.
Results []*SearchRecord `type:"list"`
}
@@ -39984,20 +40297,20 @@ func (s *SearchOutput) SetResults(v []*SearchRecord) *SearchOutput {
return s
}
-// An individual search result record that contains a single resource object.
+// A single resource returned as part of the Search API response.
type SearchRecord struct {
_ struct{} `type:"structure"`
- // A summary of the properties of an experiment.
+ // The properties of an experiment.
Experiment *Experiment `type:"structure"`
- // A TrainingJob object that is returned as part of a Search request.
+ // The properties of a training job.
TrainingJob *TrainingJob `type:"structure"`
- // A summary of the properties of a trial.
+ // The properties of a trial.
Trial *Trial `type:"structure"`
- // A summary of the properties of a trial component.
+ // The properties of a trial component.
TrialComponent *TrialComponent `type:"structure"`
}
@@ -41368,7 +41681,7 @@ type TrainingJob struct {
// When true, enables managed spot training using Amazon EC2 Spot instances
// to run training jobs instead of on-demand instances. For more information,
- // see model-managed-spot-training.
+ // see Managed Spot Training (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html).
EnableManagedSpotTraining *bool `type:"boolean"`
// If the TrainingJob was created with network isolation, the value is set to
@@ -42834,7 +43147,7 @@ func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource {
return s
}
-// A summary of the properties of a trial as returned by the Search API.
+// The properties of a trial as returned by the Search API.
type Trial struct {
_ struct{} `type:"structure"`
@@ -42953,8 +43266,7 @@ func (s *Trial) SetTrialName(v string) *Trial {
return s
}
-// A summary of the properties of a trial component as returned by the Search
-// API.
+// The properties of a trial component as returned by the Search API.
type TrialComponent struct {
_ struct{} `type:"structure"`
@@ -42996,10 +43308,10 @@ type TrialComponent struct {
// not have any parents.
Parents []*Parent `type:"list"`
- // The source of the trial component.
+ // The Amazon Resource Name (ARN) and job type of the source of the component.
Source *TrialComponentSource `type:"structure"`
- // The source of the trial component.>
+ // Details of the source of the component.
SourceDetail *TrialComponentSourceDetail `type:"structure"`
// When the component started.
@@ -43345,7 +43657,7 @@ type TrialComponentSimpleSummary struct {
// The name of the trial component.
TrialComponentName *string `min:"1" type:"string"`
- // The source of the trial component.
+ // The Amazon Resource Name (ARN) and job type of the source of a trial component.
TrialComponentSource *TrialComponentSource `type:"structure"`
}
@@ -43389,11 +43701,11 @@ func (s *TrialComponentSimpleSummary) SetTrialComponentSource(v *TrialComponentS
return s
}
-// The source of the trial component.
+// The Amazon Resource Name (ARN) and job type of the source of a trial component.
type TrialComponentSource struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the source.
+ // The source ARN.
//
// SourceArn is a required field
SourceArn *string `type:"string" required:"true"`
@@ -43424,14 +43736,18 @@ func (s *TrialComponentSource) SetSourceType(v string) *TrialComponentSource {
return s
}
-// Detailed information about the source of a trial component.
+// Detailed information about the source of a trial component. Either ProcessingJob
+// or TrainingJob is returned.
type TrialComponentSourceDetail struct {
_ struct{} `type:"structure"`
+ // Information about a processing job that's the source of a trial component.
+ ProcessingJob *ProcessingJob `type:"structure"`
+
// The Amazon Resource Name (ARN) of the source.
SourceArn *string `type:"string"`
- // Contains information about a training job.
+ // Information about a training job that's the source of a trial component.
TrainingJob *TrainingJob `type:"structure"`
}
@@ -43445,6 +43761,12 @@ func (s TrialComponentSourceDetail) GoString() string {
return s.String()
}
+// SetProcessingJob sets the ProcessingJob field's value.
+func (s *TrialComponentSourceDetail) SetProcessingJob(v *ProcessingJob) *TrialComponentSourceDetail {
+ s.ProcessingJob = v
+ return s
+}
+
// SetSourceArn sets the SourceArn field's value.
func (s *TrialComponentSourceDetail) SetSourceArn(v string) *TrialComponentSourceDetail {
s.SourceArn = &v
@@ -43532,7 +43854,7 @@ type TrialComponentSummary struct {
// The name of the trial component.
TrialComponentName *string `min:"1" type:"string"`
- // The source of the trial component.
+ // The Amazon Resource Name (ARN) and job type of the source of a trial component.
TrialComponentSource *TrialComponentSource `type:"structure"`
}
@@ -43886,7 +44208,7 @@ func (s *UiTemplate) SetContent(v string) *UiTemplate {
type UiTemplateInfo struct {
_ struct{} `type:"structure"`
- // The SHA 256 hash that you used to create the request signature.
+ // The SHA-256 digest of the contents of the template.
ContentSha256 *string `min:"1" type:"string"`
// The URL for the user interface template.
@@ -44088,12 +44410,11 @@ type UpdateEndpointInput struct {
// EndpointName is a required field
EndpointName *string `type:"string" required:"true"`
- // When you are updating endpoint resources with RetainAllVariantProperties
- // (https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties),
+ // When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties,
// whose value is set to true, ExcludeRetainedVariantProperties specifies the
- // list of type VariantProperty (https://docs.aws.amazon.com/sagemaker/latest/dg/API_VariantProperty.html)
- // to override with the values provided by EndpointConfig. If you don't specify
- // a value for ExcludeAllVariantProperties, no variant properties are overridden.
+ // list of type VariantProperty to override with the values provided by EndpointConfig.
+ // If you don't specify a value for ExcludeAllVariantProperties, no variant
+ // properties are overridden.
ExcludeRetainedVariantProperties []*VariantProperty `type:"list"`
// When updating endpoint resources, enables or disables the retention of variant
@@ -45487,9 +45808,8 @@ func (s *UserSettings) SetTensorBoardAppSettings(v *TensorBoardAppSettings) *Use
// Specifies a production variant property type for an Endpoint.
//
-// If you are updating an endpoint with the RetainAllVariantProperties (https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties)
-// option set to true, the VariantProperty objects listed in ExcludeRetainedVariantProperties
-// (https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-ExcludeRetainedVariantProperties)
+// If you are updating an endpoint with the UpdateEndpointInput$RetainAllVariantProperties
+// option set to true, the VariantProperty objects listed in UpdateEndpointInput$ExcludeRetainedVariantProperties
// override the existing variant properties of the endpoint.
type VariantProperty struct {
_ struct{} `type:"structure"`
@@ -45497,12 +45817,10 @@ type VariantProperty struct {
// The type of variant property. The supported values are:
//
// * DesiredInstanceCount: Overrides the existing variant instance counts
- // using the InitialInstanceCount (https://docs.aws.amazon.com/sagemaker/latest/dg/API_ProductionVariant.html#SageMaker-Type-ProductionVariant-InitialInstanceCount)
- // values in the ProductionVariants (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html#SageMaker-CreateEndpointConfig-request-ProductionVariants).
+ // using the ProductionVariant$InitialInstanceCount values in the CreateEndpointConfigInput$ProductionVariants.
//
- // * DesiredWeight: Overrides the existing variant weights using the InitialVariantWeight
- // (https://docs.aws.amazon.com/sagemaker/latest/dg/API_ProductionVariant.html#SageMaker-Type-ProductionVariant-InitialVariantWeight)
- // values in the ProductionVariants (https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html#SageMaker-CreateEndpointConfig-request-ProductionVariants).
+ // * DesiredWeight: Overrides the existing variant weights using the ProductionVariant$InitialVariantWeight
+ // values in the CreateEndpointConfigInput$ProductionVariants.
//
// * DataCaptureConfig: (Not currently supported.)
//
@@ -46333,9 +46651,6 @@ const (
// FlowDefinitionStatusDeleting is a FlowDefinitionStatus enum value
FlowDefinitionStatusDeleting = "Deleting"
-
- // FlowDefinitionStatusDeleted is a FlowDefinitionStatus enum value
- FlowDefinitionStatusDeleted = "Deleted"
)
const (
@@ -46356,6 +46671,9 @@ const (
// FrameworkXgboost is a Framework enum value
FrameworkXgboost = "XGBOOST"
+
+ // FrameworkTflite is a Framework enum value
+ FrameworkTflite = "TFLITE"
)
const (
@@ -46773,6 +47091,9 @@ const (
// OperatorNotExists is a Operator enum value
OperatorNotExists = "NotExists"
+
+ // OperatorIn is a Operator enum value
+ OperatorIn = "In"
)
const (
@@ -47465,6 +47786,9 @@ const (
// TargetDeviceQcs603 is a TargetDevice enum value
TargetDeviceQcs603 = "qcs603"
+ // TargetDeviceSitaraAm57x is a TargetDevice enum value
+ TargetDeviceSitaraAm57x = "sitara_am57x"
+
// TargetDeviceAmbaCv22 is a TargetDevice enum value
TargetDeviceAmbaCv22 = "amba_cv22"
)
@@ -47576,6 +47900,21 @@ const (
// TrainingInstanceTypeMlC518xlarge is a TrainingInstanceType enum value
TrainingInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
+
+ // TrainingInstanceTypeMlC5nXlarge is a TrainingInstanceType enum value
+ TrainingInstanceTypeMlC5nXlarge = "ml.c5n.xlarge"
+
+ // TrainingInstanceTypeMlC5n2xlarge is a TrainingInstanceType enum value
+ TrainingInstanceTypeMlC5n2xlarge = "ml.c5n.2xlarge"
+
+ // TrainingInstanceTypeMlC5n4xlarge is a TrainingInstanceType enum value
+ TrainingInstanceTypeMlC5n4xlarge = "ml.c5n.4xlarge"
+
+ // TrainingInstanceTypeMlC5n9xlarge is a TrainingInstanceType enum value
+ TrainingInstanceTypeMlC5n9xlarge = "ml.c5n.9xlarge"
+
+ // TrainingInstanceTypeMlC5n18xlarge is a TrainingInstanceType enum value
+ TrainingInstanceTypeMlC5n18xlarge = "ml.c5n.18xlarge"
)
const (
@@ -47723,6 +48062,12 @@ const (
// TrialComponentPrimaryStatusFailed is a TrialComponentPrimaryStatus enum value
TrialComponentPrimaryStatusFailed = "Failed"
+
+ // TrialComponentPrimaryStatusStopping is a TrialComponentPrimaryStatus enum value
+ TrialComponentPrimaryStatusStopping = "Stopping"
+
+ // TrialComponentPrimaryStatusStopped is a TrialComponentPrimaryStatus enum value
+ TrialComponentPrimaryStatusStopped = "Stopped"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/doc.go b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/doc.go
index 38b7a815f6d..0dda1b81f74 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/doc.go
@@ -5,6 +5,12 @@
//
// Provides APIs for creating and managing Amazon SageMaker resources.
//
+// Other Resources:
+//
+// * Amazon SageMaker Developer Guide (https://docs.aws.amazon.com/sagemaker/latest/dg/whatis.html#first-time-user)
+//
+// * Amazon Augmented AI Runtime API Reference (https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/Welcome.html)
+//
// See https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24 for more information on this service.
//
// See sagemaker package documentation for more information.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go
index 5362b3503f1..7dfecc65803 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go
@@ -2874,8 +2874,8 @@ func (s *CreateSecretOutput) SetVersionId(v string) *CreateSecretOutput {
// Secrets Manager can't decrypt the protected secret text using the provided
// KMS key.
type DecryptionFailure struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2892,17 +2892,17 @@ func (s DecryptionFailure) GoString() string {
func newErrorDecryptionFailure(v protocol.ResponseMetadata) error {
return &DecryptionFailure{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DecryptionFailure) Code() string {
+func (s *DecryptionFailure) Code() string {
return "DecryptionFailure"
}
// Message returns the exception's message.
-func (s DecryptionFailure) Message() string {
+func (s *DecryptionFailure) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2910,22 +2910,22 @@ func (s DecryptionFailure) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DecryptionFailure) OrigErr() error {
+func (s *DecryptionFailure) OrigErr() error {
return nil
}
-func (s DecryptionFailure) Error() string {
+func (s *DecryptionFailure) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DecryptionFailure) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DecryptionFailure) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DecryptionFailure) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DecryptionFailure) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteResourcePolicyInput struct {
@@ -3371,8 +3371,8 @@ func (s *DescribeSecretOutput) SetVersionIdsToStages(v map[string][]*string) *De
// and not in an invalid state. For more information, see How Key State Affects
// Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html).
type EncryptionFailure struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3389,17 +3389,17 @@ func (s EncryptionFailure) GoString() string {
func newErrorEncryptionFailure(v protocol.ResponseMetadata) error {
return &EncryptionFailure{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EncryptionFailure) Code() string {
+func (s *EncryptionFailure) Code() string {
return "EncryptionFailure"
}
// Message returns the exception's message.
-func (s EncryptionFailure) Message() string {
+func (s *EncryptionFailure) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3407,22 +3407,22 @@ func (s EncryptionFailure) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EncryptionFailure) OrigErr() error {
+func (s *EncryptionFailure) OrigErr() error {
return nil
}
-func (s EncryptionFailure) Error() string {
+func (s *EncryptionFailure) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EncryptionFailure) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EncryptionFailure) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EncryptionFailure) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EncryptionFailure) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetRandomPasswordInput struct {
@@ -3865,8 +3865,8 @@ func (s *GetSecretValueOutput) SetVersionStages(v []*string) *GetSecretValueOutp
// An error occurred on the server side.
type InternalServiceError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3883,17 +3883,17 @@ func (s InternalServiceError) GoString() string {
func newErrorInternalServiceError(v protocol.ResponseMetadata) error {
return &InternalServiceError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceError) Code() string {
+func (s *InternalServiceError) Code() string {
return "InternalServiceError"
}
// Message returns the exception's message.
-func (s InternalServiceError) Message() string {
+func (s *InternalServiceError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3901,28 +3901,28 @@ func (s InternalServiceError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceError) OrigErr() error {
+func (s *InternalServiceError) OrigErr() error {
return nil
}
-func (s InternalServiceError) Error() string {
+func (s *InternalServiceError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You provided an invalid NextToken value.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3939,17 +3939,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3957,28 +3957,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You provided an invalid value for a parameter.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3995,17 +3995,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4013,22 +4013,22 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You provided a parameter value that is not valid for the current state of
@@ -4043,8 +4043,8 @@ func (s InvalidParameterException) RequestID() string {
// Lambda function ARN configured and you didn't include such an ARN as a
// parameter in this call.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4061,17 +4061,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4079,29 +4079,29 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request failed because it would exceed one of the Secrets Manager internal
// limits.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4118,17 +4118,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4136,22 +4136,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListSecretVersionIdsInput struct {
@@ -4417,8 +4417,8 @@ func (s *ListSecretsOutput) SetSecretList(v []*SecretListEntry) *ListSecretsOutp
// The policy document that you provided isn't valid.
type MalformedPolicyDocumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4435,17 +4435,17 @@ func (s MalformedPolicyDocumentException) GoString() string {
func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error {
return &MalformedPolicyDocumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MalformedPolicyDocumentException) Code() string {
+func (s *MalformedPolicyDocumentException) Code() string {
return "MalformedPolicyDocumentException"
}
// Message returns the exception's message.
-func (s MalformedPolicyDocumentException) Message() string {
+func (s *MalformedPolicyDocumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4453,28 +4453,28 @@ func (s MalformedPolicyDocumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MalformedPolicyDocumentException) OrigErr() error {
+func (s *MalformedPolicyDocumentException) OrigErr() error {
return nil
}
-func (s MalformedPolicyDocumentException) Error() string {
+func (s *MalformedPolicyDocumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MalformedPolicyDocumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MalformedPolicyDocumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MalformedPolicyDocumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MalformedPolicyDocumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request failed because you did not complete all the prerequisite steps.
type PreconditionNotMetException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4491,17 +4491,17 @@ func (s PreconditionNotMetException) GoString() string {
func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error {
return &PreconditionNotMetException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PreconditionNotMetException) Code() string {
+func (s *PreconditionNotMetException) Code() string {
return "PreconditionNotMetException"
}
// Message returns the exception's message.
-func (s PreconditionNotMetException) Message() string {
+func (s *PreconditionNotMetException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4509,22 +4509,22 @@ func (s PreconditionNotMetException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PreconditionNotMetException) OrigErr() error {
+func (s *PreconditionNotMetException) OrigErr() error {
return nil
}
-func (s PreconditionNotMetException) Error() string {
+func (s *PreconditionNotMetException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PreconditionNotMetException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PreconditionNotMetException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PreconditionNotMetException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PreconditionNotMetException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutResourcePolicyInput struct {
@@ -4856,8 +4856,8 @@ func (s *PutSecretValueOutput) SetVersionStages(v []*string) *PutSecretValueOutp
// A resource with the ID you requested already exists.
type ResourceExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4874,17 +4874,17 @@ func (s ResourceExistsException) GoString() string {
func newErrorResourceExistsException(v protocol.ResponseMetadata) error {
return &ResourceExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceExistsException) Code() string {
+func (s *ResourceExistsException) Code() string {
return "ResourceExistsException"
}
// Message returns the exception's message.
-func (s ResourceExistsException) Message() string {
+func (s *ResourceExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4892,28 +4892,28 @@ func (s ResourceExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceExistsException) OrigErr() error {
+func (s *ResourceExistsException) OrigErr() error {
return nil
}
-func (s ResourceExistsException) Error() string {
+func (s *ResourceExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// We can't find the resource that you asked for.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4930,17 +4930,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4948,22 +4948,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type RestoreSecretInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go
index 118713f6bc4..5bd00bd6b12 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go
@@ -349,6 +349,28 @@ func (c *SecurityHub) BatchImportFindingsRequest(input *BatchImportFindingsInput
// The maximum allowed size for a finding is 240 Kb. An error is returned for
// any finding larger than 240 Kb.
//
+// After a finding is created, BatchImportFindings cannot be used to update
+// the following finding fields and objects, which Security Hub customers use
+// to manage their investigation workflow.
+//
+// * Confidence
+//
+// * Criticality
+//
+// * Note
+//
+// * RelatedFindings
+//
+// * Severity
+//
+// * Types
+//
+// * UserDefinedFields
+//
+// * VerificationState
+//
+// * Workflow
+//
// 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.
@@ -393,6 +415,125 @@ func (c *SecurityHub) BatchImportFindingsWithContext(ctx aws.Context, input *Bat
return out, req.Send()
}
+const opBatchUpdateFindings = "BatchUpdateFindings"
+
+// BatchUpdateFindingsRequest generates a "aws/request.Request" representing the
+// client's request for the BatchUpdateFindings operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See BatchUpdateFindings for more information on using the BatchUpdateFindings
+// 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 BatchUpdateFindingsRequest method.
+// req, resp := client.BatchUpdateFindingsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchUpdateFindings
+func (c *SecurityHub) BatchUpdateFindingsRequest(input *BatchUpdateFindingsInput) (req *request.Request, output *BatchUpdateFindingsOutput) {
+ op := &request.Operation{
+ Name: opBatchUpdateFindings,
+ HTTPMethod: "PATCH",
+ HTTPPath: "/findings/batchupdate",
+ }
+
+ if input == nil {
+ input = &BatchUpdateFindingsInput{}
+ }
+
+ output = &BatchUpdateFindingsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// BatchUpdateFindings API operation for AWS SecurityHub.
+//
+// Used by Security Hub customers to update information about their investigation
+// into a finding. Requested by master accounts or member accounts. Master accounts
+// can update findings for their account and their member accounts. Member accounts
+// can update findings for their account.
+//
+// Updates from BatchUpdateFindings do not affect the value of UpdatedAt for
+// a finding.
+//
+// Master accounts can use BatchUpdateFindings to update the following finding
+// fields and objects.
+//
+// * Confidence
+//
+// * Criticality
+//
+// * Note
+//
+// * RelatedFindings
+//
+// * Severity
+//
+// * Types
+//
+// * UserDefinedFields
+//
+// * VerificationState
+//
+// * Workflow
+//
+// Member accounts can only use BatchUpdateFindings to update the Note object.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS SecurityHub's
+// API operation BatchUpdateFindings for usage and error information.
+//
+// Returned Error Types:
+// * InternalException
+// Internal server error.
+//
+// * InvalidInputException
+// The request was rejected because you supplied an invalid or out-of-range
+// value for an input parameter.
+//
+// * LimitExceededException
+// The request was rejected because it attempted to create resources beyond
+// the current AWS account limits. The error code describes the limit exceeded.
+//
+// * InvalidAccessException
+// AWS Security Hub isn't enabled for the account used to make this request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchUpdateFindings
+func (c *SecurityHub) BatchUpdateFindings(input *BatchUpdateFindingsInput) (*BatchUpdateFindingsOutput, error) {
+ req, out := c.BatchUpdateFindingsRequest(input)
+ return out, req.Send()
+}
+
+// BatchUpdateFindingsWithContext is the same as BatchUpdateFindings with the addition of
+// the ability to pass a context and additional request options.
+//
+// See BatchUpdateFindings 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 *SecurityHub) BatchUpdateFindingsWithContext(ctx aws.Context, input *BatchUpdateFindingsInput, opts ...request.Option) (*BatchUpdateFindingsOutput, error) {
+ req, out := c.BatchUpdateFindingsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateActionTarget = "CreateActionTarget"
// CreateActionTargetRequest generates a "aws/request.Request" representing the
@@ -2376,14 +2517,16 @@ func (c *SecurityHub) EnableSecurityHubRequest(input *EnableSecurityHubInput) (r
// you specify in the request.
//
// When you enable Security Hub, you grant to Security Hub the permissions necessary
-// to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and
-// Amazon Macie.
+// to gather findings from other services that are integrated with Security
+// Hub.
//
// When you use the EnableSecurityHub operation to enable Security Hub, you
// also automatically enable the CIS AWS Foundations standard. You do not enable
-// the Payment Card Industry Data Security Standard (PCI DSS) standard. To enable
-// a standard, use the BatchEnableStandards operation. To disable a standard,
-// use the BatchDisableStandards operation.
+// the Payment Card Industry Data Security Standard (PCI DSS) standard. To not
+// enable the CIS AWS Foundations standard, set EnableDefaultStandards to false.
+//
+// After you enable Security Hub, to enable a standard, use the BatchEnableStandards
+// operation. To disable a standard, use the BatchDisableStandards operation.
//
// To learn more, see Setting Up AWS Security Hub (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-settingup.html)
// in the AWS Security Hub User Guide.
@@ -4195,6 +4338,8 @@ func (c *SecurityHub) UpdateFindingsRequest(input *UpdateFindingsInput) (req *re
// UpdateFindings API operation for AWS SecurityHub.
//
+// UpdateFindings is deprecated. Instead of UpdateFindings, use BatchUpdateFindings.
+//
// Updates the Note and RecordState of the Security Hub-aggregated findings
// that the filter attributes specify. Any member account that can view the
// finding also sees the update to the finding.
@@ -4499,8 +4644,8 @@ func (s AcceptInvitationOutput) GoString() string {
// You don't have permission to perform the action specified in the request.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -4519,17 +4664,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4537,22 +4682,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The details of an AWS account.
@@ -8661,6 +8806,61 @@ func (s *AwsSecurityFindingFilters) SetWorkflowStatus(v []*StringFilter) *AwsSec
return s
}
+// Identifies a finding to update using BatchUpdateFindings.
+type AwsSecurityFindingIdentifier struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier of the finding that was specified by the finding provider.
+ //
+ // Id is a required field
+ Id *string `type:"string" required:"true"`
+
+ // The ARN generated by Security Hub that uniquely identifies a product that
+ // generates findings. This can be the ARN for a third-party product that is
+ // integrated with Security Hub, or the ARN for a custom integration.
+ //
+ // ProductArn is a required field
+ ProductArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AwsSecurityFindingIdentifier) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AwsSecurityFindingIdentifier) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AwsSecurityFindingIdentifier) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AwsSecurityFindingIdentifier"}
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.ProductArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ProductArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetId sets the Id field's value.
+func (s *AwsSecurityFindingIdentifier) SetId(v string) *AwsSecurityFindingIdentifier {
+ s.Id = &v
+ return s
+}
+
+// SetProductArn sets the ProductArn field's value.
+func (s *AwsSecurityFindingIdentifier) SetProductArn(v string) *AwsSecurityFindingIdentifier {
+ s.ProductArn = &v
+ return s
+}
+
// A wrapper type for the topic's Amazon Resource Name (ARN).
type AwsSnsTopicDetails struct {
_ struct{} `type:"structure"`
@@ -9177,6 +9377,277 @@ func (s *BatchImportFindingsOutput) SetSuccessCount(v int64) *BatchImportFinding
return s
}
+type BatchUpdateFindingsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The updated value for the finding confidence. Confidence is defined as the
+ // likelihood that a finding accurately identifies the behavior or issue that
+ // it was intended to identify.
+ //
+ // Confidence is scored on a 0-100 basis using a ratio scale, where 0 means
+ // zero percent confidence and 100 means 100 percent confidence.
+ Confidence *int64 `type:"integer"`
+
+ // The updated value for the level of importance assigned to the resources associated
+ // with the findings.
+ //
+ // A score of 0 means that the underlying resources have no criticality, and
+ // a score of 100 is reserved for the most critical resources.
+ Criticality *int64 `type:"integer"`
+
+ // The list of findings to update. BatchUpdateFindings can be used to update
+ // up to 100 findings at a time.
+ //
+ // For each finding, the list provides the finding identifier and the ARN of
+ // the finding provider.
+ //
+ // FindingIdentifiers is a required field
+ FindingIdentifiers []*AwsSecurityFindingIdentifier `type:"list" required:"true"`
+
+ // The updated note.
+ Note *NoteUpdate `type:"structure"`
+
+ // A list of findings that are related to the updated findings.
+ RelatedFindings []*RelatedFinding `type:"list"`
+
+ // Used to update the finding severity.
+ Severity *SeverityUpdate `type:"structure"`
+
+ // One or more finding types in the format of namespace/category/classifier
+ // that classify a finding.
+ //
+ // Valid namespace values are as follows.
+ //
+ // * Software and Configuration Checks
+ //
+ // * TTPs
+ //
+ // * Effects
+ //
+ // * Unusual Behaviors
+ //
+ // * Sensitive Data Identifications
+ Types []*string `type:"list"`
+
+ // A list of name/value string pairs associated with the finding. These are
+ // custom, user-defined fields added to a finding.
+ UserDefinedFields map[string]*string `type:"map"`
+
+ // Indicates the veracity of a finding.
+ //
+ // The available values for VerificationState are as follows.
+ //
+ // * UNKNOWN – The default disposition of a security finding
+ //
+ // * TRUE_POSITIVE – The security finding is confirmed
+ //
+ // * FALSE_POSITIVE – The security finding was determined to be a false
+ // alarm
+ //
+ // * BENIGN_POSITIVE – A special case of TRUE_POSITIVE where the finding
+ // doesn't pose any threat, is expected, or both
+ VerificationState *string `type:"string" enum:"VerificationState"`
+
+ // Used to update the workflow status of a finding.
+ //
+ // The workflow status indicates the progress of the investigation into the
+ // finding.
+ Workflow *WorkflowUpdate `type:"structure"`
+}
+
+// String returns the string representation
+func (s BatchUpdateFindingsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchUpdateFindingsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *BatchUpdateFindingsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "BatchUpdateFindingsInput"}
+ if s.FindingIdentifiers == nil {
+ invalidParams.Add(request.NewErrParamRequired("FindingIdentifiers"))
+ }
+ if s.FindingIdentifiers != nil {
+ for i, v := range s.FindingIdentifiers {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "FindingIdentifiers", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.Note != nil {
+ if err := s.Note.Validate(); err != nil {
+ invalidParams.AddNested("Note", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.RelatedFindings != nil {
+ for i, v := range s.RelatedFindings {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RelatedFindings", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfidence sets the Confidence field's value.
+func (s *BatchUpdateFindingsInput) SetConfidence(v int64) *BatchUpdateFindingsInput {
+ s.Confidence = &v
+ return s
+}
+
+// SetCriticality sets the Criticality field's value.
+func (s *BatchUpdateFindingsInput) SetCriticality(v int64) *BatchUpdateFindingsInput {
+ s.Criticality = &v
+ return s
+}
+
+// SetFindingIdentifiers sets the FindingIdentifiers field's value.
+func (s *BatchUpdateFindingsInput) SetFindingIdentifiers(v []*AwsSecurityFindingIdentifier) *BatchUpdateFindingsInput {
+ s.FindingIdentifiers = v
+ return s
+}
+
+// SetNote sets the Note field's value.
+func (s *BatchUpdateFindingsInput) SetNote(v *NoteUpdate) *BatchUpdateFindingsInput {
+ s.Note = v
+ return s
+}
+
+// SetRelatedFindings sets the RelatedFindings field's value.
+func (s *BatchUpdateFindingsInput) SetRelatedFindings(v []*RelatedFinding) *BatchUpdateFindingsInput {
+ s.RelatedFindings = v
+ return s
+}
+
+// SetSeverity sets the Severity field's value.
+func (s *BatchUpdateFindingsInput) SetSeverity(v *SeverityUpdate) *BatchUpdateFindingsInput {
+ s.Severity = v
+ return s
+}
+
+// SetTypes sets the Types field's value.
+func (s *BatchUpdateFindingsInput) SetTypes(v []*string) *BatchUpdateFindingsInput {
+ s.Types = v
+ return s
+}
+
+// SetUserDefinedFields sets the UserDefinedFields field's value.
+func (s *BatchUpdateFindingsInput) SetUserDefinedFields(v map[string]*string) *BatchUpdateFindingsInput {
+ s.UserDefinedFields = v
+ return s
+}
+
+// SetVerificationState sets the VerificationState field's value.
+func (s *BatchUpdateFindingsInput) SetVerificationState(v string) *BatchUpdateFindingsInput {
+ s.VerificationState = &v
+ return s
+}
+
+// SetWorkflow sets the Workflow field's value.
+func (s *BatchUpdateFindingsInput) SetWorkflow(v *WorkflowUpdate) *BatchUpdateFindingsInput {
+ s.Workflow = v
+ return s
+}
+
+type BatchUpdateFindingsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The list of findings that were updated successfully.
+ //
+ // ProcessedFindings is a required field
+ ProcessedFindings []*AwsSecurityFindingIdentifier `type:"list" required:"true"`
+
+ // The list of findings that were not updated.
+ //
+ // UnprocessedFindings is a required field
+ UnprocessedFindings []*BatchUpdateFindingsUnprocessedFinding `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s BatchUpdateFindingsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchUpdateFindingsOutput) GoString() string {
+ return s.String()
+}
+
+// SetProcessedFindings sets the ProcessedFindings field's value.
+func (s *BatchUpdateFindingsOutput) SetProcessedFindings(v []*AwsSecurityFindingIdentifier) *BatchUpdateFindingsOutput {
+ s.ProcessedFindings = v
+ return s
+}
+
+// SetUnprocessedFindings sets the UnprocessedFindings field's value.
+func (s *BatchUpdateFindingsOutput) SetUnprocessedFindings(v []*BatchUpdateFindingsUnprocessedFinding) *BatchUpdateFindingsOutput {
+ s.UnprocessedFindings = v
+ return s
+}
+
+// A finding from a BatchUpdateFindings request that Security Hub was unable
+// to update.
+type BatchUpdateFindingsUnprocessedFinding struct {
+ _ struct{} `type:"structure"`
+
+ // The code associated with the error.
+ //
+ // ErrorCode is a required field
+ ErrorCode *string `type:"string" required:"true"`
+
+ // The message associated with the error.
+ //
+ // ErrorMessage is a required field
+ ErrorMessage *string `type:"string" required:"true"`
+
+ // The identifier of the finding that was not updated.
+ //
+ // FindingIdentifier is a required field
+ FindingIdentifier *AwsSecurityFindingIdentifier `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s BatchUpdateFindingsUnprocessedFinding) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BatchUpdateFindingsUnprocessedFinding) GoString() string {
+ return s.String()
+}
+
+// SetErrorCode sets the ErrorCode field's value.
+func (s *BatchUpdateFindingsUnprocessedFinding) SetErrorCode(v string) *BatchUpdateFindingsUnprocessedFinding {
+ s.ErrorCode = &v
+ return s
+}
+
+// SetErrorMessage sets the ErrorMessage field's value.
+func (s *BatchUpdateFindingsUnprocessedFinding) SetErrorMessage(v string) *BatchUpdateFindingsUnprocessedFinding {
+ s.ErrorMessage = &v
+ return s
+}
+
+// SetFindingIdentifier sets the FindingIdentifier field's value.
+func (s *BatchUpdateFindingsUnprocessedFinding) SetFindingIdentifier(v *AwsSecurityFindingIdentifier) *BatchUpdateFindingsUnprocessedFinding {
+ s.FindingIdentifier = v
+ return s
+}
+
// Exclusive to findings that are generated as the result of a check run against
// a specific rule in a supported security standard, such as CIS AWS Foundations.
// Contains security standard-related finding details.
@@ -9375,7 +9846,10 @@ type CreateInsightInput struct {
// Filters is a required field
Filters *AwsSecurityFindingFilters `type:"structure" required:"true"`
- // The attribute used as the aggregator to group related findings for the insight.
+ // The attribute used to group the findings for the insight. The grouping attribute
+ // identifies the type of item that the insight applies to. For example, if
+ // an insight is grouped by resource identifier, then the insight produces a
+ // list of resource identifiers.
//
// GroupByAttribute is a required field
GroupByAttribute *string `type:"string" required:"true"`
@@ -10507,6 +10981,12 @@ func (s *EnableImportFindingsForProductOutput) SetProductSubscriptionArn(v strin
type EnableSecurityHubInput struct {
_ struct{} `type:"structure"`
+ // Whether to enable the security standards that Security Hub has designated
+ // as automatically enabled. If you do not provide a value for EnableDefaultStandards,
+ // it is set to true. To not enable the automatically enabled standards, set
+ // EnableDefaultStandards to false.
+ EnableDefaultStandards *bool `type:"boolean"`
+
// The tags to add to the Hub resource when you enable Security Hub.
Tags map[string]*string `min:"1" type:"map"`
}
@@ -10534,6 +11014,12 @@ func (s *EnableSecurityHubInput) Validate() error {
return nil
}
+// SetEnableDefaultStandards sets the EnableDefaultStandards field's value.
+func (s *EnableSecurityHubInput) SetEnableDefaultStandards(v bool) *EnableSecurityHubInput {
+ s.EnableDefaultStandards = &v
+ return s
+}
+
// SetTags sets the Tags field's value.
func (s *EnableSecurityHubInput) SetTags(v map[string]*string) *EnableSecurityHubInput {
s.Tags = v
@@ -11058,21 +11544,22 @@ func (s *GetMembersOutput) SetUnprocessedAccounts(v []*Result) *GetMembersOutput
return s
}
-// Includes details of the list of the findings that cannot be imported.
+// The list of the findings that cannot be imported. For each finding, the list
+// provides the error.
type ImportFindingsError struct {
_ struct{} `type:"structure"`
- // The code of the error made during the BatchImportFindings operation.
+ // The code of the error returned by the BatchImportFindings operation.
//
// ErrorCode is a required field
ErrorCode *string `type:"string" required:"true"`
- // The message of the error made during the BatchImportFindings operation.
+ // The message of the error returned by the BatchImportFindings operation.
//
// ErrorMessage is a required field
ErrorMessage *string `type:"string" required:"true"`
- // The ID of the error made during the BatchImportFindings operation.
+ // The identifier of the finding that could not be updated.
//
// Id is a required field
Id *string `type:"string" required:"true"`
@@ -11117,9 +11604,10 @@ type Insight struct {
// Filters is a required field
Filters *AwsSecurityFindingFilters `type:"structure" required:"true"`
- // The attribute that the insight's findings are grouped by. This attribute
- // is used as a findings aggregator for the purposes of viewing and managing
- // multiple related findings under a single operand.
+ // The grouping attribute for the insight's findings. Indicates how to group
+ // the matching findings, and identifies the type of item that the insight applies
+ // to. For example, if an insight is grouped by resource identifier, then the
+ // insight produces a list of resource identifiers.
//
// GroupByAttribute is a required field
GroupByAttribute *string `type:"string" required:"true"`
@@ -11259,8 +11747,8 @@ func (s *InsightResults) SetResultValues(v []*InsightResultValue) *InsightResult
// Internal server error.
type InternalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -11279,17 +11767,17 @@ func (s InternalException) GoString() string {
func newErrorInternalException(v protocol.ResponseMetadata) error {
return &InternalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalException) Code() string {
+func (s *InternalException) Code() string {
return "InternalException"
}
// Message returns the exception's message.
-func (s InternalException) Message() string {
+func (s *InternalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11297,28 +11785,28 @@ func (s InternalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalException) OrigErr() error {
+func (s *InternalException) OrigErr() error {
return nil
}
-func (s InternalException) Error() string {
+func (s *InternalException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS Security Hub isn't enabled for the account used to make this request.
type InvalidAccessException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -11337,17 +11825,17 @@ func (s InvalidAccessException) GoString() string {
func newErrorInvalidAccessException(v protocol.ResponseMetadata) error {
return &InvalidAccessException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAccessException) Code() string {
+func (s *InvalidAccessException) Code() string {
return "InvalidAccessException"
}
// Message returns the exception's message.
-func (s InvalidAccessException) Message() string {
+func (s *InvalidAccessException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11355,29 +11843,29 @@ func (s InvalidAccessException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAccessException) OrigErr() error {
+func (s *InvalidAccessException) OrigErr() error {
return nil
}
-func (s InvalidAccessException) Error() string {
+func (s *InvalidAccessException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAccessException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAccessException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAccessException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAccessException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request was rejected because you supplied an invalid or out-of-range
// value for an input parameter.
type InvalidInputException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -11396,17 +11884,17 @@ func (s InvalidInputException) GoString() string {
func newErrorInvalidInputException(v protocol.ResponseMetadata) error {
return &InvalidInputException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInputException) Code() string {
+func (s *InvalidInputException) Code() string {
return "InvalidInputException"
}
// Message returns the exception's message.
-func (s InvalidInputException) Message() string {
+func (s *InvalidInputException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11414,22 +11902,22 @@ func (s InvalidInputException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInputException) OrigErr() error {
+func (s *InvalidInputException) OrigErr() error {
return nil
}
-func (s InvalidInputException) Error() string {
+func (s *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInputException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInputException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInputException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInputException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about an invitation.
@@ -11583,8 +12071,8 @@ func (s *KeywordFilter) SetValue(v string) *KeywordFilter {
// The request was rejected because it attempted to create resources beyond
// the current AWS account limits. The error code describes the limit exceeded.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -11603,17 +12091,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11621,22 +12109,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListEnabledProductsForImportInput struct {
@@ -12850,8 +13338,8 @@ func (s *Resource) SetType(v string) *Resource {
// The resource specified in the request conflicts with an existing resource.
type ResourceConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -12870,17 +13358,17 @@ func (s ResourceConflictException) GoString() string {
func newErrorResourceConflictException(v protocol.ResponseMetadata) error {
return &ResourceConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceConflictException) Code() string {
+func (s *ResourceConflictException) Code() string {
return "ResourceConflictException"
}
// Message returns the exception's message.
-func (s ResourceConflictException) Message() string {
+func (s *ResourceConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12888,22 +13376,22 @@ func (s ResourceConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceConflictException) OrigErr() error {
+func (s *ResourceConflictException) OrigErr() error {
return nil
}
-func (s ResourceConflictException) Error() string {
+func (s *ResourceConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Additional details about a resource related to a finding.
@@ -13137,8 +13625,8 @@ func (s *ResourceDetails) SetOther(v map[string]*string) *ResourceDetails {
// The request was rejected because we can't find the specified resource.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"Code" type:"string"`
@@ -13157,17 +13645,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13175,22 +13663,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about the account that was not processed.
@@ -13293,6 +13781,73 @@ func (s *Severity) SetProduct(v float64) *Severity {
return s
}
+// Updates to the severity information for a finding.
+type SeverityUpdate struct {
+ _ struct{} `type:"structure"`
+
+ // The severity value of the finding. The allowed values are the following.
+ //
+ // * INFORMATIONAL - No issue was found.
+ //
+ // * LOW - The issue does not require action on its own.
+ //
+ // * MEDIUM - The issue must be addressed but not urgently.
+ //
+ // * HIGH - The issue must be addressed as a priority.
+ //
+ // * CRITICAL - The issue must be remediated immediately to avoid it escalating.
+ Label *string `type:"string" enum:"SeverityLabel"`
+
+ // The normalized severity for the finding. This attribute is to be deprecated
+ // in favor of Label.
+ //
+ // If you provide Normalized and do not provide Label, Label is set automatically
+ // as follows.
+ //
+ // * 0 - INFORMATIONAL
+ //
+ // * 1–39 - LOW
+ //
+ // * 40–69 - MEDIUM
+ //
+ // * 70–89 - HIGH
+ //
+ // * 90–100 - CRITICAL
+ Normalized *int64 `type:"integer"`
+
+ // The native severity as defined by the AWS service or integrated partner product
+ // that generated the finding.
+ Product *float64 `type:"double"`
+}
+
+// String returns the string representation
+func (s SeverityUpdate) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SeverityUpdate) GoString() string {
+ return s.String()
+}
+
+// SetLabel sets the Label field's value.
+func (s *SeverityUpdate) SetLabel(v string) *SeverityUpdate {
+ s.Label = &v
+ return s
+}
+
+// SetNormalized sets the Normalized field's value.
+func (s *SeverityUpdate) SetNormalized(v int64) *SeverityUpdate {
+ s.Normalized = &v
+ return s
+}
+
+// SetProduct sets the Product field's value.
+func (s *SeverityUpdate) SetProduct(v float64) *SeverityUpdate {
+ s.Product = &v
+ return s
+}
+
// A collection of finding attributes used to sort findings.
type SortCriterion struct {
_ struct{} `type:"structure"`
@@ -13333,6 +13888,14 @@ type Standard struct {
// A description of the standard.
Description *string `type:"string"`
+ // Whether the standard is enabled by default. When Security Hub is enabled
+ // from the console, if a standard is enabled by default, the check box for
+ // that standard is selected by default.
+ //
+ // When Security Hub is enabled using the EnableSecurityHub API operation, the
+ // standard is enabled by default unless EnableDefaultStandards is set to false.
+ EnabledByDefault *bool `type:"boolean"`
+
// The name of the standard.
Name *string `type:"string"`
@@ -13356,6 +13919,12 @@ func (s *Standard) SetDescription(v string) *Standard {
return s
}
+// SetEnabledByDefault sets the EnabledByDefault field's value.
+func (s *Standard) SetEnabledByDefault(v bool) *Standard {
+ s.EnabledByDefault = &v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *Standard) SetName(v string) *Standard {
s.Name = &v
@@ -14264,6 +14833,43 @@ func (s *Workflow) SetStatus(v string) *Workflow {
return s
}
+// Used to update information about the investigation into the finding.
+type WorkflowUpdate struct {
+ _ struct{} `type:"structure"`
+
+ // The status of the investigation into the finding. The allowed values are
+ // the following.
+ //
+ // * NEW - The initial state of a finding, before it is reviewed.
+ //
+ // * NOTIFIED - Indicates that you notified the resource owner about the
+ // security issue. Used when the initial reviewer is not the resource owner,
+ // and needs intervention from the resource owner.
+ //
+ // * RESOLVED - The finding was reviewed and remediated and is now considered
+ // resolved.
+ //
+ // * SUPPRESSED - The finding will not be reviewed again and will not be
+ // acted upon.
+ Status *string `type:"string" enum:"WorkflowStatus"`
+}
+
+// String returns the string representation
+func (s WorkflowUpdate) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s WorkflowUpdate) GoString() string {
+ return s.String()
+}
+
+// SetStatus sets the Status field's value.
+func (s *WorkflowUpdate) SetStatus(v string) *WorkflowUpdate {
+ s.Status = &v
+ return s
+}
+
const (
// AwsIamAccessKeyStatusActive is a AwsIamAccessKeyStatus enum value
AwsIamAccessKeyStatusActive = "Active"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go
index 1bad4cd4241..b87d26a28bc 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go
@@ -1727,8 +1727,8 @@ func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary {
// One of the parameters in the request is invalid.
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 400
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1749,17 +1749,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1767,28 +1767,28 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource already exists.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 409
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -1809,17 +1809,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1827,22 +1827,22 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateApplicationOutput struct {
@@ -2677,8 +2677,8 @@ func (s DeleteApplicationOutput) GoString() string {
// The client is not authenticated.
type ForbiddenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 403
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -2699,17 +2699,17 @@ func (s ForbiddenException) GoString() string {
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ForbiddenException) Code() string {
+func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
-func (s ForbiddenException) Message() string {
+func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2717,22 +2717,22 @@ func (s ForbiddenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ForbiddenException) OrigErr() error {
+func (s *ForbiddenException) OrigErr() error {
return nil
}
-func (s ForbiddenException) Error() string {
+func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ForbiddenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ForbiddenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ForbiddenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ForbiddenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetApplicationInput struct {
@@ -3089,8 +3089,8 @@ func (s *GetCloudFormationTemplateOutput) SetTemplateUrl(v string) *GetCloudForm
// The AWS Serverless Application Repository service encountered an internal
// error.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 500
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -3112,17 +3112,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3130,22 +3130,22 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListApplicationDependenciesInput struct {
@@ -3408,8 +3408,8 @@ func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput
// The resource (for example, an access policy statement) specified in the request
// doesn't exist.
type NotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 404
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -3431,17 +3431,17 @@ func (s NotFoundException) GoString() string {
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NotFoundException) Code() string {
+func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
-func (s NotFoundException) Message() string {
+func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3449,22 +3449,22 @@ func (s NotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NotFoundException) OrigErr() error {
+func (s *NotFoundException) OrigErr() error {
return nil
}
-func (s NotFoundException) Error() string {
+func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Parameters supported by the application.
@@ -3966,8 +3966,8 @@ func (s *Tag) SetValue(v string) *Tag {
// The client is sending more than the allowed number of requests per unit of
// time.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// 429
ErrorCode *string `locationName:"errorCode" type:"string"`
@@ -3989,17 +3989,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4007,22 +4007,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UnshareApplicationInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go
index 4644fc01373..ef25beaffd9 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/api.go
@@ -8904,6 +8904,14 @@ type ConstraintDetail struct {
// The owner of the constraint.
Owner *string `type:"string"`
+ // The identifier of the portfolio the product resides in. The constraint applies
+ // only to the instance of the product that lives within this portfolio.
+ PortfolioId *string `min:"1" type:"string"`
+
+ // The identifier of the product the constraint applies to. Note that a constraint
+ // applies to a specific instance of a product within a certain portfolio.
+ ProductId *string `min:"1" type:"string"`
+
// The type of constraint.
//
// * LAUNCH
@@ -8944,6 +8952,18 @@ func (s *ConstraintDetail) SetOwner(v string) *ConstraintDetail {
return s
}
+// SetPortfolioId sets the PortfolioId field's value.
+func (s *ConstraintDetail) SetPortfolioId(v string) *ConstraintDetail {
+ s.PortfolioId = &v
+ return s
+}
+
+// SetProductId sets the ProductId field's value.
+func (s *ConstraintDetail) SetProductId(v string) *ConstraintDetail {
+ s.ProductId = &v
+ return s
+}
+
// SetType sets the Type field's value.
func (s *ConstraintDetail) SetType(v string) *ConstraintDetail {
s.Type = &v
@@ -9150,10 +9170,25 @@ type CreateConstraintInput struct {
//
// LAUNCH
//
+ // You are required to specify either the RoleArn or the LocalRoleName but can't
+ // use both.
+ //
// Specify the RoleArn property as follows:
//
// {"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}
//
+ // Specify the LocalRoleName property as follows:
+ //
+ // {"LocalRoleName": "SCBasicLaunchRole"}
+ //
+ // If you specify the LocalRoleName property, when an account uses the launch
+ // constraint, the IAM role with that name in the account will be used. This
+ // allows launch-role constraints to be account-agnostic so the administrator
+ // can create fewer resources per shared account.
+ //
+ // The given role name must exist in the account used to create the launch constraint
+ // and the account of the user who launches a product with this launch constraint.
+ //
// You cannot have both a LAUNCH and a STACKSET constraint.
//
// You also cannot have more than one LAUNCH constraint on a product and portfolio.
@@ -13029,8 +13064,8 @@ func (s DisassociateTagOptionFromResourceOutput) GoString() string {
// The specified resource is a duplicate.
type DuplicateResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13047,17 +13082,17 @@ func (s DuplicateResourceException) GoString() string {
func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error {
return &DuplicateResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateResourceException) Code() string {
+func (s *DuplicateResourceException) Code() string {
return "DuplicateResourceException"
}
// Message returns the exception's message.
-func (s DuplicateResourceException) Message() string {
+func (s *DuplicateResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13065,22 +13100,22 @@ func (s DuplicateResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateResourceException) OrigErr() error {
+func (s *DuplicateResourceException) OrigErr() error {
return nil
}
-func (s DuplicateResourceException) Error() string {
+func (s *DuplicateResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type EnableAWSOrganizationsAccessInput struct {
@@ -13472,8 +13507,8 @@ func (s *GetAWSOrganizationsAccessStatusOutput) SetAccessStatus(v string) *GetAW
// One or more parameters provided to the operation are not valid.
type InvalidParametersException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13490,17 +13525,17 @@ func (s InvalidParametersException) GoString() string {
func newErrorInvalidParametersException(v protocol.ResponseMetadata) error {
return &InvalidParametersException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParametersException) Code() string {
+func (s *InvalidParametersException) Code() string {
return "InvalidParametersException"
}
// Message returns the exception's message.
-func (s InvalidParametersException) Message() string {
+func (s *InvalidParametersException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13508,30 +13543,30 @@ func (s InvalidParametersException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParametersException) OrigErr() error {
+func (s *InvalidParametersException) OrigErr() error {
return nil
}
-func (s InvalidParametersException) Error() string {
+func (s *InvalidParametersException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParametersException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParametersException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParametersException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParametersException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An attempt was made to modify a resource that is in a state that is not valid.
// Check your resources to ensure that they are in valid states before retrying
// the operation.
type InvalidStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13548,17 +13583,17 @@ func (s InvalidStateException) GoString() string {
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidStateException) Code() string {
+func (s *InvalidStateException) Code() string {
return "InvalidStateException"
}
// Message returns the exception's message.
-func (s InvalidStateException) Message() string {
+func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13566,22 +13601,22 @@ func (s InvalidStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidStateException) OrigErr() error {
+func (s *InvalidStateException) OrigErr() error {
return nil
}
-func (s InvalidStateException) Error() string {
+func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Summary information about a product path for a user.
@@ -13639,8 +13674,8 @@ func (s *LaunchPathSummary) SetTags(v []*Tag) *LaunchPathSummary {
// Decrease your resource use or increase your service limits and retry the
// operation.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13657,17 +13692,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13675,22 +13710,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAcceptedPortfolioSharesInput struct {
@@ -15693,8 +15728,8 @@ func (s *ListTagOptionsOutput) SetTagOptionDetails(v []*TagOptionDetail) *ListTa
// The operation is not supported.
type OperationNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -15711,17 +15746,17 @@ func (s OperationNotSupportedException) GoString() string {
func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error {
return &OperationNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotSupportedException) Code() string {
+func (s *OperationNotSupportedException) Code() string {
return "OperationNotSupportedException"
}
// Message returns the exception's message.
-func (s OperationNotSupportedException) Message() string {
+func (s *OperationNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15729,22 +15764,22 @@ func (s OperationNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotSupportedException) OrigErr() error {
+func (s *OperationNotSupportedException) OrigErr() error {
return nil
}
-func (s OperationNotSupportedException) Error() string {
+func (s *OperationNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the organization node.
@@ -18043,8 +18078,8 @@ func (s *ResourceDetail) SetName(v string) *ResourceDetail {
// A resource that is currently in use. Ensure that the resource is not in use
// and retry the operation.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18061,17 +18096,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18079,28 +18114,28 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18117,17 +18152,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18135,22 +18170,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a change to a resource attribute.
@@ -19091,8 +19126,8 @@ func (s *TagOptionDetail) SetValue(v string) *TagOptionDetail {
// process has not been performed for this account. Please use the AWS console
// to perform the migration process before retrying the operation.
type TagOptionNotMigratedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19109,17 +19144,17 @@ func (s TagOptionNotMigratedException) GoString() string {
func newErrorTagOptionNotMigratedException(v protocol.ResponseMetadata) error {
return &TagOptionNotMigratedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagOptionNotMigratedException) Code() string {
+func (s *TagOptionNotMigratedException) Code() string {
return "TagOptionNotMigratedException"
}
// Message returns the exception's message.
-func (s TagOptionNotMigratedException) Message() string {
+func (s *TagOptionNotMigratedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19127,22 +19162,22 @@ func (s TagOptionNotMigratedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagOptionNotMigratedException) OrigErr() error {
+func (s *TagOptionNotMigratedException) OrigErr() error {
return nil
}
-func (s TagOptionNotMigratedException) Error() string {
+func (s *TagOptionNotMigratedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagOptionNotMigratedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagOptionNotMigratedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagOptionNotMigratedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagOptionNotMigratedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Summary information about a TagOption.
@@ -19316,10 +19351,25 @@ type UpdateConstraintInput struct {
//
// LAUNCH
//
+ // You are required to specify either the RoleArn or the LocalRoleName but can't
+ // use both.
+ //
// Specify the RoleArn property as follows:
//
// {"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}
//
+ // Specify the LocalRoleName property as follows:
+ //
+ // {"LocalRoleName": "SCBasicLaunchRole"}
+ //
+ // If you specify the LocalRoleName property, when an account uses the launch
+ // constraint, the IAM role with that name in the account will be used. This
+ // allows launch-role constraints to be account-agnostic so the administrator
+ // can create fewer resources per shared account.
+ //
+ // The given role name must exist in the account used to create the launch constraint
+ // and the account of the user who launches a product with this launch constraint.
+ //
// You cannot have both a LAUNCH and a STACKSET constraint.
//
// You also cannot have more than one LAUNCH constraint on a product and portfolio.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go
index 0fee972596d..976af371227 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go
@@ -2572,8 +2572,8 @@ func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput {
// The health check for the instance that is specified by ServiceId and InstanceId
// is not a custom health check.
type CustomHealthNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2590,17 +2590,17 @@ func (s CustomHealthNotFound) GoString() string {
func newErrorCustomHealthNotFound(v protocol.ResponseMetadata) error {
return &CustomHealthNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomHealthNotFound) Code() string {
+func (s *CustomHealthNotFound) Code() string {
return "CustomHealthNotFound"
}
// Message returns the exception's message.
-func (s CustomHealthNotFound) Message() string {
+func (s *CustomHealthNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2608,22 +2608,22 @@ func (s CustomHealthNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomHealthNotFound) OrigErr() error {
+func (s *CustomHealthNotFound) OrigErr() error {
return nil
}
-func (s CustomHealthNotFound) Error() string {
+func (s *CustomHealthNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomHealthNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomHealthNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomHealthNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomHealthNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteNamespaceInput struct {
@@ -3248,8 +3248,8 @@ func (s *DnsRecord) SetType(v string) *DnsRecord {
// The operation is already in progress.
type DuplicateRequest struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The ID of the operation that is already in progress.
DuplicateOperationId *string `type:"string"`
@@ -3269,17 +3269,17 @@ func (s DuplicateRequest) GoString() string {
func newErrorDuplicateRequest(v protocol.ResponseMetadata) error {
return &DuplicateRequest{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateRequest) Code() string {
+func (s *DuplicateRequest) Code() string {
return "DuplicateRequest"
}
// Message returns the exception's message.
-func (s DuplicateRequest) Message() string {
+func (s *DuplicateRequest) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3287,22 +3287,22 @@ func (s DuplicateRequest) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateRequest) OrigErr() error {
+func (s *DuplicateRequest) OrigErr() error {
return nil
}
-func (s DuplicateRequest) Error() string {
+func (s *DuplicateRequest) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateRequest) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateRequest) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateRequest) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateRequest) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetInstanceInput struct {
@@ -4151,8 +4151,8 @@ func (s *Instance) SetId(v string) *Instance {
// No instance exists with the specified ID, or the instance was recently registered,
// and information about the instance hasn't propagated yet.
type InstanceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4169,17 +4169,17 @@ func (s InstanceNotFound) GoString() string {
func newErrorInstanceNotFound(v protocol.ResponseMetadata) error {
return &InstanceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InstanceNotFound) Code() string {
+func (s *InstanceNotFound) Code() string {
return "InstanceNotFound"
}
// Message returns the exception's message.
-func (s InstanceNotFound) Message() string {
+func (s *InstanceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4187,22 +4187,22 @@ func (s InstanceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InstanceNotFound) OrigErr() error {
+func (s *InstanceNotFound) OrigErr() error {
return nil
}
-func (s InstanceNotFound) Error() string {
+func (s *InstanceNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InstanceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InstanceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InstanceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InstanceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains information about the instances that you registered
@@ -4266,8 +4266,8 @@ func (s *InstanceSummary) SetId(v string) *InstanceSummary {
// might be missing, a numeric value might be outside the allowed range, or
// a string value might exceed length constraints.
type InvalidInput struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4284,17 +4284,17 @@ func (s InvalidInput) GoString() string {
func newErrorInvalidInput(v protocol.ResponseMetadata) error {
return &InvalidInput{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInput) Code() string {
+func (s *InvalidInput) Code() string {
return "InvalidInput"
}
// Message returns the exception's message.
-func (s InvalidInput) Message() string {
+func (s *InvalidInput) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4302,22 +4302,22 @@ func (s InvalidInput) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInput) OrigErr() error {
+func (s *InvalidInput) OrigErr() error {
return nil
}
-func (s InvalidInput) Error() string {
+func (s *InvalidInput) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInput) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInput) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInput) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInput) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListInstancesInput struct {
@@ -4881,8 +4881,8 @@ func (s *Namespace) SetType(v string) *Namespace {
// The namespace that you're trying to create already exists.
type NamespaceAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The CreatorRequestId that was used to create the namespace.
CreatorRequestId *string `type:"string"`
@@ -4905,17 +4905,17 @@ func (s NamespaceAlreadyExists) GoString() string {
func newErrorNamespaceAlreadyExists(v protocol.ResponseMetadata) error {
return &NamespaceAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NamespaceAlreadyExists) Code() string {
+func (s *NamespaceAlreadyExists) Code() string {
return "NamespaceAlreadyExists"
}
// Message returns the exception's message.
-func (s NamespaceAlreadyExists) Message() string {
+func (s *NamespaceAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4923,22 +4923,22 @@ func (s NamespaceAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NamespaceAlreadyExists) OrigErr() error {
+func (s *NamespaceAlreadyExists) OrigErr() error {
return nil
}
-func (s NamespaceAlreadyExists) Error() string {
+func (s *NamespaceAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NamespaceAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NamespaceAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NamespaceAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NamespaceAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that identifies the namespaces that you want to list. You
@@ -5019,8 +5019,8 @@ func (s *NamespaceFilter) SetValues(v []*string) *NamespaceFilter {
// No namespace exists with the specified ID.
type NamespaceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5037,17 +5037,17 @@ func (s NamespaceNotFound) GoString() string {
func newErrorNamespaceNotFound(v protocol.ResponseMetadata) error {
return &NamespaceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NamespaceNotFound) Code() string {
+func (s *NamespaceNotFound) Code() string {
return "NamespaceNotFound"
}
// Message returns the exception's message.
-func (s NamespaceNotFound) Message() string {
+func (s *NamespaceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5055,22 +5055,22 @@ func (s NamespaceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NamespaceNotFound) OrigErr() error {
+func (s *NamespaceNotFound) OrigErr() error {
return nil
}
-func (s NamespaceNotFound) Error() string {
+func (s *NamespaceNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NamespaceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NamespaceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NamespaceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NamespaceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains information that is specific to the namespace
@@ -5423,8 +5423,8 @@ func (s *OperationFilter) SetValues(v []*string) *OperationFilter {
// No operation exists with the specified ID.
type OperationNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5441,17 +5441,17 @@ func (s OperationNotFound) GoString() string {
func newErrorOperationNotFound(v protocol.ResponseMetadata) error {
return &OperationNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotFound) Code() string {
+func (s *OperationNotFound) Code() string {
return "OperationNotFound"
}
// Message returns the exception's message.
-func (s OperationNotFound) Message() string {
+func (s *OperationNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5459,22 +5459,22 @@ func (s OperationNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotFound) OrigErr() error {
+func (s *OperationNotFound) OrigErr() error {
return nil
}
-func (s OperationNotFound) Error() string {
+func (s *OperationNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains information about an operation that matches
@@ -5725,8 +5725,8 @@ func (s *RegisterInstanceOutput) SetOperationId(v string) *RegisterInstanceOutpu
// The specified resource can't be deleted because it contains other resources.
// For example, you can't delete a service that contains any instances.
type ResourceInUse struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5743,17 +5743,17 @@ func (s ResourceInUse) GoString() string {
func newErrorResourceInUse(v protocol.ResponseMetadata) error {
return &ResourceInUse{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUse) Code() string {
+func (s *ResourceInUse) Code() string {
return "ResourceInUse"
}
// Message returns the exception's message.
-func (s ResourceInUse) Message() string {
+func (s *ResourceInUse) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5761,29 +5761,29 @@ func (s ResourceInUse) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUse) OrigErr() error {
+func (s *ResourceInUse) OrigErr() error {
return nil
}
-func (s ResourceInUse) Error() string {
+func (s *ResourceInUse) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUse) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUse) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUse) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUse) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource can't be created because you've reached the limit on the number
// of resources.
type ResourceLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5800,17 +5800,17 @@ func (s ResourceLimitExceeded) GoString() string {
func newErrorResourceLimitExceeded(v protocol.ResponseMetadata) error {
return &ResourceLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceeded) Code() string {
+func (s *ResourceLimitExceeded) Code() string {
return "ResourceLimitExceeded"
}
// Message returns the exception's message.
-func (s ResourceLimitExceeded) Message() string {
+func (s *ResourceLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5818,22 +5818,22 @@ func (s ResourceLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceeded) OrigErr() error {
+func (s *ResourceLimitExceeded) OrigErr() error {
return nil
}
-func (s ResourceLimitExceeded) Error() string {
+func (s *ResourceLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains information about the specified service.
@@ -5971,8 +5971,8 @@ func (s *Service) SetNamespaceId(v string) *Service {
// The service can't be created because a service with the same name already
// exists.
type ServiceAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The CreatorRequestId that was used to create the service.
CreatorRequestId *string `type:"string"`
@@ -5995,17 +5995,17 @@ func (s ServiceAlreadyExists) GoString() string {
func newErrorServiceAlreadyExists(v protocol.ResponseMetadata) error {
return &ServiceAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceAlreadyExists) Code() string {
+func (s *ServiceAlreadyExists) Code() string {
return "ServiceAlreadyExists"
}
// Message returns the exception's message.
-func (s ServiceAlreadyExists) Message() string {
+func (s *ServiceAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6013,22 +6013,22 @@ func (s ServiceAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceAlreadyExists) OrigErr() error {
+func (s *ServiceAlreadyExists) OrigErr() error {
return nil
}
-func (s ServiceAlreadyExists) Error() string {
+func (s *ServiceAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains changes to an existing service.
@@ -6231,8 +6231,8 @@ func (s *ServiceFilter) SetValues(v []*string) *ServiceFilter {
// No service exists with the specified ID.
type ServiceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6249,17 +6249,17 @@ func (s ServiceNotFound) GoString() string {
func newErrorServiceNotFound(v protocol.ResponseMetadata) error {
return &ServiceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceNotFound) Code() string {
+func (s *ServiceNotFound) Code() string {
return "ServiceNotFound"
}
// Message returns the exception's message.
-func (s ServiceNotFound) Message() string {
+func (s *ServiceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6267,22 +6267,22 @@ func (s ServiceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceNotFound) OrigErr() error {
+func (s *ServiceNotFound) OrigErr() error {
return nil
}
-func (s ServiceNotFound) Error() string {
+func (s *ServiceNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A complex type that contains information about a specified service.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicequotas/api.go b/vendor/github.com/aws/aws-sdk-go/service/servicequotas/api.go
index e1df5bbc1b9..60a0a84ac66 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/servicequotas/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/servicequotas/api.go
@@ -2008,8 +2008,8 @@ func (c *ServiceQuotas) RequestServiceQuotaIncreaseWithContext(ctx aws.Context,
// The action you attempted is not allowed unless Service Access with Service
// Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate.
type AWSServiceAccessNotEnabledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2026,17 +2026,17 @@ func (s AWSServiceAccessNotEnabledException) GoString() string {
func newErrorAWSServiceAccessNotEnabledException(v protocol.ResponseMetadata) error {
return &AWSServiceAccessNotEnabledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AWSServiceAccessNotEnabledException) Code() string {
+func (s *AWSServiceAccessNotEnabledException) Code() string {
return "AWSServiceAccessNotEnabledException"
}
// Message returns the exception's message.
-func (s AWSServiceAccessNotEnabledException) Message() string {
+func (s *AWSServiceAccessNotEnabledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2044,28 +2044,28 @@ func (s AWSServiceAccessNotEnabledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AWSServiceAccessNotEnabledException) OrigErr() error {
+func (s *AWSServiceAccessNotEnabledException) OrigErr() error {
return nil
}
-func (s AWSServiceAccessNotEnabledException) Error() string {
+func (s *AWSServiceAccessNotEnabledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AWSServiceAccessNotEnabledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AWSServiceAccessNotEnabledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AWSServiceAccessNotEnabledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AWSServiceAccessNotEnabledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2082,17 +2082,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2100,22 +2100,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AssociateServiceQuotaTemplateInput struct {
@@ -2237,8 +2237,8 @@ func (s DeleteServiceQuotaIncreaseRequestFromTemplateOutput) GoString() string {
// You can't perform this action because a dependency does not have access.
type DependencyAccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2255,17 +2255,17 @@ func (s DependencyAccessDeniedException) GoString() string {
func newErrorDependencyAccessDeniedException(v protocol.ResponseMetadata) error {
return &DependencyAccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DependencyAccessDeniedException) Code() string {
+func (s *DependencyAccessDeniedException) Code() string {
return "DependencyAccessDeniedException"
}
// Message returns the exception's message.
-func (s DependencyAccessDeniedException) Message() string {
+func (s *DependencyAccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2273,22 +2273,22 @@ func (s DependencyAccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DependencyAccessDeniedException) OrigErr() error {
+func (s *DependencyAccessDeniedException) OrigErr() error {
return nil
}
-func (s DependencyAccessDeniedException) Error() string {
+func (s *DependencyAccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DependencyAccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DependencyAccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DependencyAccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DependencyAccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DisassociateServiceQuotaTemplateInput struct {
@@ -2731,8 +2731,8 @@ func (s *GetServiceQuotaOutput) SetQuota(v *ServiceQuota) *GetServiceQuotaOutput
// Invalid input was provided.
type IllegalArgumentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2749,17 +2749,17 @@ func (s IllegalArgumentException) GoString() string {
func newErrorIllegalArgumentException(v protocol.ResponseMetadata) error {
return &IllegalArgumentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IllegalArgumentException) Code() string {
+func (s *IllegalArgumentException) Code() string {
return "IllegalArgumentException"
}
// Message returns the exception's message.
-func (s IllegalArgumentException) Message() string {
+func (s *IllegalArgumentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2767,28 +2767,28 @@ func (s IllegalArgumentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IllegalArgumentException) OrigErr() error {
+func (s *IllegalArgumentException) OrigErr() error {
return nil
}
-func (s IllegalArgumentException) Error() string {
+func (s *IllegalArgumentException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IllegalArgumentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IllegalArgumentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IllegalArgumentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IllegalArgumentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Invalid input was provided.
type InvalidPaginationTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2805,17 +2805,17 @@ func (s InvalidPaginationTokenException) GoString() string {
func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error {
return &InvalidPaginationTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPaginationTokenException) Code() string {
+func (s *InvalidPaginationTokenException) Code() string {
return "InvalidPaginationTokenException"
}
// Message returns the exception's message.
-func (s InvalidPaginationTokenException) Message() string {
+func (s *InvalidPaginationTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2823,28 +2823,28 @@ func (s InvalidPaginationTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPaginationTokenException) OrigErr() error {
+func (s *InvalidPaginationTokenException) OrigErr() error {
return nil
}
-func (s InvalidPaginationTokenException) Error() string {
+func (s *InvalidPaginationTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPaginationTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPaginationTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPaginationTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPaginationTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Invalid input was provided for the .
type InvalidResourceStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -2861,17 +2861,17 @@ func (s InvalidResourceStateException) GoString() string {
func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error {
return &InvalidResourceStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceStateException) Code() string {
+func (s *InvalidResourceStateException) Code() string {
return "InvalidResourceStateException"
}
// Message returns the exception's message.
-func (s InvalidResourceStateException) Message() string {
+func (s *InvalidResourceStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2879,22 +2879,22 @@ func (s InvalidResourceStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceStateException) OrigErr() error {
+func (s *InvalidResourceStateException) OrigErr() error {
return nil
}
-func (s InvalidResourceStateException) Error() string {
+func (s *InvalidResourceStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAWSDefaultServiceQuotasInput struct {
@@ -3638,8 +3638,8 @@ func (s *MetricInfo) SetMetricStatisticRecommendation(v string) *MetricInfo {
// The account making this call is not a member of an organization.
type NoAvailableOrganizationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3656,17 +3656,17 @@ func (s NoAvailableOrganizationException) GoString() string {
func newErrorNoAvailableOrganizationException(v protocol.ResponseMetadata) error {
return &NoAvailableOrganizationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAvailableOrganizationException) Code() string {
+func (s *NoAvailableOrganizationException) Code() string {
return "NoAvailableOrganizationException"
}
// Message returns the exception's message.
-func (s NoAvailableOrganizationException) Message() string {
+func (s *NoAvailableOrganizationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3674,28 +3674,28 @@ func (s NoAvailableOrganizationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAvailableOrganizationException) OrigErr() error {
+func (s *NoAvailableOrganizationException) OrigErr() error {
return nil
}
-func (s NoAvailableOrganizationException) Error() string {
+func (s *NoAvailableOrganizationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAvailableOrganizationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAvailableOrganizationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAvailableOrganizationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAvailableOrganizationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource does not exist.
type NoSuchResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3712,17 +3712,17 @@ func (s NoSuchResourceException) GoString() string {
func newErrorNoSuchResourceException(v protocol.ResponseMetadata) error {
return &NoSuchResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoSuchResourceException) Code() string {
+func (s *NoSuchResourceException) Code() string {
return "NoSuchResourceException"
}
// Message returns the exception's message.
-func (s NoSuchResourceException) Message() string {
+func (s *NoSuchResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3730,29 +3730,29 @@ func (s NoSuchResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoSuchResourceException) OrigErr() error {
+func (s *NoSuchResourceException) OrigErr() error {
return nil
}
-func (s NoSuchResourceException) Error() string {
+func (s *NoSuchResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoSuchResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoSuchResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoSuchResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoSuchResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The organization that your account belongs to, is not in All Features mode.
// To enable all features mode, see EnableAllFeatures (https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAllFeatures.html).
type OrganizationNotInAllFeaturesModeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3769,17 +3769,17 @@ func (s OrganizationNotInAllFeaturesModeException) GoString() string {
func newErrorOrganizationNotInAllFeaturesModeException(v protocol.ResponseMetadata) error {
return &OrganizationNotInAllFeaturesModeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationNotInAllFeaturesModeException) Code() string {
+func (s *OrganizationNotInAllFeaturesModeException) Code() string {
return "OrganizationNotInAllFeaturesModeException"
}
// Message returns the exception's message.
-func (s OrganizationNotInAllFeaturesModeException) Message() string {
+func (s *OrganizationNotInAllFeaturesModeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3787,22 +3787,22 @@ func (s OrganizationNotInAllFeaturesModeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationNotInAllFeaturesModeException) OrigErr() error {
+func (s *OrganizationNotInAllFeaturesModeException) OrigErr() error {
return nil
}
-func (s OrganizationNotInAllFeaturesModeException) Error() string {
+func (s *OrganizationNotInAllFeaturesModeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationNotInAllFeaturesModeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationNotInAllFeaturesModeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationNotInAllFeaturesModeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationNotInAllFeaturesModeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutServiceQuotaIncreaseRequestIntoTemplateInput struct {
@@ -3921,8 +3921,8 @@ func (s *PutServiceQuotaIncreaseRequestIntoTemplateOutput) SetServiceQuotaIncrea
// some of the relevant resources, or use Service Quotas to request a service
// quota increase.
type QuotaExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3939,17 +3939,17 @@ func (s QuotaExceededException) GoString() string {
func newErrorQuotaExceededException(v protocol.ResponseMetadata) error {
return &QuotaExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s QuotaExceededException) Code() string {
+func (s *QuotaExceededException) Code() string {
return "QuotaExceededException"
}
// Message returns the exception's message.
-func (s QuotaExceededException) Message() string {
+func (s *QuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3957,22 +3957,22 @@ func (s QuotaExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s QuotaExceededException) OrigErr() error {
+func (s *QuotaExceededException) OrigErr() error {
return nil
}
-func (s QuotaExceededException) Error() string {
+func (s *QuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s QuotaExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *QuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s QuotaExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *QuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A structure that contains information about the quota period.
@@ -4248,8 +4248,8 @@ func (s *RequestedServiceQuotaChange) SetUnit(v string) *RequestedServiceQuotaCh
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4266,17 +4266,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4284,28 +4284,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Something went wrong.
type ServiceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4322,17 +4322,17 @@ func (s ServiceException) GoString() string {
func newErrorServiceException(v protocol.ResponseMetadata) error {
return &ServiceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceException) Code() string {
+func (s *ServiceException) Code() string {
return "ServiceException"
}
// Message returns the exception's message.
-func (s ServiceException) Message() string {
+func (s *ServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4340,22 +4340,22 @@ func (s ServiceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceException) OrigErr() error {
+func (s *ServiceException) OrigErr() error {
return nil
}
-func (s ServiceException) Error() string {
+func (s *ServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A structure that contains the ServiceName and ServiceCode. It does not include
@@ -4609,8 +4609,8 @@ func (s *ServiceQuotaIncreaseRequestInTemplate) SetUnit(v string) *ServiceQuotaI
//
// To use the template, call AssociateServiceQuotaTemplate.
type ServiceQuotaTemplateNotInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4627,17 +4627,17 @@ func (s ServiceQuotaTemplateNotInUseException) GoString() string {
func newErrorServiceQuotaTemplateNotInUseException(v protocol.ResponseMetadata) error {
return &ServiceQuotaTemplateNotInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceQuotaTemplateNotInUseException) Code() string {
+func (s *ServiceQuotaTemplateNotInUseException) Code() string {
return "ServiceQuotaTemplateNotInUseException"
}
// Message returns the exception's message.
-func (s ServiceQuotaTemplateNotInUseException) Message() string {
+func (s *ServiceQuotaTemplateNotInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4645,29 +4645,29 @@ func (s ServiceQuotaTemplateNotInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceQuotaTemplateNotInUseException) OrigErr() error {
+func (s *ServiceQuotaTemplateNotInUseException) OrigErr() error {
return nil
}
-func (s ServiceQuotaTemplateNotInUseException) Error() string {
+func (s *ServiceQuotaTemplateNotInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceQuotaTemplateNotInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceQuotaTemplateNotInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceQuotaTemplateNotInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceQuotaTemplateNotInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Service Quotas template is not available in the Region where you are
// making the request. Please make the request in us-east-1.
type TemplatesNotAvailableInRegionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4684,17 +4684,17 @@ func (s TemplatesNotAvailableInRegionException) GoString() string {
func newErrorTemplatesNotAvailableInRegionException(v protocol.ResponseMetadata) error {
return &TemplatesNotAvailableInRegionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TemplatesNotAvailableInRegionException) Code() string {
+func (s *TemplatesNotAvailableInRegionException) Code() string {
return "TemplatesNotAvailableInRegionException"
}
// Message returns the exception's message.
-func (s TemplatesNotAvailableInRegionException) Message() string {
+func (s *TemplatesNotAvailableInRegionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4702,29 +4702,29 @@ func (s TemplatesNotAvailableInRegionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TemplatesNotAvailableInRegionException) OrigErr() error {
+func (s *TemplatesNotAvailableInRegionException) OrigErr() error {
return nil
}
-func (s TemplatesNotAvailableInRegionException) Error() string {
+func (s *TemplatesNotAvailableInRegionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TemplatesNotAvailableInRegionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TemplatesNotAvailableInRegionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TemplatesNotAvailableInRegionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TemplatesNotAvailableInRegionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Due to throttling, the request was denied. Slow down the rate of request
// calls, or request an increase for this quota.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4741,17 +4741,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4759,22 +4759,22 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go
index 062b082f319..c93297216c7 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go
@@ -2277,8 +2277,8 @@ func (c *SFN) UpdateStateMachineWithContext(ctx aws.Context, input *UpdateStateM
// The specified activity does not exist.
type ActivityDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2295,17 +2295,17 @@ func (s ActivityDoesNotExist) GoString() string {
func newErrorActivityDoesNotExist(v protocol.ResponseMetadata) error {
return &ActivityDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActivityDoesNotExist) Code() string {
+func (s *ActivityDoesNotExist) Code() string {
return "ActivityDoesNotExist"
}
// Message returns the exception's message.
-func (s ActivityDoesNotExist) Message() string {
+func (s *ActivityDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2313,22 +2313,22 @@ func (s ActivityDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActivityDoesNotExist) OrigErr() error {
+func (s *ActivityDoesNotExist) OrigErr() error {
return nil
}
-func (s ActivityDoesNotExist) Error() string {
+func (s *ActivityDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActivityDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActivityDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActivityDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActivityDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an activity that failed during an execution.
@@ -2367,8 +2367,8 @@ func (s *ActivityFailedEventDetails) SetError(v string) *ActivityFailedEventDeta
// The maximum number of activities has been reached. Existing activities must
// be deleted before a new activity can be created.
type ActivityLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2385,17 +2385,17 @@ func (s ActivityLimitExceeded) GoString() string {
func newErrorActivityLimitExceeded(v protocol.ResponseMetadata) error {
return &ActivityLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActivityLimitExceeded) Code() string {
+func (s *ActivityLimitExceeded) Code() string {
return "ActivityLimitExceeded"
}
// Message returns the exception's message.
-func (s ActivityLimitExceeded) Message() string {
+func (s *ActivityLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2403,22 +2403,22 @@ func (s ActivityLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActivityLimitExceeded) OrigErr() error {
+func (s *ActivityLimitExceeded) OrigErr() error {
return nil
}
-func (s ActivityLimitExceeded) Error() string {
+func (s *ActivityLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActivityLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActivityLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActivityLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActivityLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an activity.
@@ -2657,8 +2657,8 @@ func (s *ActivityTimedOutEventDetails) SetError(v string) *ActivityTimedOutEvent
// The maximum number of workers concurrently polling for activity tasks has
// been reached.
type ActivityWorkerLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2675,17 +2675,17 @@ func (s ActivityWorkerLimitExceeded) GoString() string {
func newErrorActivityWorkerLimitExceeded(v protocol.ResponseMetadata) error {
return &ActivityWorkerLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ActivityWorkerLimitExceeded) Code() string {
+func (s *ActivityWorkerLimitExceeded) Code() string {
return "ActivityWorkerLimitExceeded"
}
// Message returns the exception's message.
-func (s ActivityWorkerLimitExceeded) Message() string {
+func (s *ActivityWorkerLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2693,22 +2693,22 @@ func (s ActivityWorkerLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ActivityWorkerLimitExceeded) OrigErr() error {
+func (s *ActivityWorkerLimitExceeded) OrigErr() error {
return nil
}
-func (s ActivityWorkerLimitExceeded) Error() string {
+func (s *ActivityWorkerLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ActivityWorkerLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ActivityWorkerLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ActivityWorkerLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ActivityWorkerLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CloudWatchLogsLogGroup struct {
@@ -3738,8 +3738,8 @@ func (s *ExecutionAbortedEventDetails) SetError(v string) *ExecutionAbortedEvent
//
// Executions with the same name and input are considered idempotent.
type ExecutionAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3756,17 +3756,17 @@ func (s ExecutionAlreadyExists) GoString() string {
func newErrorExecutionAlreadyExists(v protocol.ResponseMetadata) error {
return &ExecutionAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExecutionAlreadyExists) Code() string {
+func (s *ExecutionAlreadyExists) Code() string {
return "ExecutionAlreadyExists"
}
// Message returns the exception's message.
-func (s ExecutionAlreadyExists) Message() string {
+func (s *ExecutionAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3774,28 +3774,28 @@ func (s ExecutionAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExecutionAlreadyExists) OrigErr() error {
+func (s *ExecutionAlreadyExists) OrigErr() error {
return nil
}
-func (s ExecutionAlreadyExists) Error() string {
+func (s *ExecutionAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExecutionAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExecutionAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExecutionAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExecutionAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified execution does not exist.
type ExecutionDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3812,17 +3812,17 @@ func (s ExecutionDoesNotExist) GoString() string {
func newErrorExecutionDoesNotExist(v protocol.ResponseMetadata) error {
return &ExecutionDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExecutionDoesNotExist) Code() string {
+func (s *ExecutionDoesNotExist) Code() string {
return "ExecutionDoesNotExist"
}
// Message returns the exception's message.
-func (s ExecutionDoesNotExist) Message() string {
+func (s *ExecutionDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3830,22 +3830,22 @@ func (s ExecutionDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExecutionDoesNotExist) OrigErr() error {
+func (s *ExecutionDoesNotExist) OrigErr() error {
return nil
}
-func (s ExecutionDoesNotExist) Error() string {
+func (s *ExecutionDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExecutionDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExecutionDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExecutionDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExecutionDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an execution failure event.
@@ -3884,8 +3884,8 @@ func (s *ExecutionFailedEventDetails) SetError(v string) *ExecutionFailedEventDe
// The maximum number of running executions has been reached. Running executions
// must end or be stopped before a new execution can be started.
type ExecutionLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3902,17 +3902,17 @@ func (s ExecutionLimitExceeded) GoString() string {
func newErrorExecutionLimitExceeded(v protocol.ResponseMetadata) error {
return &ExecutionLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ExecutionLimitExceeded) Code() string {
+func (s *ExecutionLimitExceeded) Code() string {
return "ExecutionLimitExceeded"
}
// Message returns the exception's message.
-func (s ExecutionLimitExceeded) Message() string {
+func (s *ExecutionLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3920,22 +3920,22 @@ func (s ExecutionLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ExecutionLimitExceeded) OrigErr() error {
+func (s *ExecutionLimitExceeded) OrigErr() error {
return nil
}
-func (s ExecutionLimitExceeded) Error() string {
+func (s *ExecutionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ExecutionLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ExecutionLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ExecutionLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ExecutionLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about an execution.
@@ -4682,8 +4682,8 @@ func (s *HistoryEvent) SetType(v string) *HistoryEvent {
// The provided Amazon Resource Name (ARN) is invalid.
type InvalidArn struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4700,17 +4700,17 @@ func (s InvalidArn) GoString() string {
func newErrorInvalidArn(v protocol.ResponseMetadata) error {
return &InvalidArn{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidArn) Code() string {
+func (s *InvalidArn) Code() string {
return "InvalidArn"
}
// Message returns the exception's message.
-func (s InvalidArn) Message() string {
+func (s *InvalidArn) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4718,28 +4718,28 @@ func (s InvalidArn) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidArn) OrigErr() error {
+func (s *InvalidArn) OrigErr() error {
return nil
}
-func (s InvalidArn) Error() string {
+func (s *InvalidArn) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidArn) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidArn) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidArn) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidArn) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The provided Amazon States Language definition is invalid.
type InvalidDefinition struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4756,17 +4756,17 @@ func (s InvalidDefinition) GoString() string {
func newErrorInvalidDefinition(v protocol.ResponseMetadata) error {
return &InvalidDefinition{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDefinition) Code() string {
+func (s *InvalidDefinition) Code() string {
return "InvalidDefinition"
}
// Message returns the exception's message.
-func (s InvalidDefinition) Message() string {
+func (s *InvalidDefinition) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4774,28 +4774,28 @@ func (s InvalidDefinition) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDefinition) OrigErr() error {
+func (s *InvalidDefinition) OrigErr() error {
return nil
}
-func (s InvalidDefinition) Error() string {
+func (s *InvalidDefinition) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDefinition) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDefinition) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDefinition) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDefinition) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The provided JSON input data is invalid.
type InvalidExecutionInput struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4812,17 +4812,17 @@ func (s InvalidExecutionInput) GoString() string {
func newErrorInvalidExecutionInput(v protocol.ResponseMetadata) error {
return &InvalidExecutionInput{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidExecutionInput) Code() string {
+func (s *InvalidExecutionInput) Code() string {
return "InvalidExecutionInput"
}
// Message returns the exception's message.
-func (s InvalidExecutionInput) Message() string {
+func (s *InvalidExecutionInput) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4830,27 +4830,27 @@ func (s InvalidExecutionInput) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidExecutionInput) OrigErr() error {
+func (s *InvalidExecutionInput) OrigErr() error {
return nil
}
-func (s InvalidExecutionInput) Error() string {
+func (s *InvalidExecutionInput) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidExecutionInput) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidExecutionInput) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidExecutionInput) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidExecutionInput) RequestID() string {
+ return s.RespMetadata.RequestID
}
type InvalidLoggingConfiguration struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4867,17 +4867,17 @@ func (s InvalidLoggingConfiguration) GoString() string {
func newErrorInvalidLoggingConfiguration(v protocol.ResponseMetadata) error {
return &InvalidLoggingConfiguration{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidLoggingConfiguration) Code() string {
+func (s *InvalidLoggingConfiguration) Code() string {
return "InvalidLoggingConfiguration"
}
// Message returns the exception's message.
-func (s InvalidLoggingConfiguration) Message() string {
+func (s *InvalidLoggingConfiguration) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4885,28 +4885,28 @@ func (s InvalidLoggingConfiguration) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidLoggingConfiguration) OrigErr() error {
+func (s *InvalidLoggingConfiguration) OrigErr() error {
return nil
}
-func (s InvalidLoggingConfiguration) Error() string {
+func (s *InvalidLoggingConfiguration) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidLoggingConfiguration) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidLoggingConfiguration) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidLoggingConfiguration) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidLoggingConfiguration) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The provided name is invalid.
type InvalidName struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4923,17 +4923,17 @@ func (s InvalidName) GoString() string {
func newErrorInvalidName(v protocol.ResponseMetadata) error {
return &InvalidName{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidName) Code() string {
+func (s *InvalidName) Code() string {
return "InvalidName"
}
// Message returns the exception's message.
-func (s InvalidName) Message() string {
+func (s *InvalidName) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4941,28 +4941,28 @@ func (s InvalidName) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidName) OrigErr() error {
+func (s *InvalidName) OrigErr() error {
return nil
}
-func (s InvalidName) Error() string {
+func (s *InvalidName) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidName) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidName) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidName) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidName) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The provided JSON output data is invalid.
type InvalidOutput struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4979,17 +4979,17 @@ func (s InvalidOutput) GoString() string {
func newErrorInvalidOutput(v protocol.ResponseMetadata) error {
return &InvalidOutput{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOutput) Code() string {
+func (s *InvalidOutput) Code() string {
return "InvalidOutput"
}
// Message returns the exception's message.
-func (s InvalidOutput) Message() string {
+func (s *InvalidOutput) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4997,28 +4997,28 @@ func (s InvalidOutput) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOutput) OrigErr() error {
+func (s *InvalidOutput) OrigErr() error {
return nil
}
-func (s InvalidOutput) Error() string {
+func (s *InvalidOutput) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOutput) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOutput) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOutput) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOutput) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The provided token is invalid.
type InvalidToken struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5035,17 +5035,17 @@ func (s InvalidToken) GoString() string {
func newErrorInvalidToken(v protocol.ResponseMetadata) error {
return &InvalidToken{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidToken) Code() string {
+func (s *InvalidToken) Code() string {
return "InvalidToken"
}
// Message returns the exception's message.
-func (s InvalidToken) Message() string {
+func (s *InvalidToken) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5053,22 +5053,22 @@ func (s InvalidToken) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidToken) OrigErr() error {
+func (s *InvalidToken) OrigErr() error {
return nil
}
-func (s InvalidToken) Error() string {
+func (s *InvalidToken) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidToken) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidToken) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidToken) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidToken) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about a lambda function that failed during an execution.
@@ -5803,8 +5803,8 @@ func (s *MapStateStartedEventDetails) SetLength(v int64) *MapStateStartedEventDe
// Request is missing a required parameter. This error occurs if both definition
// and roleArn are not specified.
type MissingRequiredParameter struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -5821,17 +5821,17 @@ func (s MissingRequiredParameter) GoString() string {
func newErrorMissingRequiredParameter(v protocol.ResponseMetadata) error {
return &MissingRequiredParameter{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MissingRequiredParameter) Code() string {
+func (s *MissingRequiredParameter) Code() string {
return "MissingRequiredParameter"
}
// Message returns the exception's message.
-func (s MissingRequiredParameter) Message() string {
+func (s *MissingRequiredParameter) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5839,29 +5839,29 @@ func (s MissingRequiredParameter) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MissingRequiredParameter) OrigErr() error {
+func (s *MissingRequiredParameter) OrigErr() error {
return nil
}
-func (s MissingRequiredParameter) Error() string {
+func (s *MissingRequiredParameter) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MissingRequiredParameter) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MissingRequiredParameter) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MissingRequiredParameter) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MissingRequiredParameter) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Could not find the referenced resource. Only state machine and activity ARNs
// are supported.
type ResourceNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -5880,17 +5880,17 @@ func (s ResourceNotFound) GoString() string {
func newErrorResourceNotFound(v protocol.ResponseMetadata) error {
return &ResourceNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFound) Code() string {
+func (s *ResourceNotFound) Code() string {
return "ResourceNotFound"
}
// Message returns the exception's message.
-func (s ResourceNotFound) Message() string {
+func (s *ResourceNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5898,22 +5898,22 @@ func (s ResourceNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFound) OrigErr() error {
+func (s *ResourceNotFound) OrigErr() error {
return nil
}
-func (s ResourceNotFound) Error() string {
+func (s *ResourceNotFound) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
type SendTaskFailureInput struct {
@@ -6328,8 +6328,8 @@ func (s *StateExitedEventDetails) SetOutput(v string) *StateExitedEventDetails {
// A state machine with the same name but a different definition or role ARN
// already exists.
type StateMachineAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6346,17 +6346,17 @@ func (s StateMachineAlreadyExists) GoString() string {
func newErrorStateMachineAlreadyExists(v protocol.ResponseMetadata) error {
return &StateMachineAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StateMachineAlreadyExists) Code() string {
+func (s *StateMachineAlreadyExists) Code() string {
return "StateMachineAlreadyExists"
}
// Message returns the exception's message.
-func (s StateMachineAlreadyExists) Message() string {
+func (s *StateMachineAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6364,28 +6364,28 @@ func (s StateMachineAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StateMachineAlreadyExists) OrigErr() error {
+func (s *StateMachineAlreadyExists) OrigErr() error {
return nil
}
-func (s StateMachineAlreadyExists) Error() string {
+func (s *StateMachineAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StateMachineAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StateMachineAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StateMachineAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StateMachineAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified state machine is being deleted.
type StateMachineDeleting struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6402,17 +6402,17 @@ func (s StateMachineDeleting) GoString() string {
func newErrorStateMachineDeleting(v protocol.ResponseMetadata) error {
return &StateMachineDeleting{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StateMachineDeleting) Code() string {
+func (s *StateMachineDeleting) Code() string {
return "StateMachineDeleting"
}
// Message returns the exception's message.
-func (s StateMachineDeleting) Message() string {
+func (s *StateMachineDeleting) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6420,28 +6420,28 @@ func (s StateMachineDeleting) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StateMachineDeleting) OrigErr() error {
+func (s *StateMachineDeleting) OrigErr() error {
return nil
}
-func (s StateMachineDeleting) Error() string {
+func (s *StateMachineDeleting) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StateMachineDeleting) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StateMachineDeleting) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StateMachineDeleting) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StateMachineDeleting) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified state machine does not exist.
type StateMachineDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6458,17 +6458,17 @@ func (s StateMachineDoesNotExist) GoString() string {
func newErrorStateMachineDoesNotExist(v protocol.ResponseMetadata) error {
return &StateMachineDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StateMachineDoesNotExist) Code() string {
+func (s *StateMachineDoesNotExist) Code() string {
return "StateMachineDoesNotExist"
}
// Message returns the exception's message.
-func (s StateMachineDoesNotExist) Message() string {
+func (s *StateMachineDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6476,29 +6476,29 @@ func (s StateMachineDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StateMachineDoesNotExist) OrigErr() error {
+func (s *StateMachineDoesNotExist) OrigErr() error {
return nil
}
-func (s StateMachineDoesNotExist) Error() string {
+func (s *StateMachineDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StateMachineDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StateMachineDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StateMachineDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StateMachineDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The maximum number of state machines has been reached. Existing state machines
// must be deleted before a new state machine can be created.
type StateMachineLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6515,17 +6515,17 @@ func (s StateMachineLimitExceeded) GoString() string {
func newErrorStateMachineLimitExceeded(v protocol.ResponseMetadata) error {
return &StateMachineLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StateMachineLimitExceeded) Code() string {
+func (s *StateMachineLimitExceeded) Code() string {
return "StateMachineLimitExceeded"
}
// Message returns the exception's message.
-func (s StateMachineLimitExceeded) Message() string {
+func (s *StateMachineLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6533,22 +6533,22 @@ func (s StateMachineLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StateMachineLimitExceeded) OrigErr() error {
+func (s *StateMachineLimitExceeded) OrigErr() error {
return nil
}
-func (s StateMachineLimitExceeded) Error() string {
+func (s *StateMachineLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StateMachineLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StateMachineLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StateMachineLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StateMachineLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about the state machine.
@@ -6624,8 +6624,8 @@ func (s *StateMachineListItem) SetType(v string) *StateMachineListItem {
}
type StateMachineTypeNotSupported struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6642,17 +6642,17 @@ func (s StateMachineTypeNotSupported) GoString() string {
func newErrorStateMachineTypeNotSupported(v protocol.ResponseMetadata) error {
return &StateMachineTypeNotSupported{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StateMachineTypeNotSupported) Code() string {
+func (s *StateMachineTypeNotSupported) Code() string {
return "StateMachineTypeNotSupported"
}
// Message returns the exception's message.
-func (s StateMachineTypeNotSupported) Message() string {
+func (s *StateMachineTypeNotSupported) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6660,22 +6660,22 @@ func (s StateMachineTypeNotSupported) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StateMachineTypeNotSupported) OrigErr() error {
+func (s *StateMachineTypeNotSupported) OrigErr() error {
return nil
}
-func (s StateMachineTypeNotSupported) Error() string {
+func (s *StateMachineTypeNotSupported) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StateMachineTypeNotSupported) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StateMachineTypeNotSupported) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StateMachineTypeNotSupported) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StateMachineTypeNotSupported) RequestID() string {
+ return s.RespMetadata.RequestID
}
type StopExecutionInput struct {
@@ -6900,8 +6900,8 @@ func (s TagResourceOutput) GoString() string {
}
type TaskDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6918,17 +6918,17 @@ func (s TaskDoesNotExist) GoString() string {
func newErrorTaskDoesNotExist(v protocol.ResponseMetadata) error {
return &TaskDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaskDoesNotExist) Code() string {
+func (s *TaskDoesNotExist) Code() string {
return "TaskDoesNotExist"
}
// Message returns the exception's message.
-func (s TaskDoesNotExist) Message() string {
+func (s *TaskDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6936,22 +6936,22 @@ func (s TaskDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaskDoesNotExist) OrigErr() error {
+func (s *TaskDoesNotExist) OrigErr() error {
return nil
}
-func (s TaskDoesNotExist) Error() string {
+func (s *TaskDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaskDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaskDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaskDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaskDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about a task failure event.
@@ -7318,8 +7318,8 @@ func (s *TaskSucceededEventDetails) SetResourceType(v string) *TaskSucceededEven
}
type TaskTimedOut struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7336,17 +7336,17 @@ func (s TaskTimedOut) GoString() string {
func newErrorTaskTimedOut(v protocol.ResponseMetadata) error {
return &TaskTimedOut{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TaskTimedOut) Code() string {
+func (s *TaskTimedOut) Code() string {
return "TaskTimedOut"
}
// Message returns the exception's message.
-func (s TaskTimedOut) Message() string {
+func (s *TaskTimedOut) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7354,22 +7354,22 @@ func (s TaskTimedOut) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TaskTimedOut) OrigErr() error {
+func (s *TaskTimedOut) OrigErr() error {
return nil
}
-func (s TaskTimedOut) Error() string {
+func (s *TaskTimedOut) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TaskTimedOut) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TaskTimedOut) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TaskTimedOut) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TaskTimedOut) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains details about a resource timeout that occurred during an execution.
@@ -7431,8 +7431,8 @@ func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventD
// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html)
// in the AWS Step Functions Developer Guide.
type TooManyTags struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -7451,17 +7451,17 @@ func (s TooManyTags) GoString() string {
func newErrorTooManyTags(v protocol.ResponseMetadata) error {
return &TooManyTags{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTags) Code() string {
+func (s *TooManyTags) Code() string {
return "TooManyTags"
}
// Message returns the exception's message.
-func (s TooManyTags) Message() string {
+func (s *TooManyTags) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7469,22 +7469,22 @@ func (s TooManyTags) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTags) OrigErr() error {
+func (s *TooManyTags) OrigErr() error {
return nil
}
-func (s TooManyTags) Error() string {
+func (s *TooManyTags) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTags) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTags) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTags) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTags) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/api.go b/vendor/github.com/aws/aws-sdk-go/service/shield/api.go
index 3155bfa30ac..0d070f3b51b 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/shield/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/shield/api.go
@@ -1940,8 +1940,8 @@ func (c *Shield) UpdateSubscriptionWithContext(ctx aws.Context, input *UpdateSub
// Exception that indicates the specified AttackId does not exist, or the requester
// does not have the appropriate permissions to access the AttackId.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -1958,17 +1958,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1976,22 +1976,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// In order to grant the necessary access to the DDoS Response Team, the user
@@ -1999,8 +1999,8 @@ func (s AccessDeniedException) RequestID() string {
// indicates the user did not have the appropriate permissions. For more information,
// see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).
type AccessDeniedForDependencyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -2017,17 +2017,17 @@ func (s AccessDeniedForDependencyException) GoString() string {
func newErrorAccessDeniedForDependencyException(v protocol.ResponseMetadata) error {
return &AccessDeniedForDependencyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedForDependencyException) Code() string {
+func (s *AccessDeniedForDependencyException) Code() string {
return "AccessDeniedForDependencyException"
}
// Message returns the exception's message.
-func (s AccessDeniedForDependencyException) Message() string {
+func (s *AccessDeniedForDependencyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -2035,22 +2035,22 @@ func (s AccessDeniedForDependencyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedForDependencyException) OrigErr() error {
+func (s *AccessDeniedForDependencyException) OrigErr() error {
return nil
}
-func (s AccessDeniedForDependencyException) Error() string {
+func (s *AccessDeniedForDependencyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedForDependencyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedForDependencyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedForDependencyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedForDependencyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type AssociateDRTLogBucketInput struct {
@@ -3270,8 +3270,8 @@ func (s *GetSubscriptionStateOutput) SetSubscriptionState(v string) *GetSubscrip
// Exception that indicates that a problem occurred with the service infrastructure.
// You can retry the request.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3288,17 +3288,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "InternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3306,29 +3306,29 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception that indicates that the operation would not cause any change to
// occur.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3345,17 +3345,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "InvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3363,29 +3363,29 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception that indicates that the NextToken specified in the request is invalid.
// Submit the request using the NextToken value that was returned in the response.
type InvalidPaginationTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3402,17 +3402,17 @@ func (s InvalidPaginationTokenException) GoString() string {
func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error {
return &InvalidPaginationTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPaginationTokenException) Code() string {
+func (s *InvalidPaginationTokenException) Code() string {
return "InvalidPaginationTokenException"
}
// Message returns the exception's message.
-func (s InvalidPaginationTokenException) Message() string {
+func (s *InvalidPaginationTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3420,28 +3420,28 @@ func (s InvalidPaginationTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPaginationTokenException) OrigErr() error {
+func (s *InvalidPaginationTokenException) OrigErr() error {
return nil
}
-func (s InvalidPaginationTokenException) Error() string {
+func (s *InvalidPaginationTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPaginationTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPaginationTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPaginationTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPaginationTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception that indicates that the parameters passed to the API are invalid.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3458,17 +3458,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3476,29 +3476,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception that indicates that the resource is invalid. You might not have
// access to the resource, or the resource might not exist.
type InvalidResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3515,17 +3515,17 @@ func (s InvalidResourceException) GoString() string {
func newErrorInvalidResourceException(v protocol.ResponseMetadata) error {
return &InvalidResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceException) Code() string {
+func (s *InvalidResourceException) Code() string {
return "InvalidResourceException"
}
// Message returns the exception's message.
-func (s InvalidResourceException) Message() string {
+func (s *InvalidResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3533,22 +3533,22 @@ func (s InvalidResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceException) OrigErr() error {
+func (s *InvalidResourceException) OrigErr() error {
return nil
}
-func (s InvalidResourceException) Error() string {
+func (s *InvalidResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies how many protections of a given type you can create.
@@ -3590,8 +3590,8 @@ func (s *Limit) SetType(v string) *Limit {
//
// Limit is the threshold that would be exceeded.
type LimitsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Limit *int64 `type:"long"`
@@ -3612,17 +3612,17 @@ func (s LimitsExceededException) GoString() string {
func newErrorLimitsExceededException(v protocol.ResponseMetadata) error {
return &LimitsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitsExceededException) Code() string {
+func (s *LimitsExceededException) Code() string {
return "LimitsExceededException"
}
// Message returns the exception's message.
-func (s LimitsExceededException) Message() string {
+func (s *LimitsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3630,22 +3630,22 @@ func (s LimitsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitsExceededException) OrigErr() error {
+func (s *LimitsExceededException) OrigErr() error {
return nil
}
-func (s LimitsExceededException) Error() string {
+func (s *LimitsExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAttacksInput struct {
@@ -3872,8 +3872,8 @@ func (s *ListProtectionsOutput) SetProtections(v []*Protection) *ListProtections
// of your subscription. This exception indicates that you are attempting to
// change AutoRenew prior to that period.
type LockedSubscriptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3890,17 +3890,17 @@ func (s LockedSubscriptionException) GoString() string {
func newErrorLockedSubscriptionException(v protocol.ResponseMetadata) error {
return &LockedSubscriptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LockedSubscriptionException) Code() string {
+func (s *LockedSubscriptionException) Code() string {
return "LockedSubscriptionException"
}
// Message returns the exception's message.
-func (s LockedSubscriptionException) Message() string {
+func (s *LockedSubscriptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3908,22 +3908,22 @@ func (s LockedSubscriptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LockedSubscriptionException) OrigErr() error {
+func (s *LockedSubscriptionException) OrigErr() error {
return nil
}
-func (s LockedSubscriptionException) Error() string {
+func (s *LockedSubscriptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LockedSubscriptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LockedSubscriptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LockedSubscriptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LockedSubscriptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The mitigation applied to a DDoS attack.
@@ -3952,8 +3952,8 @@ func (s *Mitigation) SetMitigationName(v string) *Mitigation {
// The ARN of the role that you specifed does not exist.
type NoAssociatedRoleException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3970,17 +3970,17 @@ func (s NoAssociatedRoleException) GoString() string {
func newErrorNoAssociatedRoleException(v protocol.ResponseMetadata) error {
return &NoAssociatedRoleException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NoAssociatedRoleException) Code() string {
+func (s *NoAssociatedRoleException) Code() string {
return "NoAssociatedRoleException"
}
// Message returns the exception's message.
-func (s NoAssociatedRoleException) Message() string {
+func (s *NoAssociatedRoleException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3988,29 +3988,29 @@ func (s NoAssociatedRoleException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NoAssociatedRoleException) OrigErr() error {
+func (s *NoAssociatedRoleException) OrigErr() error {
return nil
}
-func (s NoAssociatedRoleException) Error() string {
+func (s *NoAssociatedRoleException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NoAssociatedRoleException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NoAssociatedRoleException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NoAssociatedRoleException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NoAssociatedRoleException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception that indicates that the protection state has been modified by another
// client. You can retry the request.
type OptimisticLockException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4027,17 +4027,17 @@ func (s OptimisticLockException) GoString() string {
func newErrorOptimisticLockException(v protocol.ResponseMetadata) error {
return &OptimisticLockException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OptimisticLockException) Code() string {
+func (s *OptimisticLockException) Code() string {
return "OptimisticLockException"
}
// Message returns the exception's message.
-func (s OptimisticLockException) Message() string {
+func (s *OptimisticLockException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4045,22 +4045,22 @@ func (s OptimisticLockException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OptimisticLockException) OrigErr() error {
+func (s *OptimisticLockException) OrigErr() error {
return nil
}
-func (s OptimisticLockException) Error() string {
+func (s *OptimisticLockException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OptimisticLockException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OptimisticLockException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OptimisticLockException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OptimisticLockException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that represents a resource that is under DDoS protection.
@@ -4117,8 +4117,8 @@ func (s *Protection) SetResourceArn(v string) *Protection {
// Exception indicating the specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4135,17 +4135,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4153,28 +4153,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Exception indicating the specified resource does not exist.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -4191,17 +4191,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4209,22 +4209,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The attack information for the specified SubResource.
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 989c4580f17..b6498dd1d49 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
@@ -73,10 +73,11 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ
// We recommend that you devise a set of tag keys that meets your needs for
// each resource type. Using a consistent set of tag keys makes it easier for
// you to manage your resources. You can search and filter the resources based
-// on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and
-// are interpreted strictly as a string of characters.
+// on the tags you add. Tags don't have any semantic meaning to and are interpreted
+// strictly as a string of characters.
//
-// For more information about tags, see Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
+// For more information about using tags with EC2 instances, see Tagging your
+// Amazon EC2 resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
// in the Amazon EC2 User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -290,7 +291,7 @@ func (c *SSM) CancelMaintenanceWindowExecutionRequest(input *CancelMaintenanceWi
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelMaintenanceWindowExecution
@@ -365,12 +366,11 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques
// Systems Manager capabilities. You use the activation code and ID when installing
// SSM Agent on machines in your hybrid environment. For more information about
// requirements for managing on-premises instances and VMs using Systems Manager,
-// see Setting Up AWS Systems Manager for Hybrid Environments (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances.html)
+// see Setting up AWS Systems Manager for hybrid environments (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances.html)
// in the AWS Systems Manager User Guide.
//
-// On-premises servers or VMs that are registered with Systems Manager and Amazon
-// EC2 instances that you manage with Systems Manager are all called managed
-// instances.
+// On-premises servers or VMs that are registered with Systems Manager and EC2
+// instances that you manage with Systems Manager are all called managed instances.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -508,7 +508,7 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ
//
// * InvalidTarget
// The target is not valid or does not exist. It might not be configured for
-// EC2 Systems Manager or you might not have permission to perform the operation.
+// Systems Manager or you might not have permission to perform the operation.
//
// * InvalidSchedule
// The schedule is invalid. Verify your cron or rate expression and try again.
@@ -638,7 +638,7 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput)
//
// * InvalidTarget
// The target is not valid or does not exist. It might not be configured for
-// EC2 Systems Manager or you might not have permission to perform the operation.
+// Systems Manager or you might not have permission to perform the operation.
//
// * InvalidSchedule
// The schedule is invalid. Verify your cron or rate expression and try again.
@@ -709,10 +709,11 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re
// CreateDocument API operation for Amazon Simple Systems Manager (SSM).
//
-// Creates a Systems Manager document.
-//
-// After you create a document, you can use CreateAssociation to associate it
-// with one or more running instances.
+// Creates a Systems Manager (SSM) document. An SSM document defines the actions
+// that Systems Manager performs on your managed instances. For more information
+// about SSM documents, including information about supported schemas, features,
+// and syntax, see AWS Systems Manager Documents (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-ssm-docs.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
@@ -832,7 +833,7 @@ func (c *SSM) CreateMaintenanceWindowRequest(input *CreateMaintenanceWindowInput
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -906,13 +907,13 @@ func (c *SSM) CreateOpsItemRequest(input *CreateOpsItemInput) (req *request.Requ
//
// Creates a new OpsItem. You must have permission in AWS Identity and Access
// Management (IAM) to create a new OpsItem. For more information, see Getting
-// Started with OpsCenter (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
+// started with OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
// in the AWS Systems Manager User Guide.
//
// Operations engineers and IT professionals use OpsCenter to view, investigate,
// and remediate operational issues impacting the performance and health of
// their AWS resources. For more information, see AWS Systems Manager OpsCenter
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the AWS Systems Manager User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -931,7 +932,7 @@ func (c *SSM) CreateOpsItemRequest(input *CreateOpsItemInput) (req *request.Requ
//
// * OpsItemLimitExceededException
// The request caused OpsItems to exceed one or more quotas. For information
-// about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
+// about OpsItem quotas, see What are the resource limits for OpsCenter? (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
//
// * OpsItemInvalidParameterException
// A specified parameter argument isn't valid. Verify the available arguments
@@ -1025,7 +1026,7 @@ func (c *SSM) CreatePatchBaselineRequest(input *CreatePatchBaselineInput) (req *
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -1104,16 +1105,16 @@ func (c *SSM) CreateResourceDataSyncRequest(input *CreateResourceDataSyncInput)
//
// You can configure Systems Manager Inventory to use the SyncToDestination
// type to synchronize Inventory data from multiple AWS Regions to a single
-// Amazon S3 bucket. For more information, see Configuring Resource Data Sync
-// for Inventory (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-datasync.html)
+// S3 bucket. For more information, see Configuring Resource Data Sync for Inventory
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-datasync.html)
// in the AWS Systems Manager User Guide.
//
// You can configure Systems Manager Explorer to use the SyncFromSource type
// to synchronize operational work items (OpsItems) and operational data (OpsData)
-// from multiple AWS Regions to a single Amazon S3 bucket. This type can synchronize
+// from multiple AWS Regions to a single S3 bucket. This type can synchronize
// OpsItems and OpsData from multiple AWS accounts and Regions or EntireOrganization
-// by using AWS Organizations. For more information, see Setting Up Explorer
-// to Display Data from Multiple Accounts and Regions (http://docs.aws.amazon.com/systems-manager/latest/userguide/Explorer-resource-data-sync.html)
+// by using AWS Organizations. For more information, see Setting up Systems
+// Manager Explorer to display data from multiple accounts and Regions (https://docs.aws.amazon.com/systems-manager/latest/userguide/Explorer-resource-data-sync.html)
// in the AWS Systems Manager User Guide.
//
// A resource data sync is an asynchronous operation that returns immediately.
@@ -2207,7 +2208,7 @@ func (c *SSM) DeregisterTargetFromMaintenanceWindowRequest(input *DeregisterTarg
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -2298,7 +2299,7 @@ func (c *SSM) DeregisterTaskFromMaintenanceWindowRequest(input *DeregisterTaskFr
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -3344,7 +3345,7 @@ func (c *SSM) DescribeEffectivePatchesForPatchBaselineRequest(input *DescribeEff
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * UnsupportedOperatingSystem
@@ -3521,16 +3522,18 @@ func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformat
// DescribeInstanceInformation API operation for Amazon Simple Systems Manager (SSM).
//
-// Describes one or more of your instances. You can use this to get information
-// about instances like the operating system platform, the SSM Agent version
-// (Linux), status etc. If you specify one or more instance IDs, it returns
-// information for those instances. If you do not specify instance IDs, it returns
-// information for all your instances. If you specify an instance ID that is
-// not valid or an instance that you do not own, you receive an error.
+// Describes one or more of your instances, including information about the
+// operating system platform, the version of SSM Agent installed on the instance,
+// instance status, and so on.
+//
+// If you specify one or more instance IDs, it returns information for those
+// instances. If you do not specify instance IDs, it returns information for
+// all your instances. If you specify an instance ID that is not valid or an
+// instance that you do not own, you receive an error.
//
// The IamRole field for this API action is the Amazon Identity and Access Management
// (IAM) role assigned to on-premises instances. This call does not return the
-// IAM role for Amazon EC2 instances.
+// IAM role for EC2 instances.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -4052,7 +4055,7 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input *De
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -4139,7 +4142,7 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTasksRequest(input *DescribeMain
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -4310,7 +4313,7 @@ func (c *SSM) DescribeMaintenanceWindowScheduleRequest(input *DescribeMaintenanc
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowSchedule
@@ -4394,7 +4397,7 @@ func (c *SSM) DescribeMaintenanceWindowTargetsRequest(input *DescribeMaintenance
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -4481,7 +4484,7 @@ func (c *SSM) DescribeMaintenanceWindowTasksRequest(input *DescribeMaintenanceWi
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -4714,13 +4717,13 @@ func (c *SSM) DescribeOpsItemsRequest(input *DescribeOpsItemsInput) (req *reques
//
// Query a set of OpsItems. You must have permission in AWS Identity and Access
// Management (IAM) to query a list of OpsItems. For more information, see Getting
-// Started with OpsCenter (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
+// started with OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
// in the AWS Systems Manager User Guide.
//
// Operations engineers and IT professionals use OpsCenter to view, investigate,
// and remediate operational issues impacting the performance and health of
// their AWS resources. For more information, see AWS Systems Manager OpsCenter
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the AWS Systems Manager User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -5680,7 +5683,7 @@ func (c *SSM) GetConnectionStatusRequest(input *GetConnectionStatusInput) (req *
// 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.
+// whether it is running 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
@@ -5863,10 +5866,10 @@ func (c *SSM) GetDeployablePatchSnapshotForInstanceRequest(input *GetDeployableP
// Windows, AmazonLinux, RedhatEnterpriseLinux, and Ubuntu.
//
// * UnsupportedFeatureRequiredException
-// Microsoft application patching is only available on EC2 instances and Advanced
-// Instances. To patch Microsoft applications on on-premises servers and VMs,
-// you must enable Advanced Instances. For more information, see Using the Advanced-Instances
-// Tier (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
+// Microsoft application patching is only available on EC2 instances and advanced
+// instances. To patch Microsoft applications on on-premises servers and VMs,
+// you must enable advanced instances. For more information, see Using the advanced-instances
+// tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
// in the AWS Systems Manager User Guide.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDeployablePatchSnapshotForInstance
@@ -6220,7 +6223,7 @@ func (c *SSM) GetMaintenanceWindowRequest(input *GetMaintenanceWindowInput) (req
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -6307,7 +6310,7 @@ func (c *SSM) GetMaintenanceWindowExecutionRequest(input *GetMaintenanceWindowEx
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -6395,7 +6398,7 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskRequest(input *GetMaintenanceWind
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -6482,7 +6485,7 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskInvocationRequest(input *GetMaint
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -6569,7 +6572,7 @@ func (c *SSM) GetMaintenanceWindowTaskRequest(input *GetMaintenanceWindowTaskInp
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -6643,13 +6646,13 @@ func (c *SSM) GetOpsItemRequest(input *GetOpsItemInput) (req *request.Request, o
//
// Get information about an OpsItem by using the ID. You must have permission
// in AWS Identity and Access Management (IAM) to view information about an
-// OpsItem. For more information, see Getting Started with OpsCenter (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
+// OpsItem. For more information, see Getting started with OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
// in the AWS Systems Manager User Guide.
//
// Operations engineers and IT professionals use OpsCenter to view, investigate,
// and remediate operational issues impacting the performance and health of
// their AWS resources. For more information, see AWS Systems Manager OpsCenter
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the AWS Systems Manager User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -7323,7 +7326,7 @@ func (c *SSM) GetPatchBaselineRequest(input *GetPatchBaselineInput) (req *reques
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InvalidResourceId
@@ -9424,7 +9427,7 @@ func (c *SSM) PutParameterRequest(input *PutParameterInput) (req *request.Reques
//
// * HierarchyLevelLimitExceededException
// A hierarchy can have a maximum of 15 levels. For more information, see Requirements
-// and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
+// and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the AWS Systems Manager User Guide.
//
// * HierarchyTypeMismatchException
@@ -9550,7 +9553,7 @@ func (c *SSM) RegisterDefaultPatchBaselineRequest(input *RegisterDefaultPatchBas
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -9641,7 +9644,7 @@ func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBase
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InvalidResourceId
@@ -9653,7 +9656,7 @@ func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBase
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -9744,7 +9747,7 @@ func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWi
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * ResourceLimitExceededException
@@ -9752,7 +9755,7 @@ func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWi
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -9843,7 +9846,7 @@ func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMa
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * ResourceLimitExceededException
@@ -9851,7 +9854,7 @@ func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMa
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * FeatureNotAvailableException
@@ -10140,7 +10143,7 @@ func (c *SSM) ResumeSessionRequest(input *ResumeSessionInput) (req *request.Requ
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -10357,7 +10360,7 @@ func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request,
// The role name can't contain invalid characters. Also verify that you specified
// an IAM role for notifications that includes the required trust policy. For
// information about configuring the IAM role for Run Command notifications,
-// see Configuring Amazon SNS Notifications for Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
+// see Configuring Amazon SNS Notifications for Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
// in the AWS Systems Manager User Guide.
//
// * InvalidNotificationConfig
@@ -10545,7 +10548,7 @@ func (c *SSM) StartAutomationExecutionRequest(input *StartAutomationExecutionInp
//
// * InvalidTarget
// The target is not valid or does not exist. It might not be configured for
-// EC2 Systems Manager or you might not have permission to perform the operation.
+// Systems Manager or you might not have permission to perform the operation.
//
// * InternalServerError
// An error occurred on the server side.
@@ -10622,7 +10625,7 @@ func (c *SSM) StartSessionRequest(input *StartSessionInput) (req *request.Reques
//
// 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)
+// For information, see Install the Session Manager plugin for the AWS CLI (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)
// in the AWS Systems Manager User Guide.
//
// AWS Tools for PowerShell usage: Start-SSMSession is not currently supported
@@ -10641,8 +10644,8 @@ func (c *SSM) StartSessionRequest(input *StartSessionInput) (req *request.Reques
//
// * 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)
+// use with Session Manager. For more information, see Getting started with
+// Session Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
// in the AWS Systems Manager User Guide.
//
// * InternalServerError
@@ -10818,7 +10821,7 @@ func (c *SSM) TerminateSessionRequest(input *TerminateSessionInput) (req *reques
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -10943,7 +10946,7 @@ func (c *SSM) UpdateAssociationRequest(input *UpdateAssociationInput) (req *requ
//
// * InvalidTarget
// The target is not valid or does not exist. It might not be configured for
-// EC2 Systems Manager or you might not have permission to perform the operation.
+// Systems Manager or you might not have permission to perform the operation.
//
// * InvalidAssociationVersion
// The version you specified is not valid. Use ListAssociationVersions to view
@@ -11345,7 +11348,7 @@ func (c *SSM) UpdateMaintenanceWindowRequest(input *UpdateMaintenanceWindowInput
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -11449,7 +11452,7 @@ func (c *SSM) UpdateMaintenanceWindowTargetRequest(input *UpdateMaintenanceWindo
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -11555,7 +11558,7 @@ func (c *SSM) UpdateMaintenanceWindowTaskRequest(input *UpdateMaintenanceWindowT
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -11628,8 +11631,10 @@ func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleI
// UpdateManagedInstanceRole API operation for Amazon Simple Systems Manager (SSM).
//
-// Assigns or changes an Amazon Identity and Access Management (IAM) role for
-// the managed instance.
+// Changes the Amazon Identity and Access Management (IAM) role that is assigned
+// to the on-premises instance or virtual machines (VM). IAM roles are first
+// assigned to these hybrid instances during the activation process. For more
+// information, see CreateActivation.
//
// 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
@@ -11723,13 +11728,13 @@ func (c *SSM) UpdateOpsItemRequest(input *UpdateOpsItemInput) (req *request.Requ
//
// Edit or change an OpsItem. You must have permission in AWS Identity and Access
// Management (IAM) to update an OpsItem. For more information, see Getting
-// Started with OpsCenter (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
+// started with OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html)
// in the AWS Systems Manager User Guide.
//
// Operations engineers and IT professionals use OpsCenter to view, investigate,
// and remediate operational issues impacting the performance and health of
// their AWS resources. For more information, see AWS Systems Manager OpsCenter
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the AWS Systems Manager User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -11751,7 +11756,7 @@ func (c *SSM) UpdateOpsItemRequest(input *UpdateOpsItemInput) (req *request.Requ
//
// * OpsItemLimitExceededException
// The request caused OpsItems to exceed one or more quotas. For information
-// about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
+// about OpsItem quotas, see What are the resource limits for OpsCenter? (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
//
// * OpsItemInvalidParameterException
// A specified parameter argument isn't valid. Verify the available arguments
@@ -11842,7 +11847,7 @@ func (c *SSM) UpdatePatchBaselineRequest(input *UpdatePatchBaselineInput) (req *
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
//
// * InternalServerError
@@ -11922,6 +11927,9 @@ func (c *SSM) UpdateResourceDataSyncRequest(input *UpdateResourceDataSyncInput)
// the Include all accounts from my AWS Organizations configuration option.
// Instead, you must delete the first resource data sync, and create a new one.
//
+// This API action only supports a resource data sync that was created with
+// a SyncFromSource SyncType.
+//
// 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.
@@ -12325,8 +12333,8 @@ func (s AddTagsToResourceOutput) GoString() string {
// Error returned if an attempt is made to register a patch group with a patch
// baseline that is already registered with a different patch baseline.
type AlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12343,17 +12351,17 @@ func (s AlreadyExistsException) GoString() string {
func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error {
return &AlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AlreadyExistsException) Code() string {
+func (s *AlreadyExistsException) Code() string {
return "AlreadyExistsException"
}
// Message returns the exception's message.
-func (s AlreadyExistsException) Message() string {
+func (s *AlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12361,29 +12369,29 @@ func (s AlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AlreadyExistsException) OrigErr() error {
+func (s *AlreadyExistsException) OrigErr() error {
return nil
}
-func (s AlreadyExistsException) Error() string {
+func (s *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You must disassociate a document from all instances before you can delete
// it.
type AssociatedInstances struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12400,17 +12408,17 @@ func (s AssociatedInstances) GoString() string {
func newErrorAssociatedInstances(v protocol.ResponseMetadata) error {
return &AssociatedInstances{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociatedInstances) Code() string {
+func (s *AssociatedInstances) Code() string {
return "AssociatedInstances"
}
// Message returns the exception's message.
-func (s AssociatedInstances) Message() string {
+func (s *AssociatedInstances) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12418,22 +12426,22 @@ func (s AssociatedInstances) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociatedInstances) OrigErr() error {
+func (s *AssociatedInstances) OrigErr() error {
return nil
}
-func (s AssociatedInstances) Error() string {
+func (s *AssociatedInstances) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociatedInstances) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociatedInstances) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociatedInstances) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociatedInstances) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an association of a Systems Manager document and an instance.
@@ -12544,8 +12552,8 @@ func (s *Association) SetTargets(v []*Target) *Association {
// The specified association already exists.
type AssociationAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12562,17 +12570,17 @@ func (s AssociationAlreadyExists) GoString() string {
func newErrorAssociationAlreadyExists(v protocol.ResponseMetadata) error {
return &AssociationAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociationAlreadyExists) Code() string {
+func (s *AssociationAlreadyExists) Code() string {
return "AssociationAlreadyExists"
}
// Message returns the exception's message.
-func (s AssociationAlreadyExists) Message() string {
+func (s *AssociationAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12580,22 +12588,22 @@ func (s AssociationAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociationAlreadyExists) OrigErr() error {
+func (s *AssociationAlreadyExists) OrigErr() error {
return nil
}
-func (s AssociationAlreadyExists) Error() string {
+func (s *AssociationAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociationAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociationAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociationAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociationAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the parameters for a document.
@@ -12665,7 +12673,7 @@ type AssociationDescription struct {
// The name of the Systems Manager document.
Name *string `type:"string"`
- // An Amazon S3 bucket where you want to store the output details of the request.
+ // An S3 bucket where you want to store the output details of the request.
OutputLocation *InstanceAssociationOutputLocation `type:"structure"`
// Information about the association.
@@ -12680,6 +12688,20 @@ type AssociationDescription struct {
// The association status.
Status *AssociationStatus `type:"structure"`
+ // The mode for generating association compliance. You can specify AUTO or MANUAL.
+ // In AUTO mode, the system uses the status of the association execution to
+ // determine the compliance status. If the association execution runs successfully,
+ // then the association is COMPLIANT. If the association execution doesn't run
+ // successfully, the association is NON-COMPLIANT.
+ //
+ // In MANUAL mode, you must specify the AssociationId as a parameter for the
+ // PutComplianceItems API action. In this case, compliance data is not managed
+ // by State Manager. It is managed by your direct call to the PutComplianceItems
+ // API action.
+ //
+ // By default, all associations use AUTO mode.
+ SyncCompliance *string `type:"string" enum:"AssociationSyncCompliance"`
+
// The instances targeted by the request.
Targets []*Target `type:"list"`
}
@@ -12808,6 +12830,12 @@ func (s *AssociationDescription) SetStatus(v *AssociationStatus) *AssociationDes
return s
}
+// SetSyncCompliance sets the SyncCompliance field's value.
+func (s *AssociationDescription) SetSyncCompliance(v string) *AssociationDescription {
+ s.SyncCompliance = &v
+ return s
+}
+
// SetTargets sets the Targets field's value.
func (s *AssociationDescription) SetTargets(v []*Target) *AssociationDescription {
s.Targets = v
@@ -12816,8 +12844,8 @@ func (s *AssociationDescription) SetTargets(v []*Target) *AssociationDescription
// The specified association does not exist.
type AssociationDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12834,17 +12862,17 @@ func (s AssociationDoesNotExist) GoString() string {
func newErrorAssociationDoesNotExist(v protocol.ResponseMetadata) error {
return &AssociationDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociationDoesNotExist) Code() string {
+func (s *AssociationDoesNotExist) Code() string {
return "AssociationDoesNotExist"
}
// Message returns the exception's message.
-func (s AssociationDoesNotExist) Message() string {
+func (s *AssociationDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12852,22 +12880,22 @@ func (s AssociationDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociationDoesNotExist) OrigErr() error {
+func (s *AssociationDoesNotExist) OrigErr() error {
return nil
}
-func (s AssociationDoesNotExist) Error() string {
+func (s *AssociationDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociationDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociationDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociationDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociationDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Includes information about the specified association.
@@ -12960,8 +12988,8 @@ func (s *AssociationExecution) SetStatus(v string) *AssociationExecution {
// The specified execution ID does not exist. Verify the ID number and try again.
type AssociationExecutionDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12978,17 +13006,17 @@ func (s AssociationExecutionDoesNotExist) GoString() string {
func newErrorAssociationExecutionDoesNotExist(v protocol.ResponseMetadata) error {
return &AssociationExecutionDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociationExecutionDoesNotExist) Code() string {
+func (s *AssociationExecutionDoesNotExist) Code() string {
return "AssociationExecutionDoesNotExist"
}
// Message returns the exception's message.
-func (s AssociationExecutionDoesNotExist) Message() string {
+func (s *AssociationExecutionDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12996,22 +13024,22 @@ func (s AssociationExecutionDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociationExecutionDoesNotExist) OrigErr() error {
+func (s *AssociationExecutionDoesNotExist) OrigErr() error {
return nil
}
-func (s AssociationExecutionDoesNotExist) Error() string {
+func (s *AssociationExecutionDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociationExecutionDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociationExecutionDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociationExecutionDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociationExecutionDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Filters used in the request.
@@ -13294,8 +13322,8 @@ func (s *AssociationFilter) SetValue(v string) *AssociationFilter {
// You can have at most 2,000 active associations.
type AssociationLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -13312,17 +13340,17 @@ func (s AssociationLimitExceeded) GoString() string {
func newErrorAssociationLimitExceeded(v protocol.ResponseMetadata) error {
return &AssociationLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociationLimitExceeded) Code() string {
+func (s *AssociationLimitExceeded) Code() string {
return "AssociationLimitExceeded"
}
// Message returns the exception's message.
-func (s AssociationLimitExceeded) Message() string {
+func (s *AssociationLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13330,22 +13358,22 @@ func (s AssociationLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociationLimitExceeded) OrigErr() error {
+func (s *AssociationLimitExceeded) OrigErr() error {
return nil
}
-func (s AssociationLimitExceeded) Error() string {
+func (s *AssociationLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociationLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociationLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociationLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociationLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the association.
@@ -13535,6 +13563,20 @@ type AssociationVersionInfo struct {
// version was created.
ScheduleExpression *string `min:"1" type:"string"`
+ // The mode for generating association compliance. You can specify AUTO or MANUAL.
+ // In AUTO mode, the system uses the status of the association execution to
+ // determine the compliance status. If the association execution runs successfully,
+ // then the association is COMPLIANT. If the association execution doesn't run
+ // successfully, the association is NON-COMPLIANT.
+ //
+ // In MANUAL mode, you must specify the AssociationId as a parameter for the
+ // PutComplianceItems API action. In this case, compliance data is not managed
+ // by State Manager. It is managed by your direct call to the PutComplianceItems
+ // API action.
+ //
+ // By default, all associations use AUTO mode.
+ SyncCompliance *string `type:"string" enum:"AssociationSyncCompliance"`
+
// The targets specified for the association when the association version was
// created.
Targets []*Target `type:"list"`
@@ -13622,6 +13664,12 @@ func (s *AssociationVersionInfo) SetScheduleExpression(v string) *AssociationVer
return s
}
+// SetSyncCompliance sets the SyncCompliance field's value.
+func (s *AssociationVersionInfo) SetSyncCompliance(v string) *AssociationVersionInfo {
+ s.SyncCompliance = &v
+ return s
+}
+
// SetTargets sets the Targets field's value.
func (s *AssociationVersionInfo) SetTargets(v []*Target) *AssociationVersionInfo {
s.Targets = v
@@ -13631,8 +13679,8 @@ func (s *AssociationVersionInfo) SetTargets(v []*Target) *AssociationVersionInfo
// You have reached the maximum number versions allowed for an association.
// Each association has a limit of 1,000 versions.
type AssociationVersionLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -13649,17 +13697,17 @@ func (s AssociationVersionLimitExceeded) GoString() string {
func newErrorAssociationVersionLimitExceeded(v protocol.ResponseMetadata) error {
return &AssociationVersionLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AssociationVersionLimitExceeded) Code() string {
+func (s *AssociationVersionLimitExceeded) Code() string {
return "AssociationVersionLimitExceeded"
}
// Message returns the exception's message.
-func (s AssociationVersionLimitExceeded) Message() string {
+func (s *AssociationVersionLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13667,22 +13715,22 @@ func (s AssociationVersionLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AssociationVersionLimitExceeded) OrigErr() error {
+func (s *AssociationVersionLimitExceeded) OrigErr() error {
return nil
}
-func (s AssociationVersionLimitExceeded) Error() string {
+func (s *AssociationVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AssociationVersionLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AssociationVersionLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AssociationVersionLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AssociationVersionLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A structure that includes attributes that describe a document attachment.
@@ -13844,8 +13892,8 @@ func (s *AttachmentsSource) SetValues(v []*string) *AttachmentsSource {
// An Automation document with the specified name could not be found.
type AutomationDefinitionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -13862,17 +13910,17 @@ func (s AutomationDefinitionNotFoundException) GoString() string {
func newErrorAutomationDefinitionNotFoundException(v protocol.ResponseMetadata) error {
return &AutomationDefinitionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AutomationDefinitionNotFoundException) Code() string {
+func (s *AutomationDefinitionNotFoundException) Code() string {
return "AutomationDefinitionNotFoundException"
}
// Message returns the exception's message.
-func (s AutomationDefinitionNotFoundException) Message() string {
+func (s *AutomationDefinitionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13880,28 +13928,28 @@ func (s AutomationDefinitionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AutomationDefinitionNotFoundException) OrigErr() error {
+func (s *AutomationDefinitionNotFoundException) OrigErr() error {
return nil
}
-func (s AutomationDefinitionNotFoundException) Error() string {
+func (s *AutomationDefinitionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AutomationDefinitionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AutomationDefinitionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AutomationDefinitionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AutomationDefinitionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An Automation document with the specified name and version could not be found.
type AutomationDefinitionVersionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -13918,17 +13966,17 @@ func (s AutomationDefinitionVersionNotFoundException) GoString() string {
func newErrorAutomationDefinitionVersionNotFoundException(v protocol.ResponseMetadata) error {
return &AutomationDefinitionVersionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AutomationDefinitionVersionNotFoundException) Code() string {
+func (s *AutomationDefinitionVersionNotFoundException) Code() string {
return "AutomationDefinitionVersionNotFoundException"
}
// Message returns the exception's message.
-func (s AutomationDefinitionVersionNotFoundException) Message() string {
+func (s *AutomationDefinitionVersionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13936,22 +13984,22 @@ func (s AutomationDefinitionVersionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AutomationDefinitionVersionNotFoundException) OrigErr() error {
+func (s *AutomationDefinitionVersionNotFoundException) OrigErr() error {
return nil
}
-func (s AutomationDefinitionVersionNotFoundException) Error() string {
+func (s *AutomationDefinitionVersionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AutomationDefinitionVersionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AutomationDefinitionVersionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AutomationDefinitionVersionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AutomationDefinitionVersionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Detailed information about the current state of an individual Automation
@@ -14265,8 +14313,8 @@ func (s *AutomationExecutionFilter) SetValues(v []*string) *AutomationExecutionF
// The number of simultaneously running Automation executions exceeded the allowable
// limit.
type AutomationExecutionLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14283,17 +14331,17 @@ func (s AutomationExecutionLimitExceededException) GoString() string {
func newErrorAutomationExecutionLimitExceededException(v protocol.ResponseMetadata) error {
return &AutomationExecutionLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AutomationExecutionLimitExceededException) Code() string {
+func (s *AutomationExecutionLimitExceededException) Code() string {
return "AutomationExecutionLimitExceededException"
}
// Message returns the exception's message.
-func (s AutomationExecutionLimitExceededException) Message() string {
+func (s *AutomationExecutionLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14301,22 +14349,22 @@ func (s AutomationExecutionLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AutomationExecutionLimitExceededException) OrigErr() error {
+func (s *AutomationExecutionLimitExceededException) OrigErr() error {
return nil
}
-func (s AutomationExecutionLimitExceededException) Error() string {
+func (s *AutomationExecutionLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AutomationExecutionLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AutomationExecutionLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AutomationExecutionLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AutomationExecutionLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Details about a specific Automation execution.
@@ -14331,8 +14379,8 @@ type AutomationExecutionMetadata struct {
// Use this filter with DescribeAutomationExecutions. Specify either Local or
// CrossAccount. CrossAccount is an Automation that runs in multiple AWS Regions
- // and accounts. For more information, see Executing Automations in Multiple
- // AWS Regions and Accounts (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
+ // and accounts. For more information, see Running Automation workflows in multiple
+ // AWS Regions and accounts (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
// in the AWS Systems Manager User Guide.
AutomationType *string `type:"string" enum:"AutomationType"`
@@ -14361,7 +14409,7 @@ type AutomationExecutionMetadata struct {
// The list of execution outputs as defined in the Automation document.
FailureMessage *string `type:"string"`
- // An Amazon S3 bucket where execution information is stored.
+ // An S3 bucket where execution information is stored.
LogFile *string `type:"string"`
// The MaxConcurrency value specified by the user when starting the Automation.
@@ -14540,8 +14588,8 @@ func (s *AutomationExecutionMetadata) SetTargets(v []*Target) *AutomationExecuti
// There is no automation execution information for the requested automation
// execution ID.
type AutomationExecutionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14558,17 +14606,17 @@ func (s AutomationExecutionNotFoundException) GoString() string {
func newErrorAutomationExecutionNotFoundException(v protocol.ResponseMetadata) error {
return &AutomationExecutionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AutomationExecutionNotFoundException) Code() string {
+func (s *AutomationExecutionNotFoundException) Code() string {
return "AutomationExecutionNotFoundException"
}
// Message returns the exception's message.
-func (s AutomationExecutionNotFoundException) Message() string {
+func (s *AutomationExecutionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14576,29 +14624,29 @@ func (s AutomationExecutionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AutomationExecutionNotFoundException) OrigErr() error {
+func (s *AutomationExecutionNotFoundException) OrigErr() error {
return nil
}
-func (s AutomationExecutionNotFoundException) Error() string {
+func (s *AutomationExecutionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AutomationExecutionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AutomationExecutionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AutomationExecutionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AutomationExecutionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified step name and execution ID don't exist. Verify the information
// and try again.
type AutomationStepNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -14615,17 +14663,17 @@ func (s AutomationStepNotFoundException) GoString() string {
func newErrorAutomationStepNotFoundException(v protocol.ResponseMetadata) error {
return &AutomationStepNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AutomationStepNotFoundException) Code() string {
+func (s *AutomationStepNotFoundException) Code() string {
return "AutomationStepNotFoundException"
}
// Message returns the exception's message.
-func (s AutomationStepNotFoundException) Message() string {
+func (s *AutomationStepNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14633,22 +14681,22 @@ func (s AutomationStepNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AutomationStepNotFoundException) OrigErr() error {
+func (s *AutomationStepNotFoundException) OrigErr() error {
return nil
}
-func (s AutomationStepNotFoundException) Error() string {
+func (s *AutomationStepNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AutomationStepNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AutomationStepNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AutomationStepNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AutomationStepNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CancelCommandInput struct {
@@ -14874,16 +14922,16 @@ type Command struct {
// The maximum number of instances that are allowed to run the command at the
// same time. You can specify a number of instances, such as 10, or a percentage
// of instances, such as 10%. The default value is 50. For more information
- // about how to use MaxConcurrency, see Running Commands Using Systems Manager
- // Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
+ // about how to use MaxConcurrency, see Running commands using Systems Manager
+ // Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
// in the AWS Systems Manager User Guide.
MaxConcurrency *string `min:"1" type:"string"`
// The maximum number of errors allowed before the system stops sending the
// command to additional targets. You can specify a number of errors, such as
// 10, or a percentage or errors, such as 10%. The default value is 0. For more
- // information about how to use MaxErrors, see Running Commands Using Systems
- // Manager Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
+ // information about how to use MaxErrors, see Running commands using Systems
+ // Manager Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html)
// in the AWS Systems Manager User Guide.
MaxErrors *string `min:"1" type:"string"`
@@ -14899,8 +14947,8 @@ type Command struct {
OutputS3KeyPrefix *string `type:"string"`
// (Deprecated) You can no longer specify this parameter. The system ignores
- // it. Instead, Systems Manager automatically determines the Amazon S3 bucket
- // region.
+ // it. Instead, Systems Manager automatically determines the Region of the S3
+ // bucket.
OutputS3Region *string `min:"3" type:"string"`
// The parameter values to be inserted in the document when running the command.
@@ -14919,8 +14967,8 @@ type Command struct {
// A detailed status of the command execution. StatusDetails includes more information
// than Status because it includes states resulting from error and concurrency
// control parameters. StatusDetails can show different results than Status.
- // For more information about these statuses, see Understanding Command Statuses
- // (http://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
+ // For more information about these statuses, see Understanding command statuses
+ // (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the AWS Systems Manager User Guide. StatusDetails can be one of the following
// values:
//
@@ -15217,9 +15265,8 @@ type CommandInvocation struct {
// The instance ID in which this invocation was requested.
InstanceId *string `type:"string"`
- // The name of the invocation target. For Amazon EC2 instances this is the value
- // for the aws:Name tag. For on-premises instances, this is the name of the
- // instance.
+ // The name of the invocation target. For EC2 instances this is the value for
+ // the aws:Name tag. For on-premises instances, this is the name of the instance.
InstanceName *string `type:"string"`
// Configurations for sending notifications about command status changes on
@@ -15233,16 +15280,16 @@ type CommandInvocation struct {
// notifications about command status changes on a per instance basis.
ServiceRole *string `type:"string"`
- // The URL to the plugin's StdErr file in Amazon S3, if the Amazon S3 bucket
- // was defined for the parent command. For an invocation, StandardErrorUrl is
- // populated if there is just one plugin defined for the command, and the Amazon
- // S3 bucket was defined for the command.
+ // The URL to the plugin's StdErr file in Amazon S3, if the S3 bucket was defined
+ // for the parent command. For an invocation, StandardErrorUrl is populated
+ // if there is just one plugin defined for the command, and the S3 bucket was
+ // defined for the command.
StandardErrorUrl *string `type:"string"`
- // The URL to the plugin's StdOut file in Amazon S3, if the Amazon S3 bucket
- // was defined for the parent command. For an invocation, StandardOutputUrl
- // is populated if there is just one plugin defined for the command, and the
- // Amazon S3 bucket was defined for the command.
+ // The URL to the plugin's StdOut file in Amazon S3, if the S3 bucket was defined
+ // for the parent command. For an invocation, StandardOutputUrl is populated
+ // if there is just one plugin defined for the command, and the S3 bucket was
+ // defined for the command.
StandardOutputUrl *string `type:"string"`
// Whether or not the invocation succeeded, failed, or is pending.
@@ -15252,7 +15299,7 @@ type CommandInvocation struct {
// targeted by the command). StatusDetails includes more information than Status
// because it includes states resulting from error and concurrency control parameters.
// StatusDetails can show different results than Status. For more information
- // about these statuses, see Understanding Command Statuses (http://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
+ // about these statuses, see Understanding command statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the AWS Systems Manager User Guide. StatusDetails can be one of the following
// values:
//
@@ -15421,7 +15468,7 @@ type CommandPlugin struct {
//
// test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
//
- // test_folder is the name of the Amazon S3 bucket;
+ // test_folder is the name of the S3 bucket;
//
// ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;
//
@@ -15436,7 +15483,7 @@ type CommandPlugin struct {
//
// test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
//
- // test_folder is the name of the Amazon S3 bucket;
+ // test_folder is the name of the S3 bucket;
//
// ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;
//
@@ -15446,8 +15493,7 @@ type CommandPlugin struct {
OutputS3KeyPrefix *string `type:"string"`
// (Deprecated) You can no longer specify this parameter. The system ignores
- // it. Instead, Systems Manager automatically determines the Amazon S3 bucket
- // region.
+ // it. Instead, Systems Manager automatically determines the S3 bucket region.
OutputS3Region *string `min:"3" type:"string"`
// A numeric response code generated after running the plugin.
@@ -15465,8 +15511,7 @@ type CommandPlugin struct {
StandardErrorUrl *string `type:"string"`
// The URL for the complete text written by the plugin to stdout in Amazon S3.
- // If the Amazon S3 bucket for the command was not specified, then this string
- // is empty.
+ // If the S3 bucket for the command was not specified, then this string is empty.
StandardOutputUrl *string `type:"string"`
// The status of this plugin. You can run a document with multiple plugins.
@@ -15475,8 +15520,8 @@ type CommandPlugin struct {
// A detailed status of the plugin execution. StatusDetails includes more information
// than Status because it includes states resulting from error and concurrency
// control parameters. StatusDetails can show different results than Status.
- // For more information about these statuses, see Understanding Command Statuses
- // (http://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
+ // For more information about these statuses, see Understanding command statuses
+ // (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the AWS Systems Manager User Guide. StatusDetails can be one of the following
// values:
//
@@ -15663,7 +15708,7 @@ func (s *ComplianceExecutionSummary) SetExecutionType(v string) *ComplianceExecu
// Information about the compliance as defined by the resource type. For example,
// for a patch resource type, Items includes information about the PatchSeverity,
-// Classification, etc.
+// Classification, and so on.
type ComplianceItem struct {
_ struct{} `type:"structure"`
@@ -15955,8 +16000,8 @@ func (s *ComplianceSummaryItem) SetNonCompliantSummary(v *NonCompliantSummary) *
// You specified too many custom compliance types. You can specify a maximum
// of 10 different types.
type ComplianceTypeCountLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -15973,17 +16018,17 @@ func (s ComplianceTypeCountLimitExceededException) GoString() string {
func newErrorComplianceTypeCountLimitExceededException(v protocol.ResponseMetadata) error {
return &ComplianceTypeCountLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ComplianceTypeCountLimitExceededException) Code() string {
+func (s *ComplianceTypeCountLimitExceededException) Code() string {
return "ComplianceTypeCountLimitExceededException"
}
// Message returns the exception's message.
-func (s ComplianceTypeCountLimitExceededException) Message() string {
+func (s *ComplianceTypeCountLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15991,22 +16036,22 @@ func (s ComplianceTypeCountLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ComplianceTypeCountLimitExceededException) OrigErr() error {
+func (s *ComplianceTypeCountLimitExceededException) OrigErr() error {
return nil
}
-func (s ComplianceTypeCountLimitExceededException) Error() string {
+func (s *ComplianceTypeCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ComplianceTypeCountLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ComplianceTypeCountLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ComplianceTypeCountLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ComplianceTypeCountLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A summary of resources that are compliant. The summary is organized according
@@ -16066,7 +16111,7 @@ type CreateActivationInput struct {
// The Amazon Identity and Access Management (IAM) role that you want to assign
// to the managed instance. This IAM role must provide AssumeRole permissions
// for the Systems Manager service principal ssm.amazonaws.com. For more information,
- // see Create an IAM Service Role for a Hybrid Environment (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html)
+ // see Create an IAM service role for a hybrid environment (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html)
// in the AWS Systems Manager User Guide.
//
// IamRole is a required field
@@ -16358,7 +16403,7 @@ type CreateAssociationBatchRequestEntry struct {
// Name is a required field
Name *string `type:"string" required:"true"`
- // An Amazon S3 bucket where you want to store the results of this request.
+ // An S3 bucket where you want to store the results of this request.
OutputLocation *InstanceAssociationOutputLocation `type:"structure"`
// A description of the parameters for a document.
@@ -16367,6 +16412,20 @@ type CreateAssociationBatchRequestEntry struct {
// A cron expression that specifies a schedule when the association runs.
ScheduleExpression *string `min:"1" type:"string"`
+ // The mode for generating association compliance. You can specify AUTO or MANUAL.
+ // In AUTO mode, the system uses the status of the association execution to
+ // determine the compliance status. If the association execution runs successfully,
+ // then the association is COMPLIANT. If the association execution doesn't run
+ // successfully, the association is NON-COMPLIANT.
+ //
+ // In MANUAL mode, you must specify the AssociationId as a parameter for the
+ // PutComplianceItems API action. In this case, compliance data is not managed
+ // by State Manager. It is managed by your direct call to the PutComplianceItems
+ // API action.
+ //
+ // By default, all associations use AUTO mode.
+ SyncCompliance *string `type:"string" enum:"AssociationSyncCompliance"`
+
// The instances targeted by the request.
Targets []*Target `type:"list"`
}
@@ -16487,6 +16546,12 @@ func (s *CreateAssociationBatchRequestEntry) SetScheduleExpression(v string) *Cr
return s
}
+// SetSyncCompliance sets the SyncCompliance field's value.
+func (s *CreateAssociationBatchRequestEntry) SetSyncCompliance(v string) *CreateAssociationBatchRequestEntry {
+ s.SyncCompliance = &v
+ return s
+}
+
// SetTargets sets the Targets field's value.
func (s *CreateAssociationBatchRequestEntry) SetTargets(v []*Target) *CreateAssociationBatchRequestEntry {
s.Targets = v
@@ -16568,7 +16633,7 @@ type CreateAssociationInput struct {
// Name is a required field
Name *string `type:"string" required:"true"`
- // An Amazon S3 bucket where you want to store the output details of the request.
+ // An S3 bucket where you want to store the output details of the request.
OutputLocation *InstanceAssociationOutputLocation `type:"structure"`
// The parameters for the runtime configuration of the document.
@@ -16577,8 +16642,25 @@ type CreateAssociationInput struct {
// A cron expression when the association will be applied to the target(s).
ScheduleExpression *string `min:"1" type:"string"`
- // The targets (either instances or tags) for the association. You must specify
- // a value for Targets if you don't specify a value for InstanceId.
+ // The mode for generating association compliance. You can specify AUTO or MANUAL.
+ // In AUTO mode, the system uses the status of the association execution to
+ // determine the compliance status. If the association execution runs successfully,
+ // then the association is COMPLIANT. If the association execution doesn't run
+ // successfully, the association is NON-COMPLIANT.
+ //
+ // In MANUAL mode, you must specify the AssociationId as a parameter for the
+ // PutComplianceItems API action. In this case, compliance data is not managed
+ // by State Manager. It is managed by your direct call to the PutComplianceItems
+ // API action.
+ //
+ // By default, all associations use AUTO mode.
+ SyncCompliance *string `type:"string" enum:"AssociationSyncCompliance"`
+
+ // The targets for the association. You can target instances by using tags,
+ // AWS Resource Groups, all instances in an AWS account, or individual instance
+ // IDs. For more information about choosing targets for an association, see
+ // Using targets and rate controls with State Manager associations (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-state-manager-targets-and-rate-controls.html)
+ // in the AWS Systems Manager User Guide.
Targets []*Target `type:"list"`
}
@@ -16698,6 +16780,12 @@ func (s *CreateAssociationInput) SetScheduleExpression(v string) *CreateAssociat
return s
}
+// SetSyncCompliance sets the SyncCompliance field's value.
+func (s *CreateAssociationInput) SetSyncCompliance(v string) *CreateAssociationInput {
+ s.SyncCompliance = &v
+ return s
+}
+
// SetTargets sets the Targets field's value.
func (s *CreateAssociationInput) SetTargets(v []*Target) *CreateAssociationInput {
s.Targets = v
@@ -16734,7 +16822,17 @@ type CreateDocumentInput struct {
// document.
Attachments []*AttachmentsSource `type:"list"`
- // A valid JSON or YAML string.
+ // The content for the new SSM document in JSON or YAML format. We recommend
+ // storing the contents for your new document in an external JSON or YAML file
+ // and referencing the file in a command.
+ //
+ // For examples, see the following topics in the AWS Systems Manager User Guide.
+ //
+ // * Create an SSM document (console) (https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-console.html)
+ //
+ // * Create an SSM document (AWS CLI) (https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html)
+ //
+ // * Create an SSM document (API) (https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html)
//
// Content is a required field
Content *string `min:"1" type:"string" required:"true"`
@@ -16748,8 +16846,8 @@ type CreateDocumentInput struct {
// A name for the Systems Manager document.
//
- // Do not use the following to begin the names of documents you create. They
- // are reserved by AWS for use as document prefixes:
+ // You can't use the following strings as document name prefixes. These are
+ // reserved by AWS for use as document name prefixes:
//
// * aws
//
@@ -16760,8 +16858,13 @@ type CreateDocumentInput struct {
// Name is a required field
Name *string `type:"string" required:"true"`
- // A list of SSM documents required by a document. For example, an ApplicationConfiguration
- // document requires an ApplicationConfigurationSchema document.
+ // A list of SSM documents required by a document. This parameter is used exclusively
+ // by AWS AppConfig. When a user creates an AppConfig configuration in an SSM
+ // document, the user must also specify a required document for validation purposes.
+ // In this case, an ApplicationConfiguration document requires an ApplicationConfigurationSchema
+ // document for validation purposes. For more information, see AWS AppConfig
+ // (https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html)
+ // in the AWS Systems Manager User Guide.
Requires []*DocumentRequires `min:"1" type:"list"`
// Optional metadata that you assign to a resource. Tags enable you to categorize
@@ -16781,8 +16884,8 @@ type CreateDocumentInput struct {
// on. For example, to run a document on EC2 instances, specify the following
// value: /AWS::EC2::Instance. If you specify a value of '/' the document can
// run on all types of resources. If you don't specify a value, the document
- // can't run on any resources. For a list of valid resource types, see AWS Resource
- // Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
+ // can't run on any resources. For a list of valid resource types, see AWS resource
+ // and property types reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the AWS CloudFormation User Guide.
TargetType *string `type:"string"`
@@ -17189,7 +17292,7 @@ type CreateOpsItemInput struct {
// Use the /aws/resources key in OperationalData to specify a related resource
// in the request. Use the /aws/automations key in OperationalData to associate
// an Automation runbook with the OpsItem. To view AWS CLI example commands
- // that use these keys, see Creating OpsItems Manually (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
+ // that use these keys, see Creating OpsItems manually (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
// in the AWS Systems Manager User Guide.
OperationalData map[string]*OpsItemDataValue `type:"map"`
@@ -17204,14 +17307,16 @@ type CreateOpsItemInput struct {
// Specify a severity to assign to an OpsItem.
Severity *string `min:"1" type:"string"`
- // The origin of the OpsItem, such as Amazon EC2 or AWS Systems Manager.
+ // The origin of the OpsItem, such as Amazon EC2 or Systems Manager.
+ //
+ // The source name can't contain the following strings: aws, amazon, and amzn.
//
// Source is a required field
Source *string `min:"1" type:"string" required:"true"`
// Optional metadata that you assign to a resource. You can restrict access
// to OpsItems by using an inline IAM policy that specifies tags. For more information,
- // see Getting Started with OpsCenter (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions)
+ // see Getting started with OpsCenter (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions)
// in the AWS Systems Manager User Guide.
//
// Tags use a key-value pair. For example:
@@ -17387,8 +17492,8 @@ type CreatePatchBaselineInput struct {
// A list of explicitly approved patches for the baseline.
//
// For information about accepted formats for lists of approved patches and
- // rejected patches, see Package Name Formats for Approved and Rejected Patch
- // Lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
+ // rejected patches, see About package name formats for approved and rejected
+ // patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the AWS Systems Manager User Guide.
ApprovedPatches []*string `type:"list"`
@@ -17423,8 +17528,8 @@ type CreatePatchBaselineInput struct {
// A list of explicitly rejected patches for the baseline.
//
// For information about accepted formats for lists of approved patches and
- // rejected patches, see Package Name Formats for Approved and Rejected Patch
- // Lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
+ // rejected patches, see About package name formats for approved and rejected
+ // patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the AWS Systems Manager User Guide.
RejectedPatches []*string `type:"list"`
@@ -17627,7 +17732,8 @@ func (s *CreatePatchBaselineOutput) SetBaselineId(v string) *CreatePatchBaseline
type CreateResourceDataSyncInput struct {
_ struct{} `type:"structure"`
- // Amazon S3 configuration details for the sync.
+ // Amazon S3 configuration details for the sync. This parameter is required
+ // if the SyncType value is SyncToDestination.
S3Destination *ResourceDataSyncS3Destination `type:"structure"`
// A name for the configuration.
@@ -17635,13 +17741,17 @@ type CreateResourceDataSyncInput struct {
// SyncName is a required field
SyncName *string `min:"1" type:"string" required:"true"`
- // Specify information about the data sources to synchronize.
+ // Specify information about the data sources to synchronize. This parameter
+ // is required if the SyncType value is SyncFromSource.
SyncSource *ResourceDataSyncSource `type:"structure"`
// Specify SyncToDestination to create a resource data sync that synchronizes
- // data from multiple AWS Regions to an Amazon S3 bucket. Specify SyncFromSource
- // to synchronize data from multiple AWS accounts and Regions, as listed in
- // AWS Organizations.
+ // data to an S3 bucket for Inventory. If you specify SyncToDestination, you
+ // must provide a value for S3Destination. Specify SyncFromSource to synchronize
+ // data from a single account and multiple Regions, or multiple AWS accounts
+ // and Regions, as listed in AWS Organizations for Explorer. If you specify
+ // SyncFromSource, you must provide a value for SyncSource. The default value
+ // is SyncToDestination.
SyncType *string `min:"1" type:"string"`
}
@@ -17725,8 +17835,8 @@ func (s CreateResourceDataSyncOutput) GoString() string {
// You have exceeded the limit for custom schemas. Delete one or more custom
// schemas and try again.
type CustomSchemaCountLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -17743,17 +17853,17 @@ func (s CustomSchemaCountLimitExceededException) GoString() string {
func newErrorCustomSchemaCountLimitExceededException(v protocol.ResponseMetadata) error {
return &CustomSchemaCountLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s CustomSchemaCountLimitExceededException) Code() string {
+func (s *CustomSchemaCountLimitExceededException) Code() string {
return "CustomSchemaCountLimitExceededException"
}
// Message returns the exception's message.
-func (s CustomSchemaCountLimitExceededException) Message() string {
+func (s *CustomSchemaCountLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17761,22 +17871,22 @@ func (s CustomSchemaCountLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s CustomSchemaCountLimitExceededException) OrigErr() error {
+func (s *CustomSchemaCountLimitExceededException) OrigErr() error {
return nil
}
-func (s CustomSchemaCountLimitExceededException) Error() string {
+func (s *CustomSchemaCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s CustomSchemaCountLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *CustomSchemaCountLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s CustomSchemaCountLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *CustomSchemaCountLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeleteActivationInput struct {
@@ -18067,7 +18177,7 @@ type DeleteInventoryOutput struct {
DeletionId *string `type:"string"`
// A summary of the delete operation. For more information about this summary,
- // see Understanding the Delete Inventory Summary (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-delete.html#sysman-inventory-delete-summary)
+ // see Deleting custom inventory (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary)
// in the AWS Systems Manager User Guide.
DeletionSummary *InventoryDeletionSummary `type:"structure"`
@@ -19692,7 +19802,7 @@ type DescribeDocumentPermissionOutput struct {
// either an AWS account or All.
AccountIds []*string `type:"list"`
- // A list of of AWS accounts where the current document is shared and the version
+ // A list of AWS accounts where the current document is shared and the version
// shared with each account.
AccountSharingInfoList []*AccountSharingInfo `type:"list"`
}
@@ -20009,17 +20119,16 @@ type DescribeInstanceInformationInput struct {
_ struct{} `type:"structure"`
// One or more filters. Use a filter to return a more specific list of instances.
- // You can filter on Amazon EC2 tag. Specify tags by using a key-value mapping.
+ // You can filter based on tags applied to EC2 instances. Use this Filters data
+ // type instead of InstanceInformationFilterList, which is deprecated.
Filters []*InstanceInformationStringFilter `type:"list"`
// 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.
+ // use the Filters data type. Filters enables you to return instance information
+ // by filtering based on tags applied to managed instances.
//
- // 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.
+ // Attempting to use InstanceInformationFilterList and Filters leads to an exception
+ // error.
InstanceInformationFilterList []*InstanceInformationFilter `type:"list"`
// The maximum number of items to return for this call. The call also returns
@@ -21559,7 +21668,7 @@ type DescribeOpsItemsInput struct {
// A token to start the list. Use this token to get the next set of results.
NextToken *string `type:"string"`
- // One or more filters to limit the reponse.
+ // One or more filters to limit the response.
//
// * Key: CreatedTime Operations: GreaterThan, LessThan
//
@@ -21765,8 +21874,7 @@ func (s *DescribeParametersInput) SetParameterFilters(v []*ParameterStringFilter
type DescribeParametersOutput struct {
_ struct{} `type:"structure"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
+ // The token to use when requesting the next set of items.
NextToken *string `type:"string"`
// Parameters returned by the request.
@@ -22383,8 +22491,8 @@ func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutp
// The specified document already exists.
type DocumentAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -22401,17 +22509,17 @@ func (s DocumentAlreadyExists) GoString() string {
func newErrorDocumentAlreadyExists(v protocol.ResponseMetadata) error {
return &DocumentAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DocumentAlreadyExists) Code() string {
+func (s *DocumentAlreadyExists) Code() string {
return "DocumentAlreadyExists"
}
// Message returns the exception's message.
-func (s DocumentAlreadyExists) Message() string {
+func (s *DocumentAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22419,22 +22527,22 @@ func (s DocumentAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DocumentAlreadyExists) OrigErr() error {
+func (s *DocumentAlreadyExists) OrigErr() error {
return nil
}
-func (s DocumentAlreadyExists) Error() string {
+func (s *DocumentAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DocumentAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DocumentAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DocumentAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DocumentAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A default version of a document.
@@ -22484,7 +22592,7 @@ type DocumentDescription struct {
_ struct{} `type:"structure"`
// Details about the document attachments, including names, locations, sizes,
- // etc.
+ // and so on.
AttachmentsInformation []*AttachmentInformation `type:"list"`
// The date when the document was created.
@@ -22554,7 +22662,7 @@ type DocumentDescription struct {
// The target type which defines the kinds of resources the document can run
// on. For example, /AWS::EC2::Instance. For a list of valid resource types,
- // see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
+ // see AWS resource and property types reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the AWS CloudFormation User Guide.
TargetType *string `type:"string"`
@@ -22704,7 +22812,7 @@ func (s *DocumentDescription) SetVersionName(v string) *DocumentDescription {
return s
}
-// Describes a filter.
+// This data type is deprecated. Instead, use DocumentKeyValuesFilter.
type DocumentFilter struct {
_ struct{} `type:"structure"`
@@ -22794,7 +22902,7 @@ type DocumentIdentifier struct {
// The target type which defines the kinds of resources the document can run
// on. For example, /AWS::EC2::Instance. For a list of valid resource types,
- // see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
+ // see AWS resource and property types reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
// in the AWS CloudFormation User Guide.
TargetType *string `type:"string"`
@@ -22899,7 +23007,7 @@ func (s *DocumentIdentifier) SetVersionName(v string) *DocumentIdentifier {
// for a key, documents that are identified by any of the values are returned
// in the results.
//
-// To specify a custom key and value pair, use the format Key=tag:[tagName],Values=[valueName].
+// To specify a custom key and value pair, use the format Key=tag:tagName,Values=valueName.
//
// For example, if you created a Key called region and are using the AWS CLI
// to call the list-documents command:
@@ -22952,8 +23060,8 @@ func (s *DocumentKeyValuesFilter) SetValues(v []*string) *DocumentKeyValuesFilte
// You can have at most 500 active Systems Manager documents.
type DocumentLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -22970,17 +23078,17 @@ func (s DocumentLimitExceeded) GoString() string {
func newErrorDocumentLimitExceeded(v protocol.ResponseMetadata) error {
return &DocumentLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DocumentLimitExceeded) Code() string {
+func (s *DocumentLimitExceeded) Code() string {
return "DocumentLimitExceeded"
}
// Message returns the exception's message.
-func (s DocumentLimitExceeded) Message() string {
+func (s *DocumentLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -22988,22 +23096,22 @@ func (s DocumentLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DocumentLimitExceeded) OrigErr() error {
+func (s *DocumentLimitExceeded) OrigErr() error {
return nil
}
-func (s DocumentLimitExceeded) Error() string {
+func (s *DocumentLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DocumentLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DocumentLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DocumentLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DocumentLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Parameters specified in a System Manager document that run on the server
@@ -23064,8 +23172,8 @@ func (s *DocumentParameter) SetType(v string) *DocumentParameter {
// a document with a maximum of 20 accounts. You can publicly share up to five
// documents. If you need to increase this limit, contact AWS Support.
type DocumentPermissionLimit struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23082,17 +23190,17 @@ func (s DocumentPermissionLimit) GoString() string {
func newErrorDocumentPermissionLimit(v protocol.ResponseMetadata) error {
return &DocumentPermissionLimit{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DocumentPermissionLimit) Code() string {
+func (s *DocumentPermissionLimit) Code() string {
return "DocumentPermissionLimit"
}
// Message returns the exception's message.
-func (s DocumentPermissionLimit) Message() string {
+func (s *DocumentPermissionLimit) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23100,22 +23208,22 @@ func (s DocumentPermissionLimit) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DocumentPermissionLimit) OrigErr() error {
+func (s *DocumentPermissionLimit) OrigErr() error {
return nil
}
-func (s DocumentPermissionLimit) Error() string {
+func (s *DocumentPermissionLimit) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DocumentPermissionLimit) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DocumentPermissionLimit) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DocumentPermissionLimit) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DocumentPermissionLimit) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An SSM document required by the current document.
@@ -23263,8 +23371,8 @@ func (s *DocumentVersionInfo) SetVersionName(v string) *DocumentVersionInfo {
// The document has too many versions. Delete one or more document versions
// and try again.
type DocumentVersionLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23281,17 +23389,17 @@ func (s DocumentVersionLimitExceeded) GoString() string {
func newErrorDocumentVersionLimitExceeded(v protocol.ResponseMetadata) error {
return &DocumentVersionLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DocumentVersionLimitExceeded) Code() string {
+func (s *DocumentVersionLimitExceeded) Code() string {
return "DocumentVersionLimitExceeded"
}
// Message returns the exception's message.
-func (s DocumentVersionLimitExceeded) Message() string {
+func (s *DocumentVersionLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23299,33 +23407,33 @@ func (s DocumentVersionLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DocumentVersionLimitExceeded) OrigErr() error {
+func (s *DocumentVersionLimitExceeded) OrigErr() error {
return nil
}
-func (s DocumentVersionLimitExceeded) Error() string {
+func (s *DocumentVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DocumentVersionLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DocumentVersionLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DocumentVersionLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DocumentVersionLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Error returned when the ID specified for a resource, such as a maintenance
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
type DoesNotExistException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23342,17 +23450,17 @@ func (s DoesNotExistException) GoString() string {
func newErrorDoesNotExistException(v protocol.ResponseMetadata) error {
return &DoesNotExistException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DoesNotExistException) Code() string {
+func (s *DoesNotExistException) Code() string {
return "DoesNotExistException"
}
// Message returns the exception's message.
-func (s DoesNotExistException) Message() string {
+func (s *DoesNotExistException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23360,29 +23468,29 @@ func (s DoesNotExistException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DoesNotExistException) OrigErr() error {
+func (s *DoesNotExistException) OrigErr() error {
return nil
}
-func (s DoesNotExistException) Error() string {
+func (s *DoesNotExistException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DoesNotExistException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DoesNotExistException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DoesNotExistException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DoesNotExistException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The content of the association document matches another document. Change
// the content of the document and try again.
type DuplicateDocumentContent struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23399,17 +23507,17 @@ func (s DuplicateDocumentContent) GoString() string {
func newErrorDuplicateDocumentContent(v protocol.ResponseMetadata) error {
return &DuplicateDocumentContent{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateDocumentContent) Code() string {
+func (s *DuplicateDocumentContent) Code() string {
return "DuplicateDocumentContent"
}
// Message returns the exception's message.
-func (s DuplicateDocumentContent) Message() string {
+func (s *DuplicateDocumentContent) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23417,29 +23525,29 @@ func (s DuplicateDocumentContent) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateDocumentContent) OrigErr() error {
+func (s *DuplicateDocumentContent) OrigErr() error {
return nil
}
-func (s DuplicateDocumentContent) Error() string {
+func (s *DuplicateDocumentContent) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateDocumentContent) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateDocumentContent) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateDocumentContent) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateDocumentContent) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The version name has already been used in this document. Specify a different
// version name, and then try again.
type DuplicateDocumentVersionName struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23456,17 +23564,17 @@ func (s DuplicateDocumentVersionName) GoString() string {
func newErrorDuplicateDocumentVersionName(v protocol.ResponseMetadata) error {
return &DuplicateDocumentVersionName{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateDocumentVersionName) Code() string {
+func (s *DuplicateDocumentVersionName) Code() string {
return "DuplicateDocumentVersionName"
}
// Message returns the exception's message.
-func (s DuplicateDocumentVersionName) Message() string {
+func (s *DuplicateDocumentVersionName) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23474,28 +23582,28 @@ func (s DuplicateDocumentVersionName) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateDocumentVersionName) OrigErr() error {
+func (s *DuplicateDocumentVersionName) OrigErr() error {
return nil
}
-func (s DuplicateDocumentVersionName) Error() string {
+func (s *DuplicateDocumentVersionName) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateDocumentVersionName) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateDocumentVersionName) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateDocumentVersionName) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateDocumentVersionName) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You cannot specify an instance ID in more than one association.
type DuplicateInstanceId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -23512,17 +23620,17 @@ func (s DuplicateInstanceId) GoString() string {
func newErrorDuplicateInstanceId(v protocol.ResponseMetadata) error {
return &DuplicateInstanceId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DuplicateInstanceId) Code() string {
+func (s *DuplicateInstanceId) Code() string {
return "DuplicateInstanceId"
}
// Message returns the exception's message.
-func (s DuplicateInstanceId) Message() string {
+func (s *DuplicateInstanceId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23530,22 +23638,22 @@ func (s DuplicateInstanceId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DuplicateInstanceId) OrigErr() error {
+func (s *DuplicateInstanceId) OrigErr() error {
return nil
}
-func (s DuplicateInstanceId) Error() string {
+func (s *DuplicateInstanceId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DuplicateInstanceId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DuplicateInstanceId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DuplicateInstanceId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DuplicateInstanceId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The EffectivePatch structure defines metadata about a patch along with the
@@ -23678,8 +23786,8 @@ func (s *FailureDetails) SetFailureType(v string) *FailureDetails {
// You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where
// the corresponding service is not available.
type FeatureNotAvailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -23696,17 +23804,17 @@ func (s FeatureNotAvailableException) GoString() string {
func newErrorFeatureNotAvailableException(v protocol.ResponseMetadata) error {
return &FeatureNotAvailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s FeatureNotAvailableException) Code() string {
+func (s *FeatureNotAvailableException) Code() string {
return "FeatureNotAvailableException"
}
// Message returns the exception's message.
-func (s FeatureNotAvailableException) Message() string {
+func (s *FeatureNotAvailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -23714,22 +23822,22 @@ func (s FeatureNotAvailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s FeatureNotAvailableException) OrigErr() error {
+func (s *FeatureNotAvailableException) OrigErr() error {
return nil
}
-func (s FeatureNotAvailableException) Error() string {
+func (s *FeatureNotAvailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s FeatureNotAvailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *FeatureNotAvailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s FeatureNotAvailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *FeatureNotAvailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetAutomationExecutionInput struct {
@@ -23905,7 +24013,7 @@ type GetCommandInvocationInput struct {
CommandId *string `min:"36" type:"string" required:"true"`
// (Required) The ID of the managed instance targeted by the command. A managed
- // instance can be an Amazon EC2 instance or an instance in your hybrid environment
+ // instance can be an EC2 instance or an instance in your hybrid environment
// that is configured for Systems Manager.
//
// InstanceId is a required field
@@ -24007,8 +24115,8 @@ type GetCommandInvocationOutput struct {
ExecutionStartDateTime *string `type:"string"`
// The ID of the managed instance targeted by the command. A managed instance
- // can be an Amazon EC2 instance or an instance in your hybrid environment that
- // is configured for Systems Manager.
+ // can be an EC2 instance or an instance in your hybrid environment that is
+ // configured for Systems Manager.
InstanceId *string `type:"string"`
// The name of the plugin for which you want detailed results. For example,
@@ -24034,7 +24142,7 @@ type GetCommandInvocationOutput struct {
StandardOutputContent *string `type:"string"`
// The URL for the complete text written by the plugin to stdout in Amazon S3.
- // If an Amazon S3 bucket was not specified, then this string is empty.
+ // If an S3 bucket was not specified, then this string is empty.
StandardOutputUrl *string `type:"string"`
// The status of this invocation plugin. This status can be different than StatusDetails.
@@ -24044,7 +24152,7 @@ type GetCommandInvocationOutput struct {
// includes more information than Status because it includes states resulting
// from error and concurrency control parameters. StatusDetails can show different
// results than Status. For more information about these statuses, see Understanding
- // Command Statuses (http://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
+ // command statuses (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html)
// in the AWS Systems Manager User Guide. StatusDetails can be one of the following
// values:
//
@@ -24055,10 +24163,10 @@ type GetCommandInvocationOutput struct {
//
// * Delayed: The system attempted to send the command to the target, but
// the target was not available. The instance might not be available because
- // of network issues, the instance was stopped, etc. The system will try
- // to deliver the command again.
+ // of network issues, because the instance was stopped, or for similar reasons.
+ // The system will try to send the command again.
//
- // * Success: The command or plugin was run successfully. This is a terminal
+ // * Success: The command or plugin ran successfully. This is a terminal
// state.
//
// * Delivery Timed Out: The command was not delivered to the instance before
@@ -24456,7 +24564,7 @@ type GetDocumentInput struct {
// An optional field specifying the version of the artifact associated with
// the document. For example, "Release 12, Update 6". This value is unique across
- // all versions of a document, and cannot be changed.
+ // all versions of a document and can't be changed.
VersionName *string `type:"string"`
}
@@ -24511,7 +24619,7 @@ type GetDocumentOutput struct {
_ struct{} `type:"structure"`
// A description of the document attachments, including names, locations, sizes,
- // etc.
+ // and so on.
AttachmentsContent []*AttachmentContent `type:"list"`
// The contents of the Systems Manager document.
@@ -26717,7 +26825,8 @@ func (s *GetPatchBaselineOutput) SetSources(v []*PatchSource) *GetPatchBaselineO
type GetServiceSettingInput struct {
_ struct{} `type:"structure"`
- // The ID of the service setting to get.
+ // The ID of the service setting to get. The setting ID can be /ssm/parameter-store/default-parameter-tier,
+ // /ssm/parameter-store/high-throughput-enabled, or /ssm/managed-instance/activation-tier.
//
// SettingId is a required field
SettingId *string `min:"1" type:"string" required:"true"`
@@ -26780,14 +26889,14 @@ func (s *GetServiceSettingOutput) SetServiceSetting(v *ServiceSetting) *GetServi
}
// A hierarchy can have a maximum of 15 levels. For more information, see Requirements
-// and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
+// and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the AWS Systems Manager User Guide.
type HierarchyLevelLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A hierarchy can have a maximum of 15 levels. For more information, see Requirements
- // and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
+ // and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the AWS Systems Manager User Guide.
Message_ *string `locationName:"message" type:"string"`
}
@@ -26804,17 +26913,17 @@ func (s HierarchyLevelLimitExceededException) GoString() string {
func newErrorHierarchyLevelLimitExceededException(v protocol.ResponseMetadata) error {
return &HierarchyLevelLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s HierarchyLevelLimitExceededException) Code() string {
+func (s *HierarchyLevelLimitExceededException) Code() string {
return "HierarchyLevelLimitExceededException"
}
// Message returns the exception's message.
-func (s HierarchyLevelLimitExceededException) Message() string {
+func (s *HierarchyLevelLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26822,30 +26931,30 @@ func (s HierarchyLevelLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s HierarchyLevelLimitExceededException) OrigErr() error {
+func (s *HierarchyLevelLimitExceededException) OrigErr() error {
return nil
}
-func (s HierarchyLevelLimitExceededException) Error() string {
+func (s *HierarchyLevelLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s HierarchyLevelLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *HierarchyLevelLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s HierarchyLevelLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *HierarchyLevelLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Parameter Store does not support changing a parameter type in a hierarchy.
// For example, you can't change a parameter from a String type to a SecureString
// type. You must create a new, unique parameter.
type HierarchyTypeMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// Parameter Store does not support changing a parameter type in a hierarchy.
// For example, you can't change a parameter from a String type to a SecureString
@@ -26865,17 +26974,17 @@ func (s HierarchyTypeMismatchException) GoString() string {
func newErrorHierarchyTypeMismatchException(v protocol.ResponseMetadata) error {
return &HierarchyTypeMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s HierarchyTypeMismatchException) Code() string {
+func (s *HierarchyTypeMismatchException) Code() string {
return "HierarchyTypeMismatchException"
}
// Message returns the exception's message.
-func (s HierarchyTypeMismatchException) Message() string {
+func (s *HierarchyTypeMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26883,29 +26992,29 @@ func (s HierarchyTypeMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s HierarchyTypeMismatchException) OrigErr() error {
+func (s *HierarchyTypeMismatchException) OrigErr() error {
return nil
}
-func (s HierarchyTypeMismatchException) Error() string {
+func (s *HierarchyTypeMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s HierarchyTypeMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *HierarchyTypeMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s HierarchyTypeMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *HierarchyTypeMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Error returned when an idempotent operation is retried and the parameters
// don't match the original call to the API with the same idempotency token.
type IdempotentParameterMismatch struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -26922,17 +27031,17 @@ func (s IdempotentParameterMismatch) GoString() string {
func newErrorIdempotentParameterMismatch(v protocol.ResponseMetadata) error {
return &IdempotentParameterMismatch{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IdempotentParameterMismatch) Code() string {
+func (s *IdempotentParameterMismatch) Code() string {
return "IdempotentParameterMismatch"
}
// Message returns the exception's message.
-func (s IdempotentParameterMismatch) Message() string {
+func (s *IdempotentParameterMismatch) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26940,30 +27049,30 @@ func (s IdempotentParameterMismatch) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IdempotentParameterMismatch) OrigErr() error {
+func (s *IdempotentParameterMismatch) OrigErr() error {
return nil
}
-func (s IdempotentParameterMismatch) Error() string {
+func (s *IdempotentParameterMismatch) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IdempotentParameterMismatch) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IdempotentParameterMismatch) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IdempotentParameterMismatch) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IdempotentParameterMismatch) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There is a conflict in the policies specified for this parameter. You can't,
// for example, specify two Expiration policies for a parameter. Review your
// policies, and try again.
type IncompatiblePolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -26980,17 +27089,17 @@ func (s IncompatiblePolicyException) GoString() string {
func newErrorIncompatiblePolicyException(v protocol.ResponseMetadata) error {
return &IncompatiblePolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s IncompatiblePolicyException) Code() string {
+func (s *IncompatiblePolicyException) Code() string {
return "IncompatiblePolicyException"
}
// Message returns the exception's message.
-func (s IncompatiblePolicyException) Message() string {
+func (s *IncompatiblePolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -26998,22 +27107,22 @@ func (s IncompatiblePolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s IncompatiblePolicyException) OrigErr() error {
+func (s *IncompatiblePolicyException) OrigErr() error {
return nil
}
-func (s IncompatiblePolicyException) Error() string {
+func (s *IncompatiblePolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s IncompatiblePolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *IncompatiblePolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s IncompatiblePolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *IncompatiblePolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Status information about the aggregated associations.
@@ -27100,11 +27209,11 @@ func (s *InstanceAssociation) SetInstanceId(v string) *InstanceAssociation {
return s
}
-// An Amazon S3 bucket where you want to store the results of this request.
+// An S3 bucket where you want to store the results of this request.
type InstanceAssociationOutputLocation struct {
_ struct{} `type:"structure"`
- // An Amazon S3 bucket where you want to store the results of this request.
+ // An S3 bucket where you want to store the results of this request.
S3Location *S3OutputLocation `type:"structure"`
}
@@ -27139,11 +27248,11 @@ func (s *InstanceAssociationOutputLocation) SetS3Location(v *S3OutputLocation) *
return s
}
-// The URL of Amazon S3 bucket where you want to store the results of this request.
+// The URL of S3 bucket where you want to store the results of this request.
type InstanceAssociationOutputUrl struct {
_ struct{} `type:"structure"`
- // The URL of Amazon S3 bucket where you want to store the results of this request.
+ // The URL of S3 bucket where you want to store the results of this request.
S3OutputUrl *S3OutputUrl `type:"structure"`
}
@@ -27197,8 +27306,7 @@ type InstanceAssociationStatusInfo struct {
// The name of the association.
Name *string `type:"string"`
- // A URL for an Amazon S3 bucket where you want to store the results of this
- // request.
+ // A URL for an S3 bucket where you want to store the results of this request.
OutputUrl *InstanceAssociationOutputUrl `type:"structure"`
// Status information about the instance association.
@@ -27311,7 +27419,7 @@ type InstanceInformation struct {
// The Amazon Identity and Access Management (IAM) role assigned to the on-premises
// Systems Manager managed instances. This call does not return the IAM role
- // for Amazon EC2 instances.
+ // for EC2 instances.
IamRole *string `type:"string"`
// The instance ID.
@@ -27618,12 +27726,12 @@ type InstancePatchState struct {
FailedCount *int64 `type:"integer"`
// An https URL or an Amazon S3 path-style URL to a list of patches to be installed.
- // This patch installation list, which you maintain in an Amazon S3 bucket in
- // YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides
- // the patches specified by the default patch baseline.
+ // This patch installation list, which you maintain in an S3 bucket in YAML
+ // format and specify in the SSM document AWS-RunPatchBaseline, overrides the
+ // patches specified by the default patch baseline.
//
// For more information about the InstallOverrideList parameter, see About the
- // SSM Document AWS-RunPatchBaseline (http://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html)
+ // SSM document AWS-RunPatchBaseline (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html)
// in the AWS Systems Manager User Guide.
InstallOverrideList *string `min:"1" type:"string"`
@@ -27916,8 +28024,8 @@ func (s *InstancePatchStateFilter) SetValues(v []*string) *InstancePatchStateFil
// An error occurred on the server side.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -27934,17 +28042,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -27952,29 +28060,29 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The activation is not valid. The activation might have been deleted, or the
// ActivationId and the ActivationCode do not match.
type InvalidActivation struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -27991,17 +28099,17 @@ func (s InvalidActivation) GoString() string {
func newErrorInvalidActivation(v protocol.ResponseMetadata) error {
return &InvalidActivation{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidActivation) Code() string {
+func (s *InvalidActivation) Code() string {
return "InvalidActivation"
}
// Message returns the exception's message.
-func (s InvalidActivation) Message() string {
+func (s *InvalidActivation) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28009,29 +28117,29 @@ func (s InvalidActivation) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidActivation) OrigErr() error {
+func (s *InvalidActivation) OrigErr() error {
return nil
}
-func (s InvalidActivation) Error() string {
+func (s *InvalidActivation) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidActivation) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidActivation) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidActivation) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidActivation) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The activation ID is not valid. Verify the you entered the correct ActivationId
// or ActivationCode and try again.
type InvalidActivationId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28048,17 +28156,17 @@ func (s InvalidActivationId) GoString() string {
func newErrorInvalidActivationId(v protocol.ResponseMetadata) error {
return &InvalidActivationId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidActivationId) Code() string {
+func (s *InvalidActivationId) Code() string {
return "InvalidActivationId"
}
// Message returns the exception's message.
-func (s InvalidActivationId) Message() string {
+func (s *InvalidActivationId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28066,29 +28174,29 @@ func (s InvalidActivationId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidActivationId) OrigErr() error {
+func (s *InvalidActivationId) OrigErr() error {
return nil
}
-func (s InvalidActivationId) Error() string {
+func (s *InvalidActivationId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidActivationId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidActivationId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidActivationId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidActivationId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified aggregator is not valid for inventory groups. Verify that the
// aggregator uses a valid inventory type such as AWS:Application or AWS:InstanceInformation.
type InvalidAggregatorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28105,17 +28213,17 @@ func (s InvalidAggregatorException) GoString() string {
func newErrorInvalidAggregatorException(v protocol.ResponseMetadata) error {
return &InvalidAggregatorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAggregatorException) Code() string {
+func (s *InvalidAggregatorException) Code() string {
return "InvalidAggregatorException"
}
// Message returns the exception's message.
-func (s InvalidAggregatorException) Message() string {
+func (s *InvalidAggregatorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28123,28 +28231,28 @@ func (s InvalidAggregatorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAggregatorException) OrigErr() error {
+func (s *InvalidAggregatorException) OrigErr() error {
return nil
}
-func (s InvalidAggregatorException) Error() string {
+func (s *InvalidAggregatorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAggregatorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAggregatorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAggregatorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAggregatorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request does not meet the regular expression requirement.
type InvalidAllowedPatternException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The request does not meet the regular expression requirement.
Message_ *string `locationName:"message" type:"string"`
@@ -28162,17 +28270,17 @@ func (s InvalidAllowedPatternException) GoString() string {
func newErrorInvalidAllowedPatternException(v protocol.ResponseMetadata) error {
return &InvalidAllowedPatternException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAllowedPatternException) Code() string {
+func (s *InvalidAllowedPatternException) Code() string {
return "InvalidAllowedPatternException"
}
// Message returns the exception's message.
-func (s InvalidAllowedPatternException) Message() string {
+func (s *InvalidAllowedPatternException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28180,28 +28288,28 @@ func (s InvalidAllowedPatternException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAllowedPatternException) OrigErr() error {
+func (s *InvalidAllowedPatternException) OrigErr() error {
return nil
}
-func (s InvalidAllowedPatternException) Error() string {
+func (s *InvalidAllowedPatternException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAllowedPatternException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAllowedPatternException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAllowedPatternException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAllowedPatternException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The association is not valid or does not exist.
type InvalidAssociation struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28218,17 +28326,17 @@ func (s InvalidAssociation) GoString() string {
func newErrorInvalidAssociation(v protocol.ResponseMetadata) error {
return &InvalidAssociation{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAssociation) Code() string {
+func (s *InvalidAssociation) Code() string {
return "InvalidAssociation"
}
// Message returns the exception's message.
-func (s InvalidAssociation) Message() string {
+func (s *InvalidAssociation) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28236,30 +28344,30 @@ func (s InvalidAssociation) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAssociation) OrigErr() error {
+func (s *InvalidAssociation) OrigErr() error {
return nil
}
-func (s InvalidAssociation) Error() string {
+func (s *InvalidAssociation) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAssociation) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAssociation) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAssociation) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAssociation) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The version you specified is not valid. Use ListAssociationVersions to view
// all versions of an association according to the association ID. Or, use the
// $LATEST parameter to view the latest version of the association.
type InvalidAssociationVersion struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28276,17 +28384,17 @@ func (s InvalidAssociationVersion) GoString() string {
func newErrorInvalidAssociationVersion(v protocol.ResponseMetadata) error {
return &InvalidAssociationVersion{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAssociationVersion) Code() string {
+func (s *InvalidAssociationVersion) Code() string {
return "InvalidAssociationVersion"
}
// Message returns the exception's message.
-func (s InvalidAssociationVersion) Message() string {
+func (s *InvalidAssociationVersion) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28294,30 +28402,30 @@ func (s InvalidAssociationVersion) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAssociationVersion) OrigErr() error {
+func (s *InvalidAssociationVersion) OrigErr() error {
return nil
}
-func (s InvalidAssociationVersion) Error() string {
+func (s *InvalidAssociationVersion) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAssociationVersion) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAssociationVersion) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAssociationVersion) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAssociationVersion) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The supplied parameters for invoking the specified Automation document are
// incorrect. For example, they may not match the set of parameters permitted
// for the specified Automation document.
type InvalidAutomationExecutionParametersException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28334,17 +28442,17 @@ func (s InvalidAutomationExecutionParametersException) GoString() string {
func newErrorInvalidAutomationExecutionParametersException(v protocol.ResponseMetadata) error {
return &InvalidAutomationExecutionParametersException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAutomationExecutionParametersException) Code() string {
+func (s *InvalidAutomationExecutionParametersException) Code() string {
return "InvalidAutomationExecutionParametersException"
}
// Message returns the exception's message.
-func (s InvalidAutomationExecutionParametersException) Message() string {
+func (s *InvalidAutomationExecutionParametersException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28352,28 +28460,28 @@ func (s InvalidAutomationExecutionParametersException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAutomationExecutionParametersException) OrigErr() error {
+func (s *InvalidAutomationExecutionParametersException) OrigErr() error {
return nil
}
-func (s InvalidAutomationExecutionParametersException) Error() string {
+func (s *InvalidAutomationExecutionParametersException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAutomationExecutionParametersException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAutomationExecutionParametersException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAutomationExecutionParametersException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAutomationExecutionParametersException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The signal is not valid for the current Automation execution.
type InvalidAutomationSignalException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28390,17 +28498,17 @@ func (s InvalidAutomationSignalException) GoString() string {
func newErrorInvalidAutomationSignalException(v protocol.ResponseMetadata) error {
return &InvalidAutomationSignalException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAutomationSignalException) Code() string {
+func (s *InvalidAutomationSignalException) Code() string {
return "InvalidAutomationSignalException"
}
// Message returns the exception's message.
-func (s InvalidAutomationSignalException) Message() string {
+func (s *InvalidAutomationSignalException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28408,28 +28516,28 @@ func (s InvalidAutomationSignalException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAutomationSignalException) OrigErr() error {
+func (s *InvalidAutomationSignalException) OrigErr() error {
return nil
}
-func (s InvalidAutomationSignalException) Error() string {
+func (s *InvalidAutomationSignalException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAutomationSignalException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAutomationSignalException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAutomationSignalException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAutomationSignalException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified update status operation is not valid.
type InvalidAutomationStatusUpdateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28446,17 +28554,17 @@ func (s InvalidAutomationStatusUpdateException) GoString() string {
func newErrorInvalidAutomationStatusUpdateException(v protocol.ResponseMetadata) error {
return &InvalidAutomationStatusUpdateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAutomationStatusUpdateException) Code() string {
+func (s *InvalidAutomationStatusUpdateException) Code() string {
return "InvalidAutomationStatusUpdateException"
}
// Message returns the exception's message.
-func (s InvalidAutomationStatusUpdateException) Message() string {
+func (s *InvalidAutomationStatusUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28464,27 +28572,27 @@ func (s InvalidAutomationStatusUpdateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAutomationStatusUpdateException) OrigErr() error {
+func (s *InvalidAutomationStatusUpdateException) OrigErr() error {
return nil
}
-func (s InvalidAutomationStatusUpdateException) Error() string {
+func (s *InvalidAutomationStatusUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAutomationStatusUpdateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAutomationStatusUpdateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAutomationStatusUpdateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAutomationStatusUpdateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type InvalidCommandId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -28501,17 +28609,17 @@ func (s InvalidCommandId) GoString() string {
func newErrorInvalidCommandId(v protocol.ResponseMetadata) error {
return &InvalidCommandId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidCommandId) Code() string {
+func (s *InvalidCommandId) Code() string {
return "InvalidCommandId"
}
// Message returns the exception's message.
-func (s InvalidCommandId) Message() string {
+func (s *InvalidCommandId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28519,29 +28627,29 @@ func (s InvalidCommandId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidCommandId) OrigErr() error {
+func (s *InvalidCommandId) OrigErr() error {
return nil
}
-func (s InvalidCommandId) Error() string {
+func (s *InvalidCommandId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidCommandId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidCommandId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidCommandId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidCommandId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more of the parameters specified for the delete operation is not valid.
// Verify all parameters and try again.
type InvalidDeleteInventoryParametersException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28558,17 +28666,17 @@ func (s InvalidDeleteInventoryParametersException) GoString() string {
func newErrorInvalidDeleteInventoryParametersException(v protocol.ResponseMetadata) error {
return &InvalidDeleteInventoryParametersException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeleteInventoryParametersException) Code() string {
+func (s *InvalidDeleteInventoryParametersException) Code() string {
return "InvalidDeleteInventoryParametersException"
}
// Message returns the exception's message.
-func (s InvalidDeleteInventoryParametersException) Message() string {
+func (s *InvalidDeleteInventoryParametersException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28576,29 +28684,29 @@ func (s InvalidDeleteInventoryParametersException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeleteInventoryParametersException) OrigErr() error {
+func (s *InvalidDeleteInventoryParametersException) OrigErr() error {
return nil
}
-func (s InvalidDeleteInventoryParametersException) Error() string {
+func (s *InvalidDeleteInventoryParametersException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeleteInventoryParametersException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeleteInventoryParametersException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeleteInventoryParametersException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeleteInventoryParametersException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The ID specified for the delete operation does not exist or is not valid.
// Verify the ID and try again.
type InvalidDeletionIdException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28615,17 +28723,17 @@ func (s InvalidDeletionIdException) GoString() string {
func newErrorInvalidDeletionIdException(v protocol.ResponseMetadata) error {
return &InvalidDeletionIdException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDeletionIdException) Code() string {
+func (s *InvalidDeletionIdException) Code() string {
return "InvalidDeletionIdException"
}
// Message returns the exception's message.
-func (s InvalidDeletionIdException) Message() string {
+func (s *InvalidDeletionIdException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28633,28 +28741,28 @@ func (s InvalidDeletionIdException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDeletionIdException) OrigErr() error {
+func (s *InvalidDeletionIdException) OrigErr() error {
return nil
}
-func (s InvalidDeletionIdException) Error() string {
+func (s *InvalidDeletionIdException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDeletionIdException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDeletionIdException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDeletionIdException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDeletionIdException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified document does not exist.
type InvalidDocument struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The document does not exist or the document is not available to the user.
// This exception can be issued by CreateAssociation, CreateAssociationBatch,
@@ -28675,17 +28783,17 @@ func (s InvalidDocument) GoString() string {
func newErrorInvalidDocument(v protocol.ResponseMetadata) error {
return &InvalidDocument{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocument) Code() string {
+func (s *InvalidDocument) Code() string {
return "InvalidDocument"
}
// Message returns the exception's message.
-func (s InvalidDocument) Message() string {
+func (s *InvalidDocument) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28693,28 +28801,28 @@ func (s InvalidDocument) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocument) OrigErr() error {
+func (s *InvalidDocument) OrigErr() error {
return nil
}
-func (s InvalidDocument) Error() string {
+func (s *InvalidDocument) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocument) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocument) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocument) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocument) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The content for the document is not valid.
type InvalidDocumentContent struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description of the validation error.
Message_ *string `locationName:"Message" type:"string"`
@@ -28732,17 +28840,17 @@ func (s InvalidDocumentContent) GoString() string {
func newErrorInvalidDocumentContent(v protocol.ResponseMetadata) error {
return &InvalidDocumentContent{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocumentContent) Code() string {
+func (s *InvalidDocumentContent) Code() string {
return "InvalidDocumentContent"
}
// Message returns the exception's message.
-func (s InvalidDocumentContent) Message() string {
+func (s *InvalidDocumentContent) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28750,29 +28858,29 @@ func (s InvalidDocumentContent) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocumentContent) OrigErr() error {
+func (s *InvalidDocumentContent) OrigErr() error {
return nil
}
-func (s InvalidDocumentContent) Error() string {
+func (s *InvalidDocumentContent) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocumentContent) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocumentContent) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocumentContent) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocumentContent) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You attempted to delete a document while it is still shared. You must stop
// sharing the document before you can delete it.
type InvalidDocumentOperation struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28789,17 +28897,17 @@ func (s InvalidDocumentOperation) GoString() string {
func newErrorInvalidDocumentOperation(v protocol.ResponseMetadata) error {
return &InvalidDocumentOperation{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocumentOperation) Code() string {
+func (s *InvalidDocumentOperation) Code() string {
return "InvalidDocumentOperation"
}
// Message returns the exception's message.
-func (s InvalidDocumentOperation) Message() string {
+func (s *InvalidDocumentOperation) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28807,28 +28915,28 @@ func (s InvalidDocumentOperation) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocumentOperation) OrigErr() error {
+func (s *InvalidDocumentOperation) OrigErr() error {
return nil
}
-func (s InvalidDocumentOperation) Error() string {
+func (s *InvalidDocumentOperation) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocumentOperation) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocumentOperation) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocumentOperation) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocumentOperation) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The version of the document schema is not supported.
type InvalidDocumentSchemaVersion struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28845,17 +28953,17 @@ func (s InvalidDocumentSchemaVersion) GoString() string {
func newErrorInvalidDocumentSchemaVersion(v protocol.ResponseMetadata) error {
return &InvalidDocumentSchemaVersion{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocumentSchemaVersion) Code() string {
+func (s *InvalidDocumentSchemaVersion) Code() string {
return "InvalidDocumentSchemaVersion"
}
// Message returns the exception's message.
-func (s InvalidDocumentSchemaVersion) Message() string {
+func (s *InvalidDocumentSchemaVersion) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28863,29 +28971,29 @@ func (s InvalidDocumentSchemaVersion) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocumentSchemaVersion) OrigErr() error {
+func (s *InvalidDocumentSchemaVersion) OrigErr() error {
return nil
}
-func (s InvalidDocumentSchemaVersion) Error() string {
+func (s *InvalidDocumentSchemaVersion) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocumentSchemaVersion) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocumentSchemaVersion) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocumentSchemaVersion) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocumentSchemaVersion) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The document type is not valid. Valid document types are described in the
// DocumentType property.
type InvalidDocumentType struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28902,17 +29010,17 @@ func (s InvalidDocumentType) GoString() string {
func newErrorInvalidDocumentType(v protocol.ResponseMetadata) error {
return &InvalidDocumentType{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocumentType) Code() string {
+func (s *InvalidDocumentType) Code() string {
return "InvalidDocumentType"
}
// Message returns the exception's message.
-func (s InvalidDocumentType) Message() string {
+func (s *InvalidDocumentType) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28920,28 +29028,28 @@ func (s InvalidDocumentType) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocumentType) OrigErr() error {
+func (s *InvalidDocumentType) OrigErr() error {
return nil
}
-func (s InvalidDocumentType) Error() string {
+func (s *InvalidDocumentType) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocumentType) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocumentType) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocumentType) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocumentType) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The document version is not valid or does not exist.
type InvalidDocumentVersion struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -28958,17 +29066,17 @@ func (s InvalidDocumentVersion) GoString() string {
func newErrorInvalidDocumentVersion(v protocol.ResponseMetadata) error {
return &InvalidDocumentVersion{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidDocumentVersion) Code() string {
+func (s *InvalidDocumentVersion) Code() string {
return "InvalidDocumentVersion"
}
// Message returns the exception's message.
-func (s InvalidDocumentVersion) Message() string {
+func (s *InvalidDocumentVersion) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -28976,29 +29084,29 @@ func (s InvalidDocumentVersion) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidDocumentVersion) OrigErr() error {
+func (s *InvalidDocumentVersion) OrigErr() error {
return nil
}
-func (s InvalidDocumentVersion) Error() string {
+func (s *InvalidDocumentVersion) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidDocumentVersion) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidDocumentVersion) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidDocumentVersion) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidDocumentVersion) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The filter name is not valid. Verify the you entered the correct name and
// try again.
type InvalidFilter struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29015,17 +29123,17 @@ func (s InvalidFilter) GoString() string {
func newErrorInvalidFilter(v protocol.ResponseMetadata) error {
return &InvalidFilter{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFilter) Code() string {
+func (s *InvalidFilter) Code() string {
return "InvalidFilter"
}
// Message returns the exception's message.
-func (s InvalidFilter) Message() string {
+func (s *InvalidFilter) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29033,28 +29141,28 @@ func (s InvalidFilter) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFilter) OrigErr() error {
+func (s *InvalidFilter) OrigErr() error {
return nil
}
-func (s InvalidFilter) Error() string {
+func (s *InvalidFilter) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFilter) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFilter) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFilter) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFilter) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified key is not valid.
type InvalidFilterKey struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29071,17 +29179,17 @@ func (s InvalidFilterKey) GoString() string {
func newErrorInvalidFilterKey(v protocol.ResponseMetadata) error {
return &InvalidFilterKey{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFilterKey) Code() string {
+func (s *InvalidFilterKey) Code() string {
return "InvalidFilterKey"
}
// Message returns the exception's message.
-func (s InvalidFilterKey) Message() string {
+func (s *InvalidFilterKey) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29089,29 +29197,29 @@ func (s InvalidFilterKey) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFilterKey) OrigErr() error {
+func (s *InvalidFilterKey) OrigErr() error {
return nil
}
-func (s InvalidFilterKey) Error() string {
+func (s *InvalidFilterKey) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFilterKey) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFilterKey) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFilterKey) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFilterKey) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified filter option is not valid. Valid options are Equals and BeginsWith.
// For Path filter, valid options are Recursive and OneLevel.
type InvalidFilterOption struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The specified filter option is not valid. Valid options are Equals and BeginsWith.
// For Path filter, valid options are Recursive and OneLevel.
@@ -29130,17 +29238,17 @@ func (s InvalidFilterOption) GoString() string {
func newErrorInvalidFilterOption(v protocol.ResponseMetadata) error {
return &InvalidFilterOption{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFilterOption) Code() string {
+func (s *InvalidFilterOption) Code() string {
return "InvalidFilterOption"
}
// Message returns the exception's message.
-func (s InvalidFilterOption) Message() string {
+func (s *InvalidFilterOption) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29148,28 +29256,28 @@ func (s InvalidFilterOption) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFilterOption) OrigErr() error {
+func (s *InvalidFilterOption) OrigErr() error {
return nil
}
-func (s InvalidFilterOption) Error() string {
+func (s *InvalidFilterOption) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFilterOption) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFilterOption) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFilterOption) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFilterOption) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The filter value is not valid. Verify the value and try again.
type InvalidFilterValue struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29186,17 +29294,17 @@ func (s InvalidFilterValue) GoString() string {
func newErrorInvalidFilterValue(v protocol.ResponseMetadata) error {
return &InvalidFilterValue{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidFilterValue) Code() string {
+func (s *InvalidFilterValue) Code() string {
return "InvalidFilterValue"
}
// Message returns the exception's message.
-func (s InvalidFilterValue) Message() string {
+func (s *InvalidFilterValue) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29204,22 +29312,22 @@ func (s InvalidFilterValue) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidFilterValue) OrigErr() error {
+func (s *InvalidFilterValue) OrigErr() error {
return nil
}
-func (s InvalidFilterValue) Error() string {
+func (s *InvalidFilterValue) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidFilterValue) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidFilterValue) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidFilterValue) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidFilterValue) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The following problems can cause this exception:
@@ -29233,8 +29341,8 @@ func (s InvalidFilterValue) RequestID() string {
// The instance is not in valid state. Valid states are: Running, Pending, Stopped,
// Stopping. Invalid states are: Shutting-down and Terminated.
type InvalidInstanceId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29251,17 +29359,17 @@ func (s InvalidInstanceId) GoString() string {
func newErrorInvalidInstanceId(v protocol.ResponseMetadata) error {
return &InvalidInstanceId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInstanceId) Code() string {
+func (s *InvalidInstanceId) Code() string {
return "InvalidInstanceId"
}
// Message returns the exception's message.
-func (s InvalidInstanceId) Message() string {
+func (s *InvalidInstanceId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29269,28 +29377,28 @@ func (s InvalidInstanceId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInstanceId) OrigErr() error {
+func (s *InvalidInstanceId) OrigErr() error {
return nil
}
-func (s InvalidInstanceId) Error() string {
+func (s *InvalidInstanceId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInstanceId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInstanceId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInstanceId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInstanceId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified filter value is not valid.
type InvalidInstanceInformationFilterValue struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29307,17 +29415,17 @@ func (s InvalidInstanceInformationFilterValue) GoString() string {
func newErrorInvalidInstanceInformationFilterValue(v protocol.ResponseMetadata) error {
return &InvalidInstanceInformationFilterValue{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInstanceInformationFilterValue) Code() string {
+func (s *InvalidInstanceInformationFilterValue) Code() string {
return "InvalidInstanceInformationFilterValue"
}
// Message returns the exception's message.
-func (s InvalidInstanceInformationFilterValue) Message() string {
+func (s *InvalidInstanceInformationFilterValue) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29325,28 +29433,28 @@ func (s InvalidInstanceInformationFilterValue) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInstanceInformationFilterValue) OrigErr() error {
+func (s *InvalidInstanceInformationFilterValue) OrigErr() error {
return nil
}
-func (s InvalidInstanceInformationFilterValue) Error() string {
+func (s *InvalidInstanceInformationFilterValue) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInstanceInformationFilterValue) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInstanceInformationFilterValue) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInstanceInformationFilterValue) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInstanceInformationFilterValue) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified inventory group is not valid.
type InvalidInventoryGroupException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29363,17 +29471,17 @@ func (s InvalidInventoryGroupException) GoString() string {
func newErrorInvalidInventoryGroupException(v protocol.ResponseMetadata) error {
return &InvalidInventoryGroupException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInventoryGroupException) Code() string {
+func (s *InvalidInventoryGroupException) Code() string {
return "InvalidInventoryGroupException"
}
// Message returns the exception's message.
-func (s InvalidInventoryGroupException) Message() string {
+func (s *InvalidInventoryGroupException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29381,29 +29489,29 @@ func (s InvalidInventoryGroupException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInventoryGroupException) OrigErr() error {
+func (s *InvalidInventoryGroupException) OrigErr() error {
return nil
}
-func (s InvalidInventoryGroupException) Error() string {
+func (s *InvalidInventoryGroupException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInventoryGroupException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInventoryGroupException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInventoryGroupException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInventoryGroupException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You specified invalid keys or values in the Context attribute for InventoryItem.
// Verify the keys and values, and try again.
type InvalidInventoryItemContextException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29420,17 +29528,17 @@ func (s InvalidInventoryItemContextException) GoString() string {
func newErrorInvalidInventoryItemContextException(v protocol.ResponseMetadata) error {
return &InvalidInventoryItemContextException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInventoryItemContextException) Code() string {
+func (s *InvalidInventoryItemContextException) Code() string {
return "InvalidInventoryItemContextException"
}
// Message returns the exception's message.
-func (s InvalidInventoryItemContextException) Message() string {
+func (s *InvalidInventoryItemContextException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29438,28 +29546,28 @@ func (s InvalidInventoryItemContextException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInventoryItemContextException) OrigErr() error {
+func (s *InvalidInventoryItemContextException) OrigErr() error {
return nil
}
-func (s InvalidInventoryItemContextException) Error() string {
+func (s *InvalidInventoryItemContextException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInventoryItemContextException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInventoryItemContextException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInventoryItemContextException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInventoryItemContextException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is not valid.
type InvalidInventoryRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29476,17 +29584,17 @@ func (s InvalidInventoryRequestException) GoString() string {
func newErrorInvalidInventoryRequestException(v protocol.ResponseMetadata) error {
return &InvalidInventoryRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidInventoryRequestException) Code() string {
+func (s *InvalidInventoryRequestException) Code() string {
return "InvalidInventoryRequestException"
}
// Message returns the exception's message.
-func (s InvalidInventoryRequestException) Message() string {
+func (s *InvalidInventoryRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29494,28 +29602,28 @@ func (s InvalidInventoryRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidInventoryRequestException) OrigErr() error {
+func (s *InvalidInventoryRequestException) OrigErr() error {
return nil
}
-func (s InvalidInventoryRequestException) Error() string {
+func (s *InvalidInventoryRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidInventoryRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidInventoryRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidInventoryRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidInventoryRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more content items is not valid.
type InvalidItemContentException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -29534,17 +29642,17 @@ func (s InvalidItemContentException) GoString() string {
func newErrorInvalidItemContentException(v protocol.ResponseMetadata) error {
return &InvalidItemContentException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidItemContentException) Code() string {
+func (s *InvalidItemContentException) Code() string {
return "InvalidItemContentException"
}
// Message returns the exception's message.
-func (s InvalidItemContentException) Message() string {
+func (s *InvalidItemContentException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29552,28 +29660,28 @@ func (s InvalidItemContentException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidItemContentException) OrigErr() error {
+func (s *InvalidItemContentException) OrigErr() error {
return nil
}
-func (s InvalidItemContentException) Error() string {
+func (s *InvalidItemContentException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidItemContentException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidItemContentException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidItemContentException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidItemContentException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The query key ID is not valid.
type InvalidKeyId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29590,17 +29698,17 @@ func (s InvalidKeyId) GoString() string {
func newErrorInvalidKeyId(v protocol.ResponseMetadata) error {
return &InvalidKeyId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidKeyId) Code() string {
+func (s *InvalidKeyId) Code() string {
return "InvalidKeyId"
}
// Message returns the exception's message.
-func (s InvalidKeyId) Message() string {
+func (s *InvalidKeyId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29608,28 +29716,28 @@ func (s InvalidKeyId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidKeyId) OrigErr() error {
+func (s *InvalidKeyId) OrigErr() error {
return nil
}
-func (s InvalidKeyId) Error() string {
+func (s *InvalidKeyId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidKeyId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidKeyId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidKeyId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidKeyId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified token is not valid.
type InvalidNextToken struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29646,17 +29754,17 @@ func (s InvalidNextToken) GoString() string {
func newErrorInvalidNextToken(v protocol.ResponseMetadata) error {
return &InvalidNextToken{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextToken) Code() string {
+func (s *InvalidNextToken) Code() string {
return "InvalidNextToken"
}
// Message returns the exception's message.
-func (s InvalidNextToken) Message() string {
+func (s *InvalidNextToken) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29664,29 +29772,29 @@ func (s InvalidNextToken) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextToken) OrigErr() error {
+func (s *InvalidNextToken) OrigErr() error {
return nil
}
-func (s InvalidNextToken) Error() string {
+func (s *InvalidNextToken) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextToken) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextToken) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextToken) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextToken) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more configuration items is not valid. Verify that a valid Amazon
// Resource Name (ARN) was provided for an Amazon SNS topic.
type InvalidNotificationConfig struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29703,17 +29811,17 @@ func (s InvalidNotificationConfig) GoString() string {
func newErrorInvalidNotificationConfig(v protocol.ResponseMetadata) error {
return &InvalidNotificationConfig{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNotificationConfig) Code() string {
+func (s *InvalidNotificationConfig) Code() string {
return "InvalidNotificationConfig"
}
// Message returns the exception's message.
-func (s InvalidNotificationConfig) Message() string {
+func (s *InvalidNotificationConfig) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29721,29 +29829,29 @@ func (s InvalidNotificationConfig) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNotificationConfig) OrigErr() error {
+func (s *InvalidNotificationConfig) OrigErr() error {
return nil
}
-func (s InvalidNotificationConfig) Error() string {
+func (s *InvalidNotificationConfig) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNotificationConfig) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNotificationConfig) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNotificationConfig) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNotificationConfig) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The delete inventory option specified is not valid. Verify the option and
// try again.
type InvalidOptionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29760,17 +29868,17 @@ func (s InvalidOptionException) GoString() string {
func newErrorInvalidOptionException(v protocol.ResponseMetadata) error {
return &InvalidOptionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOptionException) Code() string {
+func (s *InvalidOptionException) Code() string {
return "InvalidOptionException"
}
// Message returns the exception's message.
-func (s InvalidOptionException) Message() string {
+func (s *InvalidOptionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29778,28 +29886,28 @@ func (s InvalidOptionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOptionException) OrigErr() error {
+func (s *InvalidOptionException) OrigErr() error {
return nil
}
-func (s InvalidOptionException) Error() string {
+func (s *InvalidOptionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOptionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOptionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOptionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOptionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The S3 bucket does not exist.
type InvalidOutputFolder struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29816,17 +29924,17 @@ func (s InvalidOutputFolder) GoString() string {
func newErrorInvalidOutputFolder(v protocol.ResponseMetadata) error {
return &InvalidOutputFolder{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOutputFolder) Code() string {
+func (s *InvalidOutputFolder) Code() string {
return "InvalidOutputFolder"
}
// Message returns the exception's message.
-func (s InvalidOutputFolder) Message() string {
+func (s *InvalidOutputFolder) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29834,28 +29942,28 @@ func (s InvalidOutputFolder) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOutputFolder) OrigErr() error {
+func (s *InvalidOutputFolder) OrigErr() error {
return nil
}
-func (s InvalidOutputFolder) Error() string {
+func (s *InvalidOutputFolder) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOutputFolder) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOutputFolder) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOutputFolder) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOutputFolder) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The output location is not valid or does not exist.
type InvalidOutputLocation struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -29872,17 +29980,17 @@ func (s InvalidOutputLocation) GoString() string {
func newErrorInvalidOutputLocation(v protocol.ResponseMetadata) error {
return &InvalidOutputLocation{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOutputLocation) Code() string {
+func (s *InvalidOutputLocation) Code() string {
return "InvalidOutputLocation"
}
// Message returns the exception's message.
-func (s InvalidOutputLocation) Message() string {
+func (s *InvalidOutputLocation) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29890,30 +29998,30 @@ func (s InvalidOutputLocation) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOutputLocation) OrigErr() error {
+func (s *InvalidOutputLocation) OrigErr() error {
return nil
}
-func (s InvalidOutputLocation) Error() string {
+func (s *InvalidOutputLocation) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOutputLocation) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOutputLocation) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOutputLocation) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOutputLocation) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You must specify values for all required parameters in the Systems Manager
// document. You can only supply values to parameters defined in the Systems
// Manager document.
type InvalidParameters struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29930,17 +30038,17 @@ func (s InvalidParameters) GoString() string {
func newErrorInvalidParameters(v protocol.ResponseMetadata) error {
return &InvalidParameters{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameters) Code() string {
+func (s *InvalidParameters) Code() string {
return "InvalidParameters"
}
// Message returns the exception's message.
-func (s InvalidParameters) Message() string {
+func (s *InvalidParameters) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -29948,29 +30056,29 @@ func (s InvalidParameters) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameters) OrigErr() error {
+func (s *InvalidParameters) OrigErr() error {
return nil
}
-func (s InvalidParameters) Error() string {
+func (s *InvalidParameters) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameters) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameters) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameters) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameters) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The permission type is not supported. Share is the only supported permission
// type.
type InvalidPermissionType struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -29987,17 +30095,17 @@ func (s InvalidPermissionType) GoString() string {
func newErrorInvalidPermissionType(v protocol.ResponseMetadata) error {
return &InvalidPermissionType{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPermissionType) Code() string {
+func (s *InvalidPermissionType) Code() string {
return "InvalidPermissionType"
}
// Message returns the exception's message.
-func (s InvalidPermissionType) Message() string {
+func (s *InvalidPermissionType) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30005,28 +30113,28 @@ func (s InvalidPermissionType) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPermissionType) OrigErr() error {
+func (s *InvalidPermissionType) OrigErr() error {
return nil
}
-func (s InvalidPermissionType) Error() string {
+func (s *InvalidPermissionType) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPermissionType) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPermissionType) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPermissionType) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPermissionType) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The plugin name is not valid.
type InvalidPluginName struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30043,17 +30151,17 @@ func (s InvalidPluginName) GoString() string {
func newErrorInvalidPluginName(v protocol.ResponseMetadata) error {
return &InvalidPluginName{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPluginName) Code() string {
+func (s *InvalidPluginName) Code() string {
return "InvalidPluginName"
}
// Message returns the exception's message.
-func (s InvalidPluginName) Message() string {
+func (s *InvalidPluginName) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30061,28 +30169,28 @@ func (s InvalidPluginName) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPluginName) OrigErr() error {
+func (s *InvalidPluginName) OrigErr() error {
return nil
}
-func (s InvalidPluginName) Error() string {
+func (s *InvalidPluginName) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPluginName) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPluginName) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPluginName) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPluginName) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A policy attribute or its value is invalid.
type InvalidPolicyAttributeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30099,17 +30207,17 @@ func (s InvalidPolicyAttributeException) GoString() string {
func newErrorInvalidPolicyAttributeException(v protocol.ResponseMetadata) error {
return &InvalidPolicyAttributeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPolicyAttributeException) Code() string {
+func (s *InvalidPolicyAttributeException) Code() string {
return "InvalidPolicyAttributeException"
}
// Message returns the exception's message.
-func (s InvalidPolicyAttributeException) Message() string {
+func (s *InvalidPolicyAttributeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30117,29 +30225,29 @@ func (s InvalidPolicyAttributeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPolicyAttributeException) OrigErr() error {
+func (s *InvalidPolicyAttributeException) OrigErr() error {
return nil
}
-func (s InvalidPolicyAttributeException) Error() string {
+func (s *InvalidPolicyAttributeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPolicyAttributeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPolicyAttributeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPolicyAttributeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPolicyAttributeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The policy type is not supported. Parameter Store supports the following
// policy types: Expiration, ExpirationNotification, and NoChangeNotification.
type InvalidPolicyTypeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30156,17 +30264,17 @@ func (s InvalidPolicyTypeException) GoString() string {
func newErrorInvalidPolicyTypeException(v protocol.ResponseMetadata) error {
return &InvalidPolicyTypeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPolicyTypeException) Code() string {
+func (s *InvalidPolicyTypeException) Code() string {
return "InvalidPolicyTypeException"
}
// Message returns the exception's message.
-func (s InvalidPolicyTypeException) Message() string {
+func (s *InvalidPolicyTypeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30174,29 +30282,29 @@ func (s InvalidPolicyTypeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPolicyTypeException) OrigErr() error {
+func (s *InvalidPolicyTypeException) OrigErr() error {
return nil
}
-func (s InvalidPolicyTypeException) Error() string {
+func (s *InvalidPolicyTypeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPolicyTypeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPolicyTypeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPolicyTypeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPolicyTypeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource ID is not valid. Verify that you entered the correct ID and
// try again.
type InvalidResourceId struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30213,17 +30321,17 @@ func (s InvalidResourceId) GoString() string {
func newErrorInvalidResourceId(v protocol.ResponseMetadata) error {
return &InvalidResourceId{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceId) Code() string {
+func (s *InvalidResourceId) Code() string {
return "InvalidResourceId"
}
// Message returns the exception's message.
-func (s InvalidResourceId) Message() string {
+func (s *InvalidResourceId) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30231,29 +30339,29 @@ func (s InvalidResourceId) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceId) OrigErr() error {
+func (s *InvalidResourceId) OrigErr() error {
return nil
}
-func (s InvalidResourceId) Error() string {
+func (s *InvalidResourceId) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceId) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceId) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceId) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceId) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource type is not valid. For example, if you are attempting to tag
// an instance, the instance must be a registered, managed instance.
type InvalidResourceType struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -30270,17 +30378,17 @@ func (s InvalidResourceType) GoString() string {
func newErrorInvalidResourceType(v protocol.ResponseMetadata) error {
return &InvalidResourceType{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceType) Code() string {
+func (s *InvalidResourceType) Code() string {
return "InvalidResourceType"
}
// Message returns the exception's message.
-func (s InvalidResourceType) Message() string {
+func (s *InvalidResourceType) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30288,28 +30396,28 @@ func (s InvalidResourceType) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceType) OrigErr() error {
+func (s *InvalidResourceType) OrigErr() error {
return nil
}
-func (s InvalidResourceType) Error() string {
+func (s *InvalidResourceType) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceType) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceType) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceType) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceType) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified inventory item result attribute is not valid.
type InvalidResultAttributeException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30326,17 +30434,17 @@ func (s InvalidResultAttributeException) GoString() string {
func newErrorInvalidResultAttributeException(v protocol.ResponseMetadata) error {
return &InvalidResultAttributeException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResultAttributeException) Code() string {
+func (s *InvalidResultAttributeException) Code() string {
return "InvalidResultAttributeException"
}
// Message returns the exception's message.
-func (s InvalidResultAttributeException) Message() string {
+func (s *InvalidResultAttributeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30344,32 +30452,32 @@ func (s InvalidResultAttributeException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResultAttributeException) OrigErr() error {
+func (s *InvalidResultAttributeException) OrigErr() error {
return nil
}
-func (s InvalidResultAttributeException) Error() string {
+func (s *InvalidResultAttributeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResultAttributeException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResultAttributeException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResultAttributeException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResultAttributeException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The role name can't contain invalid characters. Also verify that you specified
// an IAM role for notifications that includes the required trust policy. For
// information about configuring the IAM role for Run Command notifications,
-// see Configuring Amazon SNS Notifications for Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
+// see Configuring Amazon SNS Notifications for Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
// in the AWS Systems Manager User Guide.
type InvalidRole struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30386,17 +30494,17 @@ func (s InvalidRole) GoString() string {
func newErrorInvalidRole(v protocol.ResponseMetadata) error {
return &InvalidRole{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRole) Code() string {
+func (s *InvalidRole) Code() string {
return "InvalidRole"
}
// Message returns the exception's message.
-func (s InvalidRole) Message() string {
+func (s *InvalidRole) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30404,28 +30512,28 @@ func (s InvalidRole) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRole) OrigErr() error {
+func (s *InvalidRole) OrigErr() error {
return nil
}
-func (s InvalidRole) Error() string {
+func (s *InvalidRole) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRole) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRole) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRole) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRole) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The schedule is invalid. Verify your cron or rate expression and try again.
type InvalidSchedule struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30442,17 +30550,17 @@ func (s InvalidSchedule) GoString() string {
func newErrorInvalidSchedule(v protocol.ResponseMetadata) error {
return &InvalidSchedule{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidSchedule) Code() string {
+func (s *InvalidSchedule) Code() string {
return "InvalidSchedule"
}
// Message returns the exception's message.
-func (s InvalidSchedule) Message() string {
+func (s *InvalidSchedule) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30460,29 +30568,29 @@ func (s InvalidSchedule) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidSchedule) OrigErr() error {
+func (s *InvalidSchedule) OrigErr() error {
return nil
}
-func (s InvalidSchedule) Error() string {
+func (s *InvalidSchedule) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidSchedule) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidSchedule) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidSchedule) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidSchedule) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The target is not valid or does not exist. It might not be configured for
-// EC2 Systems Manager or you might not have permission to perform the operation.
+// Systems Manager or you might not have permission to perform the operation.
type InvalidTarget struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30499,17 +30607,17 @@ func (s InvalidTarget) GoString() string {
func newErrorInvalidTarget(v protocol.ResponseMetadata) error {
return &InvalidTarget{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTarget) Code() string {
+func (s *InvalidTarget) Code() string {
return "InvalidTarget"
}
// Message returns the exception's message.
-func (s InvalidTarget) Message() string {
+func (s *InvalidTarget) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30517,28 +30625,28 @@ func (s InvalidTarget) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTarget) OrigErr() error {
+func (s *InvalidTarget) OrigErr() error {
return nil
}
-func (s InvalidTarget) Error() string {
+func (s *InvalidTarget) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTarget) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTarget) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTarget) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTarget) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parameter type name is not valid.
type InvalidTypeNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30555,17 +30663,17 @@ func (s InvalidTypeNameException) GoString() string {
func newErrorInvalidTypeNameException(v protocol.ResponseMetadata) error {
return &InvalidTypeNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidTypeNameException) Code() string {
+func (s *InvalidTypeNameException) Code() string {
return "InvalidTypeNameException"
}
// Message returns the exception's message.
-func (s InvalidTypeNameException) Message() string {
+func (s *InvalidTypeNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30573,28 +30681,28 @@ func (s InvalidTypeNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidTypeNameException) OrigErr() error {
+func (s *InvalidTypeNameException) OrigErr() error {
return nil
}
-func (s InvalidTypeNameException) Error() string {
+func (s *InvalidTypeNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidTypeNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidTypeNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidTypeNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidTypeNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The update is not valid.
type InvalidUpdate struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -30611,17 +30719,17 @@ func (s InvalidUpdate) GoString() string {
func newErrorInvalidUpdate(v protocol.ResponseMetadata) error {
return &InvalidUpdate{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidUpdate) Code() string {
+func (s *InvalidUpdate) Code() string {
return "InvalidUpdate"
}
// Message returns the exception's message.
-func (s InvalidUpdate) Message() string {
+func (s *InvalidUpdate) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -30629,22 +30737,22 @@ func (s InvalidUpdate) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidUpdate) OrigErr() error {
+func (s *InvalidUpdate) OrigErr() error {
return nil
}
-func (s InvalidUpdate) Error() string {
+func (s *InvalidUpdate) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidUpdate) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidUpdate) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidUpdate) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidUpdate) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the inventory type and attribute for the aggregation execution.
@@ -30741,7 +30849,7 @@ type InventoryDeletionStatusItem struct {
DeletionStartTime *time.Time `type:"timestamp"`
// Information about the delete operation. For more information about this summary,
- // see Understanding the Delete Inventory Summary (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete)
+ // see Understanding the delete inventory summary (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete)
// in the AWS Systems Manager User Guide.
DeletionSummary *InventoryDeletionSummary `type:"structure"`
@@ -30906,6 +31014,10 @@ type InventoryFilter struct {
Key *string `min:"1" type:"string" required:"true"`
// The type of filter.
+ //
+ // The Exists filter must be used with aggregators. For more information, see
+ // Aggregating inventory data (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-aggregate.html)
+ // in the AWS Systems Manager User Guide.
Type *string `type:"string" enum:"InventoryQueryOperatorType"`
// Inventory filter values. Example: inventory filter where instance IDs are
@@ -31352,8 +31464,8 @@ func (s *InventoryResultItem) SetTypeName(v string) *InventoryResultItem {
// The command ID and instance ID you specified did not match any invocations.
// Verify the command ID and the instance ID and try again.
type InvocationDoesNotExist struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -31370,17 +31482,17 @@ func (s InvocationDoesNotExist) GoString() string {
func newErrorInvocationDoesNotExist(v protocol.ResponseMetadata) error {
return &InvocationDoesNotExist{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvocationDoesNotExist) Code() string {
+func (s *InvocationDoesNotExist) Code() string {
return "InvocationDoesNotExist"
}
// Message returns the exception's message.
-func (s InvocationDoesNotExist) Message() string {
+func (s *InvocationDoesNotExist) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -31388,28 +31500,28 @@ func (s InvocationDoesNotExist) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvocationDoesNotExist) OrigErr() error {
+func (s *InvocationDoesNotExist) OrigErr() error {
return nil
}
-func (s InvocationDoesNotExist) Error() string {
+func (s *InvocationDoesNotExist) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvocationDoesNotExist) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvocationDoesNotExist) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvocationDoesNotExist) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvocationDoesNotExist) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The inventory item has invalid content.
type ItemContentMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -31428,17 +31540,17 @@ func (s ItemContentMismatchException) GoString() string {
func newErrorItemContentMismatchException(v protocol.ResponseMetadata) error {
return &ItemContentMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ItemContentMismatchException) Code() string {
+func (s *ItemContentMismatchException) Code() string {
return "ItemContentMismatchException"
}
// Message returns the exception's message.
-func (s ItemContentMismatchException) Message() string {
+func (s *ItemContentMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -31446,28 +31558,28 @@ func (s ItemContentMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ItemContentMismatchException) OrigErr() error {
+func (s *ItemContentMismatchException) OrigErr() error {
return nil
}
-func (s ItemContentMismatchException) Error() string {
+func (s *ItemContentMismatchException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ItemContentMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ItemContentMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ItemContentMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ItemContentMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The inventory item size has exceeded the size limit.
type ItemSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -31486,17 +31598,17 @@ func (s ItemSizeLimitExceededException) GoString() string {
func newErrorItemSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &ItemSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ItemSizeLimitExceededException) Code() string {
+func (s *ItemSizeLimitExceededException) Code() string {
return "ItemSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s ItemSizeLimitExceededException) Message() string {
+func (s *ItemSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -31504,22 +31616,22 @@ func (s ItemSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ItemSizeLimitExceededException) OrigErr() error {
+func (s *ItemSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s ItemSizeLimitExceededException) Error() string {
+func (s *ItemSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ItemSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ItemSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ItemSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ItemSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type LabelParameterVersionInput struct {
@@ -31595,7 +31707,7 @@ type LabelParameterVersionOutput struct {
_ struct{} `type:"structure"`
// The label does not meet the requirements. For information about parameter
- // label requirements, see Labeling Parameters (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html)
+ // label requirements, see Labeling parameters (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html)
// in the AWS Systems Manager User Guide.
InvalidLabels []*string `min:"1" type:"list"`
@@ -32409,10 +32521,15 @@ func (s *ListDocumentVersionsOutput) SetNextToken(v string) *ListDocumentVersion
type ListDocumentsInput struct {
_ struct{} `type:"structure"`
- // One or more filters. Use a filter to return a more specific list of results.
+ // This data type is deprecated. Instead, use Filters.
DocumentFilterList []*DocumentFilter `min:"1" type:"list"`
- // One or more filters. Use a filter to return a more specific list of results.
+ // One or more DocumentKeyValuesFilter objects. Use a filter to return a more
+ // specific list of results. For keys, you can specify one or more key-value
+ // pair tags that have been applied to a document. Other valid keys include
+ // Owner, Name, PlatformTypes, and DocumentType. For example, to return documents
+ // you own use Key=Owner,Values=Self. To specify a custom key-value pair, use
+ // the format Key=tag:tagName,Values=valueName.
Filters []*DocumentKeyValuesFilter `type:"list"`
// The maximum number of items to return for this call. The call also returns
@@ -32969,7 +33086,7 @@ func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOut
return s
}
-// Information about an Amazon S3 bucket to write instance-level logs to.
+// Information about an S3 bucket to write instance-level logs to.
//
// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs,
// instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters
@@ -32978,15 +33095,15 @@ func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOut
type LoggingInfo struct {
_ struct{} `type:"structure"`
- // The name of an Amazon S3 bucket where execution logs are stored .
+ // The name of an S3 bucket where execution logs are stored .
//
// S3BucketName is a required field
S3BucketName *string `min:"3" type:"string" required:"true"`
- // (Optional) The Amazon S3 bucket subfolder.
+ // (Optional) The S3 bucket subfolder.
S3KeyPrefix *string `type:"string"`
- // The region where the Amazon S3 bucket is located.
+ // The Region where the S3 bucket is located.
//
// S3Region is a required field
S3Region *string `min:"3" type:"string" required:"true"`
@@ -33720,10 +33837,10 @@ type MaintenanceWindowRunCommandParameters struct {
// a per-instance basis.
NotificationConfig *NotificationConfig `type:"structure"`
- // The name of the Amazon S3 bucket.
+ // The name of the S3 bucket.
OutputS3BucketName *string `min:"3" type:"string"`
- // The Amazon S3 bucket subfolder.
+ // The S3 bucket subfolder.
OutputS3KeyPrefix *string `type:"string"`
// The parameters for the RUN_COMMAND task execution.
@@ -33991,7 +34108,7 @@ type MaintenanceWindowTask struct {
// A description of the task.
Description *string `min:"1" type:"string" sensitive:"true"`
- // Information about an Amazon S3 bucket to write task-level logs to.
+ // Information about an S3 bucket to write task-level logs to.
//
// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs,
// instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters
@@ -34242,8 +34359,8 @@ func (s *MaintenanceWindowTaskParameterValueExpression) SetValues(v []*string) *
// The size limit of a document is 64 KB.
type MaxDocumentSizeExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -34260,17 +34377,17 @@ func (s MaxDocumentSizeExceeded) GoString() string {
func newErrorMaxDocumentSizeExceeded(v protocol.ResponseMetadata) error {
return &MaxDocumentSizeExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MaxDocumentSizeExceeded) Code() string {
+func (s *MaxDocumentSizeExceeded) Code() string {
return "MaxDocumentSizeExceeded"
}
// Message returns the exception's message.
-func (s MaxDocumentSizeExceeded) Message() string {
+func (s *MaxDocumentSizeExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -34278,22 +34395,22 @@ func (s MaxDocumentSizeExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MaxDocumentSizeExceeded) OrigErr() error {
+func (s *MaxDocumentSizeExceeded) OrigErr() error {
return nil
}
-func (s MaxDocumentSizeExceeded) Error() string {
+func (s *MaxDocumentSizeExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MaxDocumentSizeExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MaxDocumentSizeExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MaxDocumentSizeExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MaxDocumentSizeExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ModifyDocumentPermissionInput struct {
@@ -34439,8 +34556,8 @@ type NotificationConfig struct {
// The different events for which you can receive notifications. These events
// include the following: All (events), InProgress, Success, TimedOut, Cancelled,
- // Failed. To learn more about these events, see Configuring Amazon SNS Notifications
- // for AWS Systems Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html)
+ // Failed. To learn more about these events, see Monitoring Systems Manager
+ // status changes using Amazon SNS notifications (https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html)
// in the AWS Systems Manager User Guide.
NotificationEvents []*string `type:"list"`
@@ -34727,7 +34844,7 @@ func (s *OpsFilter) SetValues(v []*string) *OpsFilter {
// Operations engineers and IT professionals use OpsCenter to view, investigate,
// and remediate operational issues impacting the performance and health of
// their AWS resources. For more information, see AWS Systems Manager OpsCenter
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html)
// in the AWS Systems Manager User Guide.
type OpsItem struct {
_ struct{} `type:"structure"`
@@ -34774,7 +34891,7 @@ type OpsItem struct {
// Use the /aws/resources key in OperationalData to specify a related resource
// in the request. Use the /aws/automations key in OperationalData to associate
// an Automation runbook with the OpsItem. To view AWS CLI example commands
- // that use these keys, see Creating OpsItems Manually (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
+ // that use these keys, see Creating OpsItems manually (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
// in the AWS Systems Manager User Guide.
OperationalData map[string]*OpsItemDataValue `type:"map"`
@@ -34792,12 +34909,12 @@ type OpsItem struct {
// The severity of the OpsItem. Severity options range from 1 to 4.
Severity *string `min:"1" type:"string"`
- // The origin of the OpsItem, such as Amazon EC2 or AWS Systems Manager. The
- // impacted resource is a subset of source.
+ // The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted
+ // resource is a subset of source.
Source *string `min:"1" type:"string"`
// The OpsItem status. Status can be Open, In Progress, or Resolved. For more
- // information, see Editing OpsItem Details (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html)
+ // information, see Editing OpsItem details (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html)
// in the AWS Systems Manager User Guide.
Status *string `type:"string" enum:"OpsItemStatus"`
@@ -34918,8 +35035,8 @@ func (s *OpsItem) SetVersion(v string) *OpsItem {
// The OpsItem already exists.
type OpsItemAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -34938,17 +35055,17 @@ func (s OpsItemAlreadyExistsException) GoString() string {
func newErrorOpsItemAlreadyExistsException(v protocol.ResponseMetadata) error {
return &OpsItemAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OpsItemAlreadyExistsException) Code() string {
+func (s *OpsItemAlreadyExistsException) Code() string {
return "OpsItemAlreadyExistsException"
}
// Message returns the exception's message.
-func (s OpsItemAlreadyExistsException) Message() string {
+func (s *OpsItemAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -34956,22 +35073,22 @@ func (s OpsItemAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OpsItemAlreadyExistsException) OrigErr() error {
+func (s *OpsItemAlreadyExistsException) OrigErr() error {
return nil
}
-func (s OpsItemAlreadyExistsException) Error() string {
+func (s *OpsItemAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OpsItemAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OpsItemAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OpsItemAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OpsItemAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An object that defines the value of the key and its type in the OperationalData
@@ -35078,8 +35195,8 @@ func (s *OpsItemFilter) SetValues(v []*string) *OpsItemFilter {
// A specified parameter argument isn't valid. Verify the available arguments
// and try again.
type OpsItemInvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -35098,17 +35215,17 @@ func (s OpsItemInvalidParameterException) GoString() string {
func newErrorOpsItemInvalidParameterException(v protocol.ResponseMetadata) error {
return &OpsItemInvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OpsItemInvalidParameterException) Code() string {
+func (s *OpsItemInvalidParameterException) Code() string {
return "OpsItemInvalidParameterException"
}
// Message returns the exception's message.
-func (s OpsItemInvalidParameterException) Message() string {
+func (s *OpsItemInvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35116,29 +35233,29 @@ func (s OpsItemInvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OpsItemInvalidParameterException) OrigErr() error {
+func (s *OpsItemInvalidParameterException) OrigErr() error {
return nil
}
-func (s OpsItemInvalidParameterException) Error() string {
+func (s *OpsItemInvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OpsItemInvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OpsItemInvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OpsItemInvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OpsItemInvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request caused OpsItems to exceed one or more quotas. For information
-// about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
+// about OpsItem quotas, see What are the resource limits for OpsCenter? (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
type OpsItemLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Limit *int64 `type:"integer"`
@@ -35161,17 +35278,17 @@ func (s OpsItemLimitExceededException) GoString() string {
func newErrorOpsItemLimitExceededException(v protocol.ResponseMetadata) error {
return &OpsItemLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OpsItemLimitExceededException) Code() string {
+func (s *OpsItemLimitExceededException) Code() string {
return "OpsItemLimitExceededException"
}
// Message returns the exception's message.
-func (s OpsItemLimitExceededException) Message() string {
+func (s *OpsItemLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35179,28 +35296,28 @@ func (s OpsItemLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OpsItemLimitExceededException) OrigErr() error {
+func (s *OpsItemLimitExceededException) OrigErr() error {
return nil
}
-func (s OpsItemLimitExceededException) Error() string {
+func (s *OpsItemLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OpsItemLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OpsItemLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OpsItemLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OpsItemLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified OpsItem ID doesn't exist. Verify the ID and try again.
type OpsItemNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -35217,17 +35334,17 @@ func (s OpsItemNotFoundException) GoString() string {
func newErrorOpsItemNotFoundException(v protocol.ResponseMetadata) error {
return &OpsItemNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OpsItemNotFoundException) Code() string {
+func (s *OpsItemNotFoundException) Code() string {
return "OpsItemNotFoundException"
}
// Message returns the exception's message.
-func (s OpsItemNotFoundException) Message() string {
+func (s *OpsItemNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35235,22 +35352,22 @@ func (s OpsItemNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OpsItemNotFoundException) OrigErr() error {
+func (s *OpsItemNotFoundException) OrigErr() error {
return nil
}
-func (s OpsItemNotFoundException) Error() string {
+func (s *OpsItemNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OpsItemNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OpsItemNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OpsItemNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OpsItemNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A notification about the OpsItem.
@@ -35451,7 +35568,7 @@ func (s *OpsResultAttribute) SetTypeName(v string) *OpsResultAttribute {
type OutputSource struct {
_ struct{} `type:"structure"`
- // The ID of the output source, for example the URL of an Amazon S3 bucket.
+ // The ID of the output source, for example the URL of an S3 bucket.
OutputSourceId *string `min:"36" type:"string"`
// The type of source where the association execution details are stored, for
@@ -35481,7 +35598,7 @@ func (s *OutputSource) SetOutputSourceType(v string) *OutputSource {
return s
}
-// An Amazon EC2 Systems Manager parameter in Parameter Store.
+// An Systems Manager parameter in Parameter Store.
type Parameter struct {
_ struct{} `type:"structure"`
@@ -35507,8 +35624,8 @@ type Parameter struct {
// is the raw result or response from the source.
SourceResult *string `type:"string"`
- // The type of parameter. Valid values include the following: String, String
- // list, Secure string.
+ // The type of parameter. Valid values include the following: String, StringList,
+ // and SecureString.
Type *string `type:"string" enum:"ParameterType"`
// The parameter value.
@@ -35578,8 +35695,8 @@ func (s *Parameter) SetVersion(v int64) *Parameter {
// The parameter already exists. You can't create duplicate parameters.
type ParameterAlreadyExists struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -35596,17 +35713,17 @@ func (s ParameterAlreadyExists) GoString() string {
func newErrorParameterAlreadyExists(v protocol.ResponseMetadata) error {
return &ParameterAlreadyExists{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterAlreadyExists) Code() string {
+func (s *ParameterAlreadyExists) Code() string {
return "ParameterAlreadyExists"
}
// Message returns the exception's message.
-func (s ParameterAlreadyExists) Message() string {
+func (s *ParameterAlreadyExists) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35614,22 +35731,22 @@ func (s ParameterAlreadyExists) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterAlreadyExists) OrigErr() error {
+func (s *ParameterAlreadyExists) OrigErr() error {
return nil
}
-func (s ParameterAlreadyExists) Error() string {
+func (s *ParameterAlreadyExists) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterAlreadyExists) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterAlreadyExists) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterAlreadyExists) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterAlreadyExists) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about parameter usage.
@@ -35661,7 +35778,7 @@ type ParameterHistory struct {
// Information about the policies assigned to a parameter.
//
- // Working with Parameter Policies (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html)
+ // Assigning parameter policies (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html)
// in the AWS Systems Manager User Guide.
Policies []*ParameterInlinePolicy `type:"list"`
@@ -35809,8 +35926,8 @@ func (s *ParameterInlinePolicy) SetPolicyType(v string) *ParameterInlinePolicy {
// You have exceeded the number of parameters for this AWS account. Delete one
// or more parameters and try again.
type ParameterLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -35827,17 +35944,17 @@ func (s ParameterLimitExceeded) GoString() string {
func newErrorParameterLimitExceeded(v protocol.ResponseMetadata) error {
return &ParameterLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterLimitExceeded) Code() string {
+func (s *ParameterLimitExceeded) Code() string {
return "ParameterLimitExceeded"
}
// Message returns the exception's message.
-func (s ParameterLimitExceeded) Message() string {
+func (s *ParameterLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35845,28 +35962,28 @@ func (s ParameterLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterLimitExceeded) OrigErr() error {
+func (s *ParameterLimitExceeded) OrigErr() error {
return nil
}
-func (s ParameterLimitExceeded) Error() string {
+func (s *ParameterLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parameter exceeded the maximum number of allowed versions.
type ParameterMaxVersionLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -35883,17 +36000,17 @@ func (s ParameterMaxVersionLimitExceeded) GoString() string {
func newErrorParameterMaxVersionLimitExceeded(v protocol.ResponseMetadata) error {
return &ParameterMaxVersionLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterMaxVersionLimitExceeded) Code() string {
+func (s *ParameterMaxVersionLimitExceeded) Code() string {
return "ParameterMaxVersionLimitExceeded"
}
// Message returns the exception's message.
-func (s ParameterMaxVersionLimitExceeded) Message() string {
+func (s *ParameterMaxVersionLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -35901,22 +36018,22 @@ func (s ParameterMaxVersionLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterMaxVersionLimitExceeded) OrigErr() error {
+func (s *ParameterMaxVersionLimitExceeded) OrigErr() error {
return nil
}
-func (s ParameterMaxVersionLimitExceeded) Error() string {
+func (s *ParameterMaxVersionLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterMaxVersionLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterMaxVersionLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterMaxVersionLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterMaxVersionLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Metadata includes information like the ARN of the last user and the date/time
@@ -35951,7 +36068,7 @@ type ParameterMetadata struct {
Tier *string `type:"string" enum:"ParameterTier"`
// The type of parameter. Valid parameter types include the following: String,
- // String list, Secure string.
+ // StringList, and SecureString.
Type *string `type:"string" enum:"ParameterType"`
// The parameter version.
@@ -36030,8 +36147,8 @@ func (s *ParameterMetadata) SetVersion(v int64) *ParameterMetadata {
// The parameter could not be found. Verify the name and try again.
type ParameterNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -36048,17 +36165,17 @@ func (s ParameterNotFound) GoString() string {
func newErrorParameterNotFound(v protocol.ResponseMetadata) error {
return &ParameterNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterNotFound) Code() string {
+func (s *ParameterNotFound) Code() string {
return "ParameterNotFound"
}
// Message returns the exception's message.
-func (s ParameterNotFound) Message() string {
+func (s *ParameterNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -36066,28 +36183,28 @@ func (s ParameterNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterNotFound) OrigErr() error {
+func (s *ParameterNotFound) OrigErr() error {
return nil
}
-func (s ParameterNotFound) Error() string {
+func (s *ParameterNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parameter name is not valid.
type ParameterPatternMismatchException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The parameter name is not valid.
Message_ *string `locationName:"message" type:"string"`
@@ -36105,17 +36222,17 @@ func (s ParameterPatternMismatchException) GoString() string {
func newErrorParameterPatternMismatchException(v protocol.ResponseMetadata) error {
return &ParameterPatternMismatchException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterPatternMismatchException) Code() string {
+func (s *ParameterPatternMismatchException) Code() string {
return "ParameterPatternMismatchException"
}
// Message returns the exception's message.
-func (s ParameterPatternMismatchException) Message() string {
+func (s *ParameterPatternMismatchException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -36123,22 +36240,22 @@ func (s ParameterPatternMismatchException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterPatternMismatchException) OrigErr() error {
+func (s *ParameterPatternMismatchException) OrigErr() error {
return nil
}
-func (s ParameterPatternMismatchException) Error() string {
+func (s *ParameterPatternMismatchException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterPatternMismatchException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterPatternMismatchException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterPatternMismatchException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterPatternMismatchException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more filters. Use a filter to return a more specific list of results.
@@ -36154,7 +36271,7 @@ func (s ParameterPatternMismatchException) RequestID() string {
// Name, Path, and Tier.
//
// For examples of CLI commands demonstrating valid parameter filter constructions,
-// see Searching for Systems Manager Parameters (http://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-search.html)
+// see Searching for Systems Manager parameters (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-search.html)
// in the AWS Systems Manager User Guide.
type ParameterStringFilter struct {
_ struct{} `type:"structure"`
@@ -36230,8 +36347,8 @@ func (s *ParameterStringFilter) SetValues(v []*string) *ParameterStringFilter {
// A parameter version can have a maximum of ten labels.
type ParameterVersionLabelLimitExceeded struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -36248,17 +36365,17 @@ func (s ParameterVersionLabelLimitExceeded) GoString() string {
func newErrorParameterVersionLabelLimitExceeded(v protocol.ResponseMetadata) error {
return &ParameterVersionLabelLimitExceeded{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterVersionLabelLimitExceeded) Code() string {
+func (s *ParameterVersionLabelLimitExceeded) Code() string {
return "ParameterVersionLabelLimitExceeded"
}
// Message returns the exception's message.
-func (s ParameterVersionLabelLimitExceeded) Message() string {
+func (s *ParameterVersionLabelLimitExceeded) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -36266,29 +36383,29 @@ func (s ParameterVersionLabelLimitExceeded) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterVersionLabelLimitExceeded) OrigErr() error {
+func (s *ParameterVersionLabelLimitExceeded) OrigErr() error {
return nil
}
-func (s ParameterVersionLabelLimitExceeded) Error() string {
+func (s *ParameterVersionLabelLimitExceeded) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterVersionLabelLimitExceeded) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterVersionLabelLimitExceeded) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterVersionLabelLimitExceeded) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterVersionLabelLimitExceeded) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified parameter version was not found. Verify the parameter name
// and version, and try again.
type ParameterVersionNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -36305,17 +36422,17 @@ func (s ParameterVersionNotFound) GoString() string {
func newErrorParameterVersionNotFound(v protocol.ResponseMetadata) error {
return &ParameterVersionNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ParameterVersionNotFound) Code() string {
+func (s *ParameterVersionNotFound) Code() string {
return "ParameterVersionNotFound"
}
// Message returns the exception's message.
-func (s ParameterVersionNotFound) Message() string {
+func (s *ParameterVersionNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -36323,22 +36440,22 @@ func (s ParameterVersionNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ParameterVersionNotFound) OrigErr() error {
+func (s *ParameterVersionNotFound) OrigErr() error {
return nil
}
-func (s ParameterVersionNotFound) Error() string {
+func (s *ParameterVersionNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ParameterVersionNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ParameterVersionNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ParameterVersionNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ParameterVersionNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This data type is deprecated. Instead, use ParameterStringFilter.
@@ -36621,7 +36738,7 @@ type PatchComplianceData struct {
// The state of the patch on the instance, such as INSTALLED or FAILED.
//
- // For descriptions of each patch state, see About Patch Compliance (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch)
+ // For descriptions of each patch state, see About patch compliance (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch)
// in the AWS Systems Manager User Guide.
//
// State is a required field
@@ -36891,15 +37008,17 @@ type PatchRule struct {
// The number of days after the release date of each patch matched by the rule
// that the patch is marked as approved in the patch baseline. For example,
// a value of 7 means that patches are approved seven days after they are released.
+ // Not supported on Ubuntu Server.
ApproveAfterDays *int64 `type:"integer"`
// The cutoff date for auto approval of released patches. Any patches released
- // on or before this date will be installed automatically
+ // on or before this date are installed automatically. Not supported on Ubuntu
+ // Server.
+ //
+ // Enter dates in the format YYYY-MM-DD. For example, 2020-12-31.
ApproveUntilDate *string `min:"1" type:"string"`
// A compliance severity level for all approved patches in a patch baseline.
- // Valid compliance severity levels include the following: Unspecified, Critical,
- // High, Medium, Low, and Informational.
ComplianceLevel *string `type:"string" enum:"PatchComplianceLevel"`
// For instances identified by the approval rule filters, enables a patch baseline
@@ -37153,8 +37272,8 @@ func (s *PatchStatus) SetDeploymentStatus(v string) *PatchStatus {
// You specified more than the maximum number of allowed policies for the parameter.
// The maximum is 10.
type PoliciesLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -37171,17 +37290,17 @@ func (s PoliciesLimitExceededException) GoString() string {
func newErrorPoliciesLimitExceededException(v protocol.ResponseMetadata) error {
return &PoliciesLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s PoliciesLimitExceededException) Code() string {
+func (s *PoliciesLimitExceededException) Code() string {
return "PoliciesLimitExceededException"
}
// Message returns the exception's message.
-func (s PoliciesLimitExceededException) Message() string {
+func (s *PoliciesLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -37189,22 +37308,22 @@ func (s PoliciesLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s PoliciesLimitExceededException) OrigErr() error {
+func (s *PoliciesLimitExceededException) OrigErr() error {
return nil
}
-func (s PoliciesLimitExceededException) Error() string {
+func (s *PoliciesLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s PoliciesLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *PoliciesLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s PoliciesLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *PoliciesLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An aggregate of step execution statuses displayed in the AWS Console for
@@ -37296,7 +37415,7 @@ type PutComplianceItemsInput struct {
// Information about the compliance as defined by the resource type. For example,
// for a patch compliance type, Items includes information about the PatchSeverity,
- // Classification, etc.
+ // Classification, and so on.
//
// Items is a required field
Items []*ComplianceItemEntry `type:"list" required:"true"`
@@ -37312,6 +37431,18 @@ type PutComplianceItemsInput struct {
//
// ResourceType is a required field
ResourceType *string `min:"1" type:"string" required:"true"`
+
+ // The mode for uploading compliance items. You can specify COMPLETE or PARTIAL.
+ // In COMPLETE mode, the system overwrites all existing compliance information
+ // for the resource. You must provide a full list of compliance items each time
+ // you send the request.
+ //
+ // In PARTIAL mode, the system overwrites compliance information for a specific
+ // association. The association must be configured with SyncCompliance set to
+ // MANUAL. By default, all requests use COMPLETE mode.
+ //
+ // This attribute is only valid for association compliance.
+ UploadType *string `type:"string" enum:"ComplianceUploadType"`
}
// String returns the string representation
@@ -37409,6 +37540,12 @@ func (s *PutComplianceItemsInput) SetResourceType(v string) *PutComplianceItemsI
return s
}
+// SetUploadType sets the UploadType field's value.
+func (s *PutComplianceItemsInput) SetUploadType(v string) *PutComplianceItemsInput {
+ s.UploadType = &v
+ return s
+}
+
type PutComplianceItemsOutput struct {
_ struct{} `type:"structure"`
}
@@ -37562,8 +37699,8 @@ type PutParameterInput struct {
//
// * Parameter hierarchies are limited to a maximum depth of fifteen levels.
//
- // For additional information about valid values for parameter names, see Requirements
- // and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
+ // For additional information about valid values for parameter names, see About
+ // requirements and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the AWS Systems Manager User Guide.
//
// The maximum length constraint listed below includes capacity for additional
@@ -37600,8 +37737,8 @@ type PutParameterInput struct {
// time, but it has not been changed.
//
// All existing policies are preserved until you send new policies or an empty
- // policy. For more information about parameter policies, see Working with Parameter
- // Policies (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-su-policies.html).
+ // policy. For more information about parameter policies, see Assigning parameter
+ // policies (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html).
Policies *string `min:"1" type:"string"`
// Optional metadata that you assign to a resource. Tags enable you to categorize
@@ -37632,7 +37769,7 @@ type PutParameterInput struct {
// Advanced parameters have a content size limit of 8 KB and can be configured
// to use parameter policies. You can create a maximum of 100,000 advanced parameters
// for each Region in an AWS account. Advanced parameters incur a charge. For
- // more information, see About Advanced Parameters (http://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html)
+ // more information, see Standard and advanced parameter tiers (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html)
// in the AWS Systems Manager User Guide.
//
// You can change a standard parameter to an advanced parameter any time. But
@@ -37680,7 +37817,7 @@ type PutParameterInput struct {
// current Region.
//
// For more information about configuring the default tier option, see Specifying
- // a Default Parameter Tier (http://docs.aws.amazon.com/systems-manager/latest/userguide/ps-default-tier.html)
+ // a default parameter tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-default-tier.html)
// in the AWS Systems Manager User Guide.
Tier *string `type:"string" enum:"ParameterTier"`
@@ -38055,7 +38192,7 @@ type RegisterTargetWithMaintenanceWindowInput struct {
// Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC
//
// For more information about these examples formats, including the best use
- // case for each one, see Examples: Register Targets with a Maintenance Window
+ // case for each one, see Examples: Register targets with a maintenance window
// (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
// in the AWS Systems Manager User Guide.
//
@@ -38196,7 +38333,7 @@ type RegisterTaskWithMaintenanceWindowInput struct {
// An optional description for the task.
Description *string `min:"1" type:"string" sensitive:"true"`
- // A structure containing information about an Amazon S3 bucket to write instance-level
+ // A structure containing information about an S3 bucket to write instance-level
// logs to.
//
// LoggingInfo has been deprecated. To specify an S3 bucket to contain logs,
@@ -38231,10 +38368,10 @@ type RegisterTaskWithMaintenanceWindowInput struct {
// For more information, see the following topics in the in the AWS Systems
// Manager User Guide:
//
- // * Service-Linked Role Permissions for Systems Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
+ // * Using service-linked roles for Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
//
- // * Should I Use a Service-Linked Role or a Custom Service Role to Run Maintenance
- // Window Tasks? (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
+ // * Should I use a service-linked role or a custom service role to run maintenance
+ // window tasks? (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
ServiceRoleArn *string `type:"string"`
// The targets (either instances or maintenance window targets).
@@ -38605,7 +38742,9 @@ func (s RemoveTagsFromResourceOutput) GoString() string {
type ResetServiceSettingInput struct {
_ struct{} `type:"structure"`
- // The ID of the service setting to reset.
+ // The Amazon Resource Name (ARN) of the service setting to reset. The setting
+ // ID can be /ssm/parameter-store/default-parameter-tier, /ssm/parameter-store/high-throughput-enabled,
+ // or /ssm/managed-instance/activation-tier. For example, arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled.
//
// SettingId is a required field
SettingId *string `min:"1" type:"string" required:"true"`
@@ -38792,8 +38931,8 @@ func (s *ResourceComplianceSummaryItem) SetStatus(v string) *ResourceComplianceS
// A sync configuration with the same name already exists.
type ResourceDataSyncAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -38812,17 +38951,17 @@ func (s ResourceDataSyncAlreadyExistsException) GoString() string {
func newErrorResourceDataSyncAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceDataSyncAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDataSyncAlreadyExistsException) Code() string {
+func (s *ResourceDataSyncAlreadyExistsException) Code() string {
return "ResourceDataSyncAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceDataSyncAlreadyExistsException) Message() string {
+func (s *ResourceDataSyncAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -38830,22 +38969,22 @@ func (s ResourceDataSyncAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDataSyncAlreadyExistsException) OrigErr() error {
+func (s *ResourceDataSyncAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceDataSyncAlreadyExistsException) Error() string {
+func (s *ResourceDataSyncAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDataSyncAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDataSyncAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDataSyncAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDataSyncAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about the AwsOrganizationsSource resource data sync source. A
@@ -38920,8 +39059,8 @@ func (s *ResourceDataSyncAwsOrganizationsSource) SetOrganizationalUnits(v []*Res
// Another UpdateResourceDataSync request is being processed. Wait a few minutes
// and try again.
type ResourceDataSyncConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -38938,17 +39077,17 @@ func (s ResourceDataSyncConflictException) GoString() string {
func newErrorResourceDataSyncConflictException(v protocol.ResponseMetadata) error {
return &ResourceDataSyncConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDataSyncConflictException) Code() string {
+func (s *ResourceDataSyncConflictException) Code() string {
return "ResourceDataSyncConflictException"
}
// Message returns the exception's message.
-func (s ResourceDataSyncConflictException) Message() string {
+func (s *ResourceDataSyncConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -38956,28 +39095,28 @@ func (s ResourceDataSyncConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDataSyncConflictException) OrigErr() error {
+func (s *ResourceDataSyncConflictException) OrigErr() error {
return nil
}
-func (s ResourceDataSyncConflictException) Error() string {
+func (s *ResourceDataSyncConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDataSyncConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDataSyncConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDataSyncConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDataSyncConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You have exceeded the allowed maximum sync configurations.
type ResourceDataSyncCountExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -38994,17 +39133,17 @@ func (s ResourceDataSyncCountExceededException) GoString() string {
func newErrorResourceDataSyncCountExceededException(v protocol.ResponseMetadata) error {
return &ResourceDataSyncCountExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDataSyncCountExceededException) Code() string {
+func (s *ResourceDataSyncCountExceededException) Code() string {
return "ResourceDataSyncCountExceededException"
}
// Message returns the exception's message.
-func (s ResourceDataSyncCountExceededException) Message() string {
+func (s *ResourceDataSyncCountExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39012,28 +39151,68 @@ func (s ResourceDataSyncCountExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDataSyncCountExceededException) OrigErr() error {
+func (s *ResourceDataSyncCountExceededException) OrigErr() error {
return nil
}
-func (s ResourceDataSyncCountExceededException) Error() string {
+func (s *ResourceDataSyncCountExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDataSyncCountExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDataSyncCountExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDataSyncCountExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDataSyncCountExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Synchronize Systems Manager Inventory data from multiple AWS accounts defined
+// in AWS Organizations to a centralized S3 bucket. Data is synchronized to
+// individual key prefixes in the central bucket. Each key prefix represents
+// a different AWS account ID.
+type ResourceDataSyncDestinationDataSharing struct {
+ _ struct{} `type:"structure"`
+
+ // The sharing data type. Only Organization is supported.
+ DestinationDataSharingType *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ResourceDataSyncDestinationDataSharing) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResourceDataSyncDestinationDataSharing) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ResourceDataSyncDestinationDataSharing) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ResourceDataSyncDestinationDataSharing"}
+ if s.DestinationDataSharingType != nil && len(*s.DestinationDataSharingType) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationDataSharingType", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDestinationDataSharingType sets the DestinationDataSharingType field's value.
+func (s *ResourceDataSyncDestinationDataSharing) SetDestinationDataSharingType(v string) *ResourceDataSyncDestinationDataSharing {
+ s.DestinationDataSharingType = &v
+ return s
}
// The specified sync configuration is invalid.
type ResourceDataSyncInvalidConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39050,17 +39229,17 @@ func (s ResourceDataSyncInvalidConfigurationException) GoString() string {
func newErrorResourceDataSyncInvalidConfigurationException(v protocol.ResponseMetadata) error {
return &ResourceDataSyncInvalidConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDataSyncInvalidConfigurationException) Code() string {
+func (s *ResourceDataSyncInvalidConfigurationException) Code() string {
return "ResourceDataSyncInvalidConfigurationException"
}
// Message returns the exception's message.
-func (s ResourceDataSyncInvalidConfigurationException) Message() string {
+func (s *ResourceDataSyncInvalidConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39068,22 +39247,22 @@ func (s ResourceDataSyncInvalidConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDataSyncInvalidConfigurationException) OrigErr() error {
+func (s *ResourceDataSyncInvalidConfigurationException) OrigErr() error {
return nil
}
-func (s ResourceDataSyncInvalidConfigurationException) Error() string {
+func (s *ResourceDataSyncInvalidConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDataSyncInvalidConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDataSyncInvalidConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDataSyncInvalidConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDataSyncInvalidConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a Resource Data Sync configuration, including its current
@@ -39103,7 +39282,7 @@ type ResourceDataSyncItem struct {
// The last time the configuration attempted to sync (UTC).
LastSyncTime *time.Time `type:"timestamp"`
- // Configuration information for the target Amazon S3 bucket.
+ // Configuration information for the target S3 bucket.
S3Destination *ResourceDataSyncS3Destination `type:"structure"`
// The date and time the configuration was created (UTC).
@@ -39119,9 +39298,9 @@ type ResourceDataSyncItem struct {
SyncSource *ResourceDataSyncSourceWithState `type:"structure"`
// The type of resource data sync. If SyncType is SyncToDestination, then the
- // resource data sync synchronizes data to an Amazon S3 bucket. If the SyncType
- // is SyncFromSource then the resource data sync synchronizes data from AWS
- // Organizations or from multiple AWS Regions.
+ // resource data sync synchronizes data to an S3 bucket. If the SyncType is
+ // SyncFromSource then the resource data sync synchronizes data from AWS Organizations
+ // or from multiple AWS Regions.
SyncType *string `min:"1" type:"string"`
}
@@ -39197,8 +39376,8 @@ func (s *ResourceDataSyncItem) SetSyncType(v string) *ResourceDataSyncItem {
// The specified sync name was not found.
type ResourceDataSyncNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -39219,17 +39398,17 @@ func (s ResourceDataSyncNotFoundException) GoString() string {
func newErrorResourceDataSyncNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceDataSyncNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceDataSyncNotFoundException) Code() string {
+func (s *ResourceDataSyncNotFoundException) Code() string {
return "ResourceDataSyncNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceDataSyncNotFoundException) Message() string {
+func (s *ResourceDataSyncNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39237,22 +39416,22 @@ func (s ResourceDataSyncNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceDataSyncNotFoundException) OrigErr() error {
+func (s *ResourceDataSyncNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceDataSyncNotFoundException) Error() string {
+func (s *ResourceDataSyncNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceDataSyncNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceDataSyncNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceDataSyncNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceDataSyncNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The AWS Organizations organizational unit data source for the sync.
@@ -39292,23 +39471,26 @@ func (s *ResourceDataSyncOrganizationalUnit) SetOrganizationalUnitId(v string) *
return s
}
-// Information about the target Amazon S3 bucket for the Resource Data Sync.
+// Information about the target S3 bucket for the Resource Data Sync.
type ResourceDataSyncS3Destination struct {
_ struct{} `type:"structure"`
// The ARN of an encryption key for a destination in Amazon S3. Must belong
- // to the same Region as the destination Amazon S3 bucket.
+ // to the same Region as the destination S3 bucket.
AWSKMSKeyARN *string `min:"1" type:"string"`
- // The name of the Amazon S3 bucket where the aggregated data is stored.
+ // The name of the S3 bucket where the aggregated data is stored.
//
// BucketName is a required field
BucketName *string `min:"1" type:"string" required:"true"`
+ // Enables destination data sharing. By default, this field is null.
+ DestinationDataSharing *ResourceDataSyncDestinationDataSharing `type:"structure"`
+
// An Amazon S3 prefix for the bucket.
Prefix *string `min:"1" type:"string"`
- // The AWS Region with the Amazon S3 bucket targeted by the Resource Data Sync.
+ // The AWS Region with the S3 bucket targeted by the Resource Data Sync.
//
// Region is a required field
Region *string `min:"1" type:"string" required:"true"`
@@ -39353,6 +39535,11 @@ func (s *ResourceDataSyncS3Destination) Validate() error {
if s.SyncFormat == nil {
invalidParams.Add(request.NewErrParamRequired("SyncFormat"))
}
+ if s.DestinationDataSharing != nil {
+ if err := s.DestinationDataSharing.Validate(); err != nil {
+ invalidParams.AddNested("DestinationDataSharing", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -39372,6 +39559,12 @@ func (s *ResourceDataSyncS3Destination) SetBucketName(v string) *ResourceDataSyn
return s
}
+// SetDestinationDataSharing sets the DestinationDataSharing field's value.
+func (s *ResourceDataSyncS3Destination) SetDestinationDataSharing(v *ResourceDataSyncDestinationDataSharing) *ResourceDataSyncS3Destination {
+ s.DestinationDataSharing = v
+ return s
+}
+
// SetPrefix sets the Prefix field's value.
func (s *ResourceDataSyncS3Destination) SetPrefix(v string) *ResourceDataSyncS3Destination {
s.Prefix = &v
@@ -39564,8 +39757,8 @@ func (s *ResourceDataSyncSourceWithState) SetState(v string) *ResourceDataSyncSo
// Error returned if an attempt is made to delete a patch baseline that is registered
// for a patch group.
type ResourceInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39582,17 +39775,17 @@ func (s ResourceInUseException) GoString() string {
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceInUseException) Code() string {
+func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
-func (s ResourceInUseException) Message() string {
+func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39600,33 +39793,33 @@ func (s ResourceInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceInUseException) OrigErr() error {
+func (s *ResourceInUseException) OrigErr() error {
return nil
}
-func (s ResourceInUseException) Error() string {
+func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Error returned when the caller has exceeded the default resource quotas.
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
-// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+// service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
type ResourceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -39643,17 +39836,17 @@ func (s ResourceLimitExceededException) GoString() string {
func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceededException) Code() string {
+func (s *ResourceLimitExceededException) Code() string {
return "ResourceLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceLimitExceededException) Message() string {
+func (s *ResourceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -39661,22 +39854,22 @@ func (s ResourceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceededException) OrigErr() error {
+func (s *ResourceLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceLimitExceededException) Error() string {
+func (s *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The inventory item result attribute.
@@ -39774,8 +39967,8 @@ type ResumeSessionOutput struct {
//
// 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 Systems Manager Service
- // Endpoints (http://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
+ // of supported region values, see the Region column in Systems Manager service
+ // endpoints (http://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
// in the AWS General Reference.
//
// session-id represents the ID of a Session Manager session, such as 1a2b3c4dEXAMPLE.
@@ -39814,19 +40007,19 @@ func (s *ResumeSessionOutput) SetTokenValue(v string) *ResumeSessionOutput {
return s
}
-// An Amazon S3 bucket where you want to store the results of this request.
+// An S3 bucket where you want to store the results of this request.
type S3OutputLocation struct {
_ struct{} `type:"structure"`
- // The name of the Amazon S3 bucket.
+ // The name of the S3 bucket.
OutputS3BucketName *string `min:"3" type:"string"`
- // The Amazon S3 bucket subfolder.
+ // The S3 bucket subfolder.
OutputS3KeyPrefix *string `type:"string"`
// (Deprecated) You can no longer specify this parameter. The system ignores
- // it. Instead, Systems Manager automatically determines the Amazon S3 bucket
- // region.
+ // it. Instead, Systems Manager automatically determines the Region of the S3
+ // bucket.
OutputS3Region *string `min:"3" type:"string"`
}
@@ -39874,13 +40067,11 @@ func (s *S3OutputLocation) SetOutputS3Region(v string) *S3OutputLocation {
return s
}
-// A URL for the Amazon S3 bucket where you want to store the results of this
-// request.
+// A URL for the S3 bucket where you want to store the results of this request.
type S3OutputUrl struct {
_ struct{} `type:"structure"`
- // A URL for an Amazon S3 bucket where you want to store the results of this
- // request.
+ // A URL for an S3 bucket where you want to store the results of this request.
OutputUrl *string `type:"string"`
}
@@ -40083,15 +40274,15 @@ type SendCommandInput struct {
// The instance IDs where the command should run. You can specify a maximum
// of 50 IDs. If you prefer not to list individual instance IDs, you can instead
// send commands to a fleet of instances using the Targets parameter, which
- // accepts EC2 tags. For more information about how to use targets, see Sending
- // Commands to a Fleet (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
+ // accepts EC2 tags. For more information about how to use targets, see Using
+ // targets and rate controls to send commands to a fleet (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
// in the AWS Systems Manager User Guide.
InstanceIds []*string `type:"list"`
// (Optional) The maximum number of instances that are allowed to run the command
// at the same time. You can specify a number such as 10 or a percentage such
// as 10%. The default value is 50. For more information about how to use MaxConcurrency,
- // see Using Concurrency Controls (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity)
+ // see Using concurrency controls (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-velocity)
// in the AWS Systems Manager User Guide.
MaxConcurrency *string `min:"1" type:"string"`
@@ -40099,7 +40290,7 @@ type SendCommandInput struct {
// command fails one more time beyond the value of MaxErrors, the systems stops
// sending the command to additional targets. You can specify a number like
// 10 or a percentage like 10%. The default value is 0. For more information
- // about how to use MaxErrors, see Using Error Controls (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors)
+ // about how to use MaxErrors, see Using error controls (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-maxerrors)
// in the AWS Systems Manager User Guide.
MaxErrors *string `min:"1" type:"string"`
@@ -40114,8 +40305,8 @@ type SendCommandInput struct {
OutputS3KeyPrefix *string `type:"string"`
// (Deprecated) You can no longer specify this parameter. The system ignores
- // it. Instead, Systems Manager automatically determines the Amazon S3 bucket
- // region.
+ // it. Instead, Systems Manager automatically determines the Region of the S3
+ // bucket.
OutputS3Region *string `min:"3" type:"string"`
// The required and optional parameters specified in the document being run.
@@ -40128,7 +40319,7 @@ type SendCommandInput struct {
// (Optional) An array of search criteria that targets instances using a Key,Value
// combination that you specify. Targets is required if you don't provide one
// or more instance IDs in the call. For more information about how to use targets,
- // see Sending Commands to a Fleet (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
+ // see Sending commands to a fleet (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html)
// in the AWS Systems Manager User Guide.
Targets []*Target `type:"list"`
@@ -40413,8 +40604,8 @@ func (s *ServiceSetting) SetStatus(v string) *ServiceSetting {
// The specified service setting was not found. Either the service name or the
// setting has not been provisioned by the AWS service team.
type ServiceSettingNotFound struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -40431,17 +40622,17 @@ func (s ServiceSettingNotFound) GoString() string {
func newErrorServiceSettingNotFound(v protocol.ResponseMetadata) error {
return &ServiceSettingNotFound{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceSettingNotFound) Code() string {
+func (s *ServiceSettingNotFound) Code() string {
return "ServiceSettingNotFound"
}
// Message returns the exception's message.
-func (s ServiceSettingNotFound) Message() string {
+func (s *ServiceSettingNotFound) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -40449,22 +40640,22 @@ func (s ServiceSettingNotFound) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceSettingNotFound) OrigErr() error {
+func (s *ServiceSettingNotFound) OrigErr() error {
return nil
}
-func (s ServiceSettingNotFound) Error() string {
+func (s *ServiceSettingNotFound) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceSettingNotFound) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceSettingNotFound) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceSettingNotFound) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceSettingNotFound) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Information about a Session Manager connection to an instance.
@@ -40866,8 +41057,8 @@ type StartAutomationExecutionInput struct {
// A location is a combination of AWS Regions and/or AWS accounts where you
// want to run the Automation. Use this action to start an Automation in multiple
- // Regions and multiple accounts. For more information, see Executing Automations
- // in Multiple AWS Regions and Accounts (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
+ // Regions and multiple accounts. For more information, see Running Automation
+ // workflows in multiple AWS Regions and accounts (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html)
// in the AWS Systems Manager User Guide.
TargetLocations []*TargetLocation `min:"1" type:"list"`
@@ -41121,8 +41312,8 @@ type StartSessionOutput struct {
//
// 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 Systems Manager Service
- // Endpoints (http://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
+ // of supported region values, see the Region column in Systems Manager service
+ // endpoints (http://docs.aws.amazon.com/general/latest/gr/ssm.html#ssm_region)
// in the AWS General Reference.
//
// session-id represents the ID of a Session Manager session, such as 1a2b3c4dEXAMPLE.
@@ -41163,8 +41354,8 @@ func (s *StartSessionOutput) SetTokenValue(v string) *StartSessionOutput {
// The updated status is the same as the current status.
type StatusUnchanged struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -41181,17 +41372,17 @@ func (s StatusUnchanged) GoString() string {
func newErrorStatusUnchanged(v protocol.ResponseMetadata) error {
return &StatusUnchanged{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StatusUnchanged) Code() string {
+func (s *StatusUnchanged) Code() string {
return "StatusUnchanged"
}
// Message returns the exception's message.
-func (s StatusUnchanged) Message() string {
+func (s *StatusUnchanged) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -41199,22 +41390,22 @@ func (s StatusUnchanged) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StatusUnchanged) OrigErr() error {
+func (s *StatusUnchanged) OrigErr() error {
return nil
}
-func (s StatusUnchanged) Error() string {
+func (s *StatusUnchanged) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StatusUnchanged) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StatusUnchanged) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StatusUnchanged) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StatusUnchanged) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Detailed information about an the execution state of an Automation step.
@@ -41567,8 +41758,8 @@ func (s StopAutomationExecutionOutput) GoString() string {
// The sub-type count exceeded the limit for the inventory type.
type SubTypeCountLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -41585,17 +41776,17 @@ func (s SubTypeCountLimitExceededException) GoString() string {
func newErrorSubTypeCountLimitExceededException(v protocol.ResponseMetadata) error {
return &SubTypeCountLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubTypeCountLimitExceededException) Code() string {
+func (s *SubTypeCountLimitExceededException) Code() string {
return "SubTypeCountLimitExceededException"
}
// Message returns the exception's message.
-func (s SubTypeCountLimitExceededException) Message() string {
+func (s *SubTypeCountLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -41603,22 +41794,22 @@ func (s SubTypeCountLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubTypeCountLimitExceededException) OrigErr() error {
+func (s *SubTypeCountLimitExceededException) OrigErr() error {
return nil
}
-func (s SubTypeCountLimitExceededException) Error() string {
+func (s *SubTypeCountLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubTypeCountLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubTypeCountLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubTypeCountLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubTypeCountLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Metadata that you assign to your AWS resources. Tags enable you to categorize
@@ -41711,16 +41902,15 @@ func (s *Tag) SetValue(v string) *Tag {
// group ProductionResourceGroup in your maintenance window.
//
// * (Maintenance window targets only) Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC
-// This example demonstrates how to target only Amazon EC2 instances and
-// VPCs in your maintenance window.
+// This example demonstrates how to target only EC2 instances and VPCs in
+// your maintenance window.
//
// * (State Manager association targets only) Key=InstanceIds,Values=* This
// example demonstrates how to target all managed instances in the AWS Region
// where the association was created.
//
// For information about how to send commands that target instances using Key,Value
-// parameters, see Using Targets and Rate Controls to Send Commands to a Fleet
-// (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-targeting)
+// parameters, see Targeting multiple instances (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-targeting)
// in the AWS Systems Manager User Guide.
type Target struct {
_ struct{} `type:"structure"`
@@ -41731,7 +41921,7 @@ type Target struct {
// User-defined criteria that maps to Key. For example, if you specified tag:ServerRole,
// you could specify value:WebServer to run a command on instances that include
- // Amazon EC2 tags of ServerRole,WebServer.
+ // EC2 tags of ServerRole,WebServer.
Values []*string `type:"list"`
}
@@ -41773,8 +41963,8 @@ func (s *Target) SetValues(v []*string) *Target {
// You specified the Safe option for the DeregisterTargetFromMaintenanceWindow
// operation, but the target is still referenced in a task.
type TargetInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -41791,17 +41981,17 @@ func (s TargetInUseException) GoString() string {
func newErrorTargetInUseException(v protocol.ResponseMetadata) error {
return &TargetInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetInUseException) Code() string {
+func (s *TargetInUseException) Code() string {
return "TargetInUseException"
}
// Message returns the exception's message.
-func (s TargetInUseException) Message() string {
+func (s *TargetInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -41809,22 +41999,22 @@ func (s TargetInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetInUseException) OrigErr() error {
+func (s *TargetInUseException) OrigErr() error {
return nil
}
-func (s TargetInUseException) Error() string {
+func (s *TargetInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The combination of AWS Regions and accounts targeted by the current Automation
@@ -41916,12 +42106,12 @@ func (s *TargetLocation) SetTargetLocationMaxErrors(v string) *TargetLocation {
}
// 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)
+// use with Session Manager. For more information, see Getting started with
+// Session Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
// in the AWS Systems Manager User Guide.
type TargetNotConnected struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -41938,17 +42128,17 @@ func (s TargetNotConnected) GoString() string {
func newErrorTargetNotConnected(v protocol.ResponseMetadata) error {
return &TargetNotConnected{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TargetNotConnected) Code() string {
+func (s *TargetNotConnected) Code() string {
return "TargetNotConnected"
}
// Message returns the exception's message.
-func (s TargetNotConnected) Message() string {
+func (s *TargetNotConnected) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -41956,22 +42146,22 @@ func (s TargetNotConnected) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TargetNotConnected) OrigErr() error {
+func (s *TargetNotConnected) OrigErr() error {
return nil
}
-func (s TargetNotConnected) Error() string {
+func (s *TargetNotConnected) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TargetNotConnected) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TargetNotConnected) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TargetNotConnected) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TargetNotConnected) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TerminateSessionInput struct {
@@ -42041,8 +42231,8 @@ func (s *TerminateSessionOutput) SetSessionId(v string) *TerminateSessionOutput
// The Targets parameter includes too many tags. Remove one or more tags and
// try the command again.
type TooManyTagsError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -42059,17 +42249,17 @@ func (s TooManyTagsError) GoString() string {
func newErrorTooManyTagsError(v protocol.ResponseMetadata) error {
return &TooManyTagsError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsError) Code() string {
+func (s *TooManyTagsError) Code() string {
return "TooManyTagsError"
}
// Message returns the exception's message.
-func (s TooManyTagsError) Message() string {
+func (s *TooManyTagsError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42077,29 +42267,29 @@ func (s TooManyTagsError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsError) OrigErr() error {
+func (s *TooManyTagsError) OrigErr() error {
return nil
}
-func (s TooManyTagsError) Error() string {
+func (s *TooManyTagsError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// There are concurrent updates for a resource that supports one update at a
// time.
type TooManyUpdates struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42116,17 +42306,17 @@ func (s TooManyUpdates) GoString() string {
func newErrorTooManyUpdates(v protocol.ResponseMetadata) error {
return &TooManyUpdates{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyUpdates) Code() string {
+func (s *TooManyUpdates) Code() string {
return "TooManyUpdates"
}
// Message returns the exception's message.
-func (s TooManyUpdates) Message() string {
+func (s *TooManyUpdates) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42134,28 +42324,28 @@ func (s TooManyUpdates) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyUpdates) OrigErr() error {
+func (s *TooManyUpdates) OrigErr() error {
return nil
}
-func (s TooManyUpdates) Error() string {
+func (s *TooManyUpdates) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyUpdates) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyUpdates) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyUpdates) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyUpdates) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The size of inventory data has exceeded the total size limit for the resource.
type TotalSizeLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42172,17 +42362,17 @@ func (s TotalSizeLimitExceededException) GoString() string {
func newErrorTotalSizeLimitExceededException(v protocol.ResponseMetadata) error {
return &TotalSizeLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TotalSizeLimitExceededException) Code() string {
+func (s *TotalSizeLimitExceededException) Code() string {
return "TotalSizeLimitExceededException"
}
// Message returns the exception's message.
-func (s TotalSizeLimitExceededException) Message() string {
+func (s *TotalSizeLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42190,29 +42380,29 @@ func (s TotalSizeLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TotalSizeLimitExceededException) OrigErr() error {
+func (s *TotalSizeLimitExceededException) OrigErr() error {
return nil
}
-func (s TotalSizeLimitExceededException) Error() string {
+func (s *TotalSizeLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TotalSizeLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TotalSizeLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TotalSizeLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TotalSizeLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The calendar entry contained in the specified Systems Manager document is
// not supported.
type UnsupportedCalendarException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42229,17 +42419,17 @@ func (s UnsupportedCalendarException) GoString() string {
func newErrorUnsupportedCalendarException(v protocol.ResponseMetadata) error {
return &UnsupportedCalendarException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedCalendarException) Code() string {
+func (s *UnsupportedCalendarException) Code() string {
return "UnsupportedCalendarException"
}
// Message returns the exception's message.
-func (s UnsupportedCalendarException) Message() string {
+func (s *UnsupportedCalendarException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42247,32 +42437,32 @@ func (s UnsupportedCalendarException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedCalendarException) OrigErr() error {
+func (s *UnsupportedCalendarException) OrigErr() error {
return nil
}
-func (s UnsupportedCalendarException) Error() string {
+func (s *UnsupportedCalendarException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedCalendarException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedCalendarException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedCalendarException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedCalendarException) RequestID() string {
+ return s.RespMetadata.RequestID
}
-// Microsoft application patching is only available on EC2 instances and Advanced
-// Instances. To patch Microsoft applications on on-premises servers and VMs,
-// you must enable Advanced Instances. For more information, see Using the Advanced-Instances
-// Tier (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
+// Microsoft application patching is only available on EC2 instances and advanced
+// instances. To patch Microsoft applications on on-premises servers and VMs,
+// you must enable advanced instances. For more information, see Using the advanced-instances
+// tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
// in the AWS Systems Manager User Guide.
type UnsupportedFeatureRequiredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42289,17 +42479,17 @@ func (s UnsupportedFeatureRequiredException) GoString() string {
func newErrorUnsupportedFeatureRequiredException(v protocol.ResponseMetadata) error {
return &UnsupportedFeatureRequiredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedFeatureRequiredException) Code() string {
+func (s *UnsupportedFeatureRequiredException) Code() string {
return "UnsupportedFeatureRequiredException"
}
// Message returns the exception's message.
-func (s UnsupportedFeatureRequiredException) Message() string {
+func (s *UnsupportedFeatureRequiredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42307,30 +42497,30 @@ func (s UnsupportedFeatureRequiredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedFeatureRequiredException) OrigErr() error {
+func (s *UnsupportedFeatureRequiredException) OrigErr() error {
return nil
}
-func (s UnsupportedFeatureRequiredException) Error() string {
+func (s *UnsupportedFeatureRequiredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedFeatureRequiredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedFeatureRequiredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedFeatureRequiredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedFeatureRequiredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The Context attribute that you specified for the InventoryItem is not allowed
// for this inventory type. You can only use the Context attribute with inventory
// types like AWS:ComplianceItem.
type UnsupportedInventoryItemContextException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -42349,17 +42539,17 @@ func (s UnsupportedInventoryItemContextException) GoString() string {
func newErrorUnsupportedInventoryItemContextException(v protocol.ResponseMetadata) error {
return &UnsupportedInventoryItemContextException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedInventoryItemContextException) Code() string {
+func (s *UnsupportedInventoryItemContextException) Code() string {
return "UnsupportedInventoryItemContextException"
}
// Message returns the exception's message.
-func (s UnsupportedInventoryItemContextException) Message() string {
+func (s *UnsupportedInventoryItemContextException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42367,30 +42557,30 @@ func (s UnsupportedInventoryItemContextException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedInventoryItemContextException) OrigErr() error {
+func (s *UnsupportedInventoryItemContextException) OrigErr() error {
return nil
}
-func (s UnsupportedInventoryItemContextException) Error() string {
+func (s *UnsupportedInventoryItemContextException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedInventoryItemContextException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedInventoryItemContextException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedInventoryItemContextException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedInventoryItemContextException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Inventory item type schema version has to match supported versions in the
// service. Check output of GetInventorySchema to see the available schema version
// for each type.
type UnsupportedInventorySchemaVersionException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42407,17 +42597,17 @@ func (s UnsupportedInventorySchemaVersionException) GoString() string {
func newErrorUnsupportedInventorySchemaVersionException(v protocol.ResponseMetadata) error {
return &UnsupportedInventorySchemaVersionException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedInventorySchemaVersionException) Code() string {
+func (s *UnsupportedInventorySchemaVersionException) Code() string {
return "UnsupportedInventorySchemaVersionException"
}
// Message returns the exception's message.
-func (s UnsupportedInventorySchemaVersionException) Message() string {
+func (s *UnsupportedInventorySchemaVersionException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42425,30 +42615,30 @@ func (s UnsupportedInventorySchemaVersionException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedInventorySchemaVersionException) OrigErr() error {
+func (s *UnsupportedInventorySchemaVersionException) OrigErr() error {
return nil
}
-func (s UnsupportedInventorySchemaVersionException) Error() string {
+func (s *UnsupportedInventorySchemaVersionException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedInventorySchemaVersionException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedInventorySchemaVersionException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedInventorySchemaVersionException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedInventorySchemaVersionException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operating systems you specified is not supported, or the operation is
// not supported for the operating system. Valid operating systems include:
// Windows, AmazonLinux, RedhatEnterpriseLinux, and Ubuntu.
type UnsupportedOperatingSystem struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42465,17 +42655,17 @@ func (s UnsupportedOperatingSystem) GoString() string {
func newErrorUnsupportedOperatingSystem(v protocol.ResponseMetadata) error {
return &UnsupportedOperatingSystem{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperatingSystem) Code() string {
+func (s *UnsupportedOperatingSystem) Code() string {
return "UnsupportedOperatingSystem"
}
// Message returns the exception's message.
-func (s UnsupportedOperatingSystem) Message() string {
+func (s *UnsupportedOperatingSystem) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42483,28 +42673,28 @@ func (s UnsupportedOperatingSystem) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperatingSystem) OrigErr() error {
+func (s *UnsupportedOperatingSystem) OrigErr() error {
return nil
}
-func (s UnsupportedOperatingSystem) Error() string {
+func (s *UnsupportedOperatingSystem) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperatingSystem) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperatingSystem) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperatingSystem) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperatingSystem) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The parameter type is not supported.
type UnsupportedParameterType struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -42521,17 +42711,17 @@ func (s UnsupportedParameterType) GoString() string {
func newErrorUnsupportedParameterType(v protocol.ResponseMetadata) error {
return &UnsupportedParameterType{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedParameterType) Code() string {
+func (s *UnsupportedParameterType) Code() string {
return "UnsupportedParameterType"
}
// Message returns the exception's message.
-func (s UnsupportedParameterType) Message() string {
+func (s *UnsupportedParameterType) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42539,29 +42729,29 @@ func (s UnsupportedParameterType) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedParameterType) OrigErr() error {
+func (s *UnsupportedParameterType) OrigErr() error {
return nil
}
-func (s UnsupportedParameterType) Error() string {
+func (s *UnsupportedParameterType) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedParameterType) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedParameterType) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedParameterType) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedParameterType) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The document does not support the platform type of the given instance ID(s).
// For example, you sent an document for a Windows instance to a Linux instance.
type UnsupportedPlatformType struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -42578,17 +42768,17 @@ func (s UnsupportedPlatformType) GoString() string {
func newErrorUnsupportedPlatformType(v protocol.ResponseMetadata) error {
return &UnsupportedPlatformType{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedPlatformType) Code() string {
+func (s *UnsupportedPlatformType) Code() string {
return "UnsupportedPlatformType"
}
// Message returns the exception's message.
-func (s UnsupportedPlatformType) Message() string {
+func (s *UnsupportedPlatformType) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -42596,22 +42786,22 @@ func (s UnsupportedPlatformType) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedPlatformType) OrigErr() error {
+func (s *UnsupportedPlatformType) OrigErr() error {
return nil
}
-func (s UnsupportedPlatformType) Error() string {
+func (s *UnsupportedPlatformType) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedPlatformType) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedPlatformType) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedPlatformType) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedPlatformType) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateAssociationInput struct {
@@ -42686,7 +42876,7 @@ type UpdateAssociationInput struct {
// or My-Document.
Name *string `type:"string"`
- // An Amazon S3 bucket where you want to store the results of this request.
+ // An S3 bucket where you want to store the results of this request.
OutputLocation *InstanceAssociationOutputLocation `type:"structure"`
// The parameters you want to update for the association. If you create a parameter
@@ -42696,6 +42886,20 @@ type UpdateAssociationInput struct {
// The cron expression used to schedule the association that you want to update.
ScheduleExpression *string `min:"1" type:"string"`
+ // The mode for generating association compliance. You can specify AUTO or MANUAL.
+ // In AUTO mode, the system uses the status of the association execution to
+ // determine the compliance status. If the association execution runs successfully,
+ // then the association is COMPLIANT. If the association execution doesn't run
+ // successfully, the association is NON-COMPLIANT.
+ //
+ // In MANUAL mode, you must specify the AssociationId as a parameter for the
+ // PutComplianceItems API action. In this case, compliance data is not managed
+ // by State Manager. It is managed by your direct call to the PutComplianceItems
+ // API action.
+ //
+ // By default, all associations use AUTO mode.
+ SyncCompliance *string `type:"string" enum:"AssociationSyncCompliance"`
+
// The targets of the association.
Targets []*Target `type:"list"`
}
@@ -42822,6 +43026,12 @@ func (s *UpdateAssociationInput) SetScheduleExpression(v string) *UpdateAssociat
return s
}
+// SetSyncCompliance sets the SyncCompliance field's value.
+func (s *UpdateAssociationInput) SetSyncCompliance(v string) *UpdateAssociationInput {
+ s.SyncCompliance = &v
+ return s
+}
+
// SetTargets sets the Targets field's value.
func (s *UpdateAssociationInput) SetTargets(v []*Target) *UpdateAssociationInput {
s.Targets = v
@@ -43037,7 +43247,9 @@ type UpdateDocumentInput struct {
// supports JSON and YAML documents. JSON is the default format.
DocumentFormat *string `type:"string" enum:"DocumentFormat"`
- // (Required) The version of the document that you want to update.
+ // (Required) The latest version of the document that you want to update. The
+ // latest document version can be specified using the $LATEST variable or by
+ // the version number. Updating a previous version of a document is not supported.
DocumentVersion *string `type:"string"`
// The name of the document that you want to update.
@@ -43679,10 +43891,10 @@ type UpdateMaintenanceWindowTaskInput struct {
// For more information, see the following topics in the in the AWS Systems
// Manager User Guide:
//
- // * Service-Linked Role Permissions for Systems Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
+ // * Using service-linked roles for Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions)
//
- // * Should I Use a Service-Linked Role or a Custom Service Role to Run Maintenance
- // Window Tasks? (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
+ // * Should I use a service-linked role or a custom service role to run maintenance
+ // window tasks? (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role)
ServiceRoleArn *string `type:"string"`
// The targets (either instances or tags) to modify. Instances are specified
@@ -44117,7 +44329,7 @@ type UpdateOpsItemInput struct {
// Use the /aws/resources key in OperationalData to specify a related resource
// in the request. Use the /aws/automations key in OperationalData to associate
// an Automation runbook with the OpsItem. To view AWS CLI example commands
- // that use these keys, see Creating OpsItems Manually (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
+ // that use these keys, see Creating OpsItems manually (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems)
// in the AWS Systems Manager User Guide.
OperationalData map[string]*OpsItemDataValue `type:"map"`
@@ -44141,7 +44353,7 @@ type UpdateOpsItemInput struct {
Severity *string `min:"1" type:"string"`
// The OpsItem status. Status can be Open, In Progress, or Resolved. For more
- // information, see Editing OpsItem Details (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html)
+ // information, see Editing OpsItem details (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems.html#OpsCenter-working-with-OpsItems-editing-details)
// in the AWS Systems Manager User Guide.
Status *string `type:"string" enum:"OpsItemStatus"`
@@ -44287,8 +44499,8 @@ type UpdatePatchBaselineInput struct {
// A list of explicitly approved patches for the baseline.
//
// For information about accepted formats for lists of approved patches and
- // rejected patches, see Package Name Formats for Approved and Rejected Patch
- // Lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
+ // rejected patches, see About package name formats for approved and rejected
+ // patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the AWS Systems Manager User Guide.
ApprovedPatches []*string `type:"list"`
@@ -44317,8 +44529,8 @@ type UpdatePatchBaselineInput struct {
// A list of explicitly rejected patches for the baseline.
//
// For information about accepted formats for lists of approved patches and
- // rejected patches, see Package Name Formats for Approved and Rejected Patch
- // Lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
+ // rejected patches, see About package name formats for approved and rejected
+ // patch lists (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
// in the AWS Systems Manager User Guide.
RejectedPatches []*string `type:"list"`
@@ -44630,10 +44842,7 @@ type UpdateResourceDataSyncInput struct {
// SyncSource is a required field
SyncSource *ResourceDataSyncSource `type:"structure" required:"true"`
- // The type of resource data sync. If SyncType is SyncToDestination, then the
- // resource data sync synchronizes data to an Amazon S3 bucket. If the SyncType
- // is SyncFromSource then the resource data sync synchronizes data from AWS
- // Organizations or from multiple AWS Regions.
+ // The type of resource data sync. The supported SyncType is SyncFromSource.
//
// SyncType is a required field
SyncType *string `min:"1" type:"string" required:"true"`
@@ -44715,12 +44924,30 @@ func (s UpdateResourceDataSyncOutput) GoString() string {
type UpdateServiceSettingInput struct {
_ struct{} `type:"structure"`
- // The ID of the service setting to update.
+ // The Amazon Resource Name (ARN) of the service setting to reset. For example,
+ // arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled.
+ // The setting ID can be one of the following.
+ //
+ // * /ssm/parameter-store/default-parameter-tier
+ //
+ // * /ssm/parameter-store/high-throughput-enabled
+ //
+ // * /ssm/managed-instance/activation-tier
//
// SettingId is a required field
SettingId *string `min:"1" type:"string" required:"true"`
- // The new value to specify for the service setting.
+ // The new value to specify for the service setting. For the /ssm/parameter-store/default-parameter-tier
+ // setting ID, the setting value can be one of the following.
+ //
+ // * Standard
+ //
+ // * Advanced
+ //
+ // * Intelligent-Tiering
+ //
+ // For the /ssm/parameter-store/high-throughput-enabled, and /ssm/managed-instance/activation-tier
+ // setting IDs, the setting value can be true or false.
//
// SettingValue is a required field
SettingValue *string `min:"1" type:"string" required:"true"`
@@ -44845,6 +45072,9 @@ const (
// AssociationFilterKeyAssociationName is a AssociationFilterKey enum value
AssociationFilterKeyAssociationName = "AssociationName"
+
+ // AssociationFilterKeyResourceGroupName is a AssociationFilterKey enum value
+ AssociationFilterKeyResourceGroupName = "ResourceGroupName"
)
const (
@@ -44869,6 +45099,14 @@ const (
AssociationStatusNameFailed = "Failed"
)
+const (
+ // AssociationSyncComplianceAuto is a AssociationSyncCompliance enum value
+ AssociationSyncComplianceAuto = "AUTO"
+
+ // AssociationSyncComplianceManual is a AssociationSyncCompliance enum value
+ AssociationSyncComplianceManual = "MANUAL"
+)
+
const (
// AttachmentHashTypeSha256 is a AttachmentHashType enum value
AttachmentHashTypeSha256 = "Sha256"
@@ -45087,6 +45325,14 @@ const (
ComplianceStatusNonCompliant = "NON_COMPLIANT"
)
+const (
+ // ComplianceUploadTypeComplete is a ComplianceUploadType enum value
+ ComplianceUploadTypeComplete = "COMPLETE"
+
+ // ComplianceUploadTypePartial is a ComplianceUploadType enum value
+ ComplianceUploadTypePartial = "PARTIAL"
+)
+
const (
// ConnectionStatusConnected is a ConnectionStatus enum value
ConnectionStatusConnected = "Connected"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/doc.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/doc.go
index 48d6d3ee3e3..2fe2457ca9b 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ssm/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/doc.go
@@ -8,19 +8,20 @@
// system (OS) patches, automating the creation of Amazon Machine Images (AMIs),
// and configuring operating systems (OSs) and applications at scale. Systems
// Manager lets you remotely and securely manage the configuration of your managed
-// instances. A managed instance is any Amazon EC2 instance or on-premises machine
-// in your hybrid environment that has been configured for Systems Manager.
+// instances. A managed instance is any Amazon Elastic Compute Cloud instance
+// (EC2 instance), or any on-premises server or virtual machine (VM) in your
+// hybrid environment that has been configured for Systems Manager.
//
// This reference is intended to be used with the AWS Systems Manager User Guide
-// (http://docs.aws.amazon.com/systems-manager/latest/userguide/).
+// (https://docs.aws.amazon.com/systems-manager/latest/userguide/).
//
// To get started, verify prerequisites and configure managed instances. For
-// more information, see Setting Up AWS Systems Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html)
+// more information, see Setting up AWS Systems Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html)
// in the AWS Systems Manager User Guide.
//
-// For information about other API actions you can perform on Amazon EC2 instances,
-// see the Amazon EC2 API Reference (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/).
-// For information about how to use a Query API, see Making API Requests (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/making-api-requests.html).
+// For information about other API actions you can perform on EC2 instances,
+// see the Amazon EC2 API Reference (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/).
+// For information about how to use a Query API, see Making API requests (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/making-api-requests.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06 for more information on this service.
//
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 8e3eb9ba34d..884d925542f 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
@@ -134,7 +134,7 @@ const (
// window or Patch baseline, doesn't exist.
//
// For information about resource quotas in Systems Manager, see Systems Manager
- // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+ // service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
ErrCodeDoesNotExistException = "DoesNotExistException"
@@ -169,7 +169,7 @@ const (
// "HierarchyLevelLimitExceededException".
//
// A hierarchy can have a maximum of 15 levels. For more information, see Requirements
- // and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
+ // and constraints for parameter names (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html)
// in the AWS Systems Manager User Guide.
ErrCodeHierarchyLevelLimitExceededException = "HierarchyLevelLimitExceededException"
@@ -489,7 +489,7 @@ const (
// The role name can't contain invalid characters. Also verify that you specified
// an IAM role for notifications that includes the required trust policy. For
// information about configuring the IAM role for Run Command notifications,
- // see Configuring Amazon SNS Notifications for Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
+ // see Configuring Amazon SNS Notifications for Run Command (https://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html)
// in the AWS Systems Manager User Guide.
ErrCodeInvalidRole = "InvalidRole"
@@ -503,7 +503,7 @@ const (
// "InvalidTarget".
//
// The target is not valid or does not exist. It might not be configured for
- // EC2 Systems Manager or you might not have permission to perform the operation.
+ // Systems Manager or you might not have permission to perform the operation.
ErrCodeInvalidTarget = "InvalidTarget"
// ErrCodeInvalidTypeNameException for service response error code
@@ -560,7 +560,7 @@ const (
// "OpsItemLimitExceededException".
//
// The request caused OpsItems to exceed one or more quotas. For information
- // about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
+ // about OpsItem quotas, see What are the resource limits for OpsCenter? (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits).
ErrCodeOpsItemLimitExceededException = "OpsItemLimitExceededException"
// ErrCodeOpsItemNotFoundException for service response error code
@@ -665,7 +665,7 @@ const (
// For example, too many maintenance windows or patch baselines have been created.
//
// For information about resource quotas in Systems Manager, see Systems Manager
- // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
+ // service quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm)
// in the AWS General Reference.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
@@ -699,8 +699,8 @@ const (
// "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)
+ // use with Session Manager. For more information, see Getting started with
+ // Session Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
// in the AWS Systems Manager User Guide.
ErrCodeTargetNotConnected = "TargetNotConnected"
@@ -734,10 +734,10 @@ const (
// ErrCodeUnsupportedFeatureRequiredException for service response error code
// "UnsupportedFeatureRequiredException".
//
- // Microsoft application patching is only available on EC2 instances and Advanced
- // Instances. To patch Microsoft applications on on-premises servers and VMs,
- // you must enable Advanced Instances. For more information, see Using the Advanced-Instances
- // Tier (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
+ // Microsoft application patching is only available on EC2 instances and advanced
+ // instances. To patch Microsoft applications on on-premises servers and VMs,
+ // you must enable advanced instances. For more information, see Using the advanced-instances
+ // tier (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html)
// in the AWS Systems Manager User Guide.
ErrCodeUnsupportedFeatureRequiredException = "UnsupportedFeatureRequiredException"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go
index 43fe01b36fe..b05c45073b4 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go
@@ -523,8 +523,8 @@ func (c *StorageGateway) AssignTapePoolRequest(input *AssignTapePoolInput) (req
// Assigns a tape to a tape pool for archiving. The tape assigned to a pool
// is archived in the S3 storage class that is associated with the pool. When
// you use your backup application to eject the tape, the tape is archived directly
-// into the S3 storage class (Glacier or Deep Archive) that corresponds to the
-// pool.
+// into the S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds
+// to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
//
@@ -972,11 +972,11 @@ func (c *StorageGateway) CreateNFSFileShareRequest(input *CreateNFSFileShareInpu
//
// Creates a Network File System (NFS) file share on an existing file gateway.
// In Storage Gateway, a file share is a file system mount point backed by Amazon
-// S3 cloud storage. Storage Gateway exposes file shares using a NFS interface.
+// S3 cloud storage. Storage Gateway exposes file shares using an NFS interface.
// This operation is only supported for file gateways.
//
// File gateway requires AWS Security Token Service (AWS STS) to be activated
-// to enable you create a file share. Make sure AWS STS is activated in the
+// to enable you to create a file share. Make sure AWS STS is activated in the
// AWS Region you are creating your file gateway in. If AWS STS is not activated
// in the AWS Region, activate it. For information about how to activate AWS
// STS, see Activating and Deactivating AWS STS in an AWS Region in the AWS
@@ -1068,7 +1068,7 @@ func (c *StorageGateway) CreateSMBFileShareRequest(input *CreateSMBFileShareInpu
//
// Creates a Server Message Block (SMB) file share on an existing file gateway.
// In Storage Gateway, a file share is a file system mount point backed by Amazon
-// S3 cloud storage. Storage Gateway expose file shares using a SMB interface.
+// S3 cloud storage. Storage Gateway expose file shares using an SMB interface.
// This operation is only supported for file gateways.
//
// File gateways require AWS Security Token Service (AWS STS) to be activated
@@ -1165,11 +1165,12 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req
// Initiates a snapshot of a volume.
//
// AWS Storage Gateway provides the ability to back up point-in-time snapshots
-// of your data to Amazon Simple Storage (S3) for durable off-site recovery,
-// as well as import the data to an Amazon Elastic Block Store (EBS) volume
-// in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway
-// volume on a scheduled or ad hoc basis. This API enables you to take ad-hoc
-// snapshot. For more information, see Editing a Snapshot Schedule (https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#SchedulingSnapshot).
+// of your data to Amazon Simple Storage Service (Amazon S3) for durable off-site
+// recovery, as well as import the data to an Amazon Elastic Block Store (EBS)
+// volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your
+// gateway volume on a scheduled or ad hoc basis. This API enables you to take
+// an ad hoc snapshot. For more information, see Editing a Snapshot Schedule
+// (https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#SchedulingSnapshot).
//
// In the CreateSnapshot request you identify the volume by providing its Amazon
// Resource Name (ARN). You must also provide description for the snapshot.
@@ -1474,9 +1475,9 @@ func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarco
// CreateTapeWithBarcode API operation for AWS Storage Gateway.
//
// Creates a virtual tape by using your own barcode. You write data to the virtual
-// tape and then archive the tape. A barcode is unique and can not be reused
-// if it has already been used on a tape . This applies to barcodes used on
-// deleted tapes. This operation is only supported in the tape gateway type.
+// tape and then archive the tape. A barcode is unique and cannot be reused
+// if it has already been used on a tape. This applies to barcodes used on deleted
+// tapes. This operation is only supported in the tape gateway type.
//
// Cache storage must be allocated to the gateway before you can create a virtual
// tape. Use the AddCache operation to add cache storage to a gateway.
@@ -1608,6 +1609,92 @@ func (c *StorageGateway) CreateTapesWithContext(ctx aws.Context, input *CreateTa
return out, req.Send()
}
+const opDeleteAutomaticTapeCreationPolicy = "DeleteAutomaticTapeCreationPolicy"
+
+// DeleteAutomaticTapeCreationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteAutomaticTapeCreationPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteAutomaticTapeCreationPolicy for more information on using the DeleteAutomaticTapeCreationPolicy
+// 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 DeleteAutomaticTapeCreationPolicyRequest method.
+// req, resp := client.DeleteAutomaticTapeCreationPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteAutomaticTapeCreationPolicy
+func (c *StorageGateway) DeleteAutomaticTapeCreationPolicyRequest(input *DeleteAutomaticTapeCreationPolicyInput) (req *request.Request, output *DeleteAutomaticTapeCreationPolicyOutput) {
+ op := &request.Operation{
+ Name: opDeleteAutomaticTapeCreationPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteAutomaticTapeCreationPolicyInput{}
+ }
+
+ output = &DeleteAutomaticTapeCreationPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteAutomaticTapeCreationPolicy API operation for AWS Storage Gateway.
+//
+// Deletes the automatic tape creation policy of a gateway. If you delete this
+// policy, new virtual tapes must be created manually. Use the Amazon Resource
+// Name (ARN) of the gateway in your request to remove the policy.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Storage Gateway's
+// API operation DeleteAutomaticTapeCreationPolicy for usage and error information.
+//
+// Returned Error Types:
+// * InvalidGatewayRequestException
+// An exception occurred because an invalid gateway request was issued to the
+// service. For more information, see the error and message fields.
+//
+// * InternalServerError
+// An internal server error has occurred during the request. For more information,
+// see the error and message fields.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteAutomaticTapeCreationPolicy
+func (c *StorageGateway) DeleteAutomaticTapeCreationPolicy(input *DeleteAutomaticTapeCreationPolicyInput) (*DeleteAutomaticTapeCreationPolicyOutput, error) {
+ req, out := c.DeleteAutomaticTapeCreationPolicyRequest(input)
+ return out, req.Send()
+}
+
+// DeleteAutomaticTapeCreationPolicyWithContext is the same as DeleteAutomaticTapeCreationPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteAutomaticTapeCreationPolicy 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 *StorageGateway) DeleteAutomaticTapeCreationPolicyWithContext(ctx aws.Context, input *DeleteAutomaticTapeCreationPolicyInput, opts ...request.Option) (*DeleteAutomaticTapeCreationPolicyOutput, error) {
+ req, out := c.DeleteAutomaticTapeCreationPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit"
// DeleteBandwidthRateLimitRequest generates a "aws/request.Request" representing the
@@ -2020,8 +2107,9 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche
// its Amazon Resource Name (ARN). This operation is only supported in stored
// and cached volume gateway types.
//
-// To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon
-// Elastic Compute Cloud API Reference.
+// To list or delete a snapshot, you must use the Amazon EC2 API. For more information,
+// go to DescribeSnapshots (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSnapshots.html)
+// in the Amazon Elastic Compute Cloud API Reference.
//
// 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
@@ -2551,7 +2639,7 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r
// DescribeCache API operation for AWS Storage Gateway.
//
// Returns information about the cache of a gateway. This operation is only
-// supported in the cached volume, tape and file gateway types.
+// supported in the cached volume, tape, and file gateway types.
//
// The response includes disk IDs that are configured as cache, and it includes
// the amount of cache allocated and used.
@@ -2642,7 +2730,7 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached
// operation is only supported in the cached volume gateway types.
//
// The list of gateway volumes in the request must be from one gateway. In the
-// response Amazon Storage Gateway returns volume information sorted by volume
+// response, AWS Storage Gateway returns volume information sorted by volume
// Amazon Resource Name (ARN).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -3329,7 +3417,7 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored
//
// Returns the description of the gateway volumes specified in the request.
// The list of gateway volumes in the request must be from one gateway. In the
-// response Amazon Storage Gateway returns volume information sorted by volume
+// response AWS Storage Gateway returns volume information sorted by volume
// ARNs. This operation is only supported in stored volume gateway type.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -4274,7 +4362,7 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req
// Use this operation for a tape gateway that is not reachable or not functioning.
// This operation is only supported in the tape gateway type.
//
-// Once a gateway is disabled it cannot be enabled.
+// After a gateway is disabled, it cannot be enabled.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -4399,6 +4487,93 @@ func (c *StorageGateway) JoinDomainWithContext(ctx aws.Context, input *JoinDomai
return out, req.Send()
}
+const opListAutomaticTapeCreationPolicies = "ListAutomaticTapeCreationPolicies"
+
+// ListAutomaticTapeCreationPoliciesRequest generates a "aws/request.Request" representing the
+// client's request for the ListAutomaticTapeCreationPolicies operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListAutomaticTapeCreationPolicies for more information on using the ListAutomaticTapeCreationPolicies
+// 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 ListAutomaticTapeCreationPoliciesRequest method.
+// req, resp := client.ListAutomaticTapeCreationPoliciesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListAutomaticTapeCreationPolicies
+func (c *StorageGateway) ListAutomaticTapeCreationPoliciesRequest(input *ListAutomaticTapeCreationPoliciesInput) (req *request.Request, output *ListAutomaticTapeCreationPoliciesOutput) {
+ op := &request.Operation{
+ Name: opListAutomaticTapeCreationPolicies,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListAutomaticTapeCreationPoliciesInput{}
+ }
+
+ output = &ListAutomaticTapeCreationPoliciesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListAutomaticTapeCreationPolicies API operation for AWS Storage Gateway.
+//
+// Lists the automatic tape creation policies for a gateway. If there are no
+// automatic tape creation policies for the gateway, it returns an empty list.
+//
+// This operation is only supported for tape gateways.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Storage Gateway's
+// API operation ListAutomaticTapeCreationPolicies for usage and error information.
+//
+// Returned Error Types:
+// * InvalidGatewayRequestException
+// An exception occurred because an invalid gateway request was issued to the
+// service. For more information, see the error and message fields.
+//
+// * InternalServerError
+// An internal server error has occurred during the request. For more information,
+// see the error and message fields.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListAutomaticTapeCreationPolicies
+func (c *StorageGateway) ListAutomaticTapeCreationPolicies(input *ListAutomaticTapeCreationPoliciesInput) (*ListAutomaticTapeCreationPoliciesOutput, error) {
+ req, out := c.ListAutomaticTapeCreationPoliciesRequest(input)
+ return out, req.Send()
+}
+
+// ListAutomaticTapeCreationPoliciesWithContext is the same as ListAutomaticTapeCreationPolicies with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListAutomaticTapeCreationPolicies 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 *StorageGateway) ListAutomaticTapeCreationPoliciesWithContext(ctx aws.Context, input *ListAutomaticTapeCreationPoliciesInput, opts ...request.Option) (*ListAutomaticTapeCreationPoliciesOutput, error) {
+ req, out := c.ListAutomaticTapeCreationPoliciesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListFileShares = "ListFileShares"
// ListFileSharesRequest generates a "aws/request.Request" representing the
@@ -5746,12 +5921,12 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request
// ResetCache API operation for AWS Storage Gateway.
//
-// Resets all cache disks that have encountered a error and makes the disks
+// Resets all cache disks that have encountered an error and makes the disks
// available for reconfiguration as cache storage. If your cache disk encounters
-// a error, the gateway prevents read and write operations on virtual tapes
+// an error, the gateway prevents read and write operations on virtual tapes
// in the gateway. For example, an error can occur when a disk is corrupted
// or removed from the gateway. When a cache is reset, the gateway loses its
-// cache storage. At this point you can reconfigure the disks as cache disks.
+// cache storage. At this point, you can reconfigure the disks as cache disks.
// This operation is only supported in the cached volume and tape types.
//
// If the cache disk you are resetting contains data that has not been uploaded
@@ -6209,7 +6384,7 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re
// the gateway component in the VM to avoid unpredictable conditions.
//
// After the gateway is shutdown, you cannot call any other API except StartGateway,
-// DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway.
+// DescribeGatewayInformation and ListGateways. For more information, see ActivateGateway.
// Your applications cannot read from or write to the gateway's storage volumes,
// and there are no snapshots taken.
//
@@ -6444,6 +6619,96 @@ func (c *StorageGateway) StartGatewayWithContext(ctx aws.Context, input *StartGa
return out, req.Send()
}
+const opUpdateAutomaticTapeCreationPolicy = "UpdateAutomaticTapeCreationPolicy"
+
+// UpdateAutomaticTapeCreationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateAutomaticTapeCreationPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateAutomaticTapeCreationPolicy for more information on using the UpdateAutomaticTapeCreationPolicy
+// 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 UpdateAutomaticTapeCreationPolicyRequest method.
+// req, resp := client.UpdateAutomaticTapeCreationPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateAutomaticTapeCreationPolicy
+func (c *StorageGateway) UpdateAutomaticTapeCreationPolicyRequest(input *UpdateAutomaticTapeCreationPolicyInput) (req *request.Request, output *UpdateAutomaticTapeCreationPolicyOutput) {
+ op := &request.Operation{
+ Name: opUpdateAutomaticTapeCreationPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateAutomaticTapeCreationPolicyInput{}
+ }
+
+ output = &UpdateAutomaticTapeCreationPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateAutomaticTapeCreationPolicy API operation for AWS Storage Gateway.
+//
+// Updates the automatic tape creation policy of a gateway. Use this to update
+// the policy with a new set of automatic tape creation rules. This is only
+// supported for tape gateways.
+//
+// By default, there is no automatic tape creation policy.
+//
+// A gateway can have only one automatic tape creation policy.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Storage Gateway's
+// API operation UpdateAutomaticTapeCreationPolicy for usage and error information.
+//
+// Returned Error Types:
+// * InvalidGatewayRequestException
+// An exception occurred because an invalid gateway request was issued to the
+// service. For more information, see the error and message fields.
+//
+// * InternalServerError
+// An internal server error has occurred during the request. For more information,
+// see the error and message fields.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateAutomaticTapeCreationPolicy
+func (c *StorageGateway) UpdateAutomaticTapeCreationPolicy(input *UpdateAutomaticTapeCreationPolicyInput) (*UpdateAutomaticTapeCreationPolicyOutput, error) {
+ req, out := c.UpdateAutomaticTapeCreationPolicyRequest(input)
+ return out, req.Send()
+}
+
+// UpdateAutomaticTapeCreationPolicyWithContext is the same as UpdateAutomaticTapeCreationPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateAutomaticTapeCreationPolicy 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 *StorageGateway) UpdateAutomaticTapeCreationPolicyWithContext(ctx aws.Context, input *UpdateAutomaticTapeCreationPolicyInput, opts ...request.Option) (*UpdateAutomaticTapeCreationPolicyOutput, error) {
+ req, out := c.UpdateAutomaticTapeCreationPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit"
// UpdateBandwidthRateLimitRequest generates a "aws/request.Request" representing the
@@ -7606,7 +7871,7 @@ type AddCacheInput struct {
_ struct{} `type:"structure"`
// An array of strings that identify disks that are to be configured as working
- // storage. Each string have a minimum length of 1 and maximum length of 300.
+ // storage. Each string has a minimum length of 1 and maximum length of 300.
// You can get the disk IDs from the ListLocalDisks API.
//
// DiskIds is a required field
@@ -7784,7 +8049,7 @@ type AddUploadBufferInput struct {
_ struct{} `type:"structure"`
// An array of strings that identify disks that are to be configured as working
- // storage. Each string have a minimum length of 1 and maximum length of 300.
+ // storage. Each string has a minimum length of 1 and maximum length of 300.
// You can get the disk IDs from the ListLocalDisks API.
//
// DiskIds is a required field
@@ -7869,7 +8134,7 @@ type AddWorkingStorageInput struct {
_ struct{} `type:"structure"`
// An array of strings that identify disks that are to be configured as working
- // storage. Each string have a minimum length of 1 and maximum length of 300.
+ // storage. Each string has a minimum length of 1 and maximum length of 300.
// You can get the disk IDs from the ListLocalDisks API.
//
// DiskIds is a required field
@@ -7923,8 +8188,8 @@ func (s *AddWorkingStorageInput) SetGatewayARN(v string) *AddWorkingStorageInput
return s
}
-// A JSON object containing the of the gateway for which working storage was
-// configured.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway for
+// which working storage was configured.
type AddWorkingStorageOutput struct {
_ struct{} `type:"structure"`
@@ -7955,8 +8220,8 @@ type AssignTapePoolInput struct {
// The ID of the pool that you want to add your tape to for archiving. The tape
// in this pool is archived in the S3 storage class that is associated with
// the pool. When you use your backup application to eject the tape, the tape
- // is archived directly into the storage class (Glacier or Deep Archive) that
- // corresponds to the pool.
+ // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep
+ // Archive) that corresponds to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
//
@@ -8182,6 +8447,147 @@ func (s *AttachVolumeOutput) SetVolumeARN(v string) *AttachVolumeOutput {
return s
}
+// Information about the gateway's automatic tape creation policies, including
+// the automatic tape creation rules and the gateway that is using the policies.
+type AutomaticTapeCreationPolicyInfo struct {
+ _ struct{} `type:"structure"`
+
+ // An automatic tape creation policy consists of a list of automatic tape creation
+ // rules. This returns the rules that determine when and how to automatically
+ // create new tapes.
+ AutomaticTapeCreationRules []*AutomaticTapeCreationRule `min:"1" type:"list"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ GatewayARN *string `min:"50" type:"string"`
+}
+
+// String returns the string representation
+func (s AutomaticTapeCreationPolicyInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AutomaticTapeCreationPolicyInfo) GoString() string {
+ return s.String()
+}
+
+// SetAutomaticTapeCreationRules sets the AutomaticTapeCreationRules field's value.
+func (s *AutomaticTapeCreationPolicyInfo) SetAutomaticTapeCreationRules(v []*AutomaticTapeCreationRule) *AutomaticTapeCreationPolicyInfo {
+ s.AutomaticTapeCreationRules = v
+ return s
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *AutomaticTapeCreationPolicyInfo) SetGatewayARN(v string) *AutomaticTapeCreationPolicyInfo {
+ s.GatewayARN = &v
+ return s
+}
+
+// An automatic tape creation policy consists of automatic tape creation rules
+// where each rule defines when and how to create new tapes.
+type AutomaticTapeCreationRule struct {
+ _ struct{} `type:"structure"`
+
+ // The minimum number of available virtual tapes that the gateway maintains
+ // at all times. If the number of tapes on the gateway goes below this value,
+ // the gateway creates as many new tapes as are needed to have MinimumNumTapes
+ // on the gateway.
+ //
+ // MinimumNumTapes is a required field
+ MinimumNumTapes *int64 `min:"1" type:"integer" required:"true"`
+
+ // The ID of the pool that you want to add your tape to for archiving. The tape
+ // in this pool is archived in the Amazon S3 storage class that is associated
+ // with the pool. When you use your backup application to eject the tape, the
+ // tape is archived directly into the storage class (S3 Glacier or S3 Glacier
+ // Deep Archive) that corresponds to the pool.
+ //
+ // Valid values: "GLACIER", "DEEP_ARCHIVE"
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+
+ // A prefix that you append to the barcode of the virtual tape that you are
+ // creating. This prefix makes the barcode unique.
+ //
+ // The prefix must be 1-4 characters in length and must be one of the uppercase
+ // letters from A to Z.
+ //
+ // TapeBarcodePrefix is a required field
+ TapeBarcodePrefix *string `min:"1" type:"string" required:"true"`
+
+ // The size, in bytes, of the virtual tape capacity.
+ //
+ // TapeSizeInBytes is a required field
+ TapeSizeInBytes *int64 `type:"long" required:"true"`
+}
+
+// String returns the string representation
+func (s AutomaticTapeCreationRule) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AutomaticTapeCreationRule) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AutomaticTapeCreationRule) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AutomaticTapeCreationRule"}
+ if s.MinimumNumTapes == nil {
+ invalidParams.Add(request.NewErrParamRequired("MinimumNumTapes"))
+ }
+ if s.MinimumNumTapes != nil && *s.MinimumNumTapes < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MinimumNumTapes", 1))
+ }
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+ if s.TapeBarcodePrefix == nil {
+ invalidParams.Add(request.NewErrParamRequired("TapeBarcodePrefix"))
+ }
+ if s.TapeBarcodePrefix != nil && len(*s.TapeBarcodePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TapeBarcodePrefix", 1))
+ }
+ if s.TapeSizeInBytes == nil {
+ invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMinimumNumTapes sets the MinimumNumTapes field's value.
+func (s *AutomaticTapeCreationRule) SetMinimumNumTapes(v int64) *AutomaticTapeCreationRule {
+ s.MinimumNumTapes = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *AutomaticTapeCreationRule) SetPoolId(v string) *AutomaticTapeCreationRule {
+ s.PoolId = &v
+ return s
+}
+
+// SetTapeBarcodePrefix sets the TapeBarcodePrefix field's value.
+func (s *AutomaticTapeCreationRule) SetTapeBarcodePrefix(v string) *AutomaticTapeCreationRule {
+ s.TapeBarcodePrefix = &v
+ return s
+}
+
+// SetTapeSizeInBytes sets the TapeSizeInBytes field's value.
+func (s *AutomaticTapeCreationRule) SetTapeSizeInBytes(v int64) *AutomaticTapeCreationRule {
+ s.TapeSizeInBytes = &v
+ return s
+}
+
// Describes an iSCSI cached volume.
type CachediSCSIVolume struct {
_ struct{} `type:"structure"`
@@ -8190,8 +8596,8 @@ type CachediSCSIVolume struct {
// don’t have this time stamp.
CreatedDate *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// If the cached volume was created from a snapshot, this field contains the
@@ -8580,12 +8986,12 @@ type CreateCachediSCSIVolumeInput struct {
// GatewayARN is a required field
GatewayARN *string `min:"50" type:"string" required:"true"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The network interface of the gateway on which to expose the iSCSI target.
@@ -8819,11 +9225,11 @@ type CreateNFSFileShareInput struct {
// and otherwise to false. The default value is true.
GuessMIMETypeEnabled *bool `type:"boolean"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) AWS KMS key used for Amazon S3 server side
+ // The Amazon Resource Name (ARN) AWS KMS key used for Amazon S3 server-side
// encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
@@ -9075,6 +9481,9 @@ type CreateSMBFileShareInput struct {
// they like on the file share, regardless of file permissions.
AdminUserList []*string `type:"list"`
+ // The Amazon Resource Name (ARN) of the storage used for the audit logs.
+ AuditDestinationARN *string `type:"string"`
+
// The authentication method that users use to access the file share.
//
// Valid values are ActiveDirectory or GuestAccess. The default is ActiveDirectory.
@@ -9091,8 +9500,7 @@ type CreateSMBFileShareInput struct {
// If this field is not populated, the default value S3_STANDARD is used. Optional.
DefaultStorageClass *string `min:"5" type:"string"`
- // The Amazon Resource Name (ARN) of the file gateway on which you want to create
- // a file share.
+ // The ARN of the file gateway on which you want to create a file share.
//
// GatewayARN is a required field
GatewayARN *string `min:"50" type:"string" required:"true"`
@@ -9104,15 +9512,15 @@ type CreateSMBFileShareInput struct {
// A list of users or groups in the Active Directory that are not allowed to
// access the file share. A group must be prefixed with the @ character. For
- // example @group1. Can only be set if Authentication is set to ActiveDirectory.
+ // example, @group1. Can only be set if Authentication is set to ActiveDirectory.
InvalidUserList []*string `type:"list"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ARN of the backed storage used for storing file data.
@@ -9236,6 +9644,12 @@ func (s *CreateSMBFileShareInput) SetAdminUserList(v []*string) *CreateSMBFileSh
return s
}
+// SetAuditDestinationARN sets the AuditDestinationARN field's value.
+func (s *CreateSMBFileShareInput) SetAuditDestinationARN(v string) *CreateSMBFileShareInput {
+ s.AuditDestinationARN = &v
+ return s
+}
+
// SetAuthentication sets the Authentication field's value.
func (s *CreateSMBFileShareInput) SetAuthentication(v string) *CreateSMBFileShareInput {
s.Authentication = &v
@@ -9637,11 +10051,11 @@ type CreateStorediSCSIVolumeInput struct {
// GatewayARN is a required field
GatewayARN *string `min:"50" type:"string" required:"true"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side
+ // The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server-side
// encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
@@ -9855,19 +10269,19 @@ type CreateTapeWithBarcodeInput struct {
// GatewayARN is a required field
GatewayARN *string `min:"50" type:"string" required:"true"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS Key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ID of the pool that you want to add your tape to for archiving. The tape
// in this pool is archived in the S3 storage class that is associated with
// the pool. When you use your backup application to eject the tape, the tape
- // is archived directly into the storage class (Glacier or Deep Archive) that
- // corresponds to the pool.
+ // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep
+ // Archive) that corresponds to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
PoolId *string `min:"1" type:"string"`
@@ -9891,7 +10305,7 @@ type CreateTapeWithBarcodeInput struct {
// The size, in bytes, of the virtual tape that you want to create.
//
- // The size must be aligned by gigabyte (1024*1024*1024 byte).
+ // The size must be aligned by gigabyte (1024*1024*1024 bytes).
//
// TapeSizeInBytes is a required field
TapeSizeInBytes *int64 `type:"long" required:"true"`
@@ -10034,12 +10448,12 @@ type CreateTapesInput struct {
// GatewayARN is a required field
GatewayARN *string `min:"50" type:"string" required:"true"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The number of virtual tapes that you want to create.
@@ -10050,8 +10464,8 @@ type CreateTapesInput struct {
// The ID of the pool that you want to add your tape to for archiving. The tape
// in this pool is archived in the S3 storage class that is associated with
// the pool. When you use your backup application to eject the tape, the tape
- // is archived directly into the storage class (Glacier or Deep Archive) that
- // corresponds to the pool.
+ // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep
+ // Archive) that corresponds to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
PoolId *string `min:"1" type:"string"`
@@ -10076,7 +10490,7 @@ type CreateTapesInput struct {
// The size, in bytes, of the virtual tapes that you want to create.
//
- // The size must be aligned by gigabyte (1024*1024*1024 byte).
+ // The size must be aligned by gigabyte (1024*1024*1024 bytes).
//
// TapeSizeInBytes is a required field
TapeSizeInBytes *int64 `type:"long" required:"true"`
@@ -10224,6 +10638,72 @@ func (s *CreateTapesOutput) SetTapeARNs(v []*string) *CreateTapesOutput {
return s
}
+type DeleteAutomaticTapeCreationPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ //
+ // GatewayARN is a required field
+ GatewayARN *string `min:"50" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteAutomaticTapeCreationPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAutomaticTapeCreationPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteAutomaticTapeCreationPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAutomaticTapeCreationPolicyInput"}
+ if s.GatewayARN == nil {
+ invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
+ }
+ if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
+ invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *DeleteAutomaticTapeCreationPolicyInput) SetGatewayARN(v string) *DeleteAutomaticTapeCreationPolicyInput {
+ s.GatewayARN = &v
+ return s
+}
+
+type DeleteAutomaticTapeCreationPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ GatewayARN *string `min:"50" type:"string"`
+}
+
+// String returns the string representation
+func (s DeleteAutomaticTapeCreationPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAutomaticTapeCreationPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *DeleteAutomaticTapeCreationPolicyOutput) SetGatewayARN(v string) *DeleteAutomaticTapeCreationPolicyOutput {
+ s.GatewayARN = &v
+ return s
+}
+
// A JSON object containing the following fields:
//
// * DeleteBandwidthRateLimitInput$BandwidthType
@@ -10289,8 +10769,8 @@ func (s *DeleteBandwidthRateLimitInput) SetGatewayARN(v string) *DeleteBandwidth
return s
}
-// A JSON object containing the of the gateway whose bandwidth rate information
-// was deleted.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway whose
+// bandwidth rate information was deleted.
type DeleteBandwidthRateLimitOutput struct {
_ struct{} `type:"structure"`
@@ -10818,7 +11298,8 @@ func (s *DeleteVolumeInput) SetVolumeARN(v string) *DeleteVolumeInput {
return s
}
-// A JSON object containing the of the storage volume that was deleted
+// A JSON object containing the Amazon Resource Name (ARN) of the storage volume
+// that was deleted
type DeleteVolumeOutput struct {
_ struct{} `type:"structure"`
@@ -10929,7 +11410,7 @@ func (s *DescribeAvailabilityMonitorTestOutput) SetStatus(v string) *DescribeAva
return s
}
-// A JSON object containing the of the gateway.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway.
type DescribeBandwidthRateLimitInput struct {
_ struct{} `type:"structure"`
@@ -11062,7 +11543,7 @@ func (s *DescribeCacheInput) SetGatewayARN(v string) *DescribeCacheInput {
type DescribeCacheOutput struct {
_ struct{} `type:"structure"`
- // The amount of cache in bytes allocated to the a gateway.
+ // The amount of cache in bytes allocated to a gateway.
CacheAllocatedInBytes *int64 `type:"long"`
// The file share's contribution to the overall percentage of the gateway's
@@ -11084,7 +11565,7 @@ type DescribeCacheOutput struct {
CacheUsedPercentage *float64 `type:"double"`
// An array of strings that identify disks that are to be configured as working
- // storage. Each string have a minimum length of 1 and maximum length of 300.
+ // storage. Each string has a minimum length of 1 and maximum length of 300.
// You can get the disk IDs from the ListLocalDisks API.
DiskIds []*string `type:"list"`
@@ -11149,8 +11630,8 @@ type DescribeCachediSCSIVolumesInput struct {
_ struct{} `type:"structure"`
// An array of strings where each string represents the Amazon Resource Name
- // (ARN) of a cached volume. All of the specified cached volumes must from the
- // same gateway. Use ListVolumes to get volume ARNs for a gateway.
+ // (ARN) of a cached volume. All of the specified cached volumes must be from
+ // the same gateway. Use ListVolumes to get volume ARNs for a gateway.
//
// VolumeARNs is a required field
VolumeARNs []*string `type:"list" required:"true"`
@@ -11497,7 +11978,7 @@ func (s *DescribeGatewayInformationOutput) SetVPCEndpoint(v string) *DescribeGat
return s
}
-// A JSON object containing the of the gateway.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway.
type DescribeMaintenanceStartTimeInput struct {
_ struct{} `type:"structure"`
@@ -12021,8 +12502,8 @@ type DescribeStorediSCSIVolumesInput struct {
_ struct{} `type:"structure"`
// An array of strings where each string represents the Amazon Resource Name
- // (ARN) of a stored volume. All of the specified stored volumes must from the
- // same gateway. Use ListVolumes to get volume ARNs for a gateway.
+ // (ARN) of a stored volume. All of the specified stored volumes must be from
+ // the same gateway. Use ListVolumes to get volume ARNs for a gateway.
//
// VolumeARNs is a required field
VolumeARNs []*string `type:"list" required:"true"`
@@ -12130,7 +12611,7 @@ func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCS
type DescribeTapeArchivesInput struct {
_ struct{} `type:"structure"`
- // Specifies that the number of virtual tapes descried be limited to the specified
+ // Specifies that the number of virtual tapes described be limited to the specified
// number.
Limit *int64 `min:"1" type:"integer"`
@@ -12659,7 +13140,7 @@ type DescribeVTLDevicesOutput struct {
// to describe, this field does not appear in the response.
Marker *string `min:"1" type:"string"`
- // An array of VTL device objects composed of the Amazon Resource Name(ARN)
+ // An array of VTL device objects composed of the Amazon Resource Name (ARN)
// of the VTL devices.
VTLDevices []*VTLDevice `type:"list"`
}
@@ -12692,7 +13173,7 @@ func (s *DescribeVTLDevicesOutput) SetVTLDevices(v []*VTLDevice) *DescribeVTLDev
return s
}
-// A JSON object containing the of the gateway.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway.
type DescribeWorkingStorageInput struct {
_ struct{} `type:"structure"`
@@ -13079,9 +13560,9 @@ func (s *Disk) SetDiskStatus(v string) *Disk {
return s
}
-// Provides additional information about an error that was returned by the service
-// as an or. See the errorCode and errorDetails members for more information
-// about the error.
+// Provides additional information about an error that was returned by the service.
+// See the errorCode and errorDetails members for more information about the
+// error.
type Error struct {
_ struct{} `type:"structure"`
@@ -13262,8 +13743,8 @@ func (s *GatewayInfo) SetGatewayType(v string) *GatewayInfo {
// An internal server error has occurred during the request. For more information,
// see the error and message fields.
type InternalServerError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A StorageGatewayError that provides more information about the cause of the
// error.
@@ -13285,17 +13766,17 @@ func (s InternalServerError) GoString() string {
func newErrorInternalServerError(v protocol.ResponseMetadata) error {
return &InternalServerError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerError) Code() string {
+func (s *InternalServerError) Code() string {
return "InternalServerError"
}
// Message returns the exception's message.
-func (s InternalServerError) Message() string {
+func (s *InternalServerError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13303,29 +13784,29 @@ func (s InternalServerError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerError) OrigErr() error {
+func (s *InternalServerError) OrigErr() error {
return nil
}
-func (s InternalServerError) Error() string {
+func (s *InternalServerError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An exception occurred because an invalid gateway request was issued to the
// service. For more information, see the error and message fields.
type InvalidGatewayRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A StorageGatewayError that provides more detail about the cause of the error.
Error_ *Error `locationName:"error" type:"structure"`
@@ -13346,17 +13827,17 @@ func (s InvalidGatewayRequestException) GoString() string {
func newErrorInvalidGatewayRequestException(v protocol.ResponseMetadata) error {
return &InvalidGatewayRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidGatewayRequestException) Code() string {
+func (s *InvalidGatewayRequestException) Code() string {
return "InvalidGatewayRequestException"
}
// Message returns the exception's message.
-func (s InvalidGatewayRequestException) Message() string {
+func (s *InvalidGatewayRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -13364,22 +13845,22 @@ func (s InvalidGatewayRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidGatewayRequestException) OrigErr() error {
+func (s *InvalidGatewayRequestException) OrigErr() error {
return nil
}
-func (s InvalidGatewayRequestException) Error() string {
+func (s *InvalidGatewayRequestException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidGatewayRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidGatewayRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidGatewayRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidGatewayRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// JoinDomainInput
@@ -13566,11 +14047,73 @@ func (s *JoinDomainOutput) SetGatewayARN(v string) *JoinDomainOutput {
return s
}
+type ListAutomaticTapeCreationPoliciesInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ GatewayARN *string `min:"50" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAutomaticTapeCreationPoliciesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAutomaticTapeCreationPoliciesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAutomaticTapeCreationPoliciesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAutomaticTapeCreationPoliciesInput"}
+ if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
+ invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *ListAutomaticTapeCreationPoliciesInput) SetGatewayARN(v string) *ListAutomaticTapeCreationPoliciesInput {
+ s.GatewayARN = &v
+ return s
+}
+
+type ListAutomaticTapeCreationPoliciesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Gets a listing of information about the gateway's automatic tape creation
+ // policies, including the automatic tape creation rules and the gateway that
+ // is using the policies.
+ AutomaticTapeCreationPolicyInfos []*AutomaticTapeCreationPolicyInfo `type:"list"`
+}
+
+// String returns the string representation
+func (s ListAutomaticTapeCreationPoliciesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAutomaticTapeCreationPoliciesOutput) GoString() string {
+ return s.String()
+}
+
+// SetAutomaticTapeCreationPolicyInfos sets the AutomaticTapeCreationPolicyInfos field's value.
+func (s *ListAutomaticTapeCreationPoliciesOutput) SetAutomaticTapeCreationPolicyInfos(v []*AutomaticTapeCreationPolicyInfo) *ListAutomaticTapeCreationPoliciesOutput {
+ s.AutomaticTapeCreationPolicyInfos = v
+ return s
+}
+
// ListFileShareInput
type ListFileSharesInput struct {
_ struct{} `type:"structure"`
- // The Amazon resource Name (ARN) of the gateway whose file shares you want
+ // The Amazon Resource Name (ARN) of the gateway whose file shares you want
// to list. If this field is not present, all file shares under your account
// are listed.
GatewayARN *string `min:"50" type:"string"`
@@ -13765,7 +14308,7 @@ func (s *ListGatewaysOutput) SetMarker(v string) *ListGatewaysOutput {
return s
}
-// A JSON object containing the of the gateway.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway.
type ListLocalDisksInput struct {
_ struct{} `type:"structure"`
@@ -14037,9 +14580,9 @@ type ListTapesOutput struct {
// in the response body.
Marker *string `min:"1" type:"string"`
- // An array of TapeInfo objects, where each object describes an a single tape.
- // If there not tapes in the tape library or VTS, then the TapeInfos is an empty
- // array.
+ // An array of TapeInfo objects, where each object describes a single tape.
+ // If there are no tapes in the tape library or VTS, then the TapeInfos is an
+ // empty array.
TapeInfos []*TapeInfo `type:"list"`
}
@@ -14439,12 +14982,12 @@ type NFSFileShareInfo struct {
// and otherwise to false. The default value is true.
GuessMIMETypeEnabled *bool `type:"boolean"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ARN of the backend storage used for storing file data.
@@ -14852,7 +15395,7 @@ type RemoveTagsFromResourceInput struct {
ResourceARN *string `min:"50" type:"string" required:"true"`
// The keys of the tags you want to remove from the specified resource. A tag
- // is composed of a key/value pair.
+ // is composed of a key-value pair.
//
// TagKeys is a required field
TagKeys []*string `type:"list" required:"true"`
@@ -15176,6 +15719,9 @@ type SMBFileShareInfo struct {
// For example @group1. Can only be set if Authentication is set to ActiveDirectory.
AdminUserList []*string `type:"list"`
+ // The Amazon Resource Name (ARN) of the storage used for the audit logs.
+ AuditDestinationARN *string `type:"string"`
+
// The authentication method of the file share.
//
// Valid values are ActiveDirectory or GuestAccess. The default is ActiveDirectory.
@@ -15214,8 +15760,8 @@ type SMBFileShareInfo struct {
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ARN of the backend storage used for storing file data.
@@ -15281,6 +15827,12 @@ func (s *SMBFileShareInfo) SetAdminUserList(v []*string) *SMBFileShareInfo {
return s
}
+// SetAuditDestinationARN sets the AuditDestinationARN field's value.
+func (s *SMBFileShareInfo) SetAuditDestinationARN(v string) *SMBFileShareInfo {
+ s.AuditDestinationARN = &v
+ return s
+}
+
// SetAuthentication sets the Authentication field's value.
func (s *SMBFileShareInfo) SetAuthentication(v string) *SMBFileShareInfo {
s.Authentication = &v
@@ -15398,8 +15950,8 @@ func (s *SMBFileShareInfo) SetValidUserList(v []*string) *SMBFileShareInfo {
// An internal server error has occurred because the service is unavailable.
// For more information, see the error and message fields.
type ServiceUnavailableError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A StorageGatewayError that provides more information about the cause of the
// error.
@@ -15421,17 +15973,17 @@ func (s ServiceUnavailableError) GoString() string {
func newErrorServiceUnavailableError(v protocol.ResponseMetadata) error {
return &ServiceUnavailableError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableError) Code() string {
+func (s *ServiceUnavailableError) Code() string {
return "ServiceUnavailableError"
}
// Message returns the exception's message.
-func (s ServiceUnavailableError) Message() string {
+func (s *ServiceUnavailableError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15439,22 +15991,22 @@ func (s ServiceUnavailableError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableError) OrigErr() error {
+func (s *ServiceUnavailableError) OrigErr() error {
return nil
}
-func (s ServiceUnavailableError) Error() string {
+func (s *ServiceUnavailableError) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// SetLocalConsolePasswordInput
@@ -15625,7 +16177,8 @@ func (s *SetSMBGuestPasswordOutput) SetGatewayARN(v string) *SetSMBGuestPassword
return s
}
-// A JSON object containing the of the gateway to shut down.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway to
+// shut down.
type ShutdownGatewayInput struct {
_ struct{} `type:"structure"`
@@ -15668,7 +16221,8 @@ func (s *ShutdownGatewayInput) SetGatewayARN(v string) *ShutdownGatewayInput {
return s
}
-// A JSON object containing the of the gateway that was shut down.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway that
+// was shut down.
type ShutdownGatewayOutput struct {
_ struct{} `type:"structure"`
@@ -15759,7 +16313,8 @@ func (s *StartAvailabilityMonitorTestOutput) SetGatewayARN(v string) *StartAvail
return s
}
-// A JSON object containing the of the gateway to start.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway to
+// start.
type StartGatewayInput struct {
_ struct{} `type:"structure"`
@@ -15802,7 +16357,8 @@ func (s *StartGatewayInput) SetGatewayARN(v string) *StartGatewayInput {
return s
}
-// A JSON object containing the of the gateway that was restarted.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway that
+// was restarted.
type StartGatewayOutput struct {
_ struct{} `type:"structure"`
@@ -15835,8 +16391,8 @@ type StorediSCSIVolume struct {
// don’t have this time stamp.
CreatedDate *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// Indicates if when the stored volume was created, existing data on the underlying
@@ -16065,15 +16621,15 @@ func (s *Tag) SetValue(v string) *Tag {
type Tape struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ID of the pool that contains tapes that will be archived. The tapes in
// this pool are archived in the S3 storage class that is associated with the
// pool. When you use your backup application to eject the tape, the tape is
- // archived directly into the storage class (Glacier or Deep Archive) that corresponds
- // to the pool.
+ // archived directly into the storage class (S3 Glacier or S# Glacier Deep Archive)
+ // that corresponds to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
PoolId *string `min:"1" type:"string"`
@@ -16189,8 +16745,8 @@ type TapeArchive struct {
// format.
CompletionTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The ID of the pool that was used to archive the tape. The tapes in this pool
@@ -16307,8 +16863,8 @@ type TapeInfo struct {
// The ID of the pool that you want to add your tape to for archiving. The tape
// in this pool is archived in the S3 storage class that is associated with
// the pool. When you use your backup application to eject the tape, the tape
- // is archived directly into the storage class (Glacier or Deep Archive) that
- // corresponds to the pool.
+ // is archived directly into the storage class (S3 Glacier or S3 Glacier Deep
+ // Archive) that corresponds to the pool.
//
// Valid values: "GLACIER", "DEEP_ARCHIVE"
PoolId *string `min:"1" type:"string"`
@@ -16427,6 +16983,100 @@ func (s *TapeRecoveryPointInfo) SetTapeStatus(v string) *TapeRecoveryPointInfo {
return s
}
+type UpdateAutomaticTapeCreationPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // An automatic tape creation policy consists of a list of automatic tape creation
+ // rules. The rules determine when and how to automatically create new tapes.
+ //
+ // AutomaticTapeCreationRules is a required field
+ AutomaticTapeCreationRules []*AutomaticTapeCreationRule `min:"1" type:"list" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ //
+ // GatewayARN is a required field
+ GatewayARN *string `min:"50" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpdateAutomaticTapeCreationPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateAutomaticTapeCreationPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateAutomaticTapeCreationPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateAutomaticTapeCreationPolicyInput"}
+ if s.AutomaticTapeCreationRules == nil {
+ invalidParams.Add(request.NewErrParamRequired("AutomaticTapeCreationRules"))
+ }
+ if s.AutomaticTapeCreationRules != nil && len(s.AutomaticTapeCreationRules) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AutomaticTapeCreationRules", 1))
+ }
+ if s.GatewayARN == nil {
+ invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
+ }
+ if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
+ invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
+ }
+ if s.AutomaticTapeCreationRules != nil {
+ for i, v := range s.AutomaticTapeCreationRules {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AutomaticTapeCreationRules", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAutomaticTapeCreationRules sets the AutomaticTapeCreationRules field's value.
+func (s *UpdateAutomaticTapeCreationPolicyInput) SetAutomaticTapeCreationRules(v []*AutomaticTapeCreationRule) *UpdateAutomaticTapeCreationPolicyInput {
+ s.AutomaticTapeCreationRules = v
+ return s
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *UpdateAutomaticTapeCreationPolicyInput) SetGatewayARN(v string) *UpdateAutomaticTapeCreationPolicyInput {
+ s.GatewayARN = &v
+ return s
+}
+
+type UpdateAutomaticTapeCreationPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
+ // to return a list of gateways for your account and AWS Region.
+ GatewayARN *string `min:"50" type:"string"`
+}
+
+// String returns the string representation
+func (s UpdateAutomaticTapeCreationPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateAutomaticTapeCreationPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetGatewayARN sets the GatewayARN field's value.
+func (s *UpdateAutomaticTapeCreationPolicyOutput) SetGatewayARN(v string) *UpdateAutomaticTapeCreationPolicyOutput {
+ s.GatewayARN = &v
+ return s
+}
+
// A JSON object containing one or more of the following fields:
//
// * UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec
@@ -16498,8 +17148,8 @@ func (s *UpdateBandwidthRateLimitInput) SetGatewayARN(v string) *UpdateBandwidth
return s
}
-// A JSON object containing the of the gateway whose throttle information was
-// updated.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway whose
+// throttle information was updated.
type UpdateBandwidthRateLimitOutput struct {
_ struct{} `type:"structure"`
@@ -16776,7 +17426,8 @@ func (s *UpdateGatewayInformationOutput) SetGatewayName(v string) *UpdateGateway
return s
}
-// A JSON object containing the of the gateway to update.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway to
+// update.
type UpdateGatewaySoftwareNowInput struct {
_ struct{} `type:"structure"`
@@ -16819,7 +17470,8 @@ func (s *UpdateGatewaySoftwareNowInput) SetGatewayARN(v string) *UpdateGatewaySo
return s
}
-// A JSON object containing the of the gateway that was updated.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway that
+// was updated.
type UpdateGatewaySoftwareNowOutput struct {
_ struct{} `type:"structure"`
@@ -16953,8 +17605,8 @@ func (s *UpdateMaintenanceStartTimeInput) SetMinuteOfHour(v int64) *UpdateMainte
return s
}
-// A JSON object containing the of the gateway whose maintenance start time
-// is updated.
+// A JSON object containing the Amazon Resource Name (ARN) of the gateway whose
+// maintenance start time is updated.
type UpdateMaintenanceStartTimeOutput struct {
_ struct{} `type:"structure"`
@@ -17002,12 +17654,12 @@ type UpdateNFSFileShareInput struct {
// and otherwise to false. The default value is true.
GuessMIMETypeEnabled *bool `type:"boolean"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// The default values for the file share. Optional.
@@ -17183,6 +17835,9 @@ type UpdateSMBFileShareInput struct {
// @group1. Can only be set if Authentication is set to ActiveDirectory.
AdminUserList []*string `type:"list"`
+ // The Amazon Resource Name (ARN) of the storage used for the audit logs.
+ AuditDestinationARN *string `type:"string"`
+
// The default storage class for objects put into an Amazon S3 bucket by the
// file gateway. Possible values are S3_STANDARD, S3_STANDARD_IA, or S3_ONEZONE_IA.
// If this field is not populated, the default value S3_STANDARD is used. Optional.
@@ -17203,12 +17858,12 @@ type UpdateSMBFileShareInput struct {
// example @group1. Can only be set if Authentication is set to ActiveDirectory.
InvalidUserList []*string `type:"list"`
- // True to use Amazon S3 server side encryption with your own AWS KMS key, or
+ // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
// false to use a key managed by Amazon S3. Optional.
KMSEncrypted *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
- // side encryption. This value can only be set when KMSEncrypted is true. Optional.
+ // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server-side
+ // encryption. This value can only be set when KMSEncrypted is true. Optional.
KMSKey *string `min:"7" type:"string"`
// A value that sets the access control list permission for objects in the S3
@@ -17281,6 +17936,12 @@ func (s *UpdateSMBFileShareInput) SetAdminUserList(v []*string) *UpdateSMBFileSh
return s
}
+// SetAuditDestinationARN sets the AuditDestinationARN field's value.
+func (s *UpdateSMBFileShareInput) SetAuditDestinationARN(v string) *UpdateSMBFileShareInput {
+ s.AuditDestinationARN = &v
+ return s
+}
+
// SetDefaultStorageClass sets the DefaultStorageClass field's value.
func (s *UpdateSMBFileShareInput) SetDefaultStorageClass(v string) *UpdateSMBFileShareInput {
s.DefaultStorageClass = &v
@@ -17585,7 +18246,8 @@ func (s *UpdateSnapshotScheduleInput) SetVolumeARN(v string) *UpdateSnapshotSche
return s
}
-// A JSON object containing the of the updated storage volume.
+// A JSON object containing the Amazon Resource Name (ARN) of the updated storage
+// volume.
type UpdateSnapshotScheduleOutput struct {
_ struct{} `type:"structure"`
diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/doc.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/doc.go
index c3eb54cd5a6..61d492bc29b 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/doc.go
@@ -7,7 +7,7 @@
// appliance with cloud-based storage to provide seamless and secure integration
// between an organization's on-premises IT environment and the AWS storage
// infrastructure. The service enables you to securely upload data to the AWS
-// cloud for cost effective backup and rapid disaster recovery.
+// Cloud for cost effective backup and rapid disaster recovery.
//
// Use the following links to get started using the AWS Storage Gateway Service
// API Reference:
diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go
index b2e19132d7f..bd25e12c8fa 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go
@@ -7143,8 +7143,8 @@ func (s *DecisionTaskTimedOutEventAttributes) SetTimeoutType(v string) *Decision
// If these parameters aren't set and no default parameters were defined in
// the workflow type, this error is displayed.
type DefaultUndefinedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7161,17 +7161,17 @@ func (s DefaultUndefinedFault) GoString() string {
func newErrorDefaultUndefinedFault(v protocol.ResponseMetadata) error {
return &DefaultUndefinedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DefaultUndefinedFault) Code() string {
+func (s *DefaultUndefinedFault) Code() string {
return "DefaultUndefinedFault"
}
// Message returns the exception's message.
-func (s DefaultUndefinedFault) Message() string {
+func (s *DefaultUndefinedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7179,22 +7179,22 @@ func (s DefaultUndefinedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DefaultUndefinedFault) OrigErr() error {
+func (s *DefaultUndefinedFault) OrigErr() error {
return nil
}
-func (s DefaultUndefinedFault) Error() string {
+func (s *DefaultUndefinedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DefaultUndefinedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DefaultUndefinedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DefaultUndefinedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DefaultUndefinedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DeprecateActivityTypeInput struct {
@@ -7830,8 +7830,8 @@ func (s *DescribeWorkflowTypeOutput) SetTypeInfo(v *WorkflowTypeInfo) *DescribeW
// registering a domain that is either already registered or deprecated, or
// if you undeprecate a domain that is currently registered.
type DomainAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -7849,17 +7849,17 @@ func (s DomainAlreadyExistsFault) GoString() string {
func newErrorDomainAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &DomainAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DomainAlreadyExistsFault) Code() string {
+func (s *DomainAlreadyExistsFault) Code() string {
return "DomainAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s DomainAlreadyExistsFault) Message() string {
+func (s *DomainAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7867,22 +7867,22 @@ func (s DomainAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DomainAlreadyExistsFault) OrigErr() error {
+func (s *DomainAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s DomainAlreadyExistsFault) Error() string {
+func (s *DomainAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DomainAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DomainAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DomainAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DomainAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains the configuration settings of a domain.
@@ -7913,8 +7913,8 @@ func (s *DomainConfiguration) SetWorkflowExecutionRetentionPeriodInDays(v string
// Returned when the specified domain has been deprecated.
type DomainDeprecatedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -7932,17 +7932,17 @@ func (s DomainDeprecatedFault) GoString() string {
func newErrorDomainDeprecatedFault(v protocol.ResponseMetadata) error {
return &DomainDeprecatedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DomainDeprecatedFault) Code() string {
+func (s *DomainDeprecatedFault) Code() string {
return "DomainDeprecatedFault"
}
// Message returns the exception's message.
-func (s DomainDeprecatedFault) Message() string {
+func (s *DomainDeprecatedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7950,22 +7950,22 @@ func (s DomainDeprecatedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DomainDeprecatedFault) OrigErr() error {
+func (s *DomainDeprecatedFault) OrigErr() error {
return nil
}
-func (s DomainDeprecatedFault) Error() string {
+func (s *DomainDeprecatedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DomainDeprecatedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DomainDeprecatedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DomainDeprecatedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DomainDeprecatedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains general information about a domain.
@@ -9438,8 +9438,8 @@ func (s *LambdaFunctionTimedOutEventAttributes) SetTimeoutType(v string) *Lambda
// To address this fault you should either clean up unused resources or increase
// the limit by contacting AWS.
type LimitExceededFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -9457,17 +9457,17 @@ func (s LimitExceededFault) GoString() string {
func newErrorLimitExceededFault(v protocol.ResponseMetadata) error {
return &LimitExceededFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededFault) Code() string {
+func (s *LimitExceededFault) Code() string {
return "LimitExceededFault"
}
// Message returns the exception's message.
-func (s LimitExceededFault) Message() string {
+func (s *LimitExceededFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9475,22 +9475,22 @@ func (s LimitExceededFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededFault) OrigErr() error {
+func (s *LimitExceededFault) OrigErr() error {
return nil
}
-func (s LimitExceededFault) Error() string {
+func (s *LimitExceededFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListActivityTypesInput struct {
@@ -10352,8 +10352,8 @@ func (s *MarkerRecordedEventAttributes) SetMarkerName(v string) *MarkerRecordedE
// Returned when the caller doesn't have sufficient permissions to invoke the
// action.
type OperationNotPermittedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -10371,17 +10371,17 @@ func (s OperationNotPermittedFault) GoString() string {
func newErrorOperationNotPermittedFault(v protocol.ResponseMetadata) error {
return &OperationNotPermittedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotPermittedFault) Code() string {
+func (s *OperationNotPermittedFault) Code() string {
return "OperationNotPermittedFault"
}
// Message returns the exception's message.
-func (s OperationNotPermittedFault) Message() string {
+func (s *OperationNotPermittedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10389,22 +10389,22 @@ func (s OperationNotPermittedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotPermittedFault) OrigErr() error {
+func (s *OperationNotPermittedFault) OrigErr() error {
return nil
}
-func (s OperationNotPermittedFault) Error() string {
+func (s *OperationNotPermittedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotPermittedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotPermittedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotPermittedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotPermittedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Contains the count of tasks in a task list.
@@ -14603,8 +14603,8 @@ func (s *TimerStartedEventAttributes) SetTimerId(v string) *TimerStartedEventAtt
// You've exceeded the number of tags allowed for a domain.
type TooManyTagsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14621,17 +14621,17 @@ func (s TooManyTagsFault) GoString() string {
func newErrorTooManyTagsFault(v protocol.ResponseMetadata) error {
return &TooManyTagsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsFault) Code() string {
+func (s *TooManyTagsFault) Code() string {
return "TooManyTagsFault"
}
// Message returns the exception's message.
-func (s TooManyTagsFault) Message() string {
+func (s *TooManyTagsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14639,30 +14639,30 @@ func (s TooManyTagsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsFault) OrigErr() error {
+func (s *TooManyTagsFault) OrigErr() error {
return nil
}
-func (s TooManyTagsFault) Error() string {
+func (s *TooManyTagsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned if the type already exists in the specified domain. You may get
// this fault if you are registering a type that is either already registered
// or deprecated, or if you undeprecate a type that is currently registered.
type TypeAlreadyExistsFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -14680,17 +14680,17 @@ func (s TypeAlreadyExistsFault) GoString() string {
func newErrorTypeAlreadyExistsFault(v protocol.ResponseMetadata) error {
return &TypeAlreadyExistsFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TypeAlreadyExistsFault) Code() string {
+func (s *TypeAlreadyExistsFault) Code() string {
return "TypeAlreadyExistsFault"
}
// Message returns the exception's message.
-func (s TypeAlreadyExistsFault) Message() string {
+func (s *TypeAlreadyExistsFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14698,28 +14698,28 @@ func (s TypeAlreadyExistsFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TypeAlreadyExistsFault) OrigErr() error {
+func (s *TypeAlreadyExistsFault) OrigErr() error {
return nil
}
-func (s TypeAlreadyExistsFault) Error() string {
+func (s *TypeAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TypeAlreadyExistsFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TypeAlreadyExistsFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TypeAlreadyExistsFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TypeAlreadyExistsFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Returned when the specified activity or workflow type was already deprecated.
type TypeDeprecatedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -14737,17 +14737,17 @@ func (s TypeDeprecatedFault) GoString() string {
func newErrorTypeDeprecatedFault(v protocol.ResponseMetadata) error {
return &TypeDeprecatedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TypeDeprecatedFault) Code() string {
+func (s *TypeDeprecatedFault) Code() string {
return "TypeDeprecatedFault"
}
// Message returns the exception's message.
-func (s TypeDeprecatedFault) Message() string {
+func (s *TypeDeprecatedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14755,22 +14755,22 @@ func (s TypeDeprecatedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TypeDeprecatedFault) OrigErr() error {
+func (s *TypeDeprecatedFault) OrigErr() error {
return nil
}
-func (s TypeDeprecatedFault) Error() string {
+func (s *TypeDeprecatedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TypeDeprecatedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TypeDeprecatedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TypeDeprecatedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TypeDeprecatedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UndeprecateActivityTypeInput struct {
@@ -14980,8 +14980,8 @@ func (s UndeprecateWorkflowTypeOutput) GoString() string {
// operation (region or domain). This could happen if the named resource was
// never created or is no longer available for this operation.
type UnknownResourceFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -14999,17 +14999,17 @@ func (s UnknownResourceFault) GoString() string {
func newErrorUnknownResourceFault(v protocol.ResponseMetadata) error {
return &UnknownResourceFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnknownResourceFault) Code() string {
+func (s *UnknownResourceFault) Code() string {
return "UnknownResourceFault"
}
// Message returns the exception's message.
-func (s UnknownResourceFault) Message() string {
+func (s *UnknownResourceFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15017,22 +15017,22 @@ func (s UnknownResourceFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnknownResourceFault) OrigErr() error {
+func (s *UnknownResourceFault) OrigErr() error {
return nil
}
-func (s UnknownResourceFault) Error() string {
+func (s *UnknownResourceFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnknownResourceFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnknownResourceFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnknownResourceFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnknownResourceFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
@@ -15166,8 +15166,8 @@ func (s *WorkflowExecution) SetWorkflowId(v string) *WorkflowExecution {
// Returned by StartWorkflowExecution when an open execution with the same workflowId
// is already running in the specified domain.
type WorkflowExecutionAlreadyStartedFault struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A description that may help with diagnosing the cause of the fault.
Message_ *string `locationName:"message" type:"string"`
@@ -15185,17 +15185,17 @@ func (s WorkflowExecutionAlreadyStartedFault) GoString() string {
func newErrorWorkflowExecutionAlreadyStartedFault(v protocol.ResponseMetadata) error {
return &WorkflowExecutionAlreadyStartedFault{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WorkflowExecutionAlreadyStartedFault) Code() string {
+func (s *WorkflowExecutionAlreadyStartedFault) Code() string {
return "WorkflowExecutionAlreadyStartedFault"
}
// Message returns the exception's message.
-func (s WorkflowExecutionAlreadyStartedFault) Message() string {
+func (s *WorkflowExecutionAlreadyStartedFault) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -15203,22 +15203,22 @@ func (s WorkflowExecutionAlreadyStartedFault) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WorkflowExecutionAlreadyStartedFault) OrigErr() error {
+func (s *WorkflowExecutionAlreadyStartedFault) OrigErr() error {
return nil
}
-func (s WorkflowExecutionAlreadyStartedFault) Error() string {
+func (s *WorkflowExecutionAlreadyStartedFault) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WorkflowExecutionAlreadyStartedFault) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WorkflowExecutionAlreadyStartedFault) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WorkflowExecutionAlreadyStartedFault) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WorkflowExecutionAlreadyStartedFault) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides the details of the WorkflowExecutionCancelRequested event.
diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go
index eba6b2235f5..2bb9c8f3628 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go
@@ -55,26 +55,29 @@ func (c *Transfer) CreateServerRequest(input *CreateServerInput) (req *request.R
return
}
-// CreateServer API operation for AWS Transfer for SFTP.
+// CreateServer API operation for AWS Transfer Family.
//
-// Instantiates an autoscaling virtual server based on Secure File Transfer
-// Protocol (SFTP) in AWS. When you make updates to your server or when you
-// work with users, use the service-generated ServerId property that is assigned
-// to the newly created server.
+// Instantiates an autoscaling virtual server based on the selected file transfer
+// protocol in AWS. When you make updates to your file transfer protocol-enabled
+// server or when you work with users, use the service-generated ServerId property
+// that is assigned to the newly created server.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation CreateServer for usage and error information.
//
// Returned Error Types:
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -83,6 +86,11 @@ func (c *Transfer) CreateServerRequest(input *CreateServerInput) (req *request.R
// * ResourceExistsException
// The requested resource does not exist.
//
+// * ThrottlingException
+// The request was denied due to request throttling.
+//
+// HTTP Status Code: 400
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateServer
func (c *Transfer) CreateServer(input *CreateServerInput) (*CreateServerOutput, error) {
req, out := c.CreateServerRequest(input)
@@ -147,29 +155,29 @@ func (c *Transfer) CreateUserRequest(input *CreateUserInput) (req *request.Reque
return
}
-// CreateUser API operation for AWS Transfer for SFTP.
+// CreateUser API operation for AWS Transfer Family.
//
-// Creates a user and associates them with an existing Secure File Transfer
-// Protocol (SFTP) server. You can only create and associate users with SFTP
-// servers that have the IdentityProviderType set to SERVICE_MANAGED. Using
-// parameters for CreateUser, you can specify the user name, set the home directory,
-// store the user's public key, and assign the user's AWS Identity and Access
-// Management (IAM) role. You can also optionally add a scope-down policy, and
-// assign metadata with tags that can be used to group and search for users.
+// Creates a user and associates them with an existing file transfer protocol-enabled
+// server. You can only create and associate users with servers that have the
+// IdentityProviderType set to SERVICE_MANAGED. Using parameters for CreateUser,
+// you can specify the user name, set the home directory, store the user's public
+// key, and assign the user's AWS Identity and Access Management (IAM) role.
+// You can also optionally add a scope-down policy, and assign metadata with
+// tags that can be used to group and search for users.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation CreateUser for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -180,7 +188,7 @@ func (c *Transfer) CreateUserRequest(input *CreateUserInput) (req *request.Reque
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateUser
func (c *Transfer) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) {
@@ -247,9 +255,9 @@ func (c *Transfer) DeleteServerRequest(input *DeleteServerInput) (req *request.R
return
}
-// DeleteServer API operation for AWS Transfer for SFTP.
+// DeleteServer API operation for AWS Transfer Family.
//
-// Deletes the Secure File Transfer Protocol (SFTP) server that you specify.
+// Deletes the file transfer protocol-enabled server that you specify.
//
// No response returns from this operation.
//
@@ -257,15 +265,18 @@ func (c *Transfer) DeleteServerRequest(input *DeleteServerInput) (req *request.R
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation DeleteServer for usage and error information.
//
// Returned Error Types:
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -273,7 +284,7 @@ func (c *Transfer) DeleteServerRequest(input *DeleteServerInput) (req *request.R
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteServer
func (c *Transfer) DeleteServer(input *DeleteServerInput) (*DeleteServerOutput, error) {
@@ -340,7 +351,7 @@ func (c *Transfer) DeleteSshPublicKeyRequest(input *DeleteSshPublicKeyInput) (re
return
}
-// DeleteSshPublicKey API operation for AWS Transfer for SFTP.
+// DeleteSshPublicKey API operation for AWS Transfer Family.
//
// Deletes a user's Secure Shell (SSH) public key.
//
@@ -350,15 +361,15 @@ func (c *Transfer) DeleteSshPublicKeyRequest(input *DeleteSshPublicKeyInput) (re
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation DeleteSshPublicKey for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -366,7 +377,7 @@ func (c *Transfer) DeleteSshPublicKeyRequest(input *DeleteSshPublicKeyInput) (re
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -438,9 +449,10 @@ func (c *Transfer) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque
return
}
-// DeleteUser API operation for AWS Transfer for SFTP.
+// DeleteUser API operation for AWS Transfer Family.
//
-// Deletes the user belonging to the server you specify.
+// Deletes the user belonging to a file transfer protocol-enabled server you
+// specify.
//
// No response returns from this operation.
//
@@ -450,15 +462,15 @@ func (c *Transfer) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation DeleteUser for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -466,7 +478,7 @@ func (c *Transfer) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteUser
func (c *Transfer) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
@@ -532,26 +544,27 @@ func (c *Transfer) DescribeServerRequest(input *DescribeServerInput) (req *reque
return
}
-// DescribeServer API operation for AWS Transfer for SFTP.
+// DescribeServer API operation for AWS Transfer Family.
//
-// Describes the server that you specify by passing the ServerId parameter.
+// Describes a file transfer protocol-enabled server that you specify by passing
+// the ServerId parameter.
//
-// The response contains a description of the server's properties. When you
-// set EndpointType to VPC, the response will contain the EndpointDetails.
+// The response contains a description of a server's properties. When you set
+// EndpointType to VPC, the response will contain the EndpointDetails.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation DescribeServer for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -559,7 +572,7 @@ func (c *Transfer) DescribeServerRequest(input *DescribeServerInput) (req *reque
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeServer
func (c *Transfer) DescribeServer(input *DescribeServerInput) (*DescribeServerOutput, error) {
@@ -625,10 +638,10 @@ func (c *Transfer) DescribeUserRequest(input *DescribeUserInput) (req *request.R
return
}
-// DescribeUser API operation for AWS Transfer for SFTP.
+// DescribeUser API operation for AWS Transfer Family.
//
-// Describes the user assigned to a specific server, as identified by its ServerId
-// property.
+// Describes the user assigned to the specific file transfer protocol-enabled
+// server, as identified by its ServerId property.
//
// The response from this call returns the properties of the user associated
// with the ServerId value that was specified.
@@ -637,15 +650,15 @@ func (c *Transfer) DescribeUserRequest(input *DescribeUserInput) (req *request.R
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation DescribeUser for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -653,7 +666,7 @@ func (c *Transfer) DescribeUserRequest(input *DescribeUserInput) (req *request.R
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeUser
func (c *Transfer) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) {
@@ -719,10 +732,11 @@ func (c *Transfer) ImportSshPublicKeyRequest(input *ImportSshPublicKeyInput) (re
return
}
-// ImportSshPublicKey API operation for AWS Transfer for SFTP.
+// ImportSshPublicKey API operation for AWS Transfer Family.
//
// Adds a Secure Shell (SSH) public key to a user account identified by a UserName
-// value assigned to a specific server, identified by ServerId.
+// value assigned to the specific file transfer protocol-enabled server, identified
+// by ServerId.
//
// The response returns the UserName value, the ServerId value, and the name
// of the SshPublicKeyId.
@@ -731,15 +745,15 @@ func (c *Transfer) ImportSshPublicKeyRequest(input *ImportSshPublicKeyInput) (re
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation ImportSshPublicKey for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -750,7 +764,7 @@ func (c *Transfer) ImportSshPublicKeyRequest(input *ImportSshPublicKeyInput) (re
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -827,24 +841,24 @@ func (c *Transfer) ListServersRequest(input *ListServersInput) (req *request.Req
return
}
-// ListServers API operation for AWS Transfer for SFTP.
+// ListServers API operation for AWS Transfer Family.
//
-// Lists the Secure File Transfer Protocol (SFTP) servers that are associated
-// with your AWS account.
+// Lists the file transfer protocol-enabled servers that are associated with
+// your AWS account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation ListServers for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidNextTokenException
@@ -975,7 +989,7 @@ func (c *Transfer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (
return
}
-// ListTagsForResource API operation for AWS Transfer for SFTP.
+// ListTagsForResource API operation for AWS Transfer Family.
//
// Lists all of the tags associated with the Amazon Resource Number (ARN) you
// specify. The resource can be a user, server, or role.
@@ -984,15 +998,15 @@ func (c *Transfer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidNextTokenException
@@ -1123,23 +1137,24 @@ func (c *Transfer) ListUsersRequest(input *ListUsersInput) (req *request.Request
return
}
-// ListUsers API operation for AWS Transfer for SFTP.
+// ListUsers API operation for AWS Transfer Family.
//
-// Lists the users for the server that you specify by passing the ServerId parameter.
+// Lists the users for a file transfer protocol-enabled server that you specify
+// by passing the ServerId parameter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation ListUsers for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidNextTokenException
@@ -1150,7 +1165,7 @@ func (c *Transfer) ListUsersRequest(input *ListUsersInput) (req *request.Request
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListUsers
func (c *Transfer) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) {
@@ -1269,11 +1284,11 @@ func (c *Transfer) StartServerRequest(input *StartServerInput) (req *request.Req
return
}
-// StartServer API operation for AWS Transfer for SFTP.
+// StartServer API operation for AWS Transfer Family.
//
-// Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE
-// to ONLINE. It has no impact on an SFTP server that is already ONLINE. An
-// ONLINE server can accept and process file transfer jobs.
+// Changes the state of a file transfer protocol-enabled server from OFFLINE
+// to ONLINE. It has no impact on a server that is already ONLINE. An ONLINE
+// server can accept and process file transfer jobs.
//
// The state of STARTING indicates that the server is in an intermediate state,
// either not fully able to respond, or not fully online. The values of START_FAILED
@@ -1285,15 +1300,15 @@ func (c *Transfer) StartServerRequest(input *StartServerInput) (req *request.Req
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation StartServer for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1301,7 +1316,7 @@ func (c *Transfer) StartServerRequest(input *StartServerInput) (req *request.Req
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -1373,13 +1388,13 @@ func (c *Transfer) StopServerRequest(input *StopServerInput) (req *request.Reque
return
}
-// StopServer API operation for AWS Transfer for SFTP.
+// StopServer API operation for AWS Transfer Family.
//
-// Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE server
-// cannot accept and process file transfer jobs. Information tied to your server
-// such as server and user properties are not affected by stopping your server.
-// Stopping a server will not reduce or impact your Secure File Transfer Protocol
-// (SFTP) endpoint billing.
+// Changes the state of a file transfer protocol-enabled server from ONLINE
+// to OFFLINE. An OFFLINE server cannot accept and process file transfer jobs.
+// Information tied to your server, such as server and user properties, are
+// not affected by stopping your server. Stopping the server will not reduce
+// or impact your file transfer protocol endpoint billing.
//
// The state of STOPPING indicates that the server is in an intermediate state,
// either not fully able to respond, or not fully offline. The values of STOP_FAILED
@@ -1391,15 +1406,15 @@ func (c *Transfer) StopServerRequest(input *StopServerInput) (req *request.Reque
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation StopServer for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1407,7 +1422,7 @@ func (c *Transfer) StopServerRequest(input *StopServerInput) (req *request.Reque
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -1479,7 +1494,7 @@ func (c *Transfer) TagResourceRequest(input *TagResourceInput) (req *request.Req
return
}
-// TagResource API operation for AWS Transfer for SFTP.
+// TagResource API operation for AWS Transfer Family.
//
// Attaches a key-value pair to a resource, as identified by its Amazon Resource
// Name (ARN). Resources are users, servers, roles, and other entities.
@@ -1490,15 +1505,15 @@ func (c *Transfer) TagResourceRequest(input *TagResourceInput) (req *request.Req
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1506,7 +1521,7 @@ func (c *Transfer) TagResourceRequest(input *TagResourceInput) (req *request.Req
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TagResource
func (c *Transfer) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
@@ -1572,27 +1587,28 @@ func (c *Transfer) TestIdentityProviderRequest(input *TestIdentityProviderInput)
return
}
-// TestIdentityProvider API operation for AWS Transfer for SFTP.
+// TestIdentityProvider API operation for AWS Transfer Family.
//
-// If the IdentityProviderType of the server is API_Gateway, tests whether your
-// API Gateway is set up successfully. We highly recommend that you call this
-// operation to test your authentication method as soon as you create your server.
-// By doing so, you can troubleshoot issues with the API Gateway integration
-// to ensure that your users can successfully use the service.
+// If the IdentityProviderType of a file transfer protocol-enabled server is
+// API_Gateway, tests whether your API Gateway is set up successfully. We highly
+// recommend that you call this operation to test your authentication method
+// as soon as you create your server. By doing so, you can troubleshoot issues
+// with the API Gateway integration to ensure that your users can successfully
+// use the service.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation TestIdentityProvider for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1600,7 +1616,7 @@ func (c *Transfer) TestIdentityProviderRequest(input *TestIdentityProviderInput)
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestIdentityProvider
func (c *Transfer) TestIdentityProvider(input *TestIdentityProviderInput) (*TestIdentityProviderOutput, error) {
@@ -1667,7 +1683,7 @@ func (c *Transfer) UntagResourceRequest(input *UntagResourceInput) (req *request
return
}
-// UntagResource API operation for AWS Transfer for SFTP.
+// UntagResource API operation for AWS Transfer Family.
//
// Detaches a key-value pair from a resource, as identified by its Amazon Resource
// Name (ARN). Resources are users, servers, roles, and other entities.
@@ -1678,15 +1694,15 @@ func (c *Transfer) UntagResourceRequest(input *UntagResourceInput) (req *request
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1694,7 +1710,7 @@ func (c *Transfer) UntagResourceRequest(input *UntagResourceInput) (req *request
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UntagResource
func (c *Transfer) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
@@ -1760,31 +1776,34 @@ func (c *Transfer) UpdateServerRequest(input *UpdateServerInput) (req *request.R
return
}
-// UpdateServer API operation for AWS Transfer for SFTP.
+// UpdateServer API operation for AWS Transfer Family.
//
-// Updates the server properties after that server has been created.
+// Updates the file transfer protocol-enabled server's properties after that
+// server has been created.
//
-// The UpdateServer call returns the ServerId of the Secure File Transfer Protocol
-// (SFTP) server you updated.
+// The UpdateServer call returns the ServerId of the server you updated.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation UpdateServer for usage and error information.
//
// Returned Error Types:
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * ConflictException
-// This exception is thrown when the UpdatServer is called for a server that
-// has VPC as the endpoint type and the server's VpcEndpointID is not in the
-// available state.
+// This exception is thrown when the UpdatServer is called for a file transfer
+// protocol-enabled server that has VPC as the endpoint type and the server's
+// VpcEndpointID is not in the available state.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1795,7 +1814,7 @@ func (c *Transfer) UpdateServerRequest(input *UpdateServerInput) (req *request.R
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -1866,7 +1885,7 @@ func (c *Transfer) UpdateUserRequest(input *UpdateUserInput) (req *request.Reque
return
}
-// UpdateUser API operation for AWS Transfer for SFTP.
+// UpdateUser API operation for AWS Transfer Family.
//
// Assigns new properties to a user. Parameters you pass modify any or all of
// the following: the home directory, role, and policy for the UserName and
@@ -1878,15 +1897,15 @@ func (c *Transfer) UpdateUserRequest(input *UpdateUserInput) (req *request.Reque
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
-// See the AWS API reference guide for AWS Transfer for SFTP's
+// See the AWS API reference guide for AWS Transfer Family's
// API operation UpdateUser for usage and error information.
//
// Returned Error Types:
// * ServiceUnavailableException
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
//
// * InternalServiceError
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
//
// * InvalidRequestException
@@ -1894,7 +1913,7 @@ func (c *Transfer) UpdateUserRequest(input *UpdateUserInput) (req *request.Reque
//
// * ResourceNotFoundException
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
//
// * ThrottlingException
// The request was denied due to request throttling.
@@ -1923,12 +1942,68 @@ func (c *Transfer) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput
return out, req.Send()
}
-// This exception is thrown when the UpdatServer is called for a server that
-// has VPC as the endpoint type and the server's VpcEndpointID is not in the
-// available state.
+// You do not have sufficient access to perform this action.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// This exception is thrown when the UpdatServer is called for a file transfer
+// protocol-enabled server that has VPC as the endpoint type and the server's
+// VpcEndpointID is not in the available state.
type ConflictException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -1945,17 +2020,17 @@ func (s ConflictException) GoString() string {
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ConflictException) Code() string {
+func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
-func (s ConflictException) Message() string {
+func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -1963,70 +2038,88 @@ func (s ConflictException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ConflictException) OrigErr() error {
+func (s *ConflictException) OrigErr() error {
return nil
}
-func (s ConflictException) Error() string {
+func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ConflictException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ConflictException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type CreateServerInput struct {
_ struct{} `type:"structure"`
+ // The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate.
+ // Required when Protocols is set to FTPS.
+ Certificate *string `type:"string"`
+
// The virtual private cloud (VPC) endpoint settings that are configured for
- // your SFTP server. With a VPC endpoint, you can restrict access to your SFTP
- // server to resources only within your VPC. To control incoming internet traffic,
- // you will need to invoke the UpdateServer API and attach an Elastic IP to
- // your server's endpoint.
+ // your file transfer protocol-enabled server. When you host your endpoint within
+ // your VPC, you can make it accessible only to resources within your VPC, or
+ // you can attach Elastic IPs and make it accessible to clients over the internet.
+ // Your VPC's default security groups are automatically assigned to your endpoint.
EndpointDetails *EndpointDetails `type:"structure"`
- // The type of VPC endpoint that you want your SFTP server to connect to. You
- // can choose to connect to the public internet or a virtual private cloud (VPC)
- // endpoint. With a VPC endpoint, you can restrict access to your SFTP server
- // and resources only within your VPC.
+ // The type of VPC endpoint that you want your file transfer protocol-enabled
+ // server to connect to. You can choose to connect to the public internet or
+ // a virtual private cloud (VPC) endpoint. With a VPC endpoint, you can restrict
+ // access to your server and resources only within your VPC.
EndpointType *string `type:"string" enum:"EndpointType"`
// The RSA private key as generated by the ssh-keygen -N "" -f my-new-server-key
// command.
//
- // If you aren't planning to migrate existing users from an existing SFTP server
- // to a new AWS SFTP server, don't update the host key. Accidentally changing
+ // If you aren't planning to migrate existing users from an existing SFTP-enabled
+ // server to a new server, don't update the host key. Accidentally changing
// a server's host key can be disruptive.
//
- // For more information, see "https://alpha-docs-aws.amazon.com/transfer/latest/userguide/configuring-servers.html#change-host-key"
- // in the AWS SFTP User Guide.
+ // For more information, see Changing the Host Key for Your AWS Transfer Family
+ // Server (https://docs.aws.amazon.com/transfer/latest/userguide/configuring-servers.html#change-host-key)
+ // in the AWS Transfer Family User Guide.
HostKey *string `type:"string" sensitive:"true"`
- // This parameter is required when the IdentityProviderType is set to API_GATEWAY.
- // Accepts an array containing all of the information required to call a customer-supplied
- // authentication API, including the API Gateway URL. This property is not required
- // when the IdentityProviderType is set to SERVICE_MANAGED.
+ // Required when IdentityProviderType is set to API_GATEWAY. Accepts an array
+ // containing all of the information required to call a customer-supplied authentication
+ // API, including the API Gateway URL. Not required when IdentityProviderType
+ // is set to SERVICE_MANAGED.
IdentityProviderDetails *IdentityProviderDetails `type:"structure"`
- // Specifies the mode of authentication for the SFTP server. The default value
- // is SERVICE_MANAGED, which allows you to store and access SFTP user credentials
- // within the AWS Transfer for SFTP service. Use the API_GATEWAY value to integrate
- // with an identity provider of your choosing. The API_GATEWAY setting requires
- // you to provide an API Gateway endpoint URL to call for authentication using
- // the IdentityProviderDetails parameter.
+ // Specifies the mode of authentication for a file transfer protocol-enabled
+ // server. The default value is SERVICE_MANAGED, which allows you to store and
+ // access user credentials within the AWS Transfer Family service. Use the API_GATEWAY
+ // value to integrate with an identity provider of your choosing. The API_GATEWAY
+ // setting requires you to provide an API Gateway endpoint URL to call for authentication
+ // using the IdentityProviderDetails parameter.
IdentityProviderType *string `type:"string" enum:"IdentityProviderType"`
- // A value that allows the service to write your SFTP users' activity to your
- // Amazon CloudWatch logs for monitoring and auditing purposes.
+ // Allows the service to write your users' activity to your Amazon CloudWatch
+ // logs for monitoring and auditing purposes.
LoggingRole *string `min:"20" type:"string"`
- // Key-value pairs that can be used to group and search for servers.
+ // Specifies the file transfer protocol or protocols over which your file transfer
+ // protocol client can connect to your server's endpoint. The available protocols
+ // are:
+ //
+ // * Secure Shell (SSH) File Transfer Protocol (SFTP): File transfer over
+ // SSH
+ //
+ // * File Transfer Protocol Secure (FTPS): File transfer with TLS encryption
+ //
+ // * File Transfer Protocol (FTP): Unencrypted file transfer
+ Protocols []*string `min:"1" type:"list"`
+
+ // Key-value pairs that can be used to group and search for file transfer protocol-enabled
+ // servers.
Tags []*Tag `min:"1" type:"list"`
}
@@ -2046,6 +2139,9 @@ func (s *CreateServerInput) Validate() error {
if s.LoggingRole != nil && len(*s.LoggingRole) < 20 {
invalidParams.Add(request.NewErrParamMinLen("LoggingRole", 20))
}
+ if s.Protocols != nil && len(s.Protocols) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Protocols", 1))
+ }
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
@@ -2076,6 +2172,12 @@ func (s *CreateServerInput) Validate() error {
return nil
}
+// SetCertificate sets the Certificate field's value.
+func (s *CreateServerInput) SetCertificate(v string) *CreateServerInput {
+ s.Certificate = &v
+ return s
+}
+
// SetEndpointDetails sets the EndpointDetails field's value.
func (s *CreateServerInput) SetEndpointDetails(v *EndpointDetails) *CreateServerInput {
s.EndpointDetails = v
@@ -2112,6 +2214,12 @@ func (s *CreateServerInput) SetLoggingRole(v string) *CreateServerInput {
return s
}
+// SetProtocols sets the Protocols field's value.
+func (s *CreateServerInput) SetProtocols(v []*string) *CreateServerInput {
+ s.Protocols = v
+ return s
+}
+
// SetTags sets the Tags field's value.
func (s *CreateServerInput) SetTags(v []*Tag) *CreateServerInput {
s.Tags = v
@@ -2121,7 +2229,8 @@ func (s *CreateServerInput) SetTags(v []*Tag) *CreateServerInput {
type CreateServerOutput struct {
_ struct{} `type:"structure"`
- // The service-assigned ID of the SFTP server that is created.
+ // The service-assigned ID of the file transfer protocol-enabled server that
+ // is created.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -2146,40 +2255,42 @@ func (s *CreateServerOutput) SetServerId(v string) *CreateServerOutput {
type CreateUserInput struct {
_ struct{} `type:"structure"`
- // The landing directory (folder) for a user when they log in to the server
- // using their SFTP client.
+ // The landing directory (folder) for a user when they log in to the file transfer
+ // protocol-enabled server using the client.
//
- // An example is /home/username.
+ // An example is your-Amazon-S3-bucket-name>/home/username.
HomeDirectory *string `type:"string"`
- // Logical directory mappings that specify what S3 paths and keys should be
- // visible to your user and how you want to make them visible. You will need
+ // Logical directory mappings that specify what Amazon S3 paths and keys should
+ // be visible to your user and how you want to make them visible. You will need
// to specify the "Entry" and "Target" pair, where Entry shows how the path
- // is made visible and Target is the actual S3 path. If you only specify a target,
- // it will be displayed as is. You will need to also make sure that your AWS
- // IAM Role provides access to paths in Target. The following is an example.
+ // is made visible and Target is the actual Amazon S3 path. If you only specify
+ // a target, it will be displayed as is. You will need to also make sure that
+ // your AWS IAM Role provides access to paths in Target. The following is an
+ // example.
//
// '[ "/bucket2/documentation", { "Entry": "your-personal-report.pdf", "Target":
// "/bucket3/customized-reports/${transfer:UserName}.pdf" } ]'
//
- // In most cases, you can use this value instead of the scope down policy to
+ // In most cases, you can use this value instead of the scope-down policy to
// lock your user down to the designated home directory ("chroot"). To do this,
// you can set Entry to '/' and set Target to the HomeDirectory parameter value.
//
- // If the target of a logical directory entry does not exist in S3, the entry
- // will be ignored. As a workaround, you can use the S3 api to create 0 byte
- // objects as place holders for your directory. If using the CLI, use the s3api
- // call instead of s3 so you can use the put-object operation. For example,
- // you use the following: aws s3api put-object --bucket bucketname --key path/to/folder/.
- // Make sure that the end of the key name ends in a / for it to be considered
- // a folder.
+ // If the target of a logical directory entry does not exist in Amazon S3, the
+ // entry will be ignored. As a workaround, you can use the Amazon S3 api to
+ // create 0 byte objects as place holders for your directory. If using the CLI,
+ // use the s3api call instead of s3 so you can use the put-object operation.
+ // For example, you use the following: aws s3api put-object --bucket bucketname
+ // --key path/to/folder/. Make sure that the end of the key name ends in a '/'
+ // for it to be considered a folder.
HomeDirectoryMappings []*HomeDirectoryMapEntry `min:"1" type:"list"`
// The type of landing directory (folder) you want your users' home directory
- // to be when they log into the SFTP server. If you set it to PATH, the user
- // will see the absolute Amazon S3 bucket paths as is in their SFTP clients.
- // If you set it LOGICAL, you will need to provide mappings in the HomeDirectoryMappings
- // for how you want to make S3 paths visible to your user.
+ // to be when they log into the file transfer protocol-enabled server. If you
+ // set it to PATH, the user will see the absolute Amazon S3 bucket paths as
+ // is in their file transfer protocol clients. If you set it LOGICAL, you will
+ // need to provide mappings in the HomeDirectoryMappings for how you want to
+ // make Amazon S3 paths visible to your users.
HomeDirectoryType *string `type:"string" enum:"HomeDirectoryType"`
// A scope-down policy for your user so you can use the same IAM role across
@@ -2187,45 +2298,45 @@ type CreateUserInput struct {
// Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName},
// ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.
//
- // For scope-down policies, AWS Transfer for SFTP stores the policy as a JSON
+ // For scope-down policies, AWS Transfer Family stores the policy as a JSON
// blob, instead of the Amazon Resource Name (ARN) of the policy. You save the
// policy as a JSON blob and pass it in the Policy argument.
//
- // For an example of a scope-down policy, see "https://docs.aws.amazon.com/transfer/latest/userguide/users.html#users-policies-scope-down">Creating
- // a Scope-Down Policy.
+ // For an example of a scope-down policy, see Creating a Scope-Down Policy (https://docs.aws.amazon.com/transfer/latest/userguide/users.html#users-policies-scope-down).
//
- // For more information, see "https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html"
+ // For more information, see AssumeRole (https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html)
// in the AWS Security Token Service API Reference.
Policy *string `type:"string"`
- // The IAM role that controls your user's access to your Amazon S3 bucket. The
+ // The IAM role that controls your users' access to your Amazon S3 bucket. The
// policies attached to this role will determine the level of access you want
// to provide your users when transferring files into and out of your Amazon
// S3 bucket or buckets. The IAM role should also contain a trust relationship
- // that allows the SFTP server to access your resources when servicing your
- // SFTP user's transfer requests.
+ // that allows the file transfer protocol-enabled server to access your resources
+ // when servicing your users' transfer requests.
//
// Role is a required field
Role *string `min:"20" type:"string" required:"true"`
- // A system-assigned unique identifier for an SFTP server instance. This is
- // the specific SFTP server that you added your user to.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server instance. This is the specific server that you added your user to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
// The public portion of the Secure Shell (SSH) key used to authenticate the
- // user to the SFTP server.
+ // user to the file transfer protocol-enabled server.
SshPublicKeyBody *string `type:"string"`
// Key-value pairs that can be used to group and search for users. Tags are
// metadata attached to users for any purpose.
Tags []*Tag `min:"1" type:"list"`
- // A unique string that identifies a user and is associated with a server as
- // specified by the ServerId. This user name must be a minimum of 3 and a maximum
- // of 32 characters long. The following are valid characters: a-z, A-Z, 0-9,
- // underscore, and hyphen. The user name can't start with a hyphen.
+ // A unique string that identifies a user and is associated with a file transfer
+ // protocol-enabled server as specified by the ServerId. This user name must
+ // be a minimum of 3 and a maximum of 32 characters long. The following are
+ // valid characters: a-z, A-Z, 0-9, underscore, and hyphen. The user name can't
+ // start with a hyphen.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -2352,12 +2463,14 @@ func (s *CreateUserInput) SetUserName(v string) *CreateUserInput {
type CreateUserOutput struct {
_ struct{} `type:"structure"`
- // The ID of the SFTP server that the user is attached to.
+ // The ID of the file transfer protocol-enabled server that the user is attached
+ // to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // A unique string that identifies a user account associated with an SFTP server.
+ // A unique string that identifies a user account associated with a file transfer
+ // protocol-enabled server.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -2388,7 +2501,8 @@ func (s *CreateUserOutput) SetUserName(v string) *CreateUserOutput {
type DeleteServerInput struct {
_ struct{} `type:"structure"`
- // A unique system-assigned identifier for an SFTP server instance.
+ // A unique system-assigned identifier for a file transfer protocol-enabled
+ // server instance.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -2443,7 +2557,7 @@ func (s DeleteServerOutput) GoString() string {
type DeleteSshPublicKeyInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP)
+ // A system-assigned unique identifier for a file transfer protocol-enabled
// server instance that has the user assigned to it.
//
// ServerId is a required field
@@ -2533,13 +2647,14 @@ func (s DeleteSshPublicKeyOutput) GoString() string {
type DeleteUserInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server instance that has
- // the user assigned to it.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server instance that has the user assigned to it.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // A unique string that identifies a user that is being deleted from the server.
+ // A unique string that identifies a user that is being deleted from a file
+ // transfer protocol-enabled server.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -2606,7 +2721,8 @@ func (s DeleteUserOutput) GoString() string {
type DescribeServerInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -2647,7 +2763,8 @@ func (s *DescribeServerInput) SetServerId(v string) *DescribeServerInput {
type DescribeServerOutput struct {
_ struct{} `type:"structure"`
- // An array containing the properties of the server with the ServerID you specified.
+ // An array containing the properties of a file transfer protocol-enabled server
+ // with the ServerID you specified.
//
// Server is a required field
Server *DescribedServer `type:"structure" required:"true"`
@@ -2672,15 +2789,15 @@ func (s *DescribeServerOutput) SetServer(v *DescribedServer) *DescribeServerOutp
type DescribeUserInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server that has this user
- // assigned.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that has this user assigned.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // The name of the user assigned to one or more servers. User names are part
- // of the sign-in credentials to use the AWS Transfer for SFTP service and perform
- // file transfer tasks.
+ // The name of the user assigned to one or more file transfer protocol-enabled
+ // servers. User names are part of the sign-in credentials to use the AWS Transfer
+ // Family service and perform file transfer tasks.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -2733,8 +2850,8 @@ func (s *DescribeUserInput) SetUserName(v string) *DescribeUserInput {
type DescribeUserOutput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server that has this user
- // assigned.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that has this user assigned.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -2768,68 +2885,87 @@ func (s *DescribeUserOutput) SetUser(v *DescribedUser) *DescribeUserOutput {
return s
}
-// Describes the properties of the server that was specified. Information returned
-// includes the following: the server Amazon Resource Name (ARN), the authentication
-// configuration and type, the logging role, the server ID and state, and assigned
-// tags or metadata.
+// Describes the properties of a file transfer protocol-enabled server that
+// was specified. Information returned includes the following: the server Amazon
+// Resource Name (ARN), the authentication configuration and type, the logging
+// role, the server ID and state, and assigned tags or metadata.
type DescribedServer struct {
_ struct{} `type:"structure"`
- // Specifies the unique Amazon Resource Name (ARN) for the server to be described.
+ // Specifies the unique Amazon Resource Name (ARN) for a file transfer protocol-enabled
+ // server to be described.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
+ // The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate.
+ // Required when Protocols is set to FTPS.
+ Certificate *string `type:"string"`
+
// The virtual private cloud (VPC) endpoint settings that you configured for
- // your SFTP server.
+ // your file transfer protocol-enabled server.
EndpointDetails *EndpointDetails `type:"structure"`
- // The type of endpoint that your SFTP server is connected to. If your SFTP
- // server is connected to a VPC endpoint, your server isn't accessible over
- // the public internet.
+ // The type of endpoint that your file transfer protocol-enabled server is connected
+ // to. If your server is connected to a VPC endpoint, your server isn't accessible
+ // over the public internet.
EndpointType *string `type:"string" enum:"EndpointType"`
- // This value contains the message-digest algorithm (MD5) hash of the server's
- // host key. This value is equivalent to the output of the ssh-keygen -l -E
- // md5 -f my-new-server-key command.
+ // Contains the message-digest algorithm (MD5) hash of a file transfer protocol-enabled
+ // server's host key. This value is equivalent to the output of the ssh-keygen
+ // -l -E md5 -f my-new-server-key command.
HostKeyFingerprint *string `type:"string"`
// Specifies information to call a customer-supplied authentication API. This
- // field is not populated when the IdentityProviderType of the server is SERVICE_MANAGED>.
+ // field is not populated when the IdentityProviderType of a file transfer protocol-enabled
+ // server is SERVICE_MANAGED.
IdentityProviderDetails *IdentityProviderDetails `type:"structure"`
- // This property defines the mode of authentication method enabled for this
- // service. A value of SERVICE_MANAGED means that you are using this server
- // to store and access SFTP user credentials within the service. A value of
+ // Defines the mode of authentication method enabled for this service. A value
+ // of SERVICE_MANAGED means that you are using this file transfer protocol-enabled
+ // server to store and access user credentials within the service. A value of
// API_GATEWAY indicates that you have integrated an API Gateway endpoint that
// will be invoked for authenticating your user into the service.
IdentityProviderType *string `type:"string" enum:"IdentityProviderType"`
- // This property is an AWS Identity and Access Management (IAM) entity that
- // allows the server to turn on Amazon CloudWatch logging for Amazon S3 events.
- // When set, user activity can be viewed in your CloudWatch logs.
+ // An AWS Identity and Access Management (IAM) entity that allows a file transfer
+ // protocol-enabled server to turn on Amazon CloudWatch logging for Amazon S3
+ // events. When set, user activity can be viewed in your CloudWatch logs.
LoggingRole *string `min:"20" type:"string"`
- // This property is a unique system-assigned identifier for the SFTP server
+ // Specifies the file transfer protocol or protocols over which your file transfer
+ // protocol client can connect to your server's endpoint. The available protocols
+ // are:
+ //
+ // * Secure Shell (SSH) File Transfer Protocol (SFTP): File transfer over
+ // SSH
+ //
+ // * File Transfer Protocol Secure (FTPS): File transfer with TLS encryption
+ //
+ // * File Transfer Protocol (FTP): Unencrypted file transfer
+ Protocols []*string `min:"1" type:"list"`
+
+ // Unique system-assigned identifier for a file transfer protocol-enabled server
// that you instantiate.
ServerId *string `min:"19" type:"string"`
- // The condition of the SFTP server for the server that was described. A value
- // of ONLINE indicates that the server can accept jobs and transfer files. A
- // State value of OFFLINE means that the server cannot perform file transfer
- // operations.
+ // The condition of a file transfer protocol-enabled server for the server that
+ // was described. A value of ONLINE indicates that the server can accept jobs
+ // and transfer files. A State value of OFFLINE means that the server cannot
+ // perform file transfer operations.
//
// The states of STARTING and STOPPING indicate that the server is in an intermediate
// state, either not fully able to respond, or not fully offline. The values
// of START_FAILED or STOP_FAILED can indicate an error condition.
State *string `type:"string" enum:"State"`
- // This property contains the key-value pairs that you can use to search for
- // and group servers that were assigned to the server that was described.
+ // Contains the key-value pairs that you can use to search for and group file
+ // transfer protocol-enabled servers that were assigned to the server that was
+ // described.
Tags []*Tag `min:"1" type:"list"`
- // The number of users that are assigned to the SFTP server you specified with
- // the ServerId.
+ // The number of users that are assigned to a file transfer protocol-enabled
+ // server you specified with the ServerId.
UserCount *int64 `type:"integer"`
}
@@ -2849,6 +2985,12 @@ func (s *DescribedServer) SetArn(v string) *DescribedServer {
return s
}
+// SetCertificate sets the Certificate field's value.
+func (s *DescribedServer) SetCertificate(v string) *DescribedServer {
+ s.Certificate = &v
+ return s
+}
+
// SetEndpointDetails sets the EndpointDetails field's value.
func (s *DescribedServer) SetEndpointDetails(v *EndpointDetails) *DescribedServer {
s.EndpointDetails = v
@@ -2885,6 +3027,12 @@ func (s *DescribedServer) SetLoggingRole(v string) *DescribedServer {
return s
}
+// SetProtocols sets the Protocols field's value.
+func (s *DescribedServer) SetProtocols(v []*string) *DescribedServer {
+ s.Protocols = v
+ return s
+}
+
// SetServerId sets the ServerId field's value.
func (s *DescribedServer) SetServerId(v string) *DescribedServer {
s.ServerId = &v
@@ -2913,62 +3061,59 @@ func (s *DescribedServer) SetUserCount(v int64) *DescribedServer {
type DescribedUser struct {
_ struct{} `type:"structure"`
- // This property contains the unique Amazon Resource Name (ARN) for the user
- // that was requested to be described.
+ // Contains the unique Amazon Resource Name (ARN) for the user that was requested
+ // to be described.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
- // This property specifies the landing directory (or folder), which is the location
- // that files are written to or read from in an Amazon S3 bucket for the described
- // user. An example is /your s3 bucket name/home/username .
+ // Specifies the landing directory (or folder), which is the location that files
+ // are written to or read from in an Amazon S3 bucket for the described user.
+ // An example is /your s3 bucket name/home/username .
HomeDirectory *string `type:"string"`
- // Logical directory mappings that you specified for what S3 paths and keys
- // should be visible to your user and how you want to make them visible. You
- // will need to specify the "Entry" and "Target" pair, where Entry shows how
- // the path is made visible and Target is the actual S3 path. If you only specify
- // a target, it will be displayed as is. You will need to also make sure that
- // your AWS IAM Role provides access to paths in Target.
+ // Logical directory mappings that you specified for what Amazon S3 paths and
+ // keys should be visible to your user and how you want to make them visible.
+ // You will need to specify the "Entry" and "Target" pair, where Entry shows
+ // how the path is made visible and Target is the actual Amazon S3 path. If
+ // you only specify a target, it will be displayed as is. You will need to also
+ // make sure that your AWS IAM Role provides access to paths in Target.
//
- // In most cases, you can use this value instead of the scope down policy to
- // lock your user down to the designated home directory ("chroot"). To do this,
- // you can set Entry to '/' and set Target to the HomeDirectory parameter value.
- //
- // In most cases, you can use this value instead of the scope down policy to
+ // In most cases, you can use this value instead of the scope-down policy to
// lock your user down to the designated home directory ("chroot"). To do this,
// you can set Entry to '/' and set Target to the HomeDirectory parameter value.
HomeDirectoryMappings []*HomeDirectoryMapEntry `min:"1" type:"list"`
- // The type of landing directory (folder) you mapped for your users' to see
- // when they log into the SFTP server. If you set it to PATH, the user will
- // see the absolute Amazon S3 bucket paths as is in their SFTP clients. If you
- // set it LOGICAL, you will need to provide mappings in the HomeDirectoryMappings
- // for how you want to make S3 paths visible to your user.
+ // The type of landing directory (folder) you mapped for your users to see when
+ // they log into the file transfer protocol-enabled server. If you set it to
+ // PATH, the user will see the absolute Amazon S3 bucket paths as is in their
+ // file transfer protocol clients. If you set it LOGICAL, you will need to provide
+ // mappings in the HomeDirectoryMappings for how you want to make Amazon S3
+ // paths visible to your users.
HomeDirectoryType *string `type:"string" enum:"HomeDirectoryType"`
// Specifies the name of the policy in use for the described user.
Policy *string `type:"string"`
- // This property specifies the IAM role that controls your user's access to
- // your Amazon S3 bucket. The policies attached to this role will determine
- // the level of access you want to provide your users when transferring files
- // into and out of your Amazon S3 bucket or buckets. The IAM role should also
- // contain a trust relationship that allows the SFTP server to access your resources
- // when servicing your SFTP user's transfer requests.
+ // Specifies the IAM role that controls your users' access to your Amazon S3
+ // bucket. The policies attached to this role will determine the level of access
+ // you want to provide your users when transferring files into and out of your
+ // Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship
+ // that allows a file transfer protocol-enabled server to access your resources
+ // when servicing your users' transfer requests.
Role *string `min:"20" type:"string"`
- // This property contains the public key portion of the Secure Shell (SSH) keys
- // stored for the described user.
+ // Contains the public key portion of the Secure Shell (SSH) keys stored for
+ // the described user.
SshPublicKeys []*SshPublicKey `type:"list"`
- // This property contains the key-value pairs for the user requested. Tag can
- // be used to search for and group users for a variety of purposes.
+ // Contains the key-value pairs for the user requested. Tag can be used to search
+ // for and group users for a variety of purposes.
Tags []*Tag `min:"1" type:"list"`
- // This property is the name of the user that was requested to be described.
- // User names are used for authentication purposes. This is the string that
- // will be used by your user when they log in to your SFTP server.
+ // The name of the user that was requested to be described. User names are used
+ // for authentication purposes. This is the string that will be used by your
+ // user when they log in to your file transfer protocol-enabled server.
UserName *string `min:"3" type:"string"`
}
@@ -3037,28 +3182,29 @@ func (s *DescribedUser) SetUserName(v string) *DescribedUser {
}
// The virtual private cloud (VPC) endpoint settings that are configured for
-// your SFTP server. With a VPC endpoint, you can restrict access to your SFTP
-// server and resources only within your VPC. To control incoming internet traffic,
-// invoke the UpdateServer API and attach an Elastic IP to your server's endpoint.
+// your file transfer protocol-enabled server. With a VPC endpoint, you can
+// restrict access to your server and resources only within your VPC. To control
+// incoming internet traffic, invoke the UpdateServer API and attach an Elastic
+// IP to your server's endpoint.
type EndpointDetails struct {
_ struct{} `type:"structure"`
// A list of address allocation IDs that are required to attach an Elastic IP
- // address to your SFTP server's endpoint. This is only valid in the UpdateServer
- // API.
+ // address to your file transfer protocol-enabled server's endpoint. This is
+ // only valid in the UpdateServer API.
//
// This property can only be use when EndpointType is set to VPC.
AddressAllocationIds []*string `type:"list"`
- // A list of subnet IDs that are required to host your SFTP server endpoint
- // in your VPC.
+ // A list of subnet IDs that are required to host your file transfer protocol-enabled
+ // server endpoint in your VPC.
SubnetIds []*string `type:"list"`
// The ID of the VPC endpoint.
VpcEndpointId *string `min:"22" type:"string"`
- // The VPC ID of the virtual private cloud in which the SFTP server's endpoint
- // will be hosted.
+ // The VPC ID of the VPC in which a file transfer protocol-enabled server's
+ // endpoint will be hosted.
VpcId *string `type:"string"`
}
@@ -3163,16 +3309,15 @@ func (s *HomeDirectoryMapEntry) SetTarget(v string) *HomeDirectoryMapEntry {
}
// Returns information related to the type of user authentication that is in
-// use for a server's users. A server can have only one method of authentication.
+// use for a file transfer protocol-enabled server's users. A server can have
+// only one method of authentication.
type IdentityProviderDetails struct {
_ struct{} `type:"structure"`
- // The InvocationRole parameter provides the type of InvocationRole used to
- // authenticate the user account.
+ // Provides the type of InvocationRole used to authenticate the user account.
InvocationRole *string `min:"20" type:"string"`
- // The Url parameter provides contains the location of the service endpoint
- // used to authenticate users.
+ // Contains the location of the service endpoint used to authenticate users.
Url *string `type:"string"`
}
@@ -3214,7 +3359,8 @@ func (s *IdentityProviderDetails) SetUrl(v string) *IdentityProviderDetails {
type ImportSshPublicKeyInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -3224,7 +3370,8 @@ type ImportSshPublicKeyInput struct {
// SshPublicKeyBody is a required field
SshPublicKeyBody *string `type:"string" required:"true"`
- // The name of the user account that is assigned to one or more servers.
+ // The name of the user account that is assigned to one or more file transfer
+ // protocol-enabled servers.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -3283,19 +3430,19 @@ func (s *ImportSshPublicKeyInput) SetUserName(v string) *ImportSshPublicKeyInput
return s
}
-// This response identifies the user, the server they belong to, and the identifier
-// of the SSH public key associated with that user. A user can have more than
-// one key on each server that they are associated with.
+// Identifies the user, the file transfer protocol-enabled server they belong
+// to, and the identifier of the SSH public key associated with that user. A
+// user can have more than one key on each server that they are associated with.
type ImportSshPublicKeyOutput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // This identifier is the name given to a public key by the system that was
- // imported.
+ // The name given to a public key by the system that was imported.
//
// SshPublicKeyId is a required field
SshPublicKeyId *string `min:"21" type:"string" required:"true"`
@@ -3334,11 +3481,11 @@ func (s *ImportSshPublicKeyOutput) SetUserName(v string) *ImportSshPublicKeyOutp
return s
}
-// This exception is thrown when an error occurs in the AWS Transfer for SFTP
+// This exception is thrown when an error occurs in the AWS Transfer Family
// service.
type InternalServiceError struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3355,17 +3502,17 @@ func (s InternalServiceError) GoString() string {
func newErrorInternalServiceError(v protocol.ResponseMetadata) error {
return &InternalServiceError{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServiceError) Code() string {
+func (s *InternalServiceError) Code() string {
return "InternalServiceError"
}
// Message returns the exception's message.
-func (s InternalServiceError) Message() string {
+func (s *InternalServiceError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3373,28 +3520,28 @@ func (s InternalServiceError) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServiceError) OrigErr() error {
+func (s *InternalServiceError) OrigErr() error {
return nil
}
-func (s InternalServiceError) Error() string {
+func (s *InternalServiceError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServiceError) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServiceError) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServiceError) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServiceError) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The NextToken parameter that was passed is invalid.
type InvalidNextTokenException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3411,17 +3558,17 @@ func (s InvalidNextTokenException) GoString() string {
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidNextTokenException) Code() string {
+func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
-func (s InvalidNextTokenException) Message() string {
+func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3429,28 +3576,28 @@ func (s InvalidNextTokenException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidNextTokenException) OrigErr() error {
+func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
-func (s InvalidNextTokenException) Error() string {
+func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidNextTokenException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidNextTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidNextTokenException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidNextTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when the client submits a malformed request.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -3467,17 +3614,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3485,34 +3632,35 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListServersInput struct {
_ struct{} `type:"structure"`
- // Specifies the number of servers to return as a response to the ListServers
- // query.
+ // Specifies the number of file transfer protocol-enabled servers to return
+ // as a response to the ListServers query.
MaxResults *int64 `min:"1" type:"integer"`
- // When additional results are obtained from the ListServers command, a NextToken
+ // When additional results are obtained from theListServers command, a NextToken
// parameter is returned in the output. You can then pass the NextToken parameter
- // in a subsequent command to continue listing additional servers.
+ // in a subsequent command to continue listing additional file transfer protocol-enabled
+ // servers.
NextToken *string `min:"1" type:"string"`
}
@@ -3559,10 +3707,11 @@ type ListServersOutput struct {
// When you can get additional results from the ListServers operation, a NextToken
// parameter is returned in the output. In a following command, you can pass
- // in the NextToken parameter to continue listing additional servers.
+ // in the NextToken parameter to continue listing additional file transfer protocol-enabled
+ // servers.
NextToken *string `min:"1" type:"string"`
- // An array of servers that were listed.
+ // An array of file transfer protocol-enabled servers that were listed.
//
// Servers is a required field
Servers []*ListedServer `type:"list" required:"true"`
@@ -3663,7 +3812,7 @@ func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceIn
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
- // This value is the ARN you specified to list the tags of.
+ // The ARN you specified to list the tags of.
Arn *string `min:"20" type:"string"`
// When you can get additional results from the ListTagsForResource call, a
@@ -3715,7 +3864,7 @@ type ListUsersInput struct {
// to the NextToken parameter to continue listing additional users.
NextToken *string `min:"1" type:"string"`
- // A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP)
+ // A system-assigned unique identifier for a file transfer protocol-enabled
// server that has users assigned to it.
//
// ServerId is a required field
@@ -3780,8 +3929,8 @@ type ListUsersOutput struct {
// to the NextToken parameter to continue listing additional users.
NextToken *string `min:"1" type:"string"`
- // A system-assigned unique identifier for an SFTP server that the users are
- // assigned to.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that the users are assigned to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -3821,46 +3970,47 @@ func (s *ListUsersOutput) SetUsers(v []*ListedUser) *ListUsersOutput {
return s
}
-// Returns properties of the server that was specified.
+// Returns properties of a file transfer protocol-enabled server that was specified.
type ListedServer struct {
_ struct{} `type:"structure"`
- // The unique Amazon Resource Name (ARN) for the server to be listed.
+ // The unique Amazon Resource Name (ARN) for a file transfer protocol-enabled
+ // server to be listed.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
- // The type of VPC endpoint that your SFTP server is connected to. If your SFTP
- // server is connected to a VPC endpoint, your server isn't accessible over
- // the public internet.
+ // The type of VPC endpoint that your file transfer protocol-enabled server
+ // is connected to. If your server is connected to a VPC endpoint, your server
+ // isn't accessible over the public internet.
EndpointType *string `type:"string" enum:"EndpointType"`
- // The authentication method used to validate a user for the server that was
- // specified. This can include Secure Shell (SSH), user name and password combinations,
- // or your own custom authentication method. Valid values include SERVICE_MANAGED
- // or API_GATEWAY.
+ // The authentication method used to validate a user for a file transfer protocol-enabled
+ // server that was specified. This can include Secure Shell (SSH), user name
+ // and password combinations, or your own custom authentication method. Valid
+ // values include SERVICE_MANAGED or API_GATEWAY.
IdentityProviderType *string `type:"string" enum:"IdentityProviderType"`
- // The AWS Identity and Access Management entity that allows the server to turn
- // on Amazon CloudWatch logging.
+ // The AWS Identity and Access Management (IAM) entity that allows a file transfer
+ // protocol-enabled server to turn on Amazon CloudWatch logging.
LoggingRole *string `min:"20" type:"string"`
- // This value is the unique system assigned identifier for the SFTP servers
- // that were listed.
+ // The unique system assigned identifier for a file transfer protocol-enabled
+ // servers that were listed.
ServerId *string `min:"19" type:"string"`
- // This property describes the condition of the SFTP server for the server that
- // was described. A value of ONLINE> indicates that the server can accept jobs
- // and transfer files. A State value of OFFLINE means that the server cannot
- // perform file transfer operations.
+ // Describes the condition of a file transfer protocol-enabled server for the
+ // server that was described. A value of ONLINE indicates that the server can
+ // accept jobs and transfer files. A State value of OFFLINE means that the server
+ // cannot perform file transfer operations.
//
// The states of STARTING and STOPPING indicate that the server is in an intermediate
// state, either not fully able to respond, or not fully offline. The values
// of START_FAILED or STOP_FAILED can indicate an error condition.
State *string `type:"string" enum:"State"`
- // This property is a numeric value that indicates the number of users that
- // are assigned to the SFTP server you specified with the ServerId.
+ // A numeric value that indicates the number of users that are assigned to a
+ // file transfer protocol-enabled server you specified with the ServerId.
UserCount *int64 `type:"integer"`
}
@@ -3920,30 +4070,31 @@ func (s *ListedServer) SetUserCount(v int64) *ListedServer {
type ListedUser struct {
_ struct{} `type:"structure"`
- // This property is the unique Amazon Resource Name (ARN) for the user that
- // you want to learn about.
+ // The unique Amazon Resource Name (ARN) for the user that you want to learn
+ // about.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
- // This value specifies the location that files are written to or read from
- // an Amazon S3 bucket for the user you specify by their ARN.
+ // Specifies the location that files are written to or read from an Amazon S3
+ // bucket for the user you specify by their ARN.
HomeDirectory *string `type:"string"`
// The type of landing directory (folder) you mapped for your users' home directory.
// If you set it to PATH, the user will see the absolute Amazon S3 bucket paths
- // as is in their SFTP clients. If you set it LOGICAL, you will need to provide
- // mappings in the HomeDirectoryMappings for how you want to make S3 paths visible
- // to your user.
+ // as is in their file transfer protocol clients. If you set it LOGICAL, you
+ // will need to provide mappings in the HomeDirectoryMappings for how you want
+ // to make Amazon S3 paths visible to your users.
HomeDirectoryType *string `type:"string" enum:"HomeDirectoryType"`
// The role in use by this user. A role is an AWS Identity and Access Management
- // (IAM) entity that, in this case, allows the SFTP server to act on a user's
- // behalf. It allows the server to inherit the trust relationship that enables
- // that user to perform file operations to their Amazon S3 bucket.
+ // (IAM) entity that, in this case, allows a file transfer protocol-enabled
+ // server to act on a user's behalf. It allows the server to inherit the trust
+ // relationship that enables that user to perform file operations to their Amazon
+ // S3 bucket.
Role *string `min:"20" type:"string"`
- // This value is the number of SSH public keys stored for the user you specified.
+ // The number of SSH public keys stored for the user you specified.
SshPublicKeyCount *int64 `type:"integer"`
// The name of the user whose ARN was specified. User names are used for authentication
@@ -3999,8 +4150,8 @@ func (s *ListedUser) SetUserName(v string) *ListedUser {
// The requested resource does not exist.
type ResourceExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -4023,17 +4174,17 @@ func (s ResourceExistsException) GoString() string {
func newErrorResourceExistsException(v protocol.ResponseMetadata) error {
return &ResourceExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceExistsException) Code() string {
+func (s *ResourceExistsException) Code() string {
return "ResourceExistsException"
}
// Message returns the exception's message.
-func (s ResourceExistsException) Message() string {
+func (s *ResourceExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4041,29 +4192,29 @@ func (s ResourceExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceExistsException) OrigErr() error {
+func (s *ResourceExistsException) OrigErr() error {
return nil
}
-func (s ResourceExistsException) Error() string {
+func (s *ResourceExistsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This exception is thrown when a resource is not found by the AWS Transfer
-// for SFTP service.
+// Family service.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
@@ -4086,17 +4237,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4104,28 +4255,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
-// The request has failed because the AWS Transfer for SFTP service is not available.
+// The request has failed because the AWS Transfer Family service is not available.
type ServiceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4142,17 +4293,17 @@ func (s ServiceUnavailableException) GoString() string {
func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
return &ServiceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceUnavailableException) Code() string {
+func (s *ServiceUnavailableException) Code() string {
return "ServiceUnavailableException"
}
// Message returns the exception's message.
-func (s ServiceUnavailableException) Message() string {
+func (s *ServiceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4160,29 +4311,30 @@ func (s ServiceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceUnavailableException) OrigErr() error {
+func (s *ServiceUnavailableException) OrigErr() error {
return nil
}
-func (s ServiceUnavailableException) Error() string {
+func (s *ServiceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Provides information about the public Secure Shell (SSH) key that is associated
-// with a user account for a specific server (as identified by ServerId). The
-// information returned includes the date the key was imported, the public key
-// contents, and the public key ID. A user can store more than one SSH public
-// key associated with their user name on a specific SFTP server.
+// with a user account for the specific file transfer protocol-enabled server
+// (as identified by ServerId). The information returned includes the date the
+// key was imported, the public key contents, and the public key ID. A user
+// can store more than one SSH public key associated with their user name on
+// a specific server.
type SshPublicKey struct {
_ struct{} `type:"structure"`
@@ -4233,7 +4385,8 @@ func (s *SshPublicKey) SetSshPublicKeyId(v string) *SshPublicKey {
type StartServerInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server that you start.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that you start.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -4288,7 +4441,8 @@ func (s StartServerOutput) GoString() string {
type StopServerInput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server that you stopped.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that you stopped.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -4354,8 +4508,7 @@ type Tag struct {
// Key is a required field
Key *string `type:"string" required:"true"`
- // This property contains one or more values that you assigned to the key name
- // you create.
+ // Contains one or more values that you assigned to the key name you create.
//
// Value is a required field
Value *string `type:"string" required:"true"`
@@ -4487,13 +4640,25 @@ func (s TagResourceOutput) GoString() string {
type TestIdentityProviderInput struct {
_ struct{} `type:"structure"`
- // A system-assigned identifier for a specific server. That server's user authentication
- // method is tested with a user name and password.
+ // A system-assigned identifier for a specific file transfer protocol-enabled
+ // server. That server's user authentication method is tested with a user name
+ // and password.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // This request parameter is the name of the user account to be tested.
+ // The type of file transfer protocol to be tested.
+ //
+ // The available protocols are:
+ //
+ // * Secure Shell (SSH) File Transfer Protocol (SFTP)
+ //
+ // * File Transfer Protocol Secure (FTPS)
+ //
+ // * File Transfer Protocol (FTP)
+ ServerProtocol *string `type:"string" enum:"Protocol"`
+
+ // The name of the user account to be tested.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -4540,6 +4705,12 @@ func (s *TestIdentityProviderInput) SetServerId(v string) *TestIdentityProviderI
return s
}
+// SetServerProtocol sets the ServerProtocol field's value.
+func (s *TestIdentityProviderInput) SetServerProtocol(v string) *TestIdentityProviderInput {
+ s.ServerProtocol = &v
+ return s
+}
+
// SetUserName sets the UserName field's value.
func (s *TestIdentityProviderInput) SetUserName(v string) *TestIdentityProviderInput {
s.UserName = &v
@@ -4610,8 +4781,8 @@ func (s *TestIdentityProviderOutput) SetUrl(v string) *TestIdentityProviderOutpu
//
// HTTP Status Code: 400
type ThrottlingException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
@@ -4630,17 +4801,17 @@ func (s ThrottlingException) GoString() string {
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottlingException) Code() string {
+func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
-func (s ThrottlingException) Message() string {
+func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4648,30 +4819,30 @@ func (s ThrottlingException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottlingException) OrigErr() error {
+func (s *ThrottlingException) OrigErr() error {
return nil
}
-func (s ThrottlingException) Error() string {
+func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottlingException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottlingException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure"`
- // This is the value of the resource that will have the tag removed. An Amazon
- // Resource Name (ARN) is an identifier for a specific AWS resource, such as
- // a server, user, or role.
+ // The value of the resource that will have the tag removed. An Amazon Resource
+ // Name (ARN) is an identifier for a specific AWS resource, such as a server,
+ // user, or role.
//
// Arn is a required field
Arn *string `min:"20" type:"string" required:"true"`
@@ -4745,40 +4916,56 @@ func (s UntagResourceOutput) GoString() string {
type UpdateServerInput struct {
_ struct{} `type:"structure"`
+ // The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate.
+ // Required when Protocols is set to FTPS.
+ Certificate *string `type:"string"`
+
// The virtual private cloud (VPC) endpoint settings that are configured for
- // your SFTP server. With a VPC endpoint, you can restrict access to your SFTP
- // server to resources only within your VPC. To control incoming internet traffic,
- // you will need to associate one or more Elastic IP addresses with your server's
- // endpoint.
+ // your file transfer protocol-enabled server. With a VPC endpoint, you can
+ // restrict access to your server to resources only within your VPC. To control
+ // incoming internet traffic, you will need to associate one or more Elastic
+ // IP addresses with your server's endpoint.
EndpointDetails *EndpointDetails `type:"structure"`
- // The type of endpoint that you want your SFTP server to connect to. You can
- // choose to connect to the public internet or a virtual private cloud (VPC)
- // endpoint. With a VPC endpoint, your SFTP server isn't accessible over the
- // public internet.
+ // The type of endpoint that you want your file transfer protocol-enabled server
+ // to connect to. You can choose to connect to the public internet or a VPC
+ // endpoint. With a VPC endpoint, your server isn't accessible over the public
+ // internet.
EndpointType *string `type:"string" enum:"EndpointType"`
// The RSA private key as generated by ssh-keygen -N "" -f my-new-server-key.
//
- // If you aren't planning to migrate existing users from an existing SFTP server
- // to a new AWS SFTP server, don't update the host key. Accidentally changing
- // a server's host key can be disruptive.
+ // If you aren't planning to migrate existing users from an existing file transfer
+ // protocol-enabled server to a new server, don't update the host key. Accidentally
+ // changing a server's host key can be disruptive.
//
- // For more information, see "https://docs.aws.amazon.com/transfer/latest/userguide/configuring-servers.html#change-host-key"
- // in the AWS SFTP User Guide.
+ // For more information, see Changing the Host Key for Your AWS Transfer Family
+ // Server (https://docs.aws.amazon.com/transfer/latest/userguide/configuring-servers.html#change-host-key)
+ // in the AWS Transfer Family User Guide.
HostKey *string `type:"string" sensitive:"true"`
- // This response parameter is an array containing all of the information required
- // to call a customer's authentication API method.
+ // An array containing all of the information required to call a customer's
+ // authentication API method.
IdentityProviderDetails *IdentityProviderDetails `type:"structure"`
- // A value that changes the AWS Identity and Access Management (IAM) role that
- // allows Amazon S3 events to be logged in Amazon CloudWatch, turning logging
- // on or off.
+ // Changes the AWS Identity and Access Management (IAM) role that allows Amazon
+ // S3 events to be logged in Amazon CloudWatch, turning logging on or off.
LoggingRole *string `type:"string"`
- // A system-assigned unique identifier for an SFTP server instance that the
- // user account is assigned to.
+ // Specifies the file transfer protocol or protocols over which your file transfer
+ // protocol client can connect to your server's endpoint. The available protocols
+ // are:
+ //
+ // * Secure Shell (SSH) File Transfer Protocol (SFTP): File transfer over
+ // SSH
+ //
+ // * File Transfer Protocol Secure (FTPS): File transfer with TLS encryption
+ //
+ // * File Transfer Protocol (FTP): Unencrypted file transfer
+ Protocols []*string `min:"1" type:"list"`
+
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server instance that the user account is assigned to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -4797,6 +4984,9 @@ func (s UpdateServerInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateServerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateServerInput"}
+ if s.Protocols != nil && len(s.Protocols) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Protocols", 1))
+ }
if s.ServerId == nil {
invalidParams.Add(request.NewErrParamRequired("ServerId"))
}
@@ -4820,6 +5010,12 @@ func (s *UpdateServerInput) Validate() error {
return nil
}
+// SetCertificate sets the Certificate field's value.
+func (s *UpdateServerInput) SetCertificate(v string) *UpdateServerInput {
+ s.Certificate = &v
+ return s
+}
+
// SetEndpointDetails sets the EndpointDetails field's value.
func (s *UpdateServerInput) SetEndpointDetails(v *EndpointDetails) *UpdateServerInput {
s.EndpointDetails = v
@@ -4850,6 +5046,12 @@ func (s *UpdateServerInput) SetLoggingRole(v string) *UpdateServerInput {
return s
}
+// SetProtocols sets the Protocols field's value.
+func (s *UpdateServerInput) SetProtocols(v []*string) *UpdateServerInput {
+ s.Protocols = v
+ return s
+}
+
// SetServerId sets the ServerId field's value.
func (s *UpdateServerInput) SetServerId(v string) *UpdateServerInput {
s.ServerId = &v
@@ -4859,8 +5061,8 @@ func (s *UpdateServerInput) SetServerId(v string) *UpdateServerInput {
type UpdateServerOutput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server that the user account
- // is assigned to.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server that the user account is assigned to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
@@ -4885,40 +5087,43 @@ func (s *UpdateServerOutput) SetServerId(v string) *UpdateServerOutput {
type UpdateUserInput struct {
_ struct{} `type:"structure"`
- // A parameter that specifies the landing directory (folder) for a user when
- // they log in to the server using their client.
+ // Specifies the landing directory (folder) for a user when they log in to the
+ // file transfer protocol-enabled server using their file transfer protocol
+ // client.
//
- // An example is /home/username.
+ // An example is your-Amazon-S3-bucket-name>/home/username.
HomeDirectory *string `type:"string"`
- // Logical directory mappings that specify what S3 paths and keys should be
- // visible to your user and how you want to make them visible. You will need
+ // Logical directory mappings that specify what Amazon S3 paths and keys should
+ // be visible to your user and how you want to make them visible. You will need
// to specify the "Entry" and "Target" pair, where Entry shows how the path
- // is made visible and Target is the actual S3 path. If you only specify a target,
- // it will be displayed as is. You will need to also make sure that your AWS
- // IAM Role provides access to paths in Target. The following is an example.
+ // is made visible and Target is the actual Amazon S3 path. If you only specify
+ // a target, it will be displayed as is. You will need to also make sure that
+ // your AWS IAM Role provides access to paths in Target. The following is an
+ // example.
//
// '[ "/bucket2/documentation", { "Entry": "your-personal-report.pdf", "Target":
// "/bucket3/customized-reports/${transfer:UserName}.pdf" } ]'
//
- // In most cases, you can use this value instead of the scope down policy to
+ // In most cases, you can use this value instead of the scope-down policy to
// lock your user down to the designated home directory ("chroot"). To do this,
// you can set Entry to '/' and set Target to the HomeDirectory parameter value.
//
- // If the target of a logical directory entry does not exist in S3, the entry
- // will be ignored. As a workaround, you can use the S3 api to create 0 byte
- // objects as place holders for your directory. If using the CLI, use the s3api
- // call instead of s3 so you can use the put-object operation. For example,
- // you use the following: aws s3api put-object --bucket bucketname --key path/to/folder/.
- // Make sure that the end of the key name ends in a / for it to be considered
- // a folder.
+ // If the target of a logical directory entry does not exist in Amazon S3, the
+ // entry will be ignored. As a workaround, you can use the Amazon S3 api to
+ // create 0 byte objects as place holders for your directory. If using the CLI,
+ // use the s3api call instead of s3 so you can use the put-object operation.
+ // For example, you use the following: aws s3api put-object --bucket bucketname
+ // --key path/to/folder/. Make sure that the end of the key name ends in a /
+ // for it to be considered a folder.
HomeDirectoryMappings []*HomeDirectoryMapEntry `min:"1" type:"list"`
// The type of landing directory (folder) you want your users' home directory
- // to be when they log into the SFTP serve. If you set it to PATH, the user
- // will see the absolute Amazon S3 bucket paths as is in their SFTP clients.
- // If you set it LOGICAL, you will need to provide mappings in the HomeDirectoryMappings
- // for how you want to make S3 paths visible to your user.
+ // to be when they log into the file transfer protocol-enabled server. If you
+ // set it to PATH, the user will see the absolute Amazon S3 bucket paths as
+ // is in their file transfer protocol clients. If you set it LOGICAL, you will
+ // need to provide mappings in the HomeDirectoryMappings for how you want to
+ // make Amazon S3 paths visible to your users.
HomeDirectoryType *string `type:"string" enum:"HomeDirectoryType"`
// Allows you to supply a scope-down policy for your user so you can use the
@@ -4927,36 +5132,36 @@ type UpdateUserInput struct {
// Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory},
// and ${Transfer:HomeBucket}.
//
- // For scope-down policies, AWS Transfer for SFTP stores the policy as a JSON
+ // For scope-down policies, AWS Transfer Family stores the policy as a JSON
// blob, instead of the Amazon Resource Name (ARN) of the policy. You save the
// policy as a JSON blob and pass it in the Policy argument.
//
- // For an example of a scope-down policy, see "https://docs.aws.amazon.com/transfer/latest/userguide/users.html#users-policies-scope-down">Creating
- // a Scope-Down Policy.
+ // For an example of a scope-down policy, see Creating a Scope-Down Policy (https://docs.aws.amazon.com/transfer/latest/userguide/users.html#users-policies-scope-down).
//
- // For more information, see "https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html"
+ // For more information, see AssumeRole (https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html)
// in the AWS Security Token Service API Reference.
Policy *string `type:"string"`
- // The IAM role that controls your user's access to your Amazon S3 bucket. The
+ // The IAM role that controls your users' access to your Amazon S3 bucket. The
// policies attached to this role will determine the level of access you want
// to provide your users when transferring files into and out of your Amazon
// S3 bucket or buckets. The IAM role should also contain a trust relationship
- // that allows the Secure File Transfer Protocol (SFTP) server to access your
- // resources when servicing your SFTP user's transfer requests.
+ // that allows the file transfer protocol-enabled server to access your resources
+ // when servicing your users' transfer requests.
Role *string `min:"20" type:"string"`
- // A system-assigned unique identifier for an SFTP server instance that the
- // user account is assigned to.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server instance that the user account is assigned to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // A unique string that identifies a user and is associated with a server as
- // specified by the ServerId. This is the string that will be used by your user
- // when they log in to your SFTP server. This user name is a minimum of 3 and
- // a maximum of 32 characters long. The following are valid characters: a-z,
- // A-Z, 0-9, underscore, and hyphen. The user name can't start with a hyphen.
+ // A unique string that identifies a user and is associated with a file transfer
+ // protocol-enabled server as specified by the ServerId. This is the string
+ // that will be used by your user when they log in to your server. This user
+ // name is a minimum of 3 and a maximum of 32 characters long. The following
+ // are valid characters: a-z, A-Z, 0-9, underscore, and hyphen. The user name
+ // can't start with a hyphen.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -5052,19 +5257,19 @@ func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput {
return s
}
-// UpdateUserResponse returns the user name and server identifier for the request
-// to update a user's properties.
+// UpdateUserResponse returns the user name and file transfer protocol-enabled
+// server identifier for the request to update a user's properties.
type UpdateUserOutput struct {
_ struct{} `type:"structure"`
- // A system-assigned unique identifier for an SFTP server instance that the
- // user account is assigned to.
+ // A system-assigned unique identifier for a file transfer protocol-enabled
+ // server instance that the user account is assigned to.
//
// ServerId is a required field
ServerId *string `min:"19" type:"string" required:"true"`
- // The unique identifier for a user that is assigned to the SFTP server instance
- // that was specified in the request.
+ // The unique identifier for a user that is assigned to a file transfer protocol-enabled
+ // server instance that was specified in the request.
//
// UserName is a required field
UserName *string `min:"3" type:"string" required:"true"`
@@ -5112,10 +5317,11 @@ const (
)
// Returns information related to the type of user authentication that is in
-// use for a server's users. For SERVICE_MANAGED authentication, the Secure
-// Shell (SSH) public keys are stored with a user on an SFTP server instance.
-// For API_GATEWAY authentication, your custom authentication method is implemented
-// by using an API call. A server can have only one method of authentication.
+// use for a file transfer protocol-enabled server's users. For SERVICE_MANAGED
+// authentication, the Secure Shell (SSH) public keys are stored with a user
+// on the server instance. For API_GATEWAY authentication, your custom authentication
+// method is implemented by using an API call. The server can have only one
+// method of authentication.
const (
// IdentityProviderTypeServiceManaged is a IdentityProviderType enum value
IdentityProviderTypeServiceManaged = "SERVICE_MANAGED"
@@ -5124,15 +5330,26 @@ const (
IdentityProviderTypeApiGateway = "API_GATEWAY"
)
-// Describes the condition of the SFTP server with respect to its ability to
-// perform file operations. There are six possible states: OFFLINE, ONLINE,
-// STARTING, STOPPING, START_FAILED, and STOP_FAILED.
+const (
+ // ProtocolSftp is a Protocol enum value
+ ProtocolSftp = "SFTP"
+
+ // ProtocolFtp is a Protocol enum value
+ ProtocolFtp = "FTP"
+
+ // ProtocolFtps is a Protocol enum value
+ ProtocolFtps = "FTPS"
+)
+
+// Describes the condition of a file transfer protocol-enabled server with respect
+// to its ability to perform file operations. There are six possible states:
+// OFFLINE, ONLINE, STARTING, STOPPING, START_FAILED, and STOP_FAILED.
//
-// OFFLINE indicates that the SFTP server exists, but that it is not available
-// for file operations. ONLINE indicates that the SFTP server is available to
-// perform file operations. STARTING indicates that the SFTP server's was instantiated,
-// but the server is not yet available to perform file operations. Under normal
-// conditions, it can take a couple of minutes for an SFTP server to be completely
+// OFFLINE indicates that the server exists, but that it is not available for
+// file operations. ONLINE indicates that the server is available to perform
+// file operations. STARTING indicates that the server's was instantiated, but
+// the server is not yet available to perform file operations. Under normal
+// conditions, it can take a couple of minutes for the server to be completely
// operational. Both START_FAILED and STOP_FAILED are error conditions.
const (
// StateOffline is a State enum value
diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go
index 51a9c01b3df..407175dd222 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go
@@ -1,18 +1,19 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package transfer provides the client and types for making API
-// requests to AWS Transfer for SFTP.
-//
-// AWS Transfer for SFTP is a fully managed service that enables the transfer
-// of files directly into and out of Amazon S3 using the Secure File Transfer
-// Protocol (SFTP)—also known as Secure Shell (SSH) File Transfer Protocol.
-// AWS helps you seamlessly migrate your file transfer workflows to AWS Transfer
-// for SFTP—by integrating with existing authentication systems, and providing
-// DNS routing with Amazon Route 53—so nothing changes for your customers
-// and partners, or their applications. With your data in S3, you can use it
-// with AWS services for processing, analytics, machine learning, and archiving.
-// Getting started with AWS Transfer for SFTP (AWS SFTP) is easy; there is no
-// infrastructure to buy and set up.
+// requests to AWS Transfer Family.
+//
+// AWS Transfer Family is a fully managed service that enables the transfer
+// of files over the the File Transfer Protocol (FTP), File Transfer Protocol
+// over SSL (FTPS), or Secure Shell (SSH) File Transfer Protocol (SFTP) directly
+// into and out of Amazon Simple Storage Service (Amazon S3). AWS helps you
+// seamlessly migrate your file transfer workflows to AWS Transfer Family by
+// integrating with existing authentication systems, and providing DNS routing
+// with Amazon Route 53 so nothing changes for your customers and partners,
+// or their applications. With your data in Amazon S3, you can use it with AWS
+// services for processing, analytics, machine learning, and archiving. Getting
+// started with AWS Transfer Family is easy since there is no infrastructure
+// to buy and set up.
//
// See https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05 for more information on this service.
//
@@ -21,7 +22,7 @@
//
// Using the Client
//
-// To contact AWS Transfer for SFTP with the SDK use the New function to create
+// To contact AWS Transfer Family with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
@@ -31,7 +32,7 @@
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
-// See the AWS Transfer for SFTP client Transfer for more
+// See the AWS Transfer Family client Transfer for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/transfer/#New
package transfer
diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go
index 0aef6abd4dc..d4a863ac52f 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go
@@ -8,18 +8,24 @@ import (
const (
+ // ErrCodeAccessDeniedException for service response error code
+ // "AccessDeniedException".
+ //
+ // You do not have sufficient access to perform this action.
+ ErrCodeAccessDeniedException = "AccessDeniedException"
+
// ErrCodeConflictException for service response error code
// "ConflictException".
//
- // This exception is thrown when the UpdatServer is called for a server that
- // has VPC as the endpoint type and the server's VpcEndpointID is not in the
- // available state.
+ // This exception is thrown when the UpdatServer is called for a file transfer
+ // protocol-enabled server that has VPC as the endpoint type and the server's
+ // VpcEndpointID is not in the available state.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServiceError for service response error code
// "InternalServiceError".
//
- // This exception is thrown when an error occurs in the AWS Transfer for SFTP
+ // This exception is thrown when an error occurs in the AWS Transfer Family
// service.
ErrCodeInternalServiceError = "InternalServiceError"
@@ -45,13 +51,13 @@ const (
// "ResourceNotFoundException".
//
// This exception is thrown when a resource is not found by the AWS Transfer
- // for SFTP service.
+ // Family service.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
- // The request has failed because the AWS Transfer for SFTP service is not available.
+ // The request has failed because the AWS Transfer Family service is not available.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeThrottlingException for service response error code
@@ -64,6 +70,7 @@ const (
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
"ConflictException": newErrorConflictException,
"InternalServiceError": newErrorInternalServiceError,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go
index 639b4da4dc2..3c51a21dd73 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go
@@ -13,7 +13,7 @@ import (
)
// Transfer provides the API operation methods for making requests to
-// AWS Transfer for SFTP. See this package's package overview docs
+// AWS Transfer Family. See this package's package overview docs
// for details on the service.
//
// Transfer methods are safe to use concurrently. It is not safe to
diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go
index 1267ed1a5f3..8b51e61dd1c 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go
@@ -9517,8 +9517,8 @@ func (s *ActivatedRule) SetType(v string) *ActivatedRule {
}
type BadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9535,17 +9535,17 @@ func (s BadRequestException) GoString() string {
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s BadRequestException) Code() string {
+func (s *BadRequestException) Code() string {
return "WAFBadRequestException"
}
// Message returns the exception's message.
-func (s BadRequestException) Message() string {
+func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9553,22 +9553,22 @@ func (s BadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s BadRequestException) OrigErr() error {
+func (s *BadRequestException) OrigErr() error {
return nil
}
-func (s BadRequestException) Error() string {
+func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s BadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *BadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s BadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *BadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// In a GetByteMatchSet request, ByteMatchSet is a complex type that contains
@@ -12462,8 +12462,8 @@ func (s *DeleteXssMatchSetOutput) SetChangeToken(v string) *DeleteXssMatchSetOut
// The name specified is invalid.
type DisallowedNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12480,17 +12480,17 @@ func (s DisallowedNameException) GoString() string {
func newErrorDisallowedNameException(v protocol.ResponseMetadata) error {
return &DisallowedNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DisallowedNameException) Code() string {
+func (s *DisallowedNameException) Code() string {
return "WAFDisallowedNameException"
}
// Message returns the exception's message.
-func (s DisallowedNameException) Message() string {
+func (s *DisallowedNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12498,22 +12498,22 @@ func (s DisallowedNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DisallowedNameException) OrigErr() error {
+func (s *DisallowedNameException) OrigErr() error {
return nil
}
-func (s DisallowedNameException) Error() string {
+func (s *DisallowedNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DisallowedNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DisallowedNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DisallowedNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DisallowedNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The rule to exclude from a rule group. This is applicable only when the ActivatedRule
@@ -14532,8 +14532,8 @@ func (s *IPSetUpdate) SetIPSetDescriptor(v *IPSetDescriptor) *IPSetUpdate {
// The operation failed because of a system problem, even though the request
// was valid. Retry your request.
type InternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14550,17 +14550,17 @@ func (s InternalErrorException) GoString() string {
func newErrorInternalErrorException(v protocol.ResponseMetadata) error {
return &InternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalErrorException) Code() string {
+func (s *InternalErrorException) Code() string {
return "WAFInternalErrorException"
}
// Message returns the exception's message.
-func (s InternalErrorException) Message() string {
+func (s *InternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14568,29 +14568,29 @@ func (s InternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalErrorException) OrigErr() error {
+func (s *InternalErrorException) OrigErr() error {
return nil
}
-func (s InternalErrorException) Error() string {
+func (s *InternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to create, update, or delete an object
// by using an invalid account identifier.
type InvalidAccountException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14607,17 +14607,17 @@ func (s InvalidAccountException) GoString() string {
func newErrorInvalidAccountException(v protocol.ResponseMetadata) error {
return &InvalidAccountException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidAccountException) Code() string {
+func (s *InvalidAccountException) Code() string {
return "WAFInvalidAccountException"
}
// Message returns the exception's message.
-func (s InvalidAccountException) Message() string {
+func (s *InvalidAccountException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14625,22 +14625,22 @@ func (s InvalidAccountException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidAccountException) OrigErr() error {
+func (s *InvalidAccountException) OrigErr() error {
return nil
}
-func (s InvalidAccountException) Error() string {
+func (s *InvalidAccountException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidAccountException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidAccountException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidAccountException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidAccountException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because there was nothing to do. For example:
@@ -14660,8 +14660,8 @@ func (s InvalidAccountException) RequestID() string {
// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple
// already exists in the specified WebACL.
type InvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14678,17 +14678,17 @@ func (s InvalidOperationException) GoString() string {
func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
return &InvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidOperationException) Code() string {
+func (s *InvalidOperationException) Code() string {
return "WAFInvalidOperationException"
}
// Message returns the exception's message.
-func (s InvalidOperationException) Message() string {
+func (s *InvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14696,22 +14696,22 @@ func (s InvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidOperationException) OrigErr() error {
+func (s *InvalidOperationException) OrigErr() error {
return nil
}
-func (s InvalidOperationException) Error() string {
+func (s *InvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because AWS WAF didn't recognize a parameter in the
@@ -14742,8 +14742,8 @@ func (s InvalidOperationException) RequestID() string {
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a web ACL cannot be associated.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Field *string `locationName:"field" type:"string" enum:"ParameterExceptionField"`
@@ -14766,17 +14766,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "WAFInvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14784,22 +14784,22 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because the specified policy is not in the proper format.
@@ -14825,8 +14825,8 @@ func (s InvalidParameterException) RequestID() string {
//
// * Your policy must be composed using IAM Policy version 2012-10-17.
type InvalidPermissionPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14843,17 +14843,17 @@ func (s InvalidPermissionPolicyException) GoString() string {
func newErrorInvalidPermissionPolicyException(v protocol.ResponseMetadata) error {
return &InvalidPermissionPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPermissionPolicyException) Code() string {
+func (s *InvalidPermissionPolicyException) Code() string {
return "WAFInvalidPermissionPolicyException"
}
// Message returns the exception's message.
-func (s InvalidPermissionPolicyException) Message() string {
+func (s *InvalidPermissionPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14861,28 +14861,28 @@ func (s InvalidPermissionPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPermissionPolicyException) OrigErr() error {
+func (s *InvalidPermissionPolicyException) OrigErr() error {
return nil
}
-func (s InvalidPermissionPolicyException) Error() string {
+func (s *InvalidPermissionPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPermissionPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPermissionPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPermissionPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPermissionPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The regular expression (regex) you specified in RegexPatternString is invalid.
type InvalidRegexPatternException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14899,17 +14899,17 @@ func (s InvalidRegexPatternException) GoString() string {
func newErrorInvalidRegexPatternException(v protocol.ResponseMetadata) error {
return &InvalidRegexPatternException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRegexPatternException) Code() string {
+func (s *InvalidRegexPatternException) Code() string {
return "WAFInvalidRegexPatternException"
}
// Message returns the exception's message.
-func (s InvalidRegexPatternException) Message() string {
+func (s *InvalidRegexPatternException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14917,22 +14917,22 @@ func (s InvalidRegexPatternException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRegexPatternException) OrigErr() error {
+func (s *InvalidRegexPatternException) OrigErr() error {
return nil
}
-func (s InvalidRegexPatternException) Error() string {
+func (s *InvalidRegexPatternException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRegexPatternException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRegexPatternException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRegexPatternException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRegexPatternException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation exceeds a resource limit, for example, the maximum number of
@@ -14940,8 +14940,8 @@ func (s InvalidRegexPatternException) RequestID() string {
// see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
// in the AWS WAF Developer Guide.
type LimitsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -14958,17 +14958,17 @@ func (s LimitsExceededException) GoString() string {
func newErrorLimitsExceededException(v protocol.ResponseMetadata) error {
return &LimitsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitsExceededException) Code() string {
+func (s *LimitsExceededException) Code() string {
return "WAFLimitsExceededException"
}
// Message returns the exception's message.
-func (s LimitsExceededException) Message() string {
+func (s *LimitsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -14976,22 +14976,22 @@ func (s LimitsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitsExceededException) OrigErr() error {
+func (s *LimitsExceededException) OrigErr() error {
return nil
}
-func (s LimitsExceededException) Error() string {
+func (s *LimitsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListActivatedRulesInRuleGroupInput struct {
@@ -16507,8 +16507,8 @@ func (s *LoggingConfiguration) SetResourceArn(v string) *LoggingConfiguration {
//
// * You tried to delete an IPSet that references one or more IP addresses.
type NonEmptyEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16525,17 +16525,17 @@ func (s NonEmptyEntityException) GoString() string {
func newErrorNonEmptyEntityException(v protocol.ResponseMetadata) error {
return &NonEmptyEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NonEmptyEntityException) Code() string {
+func (s *NonEmptyEntityException) Code() string {
return "WAFNonEmptyEntityException"
}
// Message returns the exception's message.
-func (s NonEmptyEntityException) Message() string {
+func (s *NonEmptyEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16543,22 +16543,22 @@ func (s NonEmptyEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NonEmptyEntityException) OrigErr() error {
+func (s *NonEmptyEntityException) OrigErr() error {
return nil
}
-func (s NonEmptyEntityException) Error() string {
+func (s *NonEmptyEntityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NonEmptyEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NonEmptyEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NonEmptyEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NonEmptyEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to add an object to or delete an object
@@ -16576,8 +16576,8 @@ func (s NonEmptyEntityException) RequestID() string {
// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from
// a ByteMatchSet that doesn't exist.
type NonexistentContainerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16594,17 +16594,17 @@ func (s NonexistentContainerException) GoString() string {
func newErrorNonexistentContainerException(v protocol.ResponseMetadata) error {
return &NonexistentContainerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NonexistentContainerException) Code() string {
+func (s *NonexistentContainerException) Code() string {
return "WAFNonexistentContainerException"
}
// Message returns the exception's message.
-func (s NonexistentContainerException) Message() string {
+func (s *NonexistentContainerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16612,28 +16612,28 @@ func (s NonexistentContainerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NonexistentContainerException) OrigErr() error {
+func (s *NonexistentContainerException) OrigErr() error {
return nil
}
-func (s NonexistentContainerException) Error() string {
+func (s *NonexistentContainerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NonexistentContainerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NonexistentContainerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NonexistentContainerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NonexistentContainerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because the referenced object doesn't exist.
type NonexistentItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -16650,17 +16650,17 @@ func (s NonexistentItemException) GoString() string {
func newErrorNonexistentItemException(v protocol.ResponseMetadata) error {
return &NonexistentItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NonexistentItemException) Code() string {
+func (s *NonexistentItemException) Code() string {
return "WAFNonexistentItemException"
}
// Message returns the exception's message.
-func (s NonexistentItemException) Message() string {
+func (s *NonexistentItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -16668,22 +16668,22 @@ func (s NonexistentItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NonexistentItemException) OrigErr() error {
+func (s *NonexistentItemException) OrigErr() error {
return nil
}
-func (s NonexistentItemException) Error() string {
+func (s *NonexistentItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NonexistentItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NonexistentItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NonexistentItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NonexistentItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet,
@@ -17029,8 +17029,8 @@ func (s *RateBasedRule) SetRuleId(v string) *RateBasedRule {
//
// * You tried to delete a Rule that is still referenced by a WebACL.
type ReferencedItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -17047,17 +17047,17 @@ func (s ReferencedItemException) GoString() string {
func newErrorReferencedItemException(v protocol.ResponseMetadata) error {
return &ReferencedItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReferencedItemException) Code() string {
+func (s *ReferencedItemException) Code() string {
return "WAFReferencedItemException"
}
// Message returns the exception's message.
-func (s ReferencedItemException) Message() string {
+func (s *ReferencedItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -17065,22 +17065,22 @@ func (s ReferencedItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReferencedItemException) OrigErr() error {
+func (s *ReferencedItemException) OrigErr() error {
return nil
}
-func (s ReferencedItemException) Error() string {
+func (s *ReferencedItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReferencedItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReferencedItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReferencedItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReferencedItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// In a GetRegexMatchSet request, RegexMatchSet is a complex type that contains
@@ -18006,8 +18006,8 @@ func (s *SampledHTTPRequest) SetWeight(v int64) *SampledHTTPRequest {
// exception again, you will have to wait additional time until the role is
// unlocked.
type ServiceLinkedRoleErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18024,17 +18024,17 @@ func (s ServiceLinkedRoleErrorException) GoString() string {
func newErrorServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error {
return &ServiceLinkedRoleErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ServiceLinkedRoleErrorException) Code() string {
+func (s *ServiceLinkedRoleErrorException) Code() string {
return "WAFServiceLinkedRoleErrorException"
}
// Message returns the exception's message.
-func (s ServiceLinkedRoleErrorException) Message() string {
+func (s *ServiceLinkedRoleErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18042,22 +18042,22 @@ func (s ServiceLinkedRoleErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ServiceLinkedRoleErrorException) OrigErr() error {
+func (s *ServiceLinkedRoleErrorException) OrigErr() error {
return nil
}
-func (s ServiceLinkedRoleErrorException) Error() string {
+func (s *ServiceLinkedRoleErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ServiceLinkedRoleErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ServiceLinkedRoleErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ServiceLinkedRoleErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ServiceLinkedRoleErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Specifies a constraint on the size of a part of the web request. AWS WAF
@@ -18709,8 +18709,8 @@ func (s *SqlInjectionMatchTuple) SetTextTransformation(v string) *SqlInjectionMa
// The operation failed because you tried to create, update, or delete an object
// by using a change token that has already been used.
type StaleDataException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18727,17 +18727,17 @@ func (s StaleDataException) GoString() string {
func newErrorStaleDataException(v protocol.ResponseMetadata) error {
return &StaleDataException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s StaleDataException) Code() string {
+func (s *StaleDataException) Code() string {
return "WAFStaleDataException"
}
// Message returns the exception's message.
-func (s StaleDataException) Message() string {
+func (s *StaleDataException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18745,22 +18745,22 @@ func (s StaleDataException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s StaleDataException) OrigErr() error {
+func (s *StaleDataException) OrigErr() error {
return nil
}
-func (s StaleDataException) Error() string {
+func (s *StaleDataException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s StaleDataException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *StaleDataException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s StaleDataException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *StaleDataException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A summary of the rule groups you are subscribed to.
@@ -18818,8 +18818,8 @@ func (s *SubscribedRuleGroupSummary) SetRuleGroupId(v string) *SubscribedRuleGro
// The specified subscription does not exist.
type SubscriptionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18836,17 +18836,17 @@ func (s SubscriptionNotFoundException) GoString() string {
func newErrorSubscriptionNotFoundException(v protocol.ResponseMetadata) error {
return &SubscriptionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s SubscriptionNotFoundException) Code() string {
+func (s *SubscriptionNotFoundException) Code() string {
return "WAFSubscriptionNotFoundException"
}
// Message returns the exception's message.
-func (s SubscriptionNotFoundException) Message() string {
+func (s *SubscriptionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18854,22 +18854,22 @@ func (s SubscriptionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s SubscriptionNotFoundException) OrigErr() error {
+func (s *SubscriptionNotFoundException) OrigErr() error {
return nil
}
-func (s SubscriptionNotFoundException) Error() string {
+func (s *SubscriptionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s SubscriptionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *SubscriptionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s SubscriptionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *SubscriptionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type Tag struct {
@@ -18946,8 +18946,8 @@ func (s *TagInfoForResource) SetTagList(v []*Tag) *TagInfoForResource {
}
type TagOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -18964,17 +18964,17 @@ func (s TagOperationException) GoString() string {
func newErrorTagOperationException(v protocol.ResponseMetadata) error {
return &TagOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagOperationException) Code() string {
+func (s *TagOperationException) Code() string {
return "WAFTagOperationException"
}
// Message returns the exception's message.
-func (s TagOperationException) Message() string {
+func (s *TagOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -18982,27 +18982,27 @@ func (s TagOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagOperationException) OrigErr() error {
+func (s *TagOperationException) OrigErr() error {
return nil
}
-func (s TagOperationException) Error() string {
+func (s *TagOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagOperationInternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -19019,17 +19019,17 @@ func (s TagOperationInternalErrorException) GoString() string {
func newErrorTagOperationInternalErrorException(v protocol.ResponseMetadata) error {
return &TagOperationInternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TagOperationInternalErrorException) Code() string {
+func (s *TagOperationInternalErrorException) Code() string {
return "WAFTagOperationInternalErrorException"
}
// Message returns the exception's message.
-func (s TagOperationInternalErrorException) Message() string {
+func (s *TagOperationInternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -19037,22 +19037,22 @@ func (s TagOperationInternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TagOperationInternalErrorException) OrigErr() error {
+func (s *TagOperationInternalErrorException) OrigErr() error {
return nil
}
-func (s TagOperationInternalErrorException) Error() string {
+func (s *TagOperationInternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TagOperationInternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TagOperationInternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TagOperationInternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TagOperationInternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type TagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go
index ec82a1dc500..94527975a55 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go
@@ -10096,8 +10096,8 @@ func (s *ListResourcesForWebACLOutput) SetResourceArns(v []*string) *ListResourc
}
type WAFBadRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10114,17 +10114,17 @@ func (s WAFBadRequestException) GoString() string {
func newErrorWAFBadRequestException(v protocol.ResponseMetadata) error {
return &WAFBadRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFBadRequestException) Code() string {
+func (s *WAFBadRequestException) Code() string {
return "WAFBadRequestException"
}
// Message returns the exception's message.
-func (s WAFBadRequestException) Message() string {
+func (s *WAFBadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10132,28 +10132,28 @@ func (s WAFBadRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFBadRequestException) OrigErr() error {
+func (s *WAFBadRequestException) OrigErr() error {
return nil
}
-func (s WAFBadRequestException) Error() string {
+func (s *WAFBadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFBadRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFBadRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFBadRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFBadRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The name specified is invalid.
type WAFDisallowedNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10170,17 +10170,17 @@ func (s WAFDisallowedNameException) GoString() string {
func newErrorWAFDisallowedNameException(v protocol.ResponseMetadata) error {
return &WAFDisallowedNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFDisallowedNameException) Code() string {
+func (s *WAFDisallowedNameException) Code() string {
return "WAFDisallowedNameException"
}
// Message returns the exception's message.
-func (s WAFDisallowedNameException) Message() string {
+func (s *WAFDisallowedNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10188,29 +10188,29 @@ func (s WAFDisallowedNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFDisallowedNameException) OrigErr() error {
+func (s *WAFDisallowedNameException) OrigErr() error {
return nil
}
-func (s WAFDisallowedNameException) Error() string {
+func (s *WAFDisallowedNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFDisallowedNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFDisallowedNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFDisallowedNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFDisallowedNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because of a system problem, even though the request
// was valid. Retry your request.
type WAFInternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10227,17 +10227,17 @@ func (s WAFInternalErrorException) GoString() string {
func newErrorWAFInternalErrorException(v protocol.ResponseMetadata) error {
return &WAFInternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInternalErrorException) Code() string {
+func (s *WAFInternalErrorException) Code() string {
return "WAFInternalErrorException"
}
// Message returns the exception's message.
-func (s WAFInternalErrorException) Message() string {
+func (s *WAFInternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10245,29 +10245,29 @@ func (s WAFInternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInternalErrorException) OrigErr() error {
+func (s *WAFInternalErrorException) OrigErr() error {
return nil
}
-func (s WAFInternalErrorException) Error() string {
+func (s *WAFInternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to create, update, or delete an object
// by using an invalid account identifier.
type WAFInvalidAccountException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10284,17 +10284,17 @@ func (s WAFInvalidAccountException) GoString() string {
func newErrorWAFInvalidAccountException(v protocol.ResponseMetadata) error {
return &WAFInvalidAccountException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidAccountException) Code() string {
+func (s *WAFInvalidAccountException) Code() string {
return "WAFInvalidAccountException"
}
// Message returns the exception's message.
-func (s WAFInvalidAccountException) Message() string {
+func (s *WAFInvalidAccountException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10302,22 +10302,22 @@ func (s WAFInvalidAccountException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidAccountException) OrigErr() error {
+func (s *WAFInvalidAccountException) OrigErr() error {
return nil
}
-func (s WAFInvalidAccountException) Error() string {
+func (s *WAFInvalidAccountException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidAccountException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidAccountException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidAccountException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidAccountException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because there was nothing to do. For example:
@@ -10337,8 +10337,8 @@ func (s WAFInvalidAccountException) RequestID() string {
// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple
// already exists in the specified WebACL.
type WAFInvalidOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10355,17 +10355,17 @@ func (s WAFInvalidOperationException) GoString() string {
func newErrorWAFInvalidOperationException(v protocol.ResponseMetadata) error {
return &WAFInvalidOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidOperationException) Code() string {
+func (s *WAFInvalidOperationException) Code() string {
return "WAFInvalidOperationException"
}
// Message returns the exception's message.
-func (s WAFInvalidOperationException) Message() string {
+func (s *WAFInvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10373,22 +10373,22 @@ func (s WAFInvalidOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidOperationException) OrigErr() error {
+func (s *WAFInvalidOperationException) OrigErr() error {
return nil
}
-func (s WAFInvalidOperationException) Error() string {
+func (s *WAFInvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because AWS WAF didn't recognize a parameter in the
@@ -10419,8 +10419,8 @@ func (s WAFInvalidOperationException) RequestID() string {
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a web ACL cannot be associated.
type WAFInvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Field *string `locationName:"field" type:"string" enum:"ParameterExceptionField"`
@@ -10443,17 +10443,17 @@ func (s WAFInvalidParameterException) GoString() string {
func newErrorWAFInvalidParameterException(v protocol.ResponseMetadata) error {
return &WAFInvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidParameterException) Code() string {
+func (s *WAFInvalidParameterException) Code() string {
return "WAFInvalidParameterException"
}
// Message returns the exception's message.
-func (s WAFInvalidParameterException) Message() string {
+func (s *WAFInvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10461,22 +10461,22 @@ func (s WAFInvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidParameterException) OrigErr() error {
+func (s *WAFInvalidParameterException) OrigErr() error {
return nil
}
-func (s WAFInvalidParameterException) Error() string {
+func (s *WAFInvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because the specified policy is not in the proper format.
@@ -10502,8 +10502,8 @@ func (s WAFInvalidParameterException) RequestID() string {
//
// * Your policy must be composed using IAM Policy version 2012-10-17.
type WAFInvalidPermissionPolicyException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10520,17 +10520,17 @@ func (s WAFInvalidPermissionPolicyException) GoString() string {
func newErrorWAFInvalidPermissionPolicyException(v protocol.ResponseMetadata) error {
return &WAFInvalidPermissionPolicyException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidPermissionPolicyException) Code() string {
+func (s *WAFInvalidPermissionPolicyException) Code() string {
return "WAFInvalidPermissionPolicyException"
}
// Message returns the exception's message.
-func (s WAFInvalidPermissionPolicyException) Message() string {
+func (s *WAFInvalidPermissionPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10538,28 +10538,28 @@ func (s WAFInvalidPermissionPolicyException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidPermissionPolicyException) OrigErr() error {
+func (s *WAFInvalidPermissionPolicyException) OrigErr() error {
return nil
}
-func (s WAFInvalidPermissionPolicyException) Error() string {
+func (s *WAFInvalidPermissionPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidPermissionPolicyException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidPermissionPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidPermissionPolicyException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidPermissionPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The regular expression (regex) you specified in RegexPatternString is invalid.
type WAFInvalidRegexPatternException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10576,17 +10576,17 @@ func (s WAFInvalidRegexPatternException) GoString() string {
func newErrorWAFInvalidRegexPatternException(v protocol.ResponseMetadata) error {
return &WAFInvalidRegexPatternException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidRegexPatternException) Code() string {
+func (s *WAFInvalidRegexPatternException) Code() string {
return "WAFInvalidRegexPatternException"
}
// Message returns the exception's message.
-func (s WAFInvalidRegexPatternException) Message() string {
+func (s *WAFInvalidRegexPatternException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10594,22 +10594,22 @@ func (s WAFInvalidRegexPatternException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidRegexPatternException) OrigErr() error {
+func (s *WAFInvalidRegexPatternException) OrigErr() error {
return nil
}
-func (s WAFInvalidRegexPatternException) Error() string {
+func (s *WAFInvalidRegexPatternException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidRegexPatternException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidRegexPatternException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidRegexPatternException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidRegexPatternException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation exceeds a resource limit, for example, the maximum number of
@@ -10617,8 +10617,8 @@ func (s WAFInvalidRegexPatternException) RequestID() string {
// see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
// in the AWS WAF Developer Guide.
type WAFLimitsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10635,17 +10635,17 @@ func (s WAFLimitsExceededException) GoString() string {
func newErrorWAFLimitsExceededException(v protocol.ResponseMetadata) error {
return &WAFLimitsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFLimitsExceededException) Code() string {
+func (s *WAFLimitsExceededException) Code() string {
return "WAFLimitsExceededException"
}
// Message returns the exception's message.
-func (s WAFLimitsExceededException) Message() string {
+func (s *WAFLimitsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10653,22 +10653,22 @@ func (s WAFLimitsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFLimitsExceededException) OrigErr() error {
+func (s *WAFLimitsExceededException) OrigErr() error {
return nil
}
-func (s WAFLimitsExceededException) Error() string {
+func (s *WAFLimitsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFLimitsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFLimitsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFLimitsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFLimitsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to delete an object that isn't empty.
@@ -10684,8 +10684,8 @@ func (s WAFLimitsExceededException) RequestID() string {
//
// * You tried to delete an IPSet that references one or more IP addresses.
type WAFNonEmptyEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10702,17 +10702,17 @@ func (s WAFNonEmptyEntityException) GoString() string {
func newErrorWAFNonEmptyEntityException(v protocol.ResponseMetadata) error {
return &WAFNonEmptyEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFNonEmptyEntityException) Code() string {
+func (s *WAFNonEmptyEntityException) Code() string {
return "WAFNonEmptyEntityException"
}
// Message returns the exception's message.
-func (s WAFNonEmptyEntityException) Message() string {
+func (s *WAFNonEmptyEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10720,22 +10720,22 @@ func (s WAFNonEmptyEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFNonEmptyEntityException) OrigErr() error {
+func (s *WAFNonEmptyEntityException) OrigErr() error {
return nil
}
-func (s WAFNonEmptyEntityException) Error() string {
+func (s *WAFNonEmptyEntityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFNonEmptyEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFNonEmptyEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFNonEmptyEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFNonEmptyEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to add an object to or delete an object
@@ -10753,8 +10753,8 @@ func (s WAFNonEmptyEntityException) RequestID() string {
// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from
// a ByteMatchSet that doesn't exist.
type WAFNonexistentContainerException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10771,17 +10771,17 @@ func (s WAFNonexistentContainerException) GoString() string {
func newErrorWAFNonexistentContainerException(v protocol.ResponseMetadata) error {
return &WAFNonexistentContainerException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFNonexistentContainerException) Code() string {
+func (s *WAFNonexistentContainerException) Code() string {
return "WAFNonexistentContainerException"
}
// Message returns the exception's message.
-func (s WAFNonexistentContainerException) Message() string {
+func (s *WAFNonexistentContainerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10789,28 +10789,28 @@ func (s WAFNonexistentContainerException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFNonexistentContainerException) OrigErr() error {
+func (s *WAFNonexistentContainerException) OrigErr() error {
return nil
}
-func (s WAFNonexistentContainerException) Error() string {
+func (s *WAFNonexistentContainerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFNonexistentContainerException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFNonexistentContainerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFNonexistentContainerException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFNonexistentContainerException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because the referenced object doesn't exist.
type WAFNonexistentItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10827,17 +10827,17 @@ func (s WAFNonexistentItemException) GoString() string {
func newErrorWAFNonexistentItemException(v protocol.ResponseMetadata) error {
return &WAFNonexistentItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFNonexistentItemException) Code() string {
+func (s *WAFNonexistentItemException) Code() string {
return "WAFNonexistentItemException"
}
// Message returns the exception's message.
-func (s WAFNonexistentItemException) Message() string {
+func (s *WAFNonexistentItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10845,22 +10845,22 @@ func (s WAFNonexistentItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFNonexistentItemException) OrigErr() error {
+func (s *WAFNonexistentItemException) OrigErr() error {
return nil
}
-func (s WAFNonexistentItemException) Error() string {
+func (s *WAFNonexistentItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFNonexistentItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFNonexistentItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFNonexistentItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFNonexistentItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to delete an object that is still
@@ -10870,8 +10870,8 @@ func (s WAFNonexistentItemException) RequestID() string {
//
// * You tried to delete a Rule that is still referenced by a WebACL.
type WAFReferencedItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10888,17 +10888,17 @@ func (s WAFReferencedItemException) GoString() string {
func newErrorWAFReferencedItemException(v protocol.ResponseMetadata) error {
return &WAFReferencedItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFReferencedItemException) Code() string {
+func (s *WAFReferencedItemException) Code() string {
return "WAFReferencedItemException"
}
// Message returns the exception's message.
-func (s WAFReferencedItemException) Message() string {
+func (s *WAFReferencedItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10906,22 +10906,22 @@ func (s WAFReferencedItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFReferencedItemException) OrigErr() error {
+func (s *WAFReferencedItemException) OrigErr() error {
return nil
}
-func (s WAFReferencedItemException) Error() string {
+func (s *WAFReferencedItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFReferencedItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFReferencedItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFReferencedItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFReferencedItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF is not able to access the service linked role. This can be caused
@@ -10933,8 +10933,8 @@ func (s WAFReferencedItemException) RequestID() string {
// exception again, you will have to wait additional time until the role is
// unlocked.
type WAFServiceLinkedRoleErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -10951,17 +10951,17 @@ func (s WAFServiceLinkedRoleErrorException) GoString() string {
func newErrorWAFServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error {
return &WAFServiceLinkedRoleErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFServiceLinkedRoleErrorException) Code() string {
+func (s *WAFServiceLinkedRoleErrorException) Code() string {
return "WAFServiceLinkedRoleErrorException"
}
// Message returns the exception's message.
-func (s WAFServiceLinkedRoleErrorException) Message() string {
+func (s *WAFServiceLinkedRoleErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10969,29 +10969,29 @@ func (s WAFServiceLinkedRoleErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFServiceLinkedRoleErrorException) OrigErr() error {
+func (s *WAFServiceLinkedRoleErrorException) OrigErr() error {
return nil
}
-func (s WAFServiceLinkedRoleErrorException) Error() string {
+func (s *WAFServiceLinkedRoleErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFServiceLinkedRoleErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFServiceLinkedRoleErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFServiceLinkedRoleErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFServiceLinkedRoleErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because you tried to create, update, or delete an object
// by using a change token that has already been used.
type WAFStaleDataException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11008,17 +11008,17 @@ func (s WAFStaleDataException) GoString() string {
func newErrorWAFStaleDataException(v protocol.ResponseMetadata) error {
return &WAFStaleDataException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFStaleDataException) Code() string {
+func (s *WAFStaleDataException) Code() string {
return "WAFStaleDataException"
}
// Message returns the exception's message.
-func (s WAFStaleDataException) Message() string {
+func (s *WAFStaleDataException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11026,28 +11026,28 @@ func (s WAFStaleDataException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFStaleDataException) OrigErr() error {
+func (s *WAFStaleDataException) OrigErr() error {
return nil
}
-func (s WAFStaleDataException) Error() string {
+func (s *WAFStaleDataException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFStaleDataException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFStaleDataException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFStaleDataException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFStaleDataException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified subscription does not exist.
type WAFSubscriptionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11064,17 +11064,17 @@ func (s WAFSubscriptionNotFoundException) GoString() string {
func newErrorWAFSubscriptionNotFoundException(v protocol.ResponseMetadata) error {
return &WAFSubscriptionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFSubscriptionNotFoundException) Code() string {
+func (s *WAFSubscriptionNotFoundException) Code() string {
return "WAFSubscriptionNotFoundException"
}
// Message returns the exception's message.
-func (s WAFSubscriptionNotFoundException) Message() string {
+func (s *WAFSubscriptionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11082,27 +11082,27 @@ func (s WAFSubscriptionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFSubscriptionNotFoundException) OrigErr() error {
+func (s *WAFSubscriptionNotFoundException) OrigErr() error {
return nil
}
-func (s WAFSubscriptionNotFoundException) Error() string {
+func (s *WAFSubscriptionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFSubscriptionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFSubscriptionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFSubscriptionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFSubscriptionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type WAFTagOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11119,17 +11119,17 @@ func (s WAFTagOperationException) GoString() string {
func newErrorWAFTagOperationException(v protocol.ResponseMetadata) error {
return &WAFTagOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFTagOperationException) Code() string {
+func (s *WAFTagOperationException) Code() string {
return "WAFTagOperationException"
}
// Message returns the exception's message.
-func (s WAFTagOperationException) Message() string {
+func (s *WAFTagOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11137,27 +11137,27 @@ func (s WAFTagOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFTagOperationException) OrigErr() error {
+func (s *WAFTagOperationException) OrigErr() error {
return nil
}
-func (s WAFTagOperationException) Error() string {
+func (s *WAFTagOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFTagOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFTagOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFTagOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFTagOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type WAFTagOperationInternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11174,17 +11174,17 @@ func (s WAFTagOperationInternalErrorException) GoString() string {
func newErrorWAFTagOperationInternalErrorException(v protocol.ResponseMetadata) error {
return &WAFTagOperationInternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFTagOperationInternalErrorException) Code() string {
+func (s *WAFTagOperationInternalErrorException) Code() string {
return "WAFTagOperationInternalErrorException"
}
// Message returns the exception's message.
-func (s WAFTagOperationInternalErrorException) Message() string {
+func (s *WAFTagOperationInternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11192,29 +11192,29 @@ func (s WAFTagOperationInternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFTagOperationInternalErrorException) OrigErr() error {
+func (s *WAFTagOperationInternalErrorException) OrigErr() error {
return nil
}
-func (s WAFTagOperationInternalErrorException) Error() string {
+func (s *WAFTagOperationInternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFTagOperationInternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFTagOperationInternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFTagOperationInternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFTagOperationInternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because the entity referenced is temporarily unavailable.
// Retry your request.
type WAFUnavailableEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -11231,17 +11231,17 @@ func (s WAFUnavailableEntityException) GoString() string {
func newErrorWAFUnavailableEntityException(v protocol.ResponseMetadata) error {
return &WAFUnavailableEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFUnavailableEntityException) Code() string {
+func (s *WAFUnavailableEntityException) Code() string {
return "WAFUnavailableEntityException"
}
// Message returns the exception's message.
-func (s WAFUnavailableEntityException) Message() string {
+func (s *WAFUnavailableEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -11249,22 +11249,22 @@ func (s WAFUnavailableEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFUnavailableEntityException) OrigErr() error {
+func (s *WAFUnavailableEntityException) OrigErr() error {
return nil
}
-func (s WAFUnavailableEntityException) Error() string {
+func (s *WAFUnavailableEntityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFUnavailableEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFUnavailableEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFUnavailableEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFUnavailableEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/wafv2/api.go
index 3d2b56c25f5..68de2cffaa7 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/wafv2/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/wafv2/api.go
@@ -67,9 +67,10 @@ func (c *WAFV2) AssociateWebACLRequest(input *AssociateWebACLInput) (req *reques
// resource. A regional application can be an Application Load Balancer (ALB)
// or an API Gateway stage.
//
-// For AWS CloudFront, you can associate the Web ACL by providing the ARN of
-// the WebACL to the CloudFront API call UpdateDistribution. For information,
-// see UpdateDistribution (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html).
+// For AWS CloudFront, don't use this call. Instead, use your CloudFront distribution
+// configuration. To associate a Web ACL, in the CloudFront call UpdateDistribution,
+// set the web ACL ID to the Amazon Resource Name (ARN) of the Web ACL. For
+// information, see UpdateDistribution (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html).
//
// 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
@@ -105,6 +106,9 @@ func (c *WAFV2) AssociateWebACLRequest(input *AssociateWebACLInput) (req *reques
// * WAFUnavailableEntityException
// AWS WAF couldn’t retrieve the resource that you requested. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/AssociateWebACL
func (c *WAFV2) AssociateWebACL(input *AssociateWebACLInput) (*AssociateWebACLOutput, error) {
req, out := c.AssociateWebACLRequest(input)
@@ -360,6 +364,9 @@ func (c *WAFV2) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Reques
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateIPSet
func (c *WAFV2) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) {
req, out := c.CreateIPSetRequest(input)
@@ -484,6 +491,9 @@ func (c *WAFV2) CreateRegexPatternSetRequest(input *CreateRegexPatternSetInput)
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateRegexPatternSet
func (c *WAFV2) CreateRegexPatternSet(input *CreateRegexPatternSetInput) (*CreateRegexPatternSetOutput, error) {
req, out := c.CreateRegexPatternSetRequest(input)
@@ -618,6 +628,13 @@ func (c *WAFV2) CreateRuleGroupRequest(input *CreateRuleGroupInput) (req *reques
//
// * WAFSubscriptionNotFoundException
//
+// * WAFNonexistentItemException
+// AWS WAF couldn’t perform the operation because your resource doesn’t
+// exist.
+//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateRuleGroup
func (c *WAFV2) CreateRuleGroup(input *CreateRuleGroupInput) (*CreateRuleGroupOutput, error) {
req, out := c.CreateRuleGroupRequest(input)
@@ -763,6 +780,9 @@ func (c *WAFV2) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Requ
//
// * WAFSubscriptionNotFoundException
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateWebACL
func (c *WAFV2) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) {
req, out := c.CreateWebACLRequest(input)
@@ -785,6 +805,118 @@ func (c *WAFV2) CreateWebACLWithContext(ctx aws.Context, input *CreateWebACLInpu
return out, req.Send()
}
+const opDeleteFirewallManagerRuleGroups = "DeleteFirewallManagerRuleGroups"
+
+// DeleteFirewallManagerRuleGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteFirewallManagerRuleGroups operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteFirewallManagerRuleGroups for more information on using the DeleteFirewallManagerRuleGroups
+// 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 DeleteFirewallManagerRuleGroupsRequest method.
+// req, resp := client.DeleteFirewallManagerRuleGroupsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteFirewallManagerRuleGroups
+func (c *WAFV2) DeleteFirewallManagerRuleGroupsRequest(input *DeleteFirewallManagerRuleGroupsInput) (req *request.Request, output *DeleteFirewallManagerRuleGroupsOutput) {
+ op := &request.Operation{
+ Name: opDeleteFirewallManagerRuleGroups,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteFirewallManagerRuleGroupsInput{}
+ }
+
+ output = &DeleteFirewallManagerRuleGroupsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteFirewallManagerRuleGroups API operation for AWS WAFV2.
+//
+// Deletes all rule groups that are managed by AWS Firewall Manager for the
+// specified web ACL.
+//
+// You can only use this if ManagedByFirewallManager is false in the specified
+// WebACL.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS WAFV2's
+// API operation DeleteFirewallManagerRuleGroups for usage and error information.
+//
+// Returned Error Types:
+// * WAFInternalErrorException
+// Your request is valid, but AWS WAF couldn’t perform the operation because
+// of a system problem. Retry your request.
+//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// * WAFNonexistentItemException
+// AWS WAF couldn’t perform the operation because your resource doesn’t
+// exist.
+//
+// * WAFOptimisticLockException
+// AWS WAF couldn’t save your changes because you tried to update or delete
+// a resource that has changed since you last retrieved it. Get the resource
+// again, make any changes you need to make to the new copy, and retry your
+// operation.
+//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteFirewallManagerRuleGroups
+func (c *WAFV2) DeleteFirewallManagerRuleGroups(input *DeleteFirewallManagerRuleGroupsInput) (*DeleteFirewallManagerRuleGroupsOutput, error) {
+ req, out := c.DeleteFirewallManagerRuleGroupsRequest(input)
+ return out, req.Send()
+}
+
+// DeleteFirewallManagerRuleGroupsWithContext is the same as DeleteFirewallManagerRuleGroups with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteFirewallManagerRuleGroups 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 *WAFV2) DeleteFirewallManagerRuleGroupsWithContext(ctx aws.Context, input *DeleteFirewallManagerRuleGroupsInput, opts ...request.Option) (*DeleteFirewallManagerRuleGroupsOutput, error) {
+ req, out := c.DeleteFirewallManagerRuleGroupsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteIPSet = "DeleteIPSet"
// DeleteIPSetRequest generates a "aws/request.Request" representing the
@@ -885,6 +1017,9 @@ func (c *WAFV2) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Reques
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteIPSet
func (c *WAFV2) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) {
req, out := c.DeleteIPSetRequest(input)
@@ -981,6 +1116,24 @@ func (c *WAFV2) DeleteLoggingConfigurationRequest(input *DeleteLoggingConfigurat
// again, make any changes you need to make to the new copy, and retry your
// operation.
//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteLoggingConfiguration
func (c *WAFV2) DeleteLoggingConfiguration(input *DeleteLoggingConfigurationInput) (*DeleteLoggingConfigurationOutput, error) {
req, out := c.DeleteLoggingConfigurationRequest(input)
@@ -1003,6 +1156,108 @@ func (c *WAFV2) DeleteLoggingConfigurationWithContext(ctx aws.Context, input *De
return out, req.Send()
}
+const opDeletePermissionPolicy = "DeletePermissionPolicy"
+
+// DeletePermissionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeletePermissionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeletePermissionPolicy for more information on using the DeletePermissionPolicy
+// 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 DeletePermissionPolicyRequest method.
+// req, resp := client.DeletePermissionPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeletePermissionPolicy
+func (c *WAFV2) DeletePermissionPolicyRequest(input *DeletePermissionPolicyInput) (req *request.Request, output *DeletePermissionPolicyOutput) {
+ op := &request.Operation{
+ Name: opDeletePermissionPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeletePermissionPolicyInput{}
+ }
+
+ output = &DeletePermissionPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeletePermissionPolicy API operation for AWS WAFV2.
+//
+// Permanently deletes an IAM policy from the specified rule group.
+//
+// You must be the owner of the rule group to perform this operation.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS WAFV2's
+// API operation DeletePermissionPolicy for usage and error information.
+//
+// Returned Error Types:
+// * WAFNonexistentItemException
+// AWS WAF couldn’t perform the operation because your resource doesn’t
+// exist.
+//
+// * WAFInternalErrorException
+// Your request is valid, but AWS WAF couldn’t perform the operation because
+// of a system problem. Retry your request.
+//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeletePermissionPolicy
+func (c *WAFV2) DeletePermissionPolicy(input *DeletePermissionPolicyInput) (*DeletePermissionPolicyOutput, error) {
+ req, out := c.DeletePermissionPolicyRequest(input)
+ return out, req.Send()
+}
+
+// DeletePermissionPolicyWithContext is the same as DeletePermissionPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeletePermissionPolicy 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 *WAFV2) DeletePermissionPolicyWithContext(ctx aws.Context, input *DeletePermissionPolicyInput, opts ...request.Option) (*DeletePermissionPolicyOutput, error) {
+ req, out := c.DeletePermissionPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteRegexPatternSet = "DeleteRegexPatternSet"
// DeleteRegexPatternSetRequest generates a "aws/request.Request" representing the
@@ -1103,6 +1358,9 @@ func (c *WAFV2) DeleteRegexPatternSetRequest(input *DeleteRegexPatternSetInput)
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteRegexPatternSet
func (c *WAFV2) DeleteRegexPatternSet(input *DeleteRegexPatternSetInput) (*DeleteRegexPatternSetOutput, error) {
req, out := c.DeleteRegexPatternSetRequest(input)
@@ -1225,6 +1483,9 @@ func (c *WAFV2) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *reques
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteRuleGroup
func (c *WAFV2) DeleteRuleGroup(input *DeleteRuleGroupInput) (*DeleteRuleGroupOutput, error) {
req, out := c.DeleteRuleGroupRequest(input)
@@ -1299,6 +1560,9 @@ func (c *WAFV2) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Requ
//
// Deletes the specified WebACL.
//
+// You can only use this if ManagedByFirewallManager is false in the specified
+// WebACL.
+//
// 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.
@@ -1347,6 +1611,9 @@ func (c *WAFV2) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Requ
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteWebACL
func (c *WAFV2) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) {
req, out := c.DeleteWebACLRequest(input)
@@ -1456,6 +1723,9 @@ func (c *WAFV2) DescribeManagedRuleGroupRequest(input *DescribeManagedRuleGroupI
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DescribeManagedRuleGroup
func (c *WAFV2) DescribeManagedRuleGroup(input *DescribeManagedRuleGroupInput) (*DescribeManagedRuleGroupOutput, error) {
req, out := c.DescribeManagedRuleGroupRequest(input)
@@ -1531,9 +1801,10 @@ func (c *WAFV2) DisassociateWebACLRequest(input *DisassociateWebACLInput) (req *
// Disassociates a Web ACL from a regional application resource. A regional
// application can be an Application Load Balancer (ALB) or an API Gateway stage.
//
-// For AWS CloudFront, you can disassociate the Web ACL by providing an empty
-// web ACL ARN in the CloudFront API call UpdateDistribution. For information,
-// see UpdateDistribution (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html).
+// For AWS CloudFront, don't use this call. Instead, use your CloudFront distribution
+// configuration. To disassociate a Web ACL, provide an empty web ACL ID in
+// the CloudFront call UpdateDistribution. For information, see UpdateDistribution
+// (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html).
//
// 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
@@ -1566,6 +1837,9 @@ func (c *WAFV2) DisassociateWebACLRequest(input *DisassociateWebACLInput) (req *
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DisassociateWebACL
func (c *WAFV2) DisassociateWebACL(input *DisassociateWebACLInput) (*DisassociateWebACLOutput, error) {
req, out := c.DisassociateWebACLRequest(input)
@@ -1670,6 +1944,9 @@ func (c *WAFV2) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, out
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetIPSet
func (c *WAFV2) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) {
req, out := c.GetIPSetRequest(input)
@@ -1759,6 +2036,24 @@ func (c *WAFV2) GetLoggingConfigurationRequest(input *GetLoggingConfigurationInp
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetLoggingConfiguration
func (c *WAFV2) GetLoggingConfiguration(input *GetLoggingConfigurationInput) (*GetLoggingConfigurationOutput, error) {
req, out := c.GetLoggingConfigurationRequest(input)
@@ -1781,6 +2076,107 @@ func (c *WAFV2) GetLoggingConfigurationWithContext(ctx aws.Context, input *GetLo
return out, req.Send()
}
+const opGetPermissionPolicy = "GetPermissionPolicy"
+
+// GetPermissionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetPermissionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetPermissionPolicy for more information on using the GetPermissionPolicy
+// 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 GetPermissionPolicyRequest method.
+// req, resp := client.GetPermissionPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetPermissionPolicy
+func (c *WAFV2) GetPermissionPolicyRequest(input *GetPermissionPolicyInput) (req *request.Request, output *GetPermissionPolicyOutput) {
+ op := &request.Operation{
+ Name: opGetPermissionPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetPermissionPolicyInput{}
+ }
+
+ output = &GetPermissionPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetPermissionPolicy API operation for AWS WAFV2.
+//
+// Returns the IAM policy that is attached to the specified rule group.
+//
+// You must be the owner of the rule group to perform this operation.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS WAFV2's
+// API operation GetPermissionPolicy for usage and error information.
+//
+// Returned Error Types:
+// * WAFNonexistentItemException
+// AWS WAF couldn’t perform the operation because your resource doesn’t
+// exist.
+//
+// * WAFInternalErrorException
+// Your request is valid, but AWS WAF couldn’t perform the operation because
+// of a system problem. Retry your request.
+//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetPermissionPolicy
+func (c *WAFV2) GetPermissionPolicy(input *GetPermissionPolicyInput) (*GetPermissionPolicyOutput, error) {
+ req, out := c.GetPermissionPolicyRequest(input)
+ return out, req.Send()
+}
+
+// GetPermissionPolicyWithContext is the same as GetPermissionPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetPermissionPolicy 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 *WAFV2) GetPermissionPolicyWithContext(ctx aws.Context, input *GetPermissionPolicyInput, opts ...request.Option) (*GetPermissionPolicyOutput, error) {
+ req, out := c.GetPermissionPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetRateBasedStatementManagedKeys = "GetRateBasedStatementManagedKeys"
// GetRateBasedStatementManagedKeysRequest generates a "aws/request.Request" representing the
@@ -1866,6 +2262,9 @@ func (c *WAFV2) GetRateBasedStatementManagedKeysRequest(input *GetRateBasedState
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetRateBasedStatementManagedKeys
func (c *WAFV2) GetRateBasedStatementManagedKeys(input *GetRateBasedStatementManagedKeysInput) (*GetRateBasedStatementManagedKeysOutput, error) {
req, out := c.GetRateBasedStatementManagedKeysRequest(input)
@@ -1970,6 +2369,9 @@ func (c *WAFV2) GetRegexPatternSetRequest(input *GetRegexPatternSetInput) (req *
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetRegexPatternSet
func (c *WAFV2) GetRegexPatternSet(input *GetRegexPatternSetInput) (*GetRegexPatternSetOutput, error) {
req, out := c.GetRegexPatternSetRequest(input)
@@ -2074,6 +2476,9 @@ func (c *WAFV2) GetRuleGroupRequest(input *GetRuleGroupInput) (req *request.Requ
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetRuleGroup
func (c *WAFV2) GetRuleGroup(input *GetRuleGroupInput) (*GetRuleGroupOutput, error) {
req, out := c.GetRuleGroupRequest(input)
@@ -2292,6 +2697,9 @@ func (c *WAFV2) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, o
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetWebACL
func (c *WAFV2) GetWebACL(input *GetWebACLInput) (*GetWebACLOutput, error) {
req, out := c.GetWebACLRequest(input)
@@ -2399,6 +2807,9 @@ func (c *WAFV2) GetWebACLForResourceRequest(input *GetWebACLForResourceInput) (r
// * WAFUnavailableEntityException
// AWS WAF couldn’t retrieve the resource that you requested. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetWebACLForResource
func (c *WAFV2) GetWebACLForResource(input *GetWebACLForResourceInput) (*GetWebACLForResourceOutput, error) {
req, out := c.GetWebACLForResourceRequest(input)
@@ -2501,6 +2912,9 @@ func (c *WAFV2) ListAvailableManagedRuleGroupsRequest(input *ListAvailableManage
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListAvailableManagedRuleGroups
func (c *WAFV2) ListAvailableManagedRuleGroups(input *ListAvailableManagedRuleGroupsInput) (*ListAvailableManagedRuleGroupsOutput, error) {
req, out := c.ListAvailableManagedRuleGroupsRequest(input)
@@ -2601,6 +3015,9 @@ func (c *WAFV2) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request,
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListIPSets
func (c *WAFV2) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) {
req, out := c.ListIPSetsRequest(input)
@@ -2701,6 +3118,9 @@ func (c *WAFV2) ListLoggingConfigurationsRequest(input *ListLoggingConfiguration
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListLoggingConfigurations
func (c *WAFV2) ListLoggingConfigurations(input *ListLoggingConfigurationsInput) (*ListLoggingConfigurationsOutput, error) {
req, out := c.ListLoggingConfigurationsRequest(input)
@@ -2802,6 +3222,9 @@ func (c *WAFV2) ListRegexPatternSetsRequest(input *ListRegexPatternSetsInput) (r
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListRegexPatternSets
func (c *WAFV2) ListRegexPatternSets(input *ListRegexPatternSetsInput) (*ListRegexPatternSetsOutput, error) {
req, out := c.ListRegexPatternSetsRequest(input)
@@ -2908,6 +3331,9 @@ func (c *WAFV2) ListResourcesForWebACLRequest(input *ListResourcesForWebACLInput
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListResourcesForWebACL
func (c *WAFV2) ListResourcesForWebACL(input *ListResourcesForWebACLInput) (*ListResourcesForWebACLOutput, error) {
req, out := c.ListResourcesForWebACLRequest(input)
@@ -3009,6 +3435,9 @@ func (c *WAFV2) ListRuleGroupsRequest(input *ListRuleGroupsInput) (req *request.
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListRuleGroups
func (c *WAFV2) ListRuleGroups(input *ListRuleGroupsInput) (*ListRuleGroupsOutput, error) {
req, out := c.ListRuleGroupsRequest(input)
@@ -3120,6 +3549,9 @@ func (c *WAFV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListTagsForResource
func (c *WAFV2) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
@@ -3220,6 +3652,9 @@ func (c *WAFV2) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Reques
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListWebACLs
func (c *WAFV2) ListWebACLs(input *ListWebACLsInput) (*ListWebACLsOutput, error) {
req, out := c.ListWebACLsRequest(input)
@@ -3299,7 +3734,7 @@ func (c *WAFV2) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInp
//
// Create an Amazon Kinesis Data Firehose.
//
-// Create the data firehose with a PUT source and in the region that you are
+// Create the data firehose with a PUT source and in the Region that you are
// operating. If you are capturing logs for Amazon CloudFront, always create
// the firehose in US East (N. Virginia).
//
@@ -3351,32 +3786,166 @@ func (c *WAFV2) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInp
//
// * You specified an invalid parameter name or value.
//
-// * Your nested statement isn't valid. You might have tried to nest a statement
-// that can’t be nested.
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/PutLoggingConfiguration
+func (c *WAFV2) PutLoggingConfiguration(input *PutLoggingConfigurationInput) (*PutLoggingConfigurationOutput, error) {
+ req, out := c.PutLoggingConfigurationRequest(input)
+ return out, req.Send()
+}
+
+// PutLoggingConfigurationWithContext is the same as PutLoggingConfiguration with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutLoggingConfiguration 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 *WAFV2) PutLoggingConfigurationWithContext(ctx aws.Context, input *PutLoggingConfigurationInput, opts ...request.Option) (*PutLoggingConfigurationOutput, error) {
+ req, out := c.PutLoggingConfigurationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutPermissionPolicy = "PutPermissionPolicy"
+
+// PutPermissionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutPermissionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutPermissionPolicy for more information on using the PutPermissionPolicy
+// 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 PutPermissionPolicyRequest method.
+// req, resp := client.PutPermissionPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/PutPermissionPolicy
+func (c *WAFV2) PutPermissionPolicyRequest(input *PutPermissionPolicyInput) (req *request.Request, output *PutPermissionPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutPermissionPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutPermissionPolicyInput{}
+ }
+
+ output = &PutPermissionPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutPermissionPolicy API operation for AWS WAFV2.
+//
+// Attaches an IAM policy to the specified resource. Use this to share a rule
+// group across accounts.
+//
+// You must be the owner of the rule group to perform this operation.
+//
+// This action is subject to the following restrictions:
+//
+// * You can attach only one policy with each PutPermissionPolicy request.
+//
+// * The ARN in the request must be a valid WAF RuleGroup ARN and the rule
+// group must exist in the same region.
+//
+// * The user making the request must be the owner of the rule group.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS WAFV2's
+// API operation PutPermissionPolicy for usage and error information.
+//
+// Returned Error Types:
+// * WAFNonexistentItemException
+// AWS WAF couldn’t perform the operation because your resource doesn’t
+// exist.
+//
+// * WAFInternalErrorException
+// Your request is valid, but AWS WAF couldn’t perform the operation because
+// of a system problem. Retry your request.
+//
+// * WAFInvalidParameterException
+// The operation failed because AWS WAF didn't recognize a parameter in the
+// request. For example:
+//
+// * You specified an invalid parameter name or value.
+//
+// * Your nested statement isn't valid. You might have tried to nest a statement
+// that can’t be nested.
+//
+// * You tried to update a WebACL with a DefaultAction that isn't among the
+// types available at DefaultAction.
+//
+// * Your request references an ARN that is malformed, or corresponds to
+// a resource with which a Web ACL cannot be associated.
+//
+// * WAFInvalidPermissionPolicyException
+// The operation failed because the specified policy isn't in the proper format.
+//
+// The policy specifications must conform to the following:
+//
+// * The policy must be composed using IAM Policy version 2012-10-17 or version
+// 2015-01-01.
+//
+// * The policy must include specifications for Effect, Action, and Principal.
+//
+// * Effect must specify Allow.
+//
+// * Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups.
+// AWS WAF rejects any extra actions or wildcard actions in the policy.
//
-// * You tried to update a WebACL with a DefaultAction that isn't among the
-// types available at DefaultAction.
+// * The policy must not include a Resource parameter.
//
-// * Your request references an ARN that is malformed, or corresponds to
-// a resource with which a Web ACL cannot be associated.
+// For more information, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/PutLoggingConfiguration
-func (c *WAFV2) PutLoggingConfiguration(input *PutLoggingConfigurationInput) (*PutLoggingConfigurationOutput, error) {
- req, out := c.PutLoggingConfigurationRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/PutPermissionPolicy
+func (c *WAFV2) PutPermissionPolicy(input *PutPermissionPolicyInput) (*PutPermissionPolicyOutput, error) {
+ req, out := c.PutPermissionPolicyRequest(input)
return out, req.Send()
}
-// PutLoggingConfigurationWithContext is the same as PutLoggingConfiguration with the addition of
+// PutPermissionPolicyWithContext is the same as PutPermissionPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See PutLoggingConfiguration for details on how to use this API operation.
+// See PutPermissionPolicy 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 *WAFV2) PutLoggingConfigurationWithContext(ctx aws.Context, input *PutLoggingConfigurationInput, opts ...request.Option) (*PutLoggingConfigurationOutput, error) {
- req, out := c.PutLoggingConfigurationRequest(input)
+func (c *WAFV2) PutPermissionPolicyWithContext(ctx aws.Context, input *PutPermissionPolicyInput, opts ...request.Option) (*PutPermissionPolicyOutput, error) {
+ req, out := c.PutPermissionPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
@@ -3482,6 +4051,9 @@ func (c *WAFV2) TagResourceRequest(input *TagResourceInput) (req *request.Reques
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/TagResource
func (c *WAFV2) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
@@ -3597,6 +4169,9 @@ func (c *WAFV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Re
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UntagResource
func (c *WAFV2) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
@@ -3717,6 +4292,9 @@ func (c *WAFV2) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Reques
// for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
// in the AWS WAF Developer Guide.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateIPSet
func (c *WAFV2) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) {
req, out := c.UpdateIPSetRequest(input)
@@ -3837,6 +4415,9 @@ func (c *WAFV2) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput)
// for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
// in the AWS WAF Developer Guide.
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateRegexPatternSet
func (c *WAFV2) UpdateRegexPatternSet(input *UpdateRegexPatternSetInput) (*UpdateRegexPatternSetOutput, error) {
req, out := c.UpdateRegexPatternSetRequest(input)
@@ -3968,6 +4549,9 @@ func (c *WAFV2) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *reques
//
// * WAFSubscriptionNotFoundException
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateRuleGroup
func (c *WAFV2) UpdateRuleGroup(input *UpdateRuleGroupInput) (*UpdateRuleGroupOutput, error) {
req, out := c.UpdateRuleGroupRequest(input)
@@ -4106,6 +4690,9 @@ func (c *WAFV2) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Requ
//
// * WAFSubscriptionNotFoundException
//
+// * WAFInvalidOperationException
+// The operation isn't valid.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateWebACL
func (c *WAFV2) UpdateWebACL(input *UpdateWebACLInput) (*UpdateWebACLOutput, error) {
req, out := c.UpdateWebACLRequest(input)
@@ -4411,7 +4998,7 @@ type ByteMatchStatement struct {
// in the part of web requests that you designate for inspection in FieldToMatch.
// The maximum length of the value is 50 bytes.
//
- // Valid values depend on the areas that you specify for inspection in FieldToMatch:
+ // Valid values depend on the component that you specify for inspection in FieldToMatch:
//
// * Method: The HTTP method that you want AWS WAF to search for. This indicates
// the type of operation specified in the request.
@@ -4445,8 +5032,8 @@ type ByteMatchStatement struct {
// Text transformations eliminate some of the unusual formatting that attackers
// use in web requests in an effort to bypass detection. If you specify one
// or more transformations in a rule statement, AWS WAF performs all transformations
- // on the content identified by FieldToMatch, starting from the lowest priority
- // setting, before inspecting the content for a match.
+ // on the content of the request component identified by FieldToMatch, starting
+ // from the lowest priority setting, before inspecting the content for a match.
//
// TextTransformations is a required field
TextTransformations []*TextTransformation `min:"1" type:"list" required:"true"`
@@ -4541,7 +5128,7 @@ type CheckCapacityInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -4672,8 +5259,8 @@ type CreateIPSetInput struct {
// Addresses is a required field
Addresses []*string `type:"list" required:"true"`
- // A friendly description of the IP set. You cannot change the description of
- // an IP set after you create it.
+ // A description of the IP set that helps with identification. You cannot change
+ // the description of an IP set after you create it.
Description *string `min:"1" type:"string"`
// Specify IPV4 or IPV6.
@@ -4681,8 +5268,8 @@ type CreateIPSetInput struct {
// IPAddressVersion is a required field
IPAddressVersion *string `type:"string" required:"true" enum:"IPAddressVersion"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -4694,7 +5281,7 @@ type CreateIPSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -4822,12 +5409,11 @@ func (s *CreateIPSetOutput) SetSummary(v *IPSetSummary) *CreateIPSetOutput {
type CreateRegexPatternSetInput struct {
_ struct{} `type:"structure"`
- // A friendly description of the set. You cannot change the description of a
- // set after you create it.
+ // A description of the set that helps with identification. You cannot change
+ // the description of a set after you create it.
Description *string `min:"1" type:"string"`
- // A friendly name of the set. You cannot change the name after you create the
- // set.
+ // The name of the set. You cannot change the name after you create the set.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -4835,7 +5421,7 @@ type CreateRegexPatternSetInput struct {
// Array of regular expression strings.
//
// RegularExpressionList is a required field
- RegularExpressionList []*Regex `min:"1" type:"list" required:"true"`
+ RegularExpressionList []*Regex `type:"list" required:"true"`
// Specifies whether this is for an AWS CloudFront distribution or for a regional
// application. A regional application can be an Application Load Balancer (ALB)
@@ -4844,7 +5430,7 @@ type CreateRegexPatternSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -4881,9 +5467,6 @@ func (s *CreateRegexPatternSetInput) Validate() error {
if s.RegularExpressionList == nil {
invalidParams.Add(request.NewErrParamRequired("RegularExpressionList"))
}
- if s.RegularExpressionList != nil && len(s.RegularExpressionList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RegularExpressionList", 1))
- }
if s.Scope == nil {
invalidParams.Add(request.NewErrParamRequired("Scope"))
}
@@ -4994,12 +5577,12 @@ type CreateRuleGroupInput struct {
// Capacity is a required field
Capacity *int64 `min:"1" type:"long" required:"true"`
- // A friendly description of the rule group. You cannot change the description
- // of a rule group after you create it.
+ // A description of the rule group that helps with identification. You cannot
+ // change the description of a rule group after you create it.
Description *string `min:"1" type:"string"`
- // A friendly name of the rule group. You cannot change the name of a rule group
- // after you create it.
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5017,7 +5600,7 @@ type CreateRuleGroupInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5179,12 +5762,12 @@ type CreateWebACLInput struct {
// DefaultAction is a required field
DefaultAction *DefaultAction `type:"structure" required:"true"`
- // A friendly description of the Web ACL. You cannot change the description
- // of a Web ACL after you create it.
+ // A description of the Web ACL that helps with identification. You cannot change
+ // the description of a Web ACL after you create it.
Description *string `min:"1" type:"string"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5202,7 +5785,7 @@ type CreateWebACLInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5392,6 +5975,101 @@ func (s *DefaultAction) SetBlock(v *BlockAction) *DefaultAction {
return s
}
+type DeleteFirewallManagerRuleGroupsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the web ACL.
+ //
+ // WebACLArn is a required field
+ WebACLArn *string `min:"20" type:"string" required:"true"`
+
+ // A token used for optimistic locking. AWS WAF returns a token to your get
+ // and list requests, to mark the state of the entity at the time of the request.
+ // To make changes to the entity associated with the token, you provide the
+ // token to operations like update and delete. AWS WAF uses the token to ensure
+ // that no changes have been made to the entity since you last retrieved it.
+ // If a change has been made, the update fails with a WAFOptimisticLockException.
+ // If this happens, perform another get, and use the new token returned by that
+ // operation.
+ //
+ // WebACLLockToken is a required field
+ WebACLLockToken *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteFirewallManagerRuleGroupsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteFirewallManagerRuleGroupsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteFirewallManagerRuleGroupsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteFirewallManagerRuleGroupsInput"}
+ if s.WebACLArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("WebACLArn"))
+ }
+ if s.WebACLArn != nil && len(*s.WebACLArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("WebACLArn", 20))
+ }
+ if s.WebACLLockToken == nil {
+ invalidParams.Add(request.NewErrParamRequired("WebACLLockToken"))
+ }
+ if s.WebACLLockToken != nil && len(*s.WebACLLockToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("WebACLLockToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetWebACLArn sets the WebACLArn field's value.
+func (s *DeleteFirewallManagerRuleGroupsInput) SetWebACLArn(v string) *DeleteFirewallManagerRuleGroupsInput {
+ s.WebACLArn = &v
+ return s
+}
+
+// SetWebACLLockToken sets the WebACLLockToken field's value.
+func (s *DeleteFirewallManagerRuleGroupsInput) SetWebACLLockToken(v string) *DeleteFirewallManagerRuleGroupsInput {
+ s.WebACLLockToken = &v
+ return s
+}
+
+type DeleteFirewallManagerRuleGroupsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A token used for optimistic locking. AWS WAF returns a token to your get
+ // and list requests, to mark the state of the entity at the time of the request.
+ // To make changes to the entity associated with the token, you provide the
+ // token to operations like update and delete. AWS WAF uses the token to ensure
+ // that no changes have been made to the entity since you last retrieved it.
+ // If a change has been made, the update fails with a WAFOptimisticLockException.
+ // If this happens, perform another get, and use the new token returned by that
+ // operation.
+ NextWebACLLockToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s DeleteFirewallManagerRuleGroupsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteFirewallManagerRuleGroupsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextWebACLLockToken sets the NextWebACLLockToken field's value.
+func (s *DeleteFirewallManagerRuleGroupsOutput) SetNextWebACLLockToken(v string) *DeleteFirewallManagerRuleGroupsOutput {
+ s.NextWebACLLockToken = &v
+ return s
+}
+
type DeleteIPSetInput struct {
_ struct{} `type:"structure"`
@@ -5413,8 +6091,8 @@ type DeleteIPSetInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5426,7 +6104,7 @@ type DeleteIPSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5570,6 +6248,64 @@ func (s DeleteLoggingConfigurationOutput) GoString() string {
return s.String()
}
+type DeletePermissionPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the rule group from which you want to delete
+ // the policy.
+ //
+ // You must be the owner of the rule group to perform this operation.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeletePermissionPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePermissionPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePermissionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePermissionPolicyInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *DeletePermissionPolicyInput) SetResourceArn(v string) *DeletePermissionPolicyInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type DeletePermissionPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeletePermissionPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePermissionPolicyOutput) GoString() string {
+ return s.String()
+}
+
type DeleteRegexPatternSetInput struct {
_ struct{} `type:"structure"`
@@ -5591,8 +6327,7 @@ type DeleteRegexPatternSetInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the set. You cannot change the name after you create the
- // set.
+ // The name of the set. You cannot change the name after you create the set.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5604,7 +6339,7 @@ type DeleteRegexPatternSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5714,8 +6449,8 @@ type DeleteRuleGroupInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the rule group. You cannot change the name of a rule group
- // after you create it.
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5727,7 +6462,7 @@ type DeleteRuleGroupInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5837,8 +6572,8 @@ type DeleteWebACLInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -5850,7 +6585,7 @@ type DeleteWebACLInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -5954,7 +6689,7 @@ type DescribeManagedRuleGroupInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -6174,9 +6909,12 @@ func (s *ExcludedRule) SetName(v string) *ExcludedRule {
// 2019. For information, including how to migrate your AWS WAF resources from
// the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
//
-// The part of a web request that you want AWS WAF to inspect. Include the FieldToMatch
-// types that you want to inspect, with additional specifications as needed,
-// according to the type.
+// The part of a web request that you want AWS WAF to inspect. Include the single
+// FieldToMatch type that you want to inspect, with additional specifications
+// as needed, according to the type. You specify a single request component
+// in FieldToMatch for each rule statement that requires it. To inspect more
+// than one component of a web request, create a separate rule statement for
+// each component.
type FieldToMatch struct {
_ struct{} `type:"structure"`
@@ -6283,15 +7021,165 @@ func (s *FieldToMatch) SetSingleHeader(v *SingleHeader) *FieldToMatch {
return s
}
-// SetSingleQueryArgument sets the SingleQueryArgument field's value.
-func (s *FieldToMatch) SetSingleQueryArgument(v *SingleQueryArgument) *FieldToMatch {
- s.SingleQueryArgument = v
+// SetSingleQueryArgument sets the SingleQueryArgument field's value.
+func (s *FieldToMatch) SetSingleQueryArgument(v *SingleQueryArgument) *FieldToMatch {
+ s.SingleQueryArgument = v
+ return s
+}
+
+// SetUriPath sets the UriPath field's value.
+func (s *FieldToMatch) SetUriPath(v *UriPath) *FieldToMatch {
+ s.UriPath = v
+ return s
+}
+
+// A rule group that's defined for an AWS Firewall Manager WAF policy.
+type FirewallManagerRuleGroup struct {
+ _ struct{} `type:"structure"`
+
+ // The processing guidance for an AWS Firewall Manager rule. This is like a
+ // regular rule Statement, but it can only contain a rule group reference.
+ //
+ // FirewallManagerStatement is a required field
+ FirewallManagerStatement *FirewallManagerStatement `type:"structure" required:"true"`
+
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
+ //
+ // Name is a required field
+ Name *string `min:"1" type:"string" required:"true"`
+
+ // The override action to apply to the rules in a rule group. Used only for
+ // rule statements that reference a rule group, like RuleGroupReferenceStatement
+ // and ManagedRuleGroupStatement.
+ //
+ // Set the override action to none to leave the rule actions in effect. Set
+ // it to count to only count matches, regardless of the rule action settings.
+ //
+ // In a Rule, you must specify either this OverrideAction setting or the rule
+ // Action setting, but not both:
+ //
+ // * If the rule statement references a rule group, use this override action
+ // setting and not the action setting.
+ //
+ // * If the rule statement does not reference a rule group, use the rule
+ // action setting and not this rule override action setting.
+ //
+ // OverrideAction is a required field
+ OverrideAction *OverrideAction `type:"structure" required:"true"`
+
+ // If you define more than one rule group in the first or last Firewall Manager
+ // rule groups, AWS WAF evaluates each request against the rule groups in order,
+ // starting from the lowest priority setting. The priorities don't need to be
+ // consecutive, but they must all be different.
+ //
+ // Priority is a required field
+ Priority *int64 `type:"integer" required:"true"`
+
+ //
+ // This is the latest version of AWS WAF, named AWS WAFV2, released in November,
+ // 2019. For information, including how to migrate your AWS WAF resources from
+ // the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
+ //
+ // Defines and enables Amazon CloudWatch metrics and web request sample collection.
+ //
+ // VisibilityConfig is a required field
+ VisibilityConfig *VisibilityConfig `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s FirewallManagerRuleGroup) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FirewallManagerRuleGroup) GoString() string {
+ return s.String()
+}
+
+// SetFirewallManagerStatement sets the FirewallManagerStatement field's value.
+func (s *FirewallManagerRuleGroup) SetFirewallManagerStatement(v *FirewallManagerStatement) *FirewallManagerRuleGroup {
+ s.FirewallManagerStatement = v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *FirewallManagerRuleGroup) SetName(v string) *FirewallManagerRuleGroup {
+ s.Name = &v
+ return s
+}
+
+// SetOverrideAction sets the OverrideAction field's value.
+func (s *FirewallManagerRuleGroup) SetOverrideAction(v *OverrideAction) *FirewallManagerRuleGroup {
+ s.OverrideAction = v
+ return s
+}
+
+// SetPriority sets the Priority field's value.
+func (s *FirewallManagerRuleGroup) SetPriority(v int64) *FirewallManagerRuleGroup {
+ s.Priority = &v
+ return s
+}
+
+// SetVisibilityConfig sets the VisibilityConfig field's value.
+func (s *FirewallManagerRuleGroup) SetVisibilityConfig(v *VisibilityConfig) *FirewallManagerRuleGroup {
+ s.VisibilityConfig = v
+ return s
+}
+
+// The processing guidance for an AWS Firewall Manager rule. This is like a
+// regular rule Statement, but it can only contain a rule group reference.
+type FirewallManagerStatement struct {
+ _ struct{} `type:"structure"`
+
+ //
+ // This is the latest version of AWS WAF, named AWS WAFV2, released in November,
+ // 2019. For information, including how to migrate your AWS WAF resources from
+ // the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
+ //
+ // A rule statement used to run the rules that are defined in a managed rule
+ // group. To use this, provide the vendor name and the name of the rule group
+ // in this statement. You can retrieve the required names by calling ListAvailableManagedRuleGroups.
+ //
+ // You can't nest a ManagedRuleGroupStatement, for example for use inside a
+ // NotStatement or OrStatement. It can only be referenced as a top-level statement
+ // within a rule.
+ ManagedRuleGroupStatement *ManagedRuleGroupStatement `type:"structure"`
+
+ //
+ // This is the latest version of AWS WAF, named AWS WAFV2, released in November,
+ // 2019. For information, including how to migrate your AWS WAF resources from
+ // the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
+ //
+ // A rule statement used to run the rules that are defined in a RuleGroup. To
+ // use this, create a rule group with your rules, then provide the ARN of the
+ // rule group in this statement.
+ //
+ // You cannot nest a RuleGroupReferenceStatement, for example for use inside
+ // a NotStatement or OrStatement. It can only be referenced as a top-level statement
+ // within a rule.
+ RuleGroupReferenceStatement *RuleGroupReferenceStatement `type:"structure"`
+}
+
+// String returns the string representation
+func (s FirewallManagerStatement) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FirewallManagerStatement) GoString() string {
+ return s.String()
+}
+
+// SetManagedRuleGroupStatement sets the ManagedRuleGroupStatement field's value.
+func (s *FirewallManagerStatement) SetManagedRuleGroupStatement(v *ManagedRuleGroupStatement) *FirewallManagerStatement {
+ s.ManagedRuleGroupStatement = v
return s
}
-// SetUriPath sets the UriPath field's value.
-func (s *FieldToMatch) SetUriPath(v *UriPath) *FieldToMatch {
- s.UriPath = v
+// SetRuleGroupReferenceStatement sets the RuleGroupReferenceStatement field's value.
+func (s *FirewallManagerStatement) SetRuleGroupReferenceStatement(v *RuleGroupReferenceStatement) *FirewallManagerStatement {
+ s.RuleGroupReferenceStatement = v
return s
}
@@ -6347,8 +7235,8 @@ type GetIPSetInput struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -6360,7 +7248,7 @@ type GetIPSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -6537,6 +7425,71 @@ func (s *GetLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfig
return s
}
+type GetPermissionPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the rule group for which you want to get
+ // the policy.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetPermissionPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPermissionPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetPermissionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetPermissionPolicyInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *GetPermissionPolicyInput) SetResourceArn(v string) *GetPermissionPolicyInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type GetPermissionPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The IAM policy that is attached to the specified rule group.
+ Policy *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s GetPermissionPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPermissionPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *GetPermissionPolicyOutput) SetPolicy(v string) *GetPermissionPolicyOutput {
+ s.Policy = &v
+ return s
+}
+
type GetRateBasedStatementManagedKeysInput struct {
_ struct{} `type:"structure"`
@@ -6552,7 +7505,7 @@ type GetRateBasedStatementManagedKeysInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -6567,8 +7520,8 @@ type GetRateBasedStatementManagedKeysInput struct {
// WebACLId is a required field
WebACLId *string `min:"1" type:"string" required:"true"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// WebACLName is a required field
WebACLName *string `min:"1" type:"string" required:"true"`
@@ -6680,8 +7633,7 @@ type GetRegexPatternSetInput struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the set. You cannot change the name after you create the
- // set.
+ // The name of the set. You cannot change the name after you create the set.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -6693,7 +7645,7 @@ type GetRegexPatternSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -6812,8 +7764,8 @@ type GetRuleGroupInput struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the rule group. You cannot change the name of a rule group
- // after you create it.
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -6825,7 +7777,7 @@ type GetRuleGroupInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -6959,7 +7911,7 @@ type GetSampledRequestsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -7183,8 +8135,8 @@ type GetWebACLInput struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -7196,7 +8148,7 @@ type GetWebACLInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -7471,8 +8423,8 @@ type IPSet struct {
// Addresses is a required field
Addresses []*string `type:"list" required:"true"`
- // A friendly description of the IP set. You cannot change the description of
- // an IP set after you create it.
+ // A description of the IP set that helps with identification. You cannot change
+ // the description of an IP set after you create it.
Description *string `min:"1" type:"string"`
// Specify IPV4 or IPV6.
@@ -7486,8 +8438,8 @@ type IPSet struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -7609,8 +8561,8 @@ type IPSetSummary struct {
// The Amazon Resource Name (ARN) of the entity.
ARN *string `min:"20" type:"string"`
- // A friendly description of the IP set. You cannot change the description of
- // an IP set after you create it.
+ // A description of the IP set that helps with identification. You cannot change
+ // the description of an IP set after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the set. This ID is returned in the responses to
@@ -7627,8 +8579,8 @@ type IPSetSummary struct {
// operation.
LockToken *string `min:"1" type:"string"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
Name *string `min:"1" type:"string"`
}
@@ -7693,7 +8645,7 @@ type ListAvailableManagedRuleGroupsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -7804,7 +8756,7 @@ type ListIPSetsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -7917,7 +8869,7 @@ type ListLoggingConfigurationsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -8023,7 +8975,7 @@ type ListRegexPatternSetsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -8208,7 +9160,7 @@ type ListRuleGroupsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -8424,7 +9376,7 @@ type ListWebACLsInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -8906,14 +9858,21 @@ func (s *OrStatement) SetStatements(v []*Statement) *OrStatement {
return s
}
+// The override action to apply to the rules in a rule group. Used only for
+// rule statements that reference a rule group, like RuleGroupReferenceStatement
+// and ManagedRuleGroupStatement.
//
-// This is the latest version of AWS WAF, named AWS WAFV2, released in November,
-// 2019. For information, including how to migrate your AWS WAF resources from
-// the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
+// Set the override action to none to leave the rule actions in effect. Set
+// it to count to only count matches, regardless of the rule action settings.
+//
+// In a Rule, you must specify either this OverrideAction setting or the rule
+// Action setting, but not both:
//
-// The action to use to override the rule's Action setting. You can use no override
-// action, in which case the rule action is in effect, or count, in which case,
-// if the rule matches a web request, it only counts the match.
+// * If the rule statement references a rule group, use this override action
+// setting and not the action setting.
+//
+// * If the rule statement does not reference a rule group, use the rule
+// action setting and not this rule override action setting.
type OverrideAction struct {
_ struct{} `type:"structure"`
@@ -9026,6 +9985,95 @@ func (s *PutLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfig
return s
}
+type PutPermissionPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The policy to attach to the specified rule group.
+ //
+ // The policy specifications must conform to the following:
+ //
+ // * The policy must be composed using IAM Policy version 2012-10-17 or version
+ // 2015-01-01.
+ //
+ // * The policy must include specifications for Effect, Action, and Principal.
+ //
+ // * Effect must specify Allow.
+ //
+ // * Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups.
+ // AWS WAF rejects any extra actions or wildcard actions in the policy.
+ //
+ // * The policy must not include a Resource parameter.
+ //
+ // For more information, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).
+ //
+ // Policy is a required field
+ Policy *string `min:"1" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach
+ // the policy.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s PutPermissionPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutPermissionPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutPermissionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutPermissionPolicyInput"}
+ if s.Policy == nil {
+ invalidParams.Add(request.NewErrParamRequired("Policy"))
+ }
+ if s.Policy != nil && len(*s.Policy) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
+ }
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *PutPermissionPolicyInput) SetPolicy(v string) *PutPermissionPolicyInput {
+ s.Policy = &v
+ return s
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *PutPermissionPolicyInput) SetResourceArn(v string) *PutPermissionPolicyInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type PutPermissionPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s PutPermissionPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutPermissionPolicyOutput) GoString() string {
+ return s.String()
+}
+
//
// This is the latest version of AWS WAF, named AWS WAFV2, released in November,
// 2019. For information, including how to migrate your AWS WAF resources from
@@ -9252,20 +10300,19 @@ type RegexPatternSet struct {
// The Amazon Resource Name (ARN) of the entity.
ARN *string `min:"20" type:"string"`
- // A friendly description of the set. You cannot change the description of a
- // set after you create it.
+ // A description of the set that helps with identification. You cannot change
+ // the description of a set after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the set. This ID is returned in the responses to
// create and list commands. You provide it to operations like update and delete.
Id *string `min:"1" type:"string"`
- // A friendly name of the set. You cannot change the name after you create the
- // set.
+ // The name of the set. You cannot change the name after you create the set.
Name *string `min:"1" type:"string"`
// The regular expression patterns in the set.
- RegularExpressionList []*Regex `min:"1" type:"list"`
+ RegularExpressionList []*Regex `type:"list"`
}
// String returns the string representation
@@ -9342,8 +10389,8 @@ type RegexPatternSetReferenceStatement struct {
// Text transformations eliminate some of the unusual formatting that attackers
// use in web requests in an effort to bypass detection. If you specify one
// or more transformations in a rule statement, AWS WAF performs all transformations
- // on the content identified by FieldToMatch, starting from the lowest priority
- // setting, before inspecting the content for a match.
+ // on the content of the request component identified by FieldToMatch, starting
+ // from the lowest priority setting, before inspecting the content for a match.
//
// TextTransformations is a required field
TextTransformations []*TextTransformation `min:"1" type:"list" required:"true"`
@@ -9432,8 +10479,8 @@ type RegexPatternSetSummary struct {
// The Amazon Resource Name (ARN) of the entity.
ARN *string `min:"20" type:"string"`
- // A friendly description of the set. You cannot change the description of a
- // set after you create it.
+ // A description of the set that helps with identification. You cannot change
+ // the description of a set after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the set. This ID is returned in the responses to
@@ -9450,8 +10497,8 @@ type RegexPatternSetSummary struct {
// operation.
LockToken *string `min:"1" type:"string"`
- // A friendly name of the data type instance. You cannot change the name after
- // you create the instance.
+ // The name of the data type instance. You cannot change the name after you
+ // create the instance.
Name *string `min:"1" type:"string"`
}
@@ -9508,19 +10555,44 @@ type Rule struct {
_ struct{} `type:"structure"`
// The action that AWS WAF should take on a web request when it matches the
- // rule's statement. Settings at the web ACL level can override the rule action
+ // rule statement. Settings at the web ACL level can override the rule action
// setting.
+ //
+ // This is used only for rules whose statements do not reference a rule group.
+ // Rule statements that reference a rule group include RuleGroupReferenceStatement
+ // and ManagedRuleGroupStatement.
+ //
+ // You must specify either this Action setting or the rule OverrideAction setting,
+ // but not both:
+ //
+ // * If the rule statement does not reference a rule group, use this rule
+ // action setting and not the rule override action setting.
+ //
+ // * If the rule statement references a rule group, use the override action
+ // setting and not this action setting.
Action *RuleAction `type:"structure"`
- // A friendly name of the rule. You can't change the name of a Rule after you
- // create it.
+ // The name of the rule. You can't change the name of a Rule after you create
+ // it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
- // The action to use to override the rule's Action setting. You can use no override
- // action, in which case the rule action is in effect, or count action, in which
- // case, if the rule matches a web request, it only counts the match.
+ // The override action to apply to the rules in a rule group. Used only for
+ // rule statements that reference a rule group, like RuleGroupReferenceStatement
+ // and ManagedRuleGroupStatement.
+ //
+ // Set the override action to none to leave the rule actions in effect. Set
+ // it to count to only count matches, regardless of the rule action settings.
+ //
+ // In a Rule, you must specify either this OverrideAction setting or the rule
+ // Action setting, but not both:
+ //
+ // * If the rule statement references a rule group, use this override action
+ // setting and not the action setting.
+ //
+ // * If the rule statement does not reference a rule group, use the rule
+ // action setting and not this rule override action setting.
OverrideAction *OverrideAction `type:"structure"`
// If you define more than one Rule in a WebACL, AWS WAF evaluates each request
@@ -9708,8 +10780,8 @@ type RuleGroup struct {
// Capacity is a required field
Capacity *int64 `min:"1" type:"long" required:"true"`
- // A friendly description of the rule group. You cannot change the description
- // of a rule group after you create it.
+ // A description of the rule group that helps with identification. You cannot
+ // change the description of a rule group after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the rule group. This ID is returned in the responses
@@ -9719,8 +10791,8 @@ type RuleGroup struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the rule group. You cannot change the name of a rule group
- // after you create it.
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -9877,8 +10949,8 @@ type RuleGroupSummary struct {
// The Amazon Resource Name (ARN) of the entity.
ARN *string `min:"20" type:"string"`
- // A friendly description of the rule group. You cannot change the description
- // of a rule group after you create it.
+ // A description of the rule group that helps with identification. You cannot
+ // change the description of a rule group after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the rule group. This ID is returned in the responses
@@ -9896,8 +10968,8 @@ type RuleGroupSummary struct {
// operation.
LockToken *string `min:"1" type:"string"`
- // A friendly name of the data type instance. You cannot change the name after
- // you create the instance.
+ // The name of the data type instance. You cannot change the name after you
+ // create the instance.
Name *string `min:"1" type:"string"`
}
@@ -10206,8 +11278,8 @@ type SizeConstraintStatement struct {
// Text transformations eliminate some of the unusual formatting that attackers
// use in web requests in an effort to bypass detection. If you specify one
// or more transformations in a rule statement, AWS WAF performs all transformations
- // on the content identified by FieldToMatch, starting from the lowest priority
- // setting, before inspecting the content for a match.
+ // on the content of the request component identified by FieldToMatch, starting
+ // from the lowest priority setting, before inspecting the content for a match.
//
// TextTransformations is a required field
TextTransformations []*TextTransformation `min:"1" type:"list" required:"true"`
@@ -10311,8 +11383,8 @@ type SqliMatchStatement struct {
// Text transformations eliminate some of the unusual formatting that attackers
// use in web requests in an effort to bypass detection. If you specify one
// or more transformations in a rule statement, AWS WAF performs all transformations
- // on the content identified by FieldToMatch, starting from the lowest priority
- // setting, before inspecting the content for a match.
+ // on the content of the request component identified by FieldToMatch, starting
+ // from the lowest priority setting, before inspecting the content for a match.
//
// TextTransformations is a required field
TextTransformations []*TextTransformation `min:"1" type:"list" required:"true"`
@@ -11166,8 +12238,8 @@ type UpdateIPSetInput struct {
// Addresses is a required field
Addresses []*string `type:"list" required:"true"`
- // A friendly description of the IP set. You cannot change the description of
- // an IP set after you create it.
+ // A description of the IP set that helps with identification. You cannot change
+ // the description of an IP set after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the set. This ID is returned in the responses to
@@ -11188,8 +12260,8 @@ type UpdateIPSetInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the IP set. You cannot change the name of an IPSet after
- // you create it.
+ // The name of the IP set. You cannot change the name of an IPSet after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -11201,7 +12273,7 @@ type UpdateIPSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -11320,8 +12392,8 @@ func (s *UpdateIPSetOutput) SetNextLockToken(v string) *UpdateIPSetOutput {
type UpdateRegexPatternSetInput struct {
_ struct{} `type:"structure"`
- // A friendly description of the set. You cannot change the description of a
- // set after you create it.
+ // A description of the set that helps with identification. You cannot change
+ // the description of a set after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the set. This ID is returned in the responses to
@@ -11342,14 +12414,13 @@ type UpdateRegexPatternSetInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the set. You cannot change the name after you create the
- // set.
+ // The name of the set. You cannot change the name after you create the set.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// RegularExpressionList is a required field
- RegularExpressionList []*Regex `min:"1" type:"list" required:"true"`
+ RegularExpressionList []*Regex `type:"list" required:"true"`
// Specifies whether this is for an AWS CloudFront distribution or for a regional
// application. A regional application can be an Application Load Balancer (ALB)
@@ -11358,7 +12429,7 @@ type UpdateRegexPatternSetInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -11404,9 +12475,6 @@ func (s *UpdateRegexPatternSetInput) Validate() error {
if s.RegularExpressionList == nil {
invalidParams.Add(request.NewErrParamRequired("RegularExpressionList"))
}
- if s.RegularExpressionList != nil && len(s.RegularExpressionList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RegularExpressionList", 1))
- }
if s.Scope == nil {
invalidParams.Add(request.NewErrParamRequired("Scope"))
}
@@ -11490,8 +12558,8 @@ func (s *UpdateRegexPatternSetOutput) SetNextLockToken(v string) *UpdateRegexPat
type UpdateRuleGroupInput struct {
_ struct{} `type:"structure"`
- // A friendly description of the rule group. You cannot change the description
- // of a rule group after you create it.
+ // A description of the rule group that helps with identification. You cannot
+ // change the description of a rule group after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the rule group. This ID is returned in the responses
@@ -11513,8 +12581,8 @@ type UpdateRuleGroupInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the rule group. You cannot change the name of a rule group
- // after you create it.
+ // The name of the rule group. You cannot change the name of a rule group after
+ // you create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -11532,7 +12600,7 @@ type UpdateRuleGroupInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -11682,8 +12750,8 @@ type UpdateWebACLInput struct {
// DefaultAction is a required field
DefaultAction *DefaultAction `type:"structure" required:"true"`
- // A friendly description of the Web ACL. You cannot change the description
- // of a Web ACL after you create it.
+ // A description of the Web ACL that helps with identification. You cannot change
+ // the description of a Web ACL after you create it.
Description *string `min:"1" type:"string"`
// The unique identifier for the Web ACL. This ID is returned in the responses
@@ -11705,8 +12773,8 @@ type UpdateWebACLInput struct {
// LockToken is a required field
LockToken *string `min:"1" type:"string" required:"true"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
@@ -11724,7 +12792,7 @@ type UpdateWebACLInput struct {
// To work with CloudFront, you must also specify the Region US East (N. Virginia)
// as follows:
//
- // * CLI - Specify the region when you use the CloudFront scope: --scope=CLOUDFRONT
+ // * CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT
// --region=us-east-1.
//
// * API and SDKs - For all calls, use the Region endpoint us-east-1.
@@ -11914,10 +12982,10 @@ type VisibilityConfig struct {
// CloudWatchMetricsEnabled is a required field
CloudWatchMetricsEnabled *bool `type:"boolean" required:"true"`
- // A friendly name of the CloudWatch metric. The name can contain only alphanumeric
- // characters (A-Z, a-z, 0-9), with length from one to 128 characters. It can't
- // contain whitespace or metric names reserved for AWS WAF, for example "All"
- // and "Default_Action." You can't change a MetricName after you create a VisibilityConfig.
+ // A name of the CloudWatch metric. The name can contain only alphanumeric characters
+ // (A-Z, a-z, 0-9), with length from one to 128 characters. It can't contain
+ // whitespace or metric names reserved for AWS WAF, for example "All" and "Default_Action."
+ // You can't change a MetricName after you create a VisibilityConfig.
//
// MetricName is a required field
MetricName *string `min:"1" type:"string" required:"true"`
@@ -11983,8 +13051,8 @@ func (s *VisibilityConfig) SetSampledRequestsEnabled(v bool) *VisibilityConfig {
// AWS WAF couldn’t perform the operation because your resource is being used
// by another resource or it’s associated with another resource.
type WAFAssociatedItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12001,17 +13069,17 @@ func (s WAFAssociatedItemException) GoString() string {
func newErrorWAFAssociatedItemException(v protocol.ResponseMetadata) error {
return &WAFAssociatedItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFAssociatedItemException) Code() string {
+func (s *WAFAssociatedItemException) Code() string {
return "WAFAssociatedItemException"
}
// Message returns the exception's message.
-func (s WAFAssociatedItemException) Message() string {
+func (s *WAFAssociatedItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12019,29 +13087,29 @@ func (s WAFAssociatedItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFAssociatedItemException) OrigErr() error {
+func (s *WAFAssociatedItemException) OrigErr() error {
return nil
}
-func (s WAFAssociatedItemException) Error() string {
+func (s *WAFAssociatedItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFAssociatedItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFAssociatedItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFAssociatedItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFAssociatedItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t perform the operation because the resource that you tried
// to save is a duplicate of an existing one.
type WAFDuplicateItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12058,17 +13126,17 @@ func (s WAFDuplicateItemException) GoString() string {
func newErrorWAFDuplicateItemException(v protocol.ResponseMetadata) error {
return &WAFDuplicateItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFDuplicateItemException) Code() string {
+func (s *WAFDuplicateItemException) Code() string {
return "WAFDuplicateItemException"
}
// Message returns the exception's message.
-func (s WAFDuplicateItemException) Message() string {
+func (s *WAFDuplicateItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12076,29 +13144,29 @@ func (s WAFDuplicateItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFDuplicateItemException) OrigErr() error {
+func (s *WAFDuplicateItemException) OrigErr() error {
return nil
}
-func (s WAFDuplicateItemException) Error() string {
+func (s *WAFDuplicateItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFDuplicateItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFDuplicateItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFDuplicateItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFDuplicateItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your request is valid, but AWS WAF couldn’t perform the operation because
// of a system problem. Retry your request.
type WAFInternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12115,17 +13183,73 @@ func (s WAFInternalErrorException) GoString() string {
func newErrorWAFInternalErrorException(v protocol.ResponseMetadata) error {
return &WAFInternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInternalErrorException) Code() string {
+func (s *WAFInternalErrorException) Code() string {
return "WAFInternalErrorException"
}
// Message returns the exception's message.
-func (s WAFInternalErrorException) Message() string {
+func (s *WAFInternalErrorException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *WAFInternalErrorException) OrigErr() error {
+ return nil
+}
+
+func (s *WAFInternalErrorException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *WAFInternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *WAFInternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The operation isn't valid.
+type WAFInvalidOperationException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s WAFInvalidOperationException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s WAFInvalidOperationException) GoString() string {
+ return s.String()
+}
+
+func newErrorWAFInvalidOperationException(v protocol.ResponseMetadata) error {
+ return &WAFInvalidOperationException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *WAFInvalidOperationException) Code() string {
+ return "WAFInvalidOperationException"
+}
+
+// Message returns the exception's message.
+func (s *WAFInvalidOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12133,22 +13257,22 @@ func (s WAFInternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInternalErrorException) OrigErr() error {
+func (s *WAFInvalidOperationException) OrigErr() error {
return nil
}
-func (s WAFInternalErrorException) Error() string {
+func (s *WAFInvalidOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The operation failed because AWS WAF didn't recognize a parameter in the
@@ -12165,8 +13289,8 @@ func (s WAFInternalErrorException) RequestID() string {
// * Your request references an ARN that is malformed, or corresponds to
// a resource with which a Web ACL cannot be associated.
type WAFInvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Field *string `type:"string" enum:"ParameterExceptionField"`
@@ -12189,17 +13313,17 @@ func (s WAFInvalidParameterException) GoString() string {
func newErrorWAFInvalidParameterException(v protocol.ResponseMetadata) error {
return &WAFInvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidParameterException) Code() string {
+func (s *WAFInvalidParameterException) Code() string {
return "WAFInvalidParameterException"
}
// Message returns the exception's message.
-func (s WAFInvalidParameterException) Message() string {
+func (s *WAFInvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12207,29 +13331,101 @@ func (s WAFInvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidParameterException) OrigErr() error {
+func (s *WAFInvalidParameterException) OrigErr() error {
return nil
}
-func (s WAFInvalidParameterException) Error() string {
+func (s *WAFInvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The operation failed because the specified policy isn't in the proper format.
+//
+// The policy specifications must conform to the following:
+//
+// * The policy must be composed using IAM Policy version 2012-10-17 or version
+// 2015-01-01.
+//
+// * The policy must include specifications for Effect, Action, and Principal.
+//
+// * Effect must specify Allow.
+//
+// * Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups.
+// AWS WAF rejects any extra actions or wildcard actions in the policy.
+//
+// * The policy must not include a Resource parameter.
+//
+// For more information, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).
+type WAFInvalidPermissionPolicyException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s WAFInvalidPermissionPolicyException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s WAFInvalidPermissionPolicyException) GoString() string {
+ return s.String()
+}
+
+func newErrorWAFInvalidPermissionPolicyException(v protocol.ResponseMetadata) error {
+ return &WAFInvalidPermissionPolicyException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *WAFInvalidPermissionPolicyException) Code() string {
+ return "WAFInvalidPermissionPolicyException"
+}
+
+// Message returns the exception's message.
+func (s *WAFInvalidPermissionPolicyException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *WAFInvalidPermissionPolicyException) OrigErr() error {
+ return nil
+}
+
+func (s *WAFInvalidPermissionPolicyException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *WAFInvalidPermissionPolicyException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *WAFInvalidPermissionPolicyException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t perform the operation because the resource that you requested
// isn’t valid. Check the resource, and try again.
type WAFInvalidResourceException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12246,17 +13442,17 @@ func (s WAFInvalidResourceException) GoString() string {
func newErrorWAFInvalidResourceException(v protocol.ResponseMetadata) error {
return &WAFInvalidResourceException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFInvalidResourceException) Code() string {
+func (s *WAFInvalidResourceException) Code() string {
return "WAFInvalidResourceException"
}
// Message returns the exception's message.
-func (s WAFInvalidResourceException) Message() string {
+func (s *WAFInvalidResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12264,22 +13460,22 @@ func (s WAFInvalidResourceException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFInvalidResourceException) OrigErr() error {
+func (s *WAFInvalidResourceException) OrigErr() error {
return nil
}
-func (s WAFInvalidResourceException) Error() string {
+func (s *WAFInvalidResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFInvalidResourceException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFInvalidResourceException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFInvalidResourceException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFInvalidResourceException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t perform the operation because you exceeded your resource
@@ -12287,8 +13483,8 @@ func (s WAFInvalidResourceException) RequestID() string {
// for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
// in the AWS WAF Developer Guide.
type WAFLimitsExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12305,17 +13501,17 @@ func (s WAFLimitsExceededException) GoString() string {
func newErrorWAFLimitsExceededException(v protocol.ResponseMetadata) error {
return &WAFLimitsExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFLimitsExceededException) Code() string {
+func (s *WAFLimitsExceededException) Code() string {
return "WAFLimitsExceededException"
}
// Message returns the exception's message.
-func (s WAFLimitsExceededException) Message() string {
+func (s *WAFLimitsExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12323,29 +13519,29 @@ func (s WAFLimitsExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFLimitsExceededException) OrigErr() error {
+func (s *WAFLimitsExceededException) OrigErr() error {
return nil
}
-func (s WAFLimitsExceededException) Error() string {
+func (s *WAFLimitsExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFLimitsExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFLimitsExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFLimitsExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFLimitsExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t perform the operation because your resource doesn’t
// exist.
type WAFNonexistentItemException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12362,17 +13558,17 @@ func (s WAFNonexistentItemException) GoString() string {
func newErrorWAFNonexistentItemException(v protocol.ResponseMetadata) error {
return &WAFNonexistentItemException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFNonexistentItemException) Code() string {
+func (s *WAFNonexistentItemException) Code() string {
return "WAFNonexistentItemException"
}
// Message returns the exception's message.
-func (s WAFNonexistentItemException) Message() string {
+func (s *WAFNonexistentItemException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12380,22 +13576,22 @@ func (s WAFNonexistentItemException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFNonexistentItemException) OrigErr() error {
+func (s *WAFNonexistentItemException) OrigErr() error {
return nil
}
-func (s WAFNonexistentItemException) Error() string {
+func (s *WAFNonexistentItemException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFNonexistentItemException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFNonexistentItemException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFNonexistentItemException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFNonexistentItemException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t save your changes because you tried to update or delete
@@ -12403,8 +13599,8 @@ func (s WAFNonexistentItemException) RequestID() string {
// again, make any changes you need to make to the new copy, and retry your
// operation.
type WAFOptimisticLockException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12421,17 +13617,17 @@ func (s WAFOptimisticLockException) GoString() string {
func newErrorWAFOptimisticLockException(v protocol.ResponseMetadata) error {
return &WAFOptimisticLockException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFOptimisticLockException) Code() string {
+func (s *WAFOptimisticLockException) Code() string {
return "WAFOptimisticLockException"
}
// Message returns the exception's message.
-func (s WAFOptimisticLockException) Message() string {
+func (s *WAFOptimisticLockException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12439,22 +13635,22 @@ func (s WAFOptimisticLockException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFOptimisticLockException) OrigErr() error {
+func (s *WAFOptimisticLockException) OrigErr() error {
return nil
}
-func (s WAFOptimisticLockException) Error() string {
+func (s *WAFOptimisticLockException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFOptimisticLockException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFOptimisticLockException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFOptimisticLockException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFOptimisticLockException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF is not able to access the service linked role. This can be caused
@@ -12466,8 +13662,8 @@ func (s WAFOptimisticLockException) RequestID() string {
// again. If you receive this same exception again, you will have to wait additional
// time until the role is unlocked.
type WAFServiceLinkedRoleErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -12484,17 +13680,17 @@ func (s WAFServiceLinkedRoleErrorException) GoString() string {
func newErrorWAFServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error {
return &WAFServiceLinkedRoleErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFServiceLinkedRoleErrorException) Code() string {
+func (s *WAFServiceLinkedRoleErrorException) Code() string {
return "WAFServiceLinkedRoleErrorException"
}
// Message returns the exception's message.
-func (s WAFServiceLinkedRoleErrorException) Message() string {
+func (s *WAFServiceLinkedRoleErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12502,27 +13698,27 @@ func (s WAFServiceLinkedRoleErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFServiceLinkedRoleErrorException) OrigErr() error {
+func (s *WAFServiceLinkedRoleErrorException) OrigErr() error {
return nil
}
-func (s WAFServiceLinkedRoleErrorException) Error() string {
+func (s *WAFServiceLinkedRoleErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFServiceLinkedRoleErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFServiceLinkedRoleErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFServiceLinkedRoleErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFServiceLinkedRoleErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type WAFSubscriptionNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12539,17 +13735,17 @@ func (s WAFSubscriptionNotFoundException) GoString() string {
func newErrorWAFSubscriptionNotFoundException(v protocol.ResponseMetadata) error {
return &WAFSubscriptionNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFSubscriptionNotFoundException) Code() string {
+func (s *WAFSubscriptionNotFoundException) Code() string {
return "WAFSubscriptionNotFoundException"
}
// Message returns the exception's message.
-func (s WAFSubscriptionNotFoundException) Message() string {
+func (s *WAFSubscriptionNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12557,28 +13753,28 @@ func (s WAFSubscriptionNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFSubscriptionNotFoundException) OrigErr() error {
+func (s *WAFSubscriptionNotFoundException) OrigErr() error {
return nil
}
-func (s WAFSubscriptionNotFoundException) Error() string {
+func (s *WAFSubscriptionNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFSubscriptionNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFSubscriptionNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFSubscriptionNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFSubscriptionNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An error occurred during the tagging operation. Retry your request.
type WAFTagOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12595,17 +13791,17 @@ func (s WAFTagOperationException) GoString() string {
func newErrorWAFTagOperationException(v protocol.ResponseMetadata) error {
return &WAFTagOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFTagOperationException) Code() string {
+func (s *WAFTagOperationException) Code() string {
return "WAFTagOperationException"
}
// Message returns the exception's message.
-func (s WAFTagOperationException) Message() string {
+func (s *WAFTagOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12613,29 +13809,29 @@ func (s WAFTagOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFTagOperationException) OrigErr() error {
+func (s *WAFTagOperationException) OrigErr() error {
return nil
}
-func (s WAFTagOperationException) Error() string {
+func (s *WAFTagOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFTagOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFTagOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFTagOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFTagOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t perform your tagging operation because of an internal
// error. Retry your request.
type WAFTagOperationInternalErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12652,17 +13848,17 @@ func (s WAFTagOperationInternalErrorException) GoString() string {
func newErrorWAFTagOperationInternalErrorException(v protocol.ResponseMetadata) error {
return &WAFTagOperationInternalErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFTagOperationInternalErrorException) Code() string {
+func (s *WAFTagOperationInternalErrorException) Code() string {
return "WAFTagOperationInternalErrorException"
}
// Message returns the exception's message.
-func (s WAFTagOperationInternalErrorException) Message() string {
+func (s *WAFTagOperationInternalErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12670,28 +13866,28 @@ func (s WAFTagOperationInternalErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFTagOperationInternalErrorException) OrigErr() error {
+func (s *WAFTagOperationInternalErrorException) OrigErr() error {
return nil
}
-func (s WAFTagOperationInternalErrorException) Error() string {
+func (s *WAFTagOperationInternalErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFTagOperationInternalErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFTagOperationInternalErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFTagOperationInternalErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFTagOperationInternalErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// AWS WAF couldn’t retrieve the resource that you requested. Retry your request.
type WAFUnavailableEntityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -12708,17 +13904,17 @@ func (s WAFUnavailableEntityException) GoString() string {
func newErrorWAFUnavailableEntityException(v protocol.ResponseMetadata) error {
return &WAFUnavailableEntityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WAFUnavailableEntityException) Code() string {
+func (s *WAFUnavailableEntityException) Code() string {
return "WAFUnavailableEntityException"
}
// Message returns the exception's message.
-func (s WAFUnavailableEntityException) Message() string {
+func (s *WAFUnavailableEntityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -12726,22 +13922,22 @@ func (s WAFUnavailableEntityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WAFUnavailableEntityException) OrigErr() error {
+func (s *WAFUnavailableEntityException) OrigErr() error {
return nil
}
-func (s WAFUnavailableEntityException) Error() string {
+func (s *WAFUnavailableEntityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WAFUnavailableEntityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WAFUnavailableEntityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WAFUnavailableEntityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WAFUnavailableEntityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
//
@@ -12782,8 +13978,8 @@ type WebACL struct {
// DefaultAction is a required field
DefaultAction *DefaultAction `type:"structure" required:"true"`
- // A friendly description of the Web ACL. You cannot change the description
- // of a Web ACL after you create it.
+ // A description of the Web ACL that helps with identification. You cannot change
+ // the description of a Web ACL after you create it.
Description *string `min:"1" type:"string"`
// A unique identifier for the WebACL. This ID is returned in the responses
@@ -12793,12 +13989,39 @@ type WebACL struct {
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // Indicates whether this web ACL is managed by AWS Firewall Manager. If true,
+ // then only AWS Firewall Manager can delete the web ACL or any Firewall Manager
+ // rule groups in the web ACL.
+ ManagedByFirewallManager *bool `type:"boolean"`
+
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
+ // The last set of rules for AWS WAF to process in the web ACL. This is defined
+ // in an AWS Firewall Manager WAF policy and contains only rule group references.
+ // You can't alter these. Any rules and rule groups that you define for the
+ // web ACL are prioritized before these.
+ //
+ // In the Firewall Manager WAF policy, the Firewall Manager administrator can
+ // define a set of rule groups to run first in the web ACL and a set of rule
+ // groups to run last. Within each set, the administrator prioritizes the rule
+ // groups, to determine their relative processing order.
+ PostProcessFirewallManagerRuleGroups []*FirewallManagerRuleGroup `type:"list"`
+
+ // The first set of rules for AWS WAF to process in the web ACL. This is defined
+ // in an AWS Firewall Manager WAF policy and contains only rule group references.
+ // You can't alter these. Any rules and rule groups that you define for the
+ // web ACL are prioritized after these.
+ //
+ // In the Firewall Manager WAF policy, the Firewall Manager administrator can
+ // define a set of rule groups to run first in the web ACL and a set of rule
+ // groups to run last. Within each set, the administrator prioritizes the rule
+ // groups, to determine their relative processing order.
+ PreProcessFirewallManagerRuleGroups []*FirewallManagerRuleGroup `type:"list"`
+
// The Rule statements used to identify the web requests that you want to allow,
// block, or count. Each rule includes one top-level statement that AWS WAF
// uses to identify matching web requests, and parameters that govern how AWS
@@ -12851,12 +14074,30 @@ func (s *WebACL) SetId(v string) *WebACL {
return s
}
+// SetManagedByFirewallManager sets the ManagedByFirewallManager field's value.
+func (s *WebACL) SetManagedByFirewallManager(v bool) *WebACL {
+ s.ManagedByFirewallManager = &v
+ return s
+}
+
// SetName sets the Name field's value.
func (s *WebACL) SetName(v string) *WebACL {
s.Name = &v
return s
}
+// SetPostProcessFirewallManagerRuleGroups sets the PostProcessFirewallManagerRuleGroups field's value.
+func (s *WebACL) SetPostProcessFirewallManagerRuleGroups(v []*FirewallManagerRuleGroup) *WebACL {
+ s.PostProcessFirewallManagerRuleGroups = v
+ return s
+}
+
+// SetPreProcessFirewallManagerRuleGroups sets the PreProcessFirewallManagerRuleGroups field's value.
+func (s *WebACL) SetPreProcessFirewallManagerRuleGroups(v []*FirewallManagerRuleGroup) *WebACL {
+ s.PreProcessFirewallManagerRuleGroups = v
+ return s
+}
+
// SetRules sets the Rules field's value.
func (s *WebACL) SetRules(v []*Rule) *WebACL {
s.Rules = v
@@ -12883,8 +14124,8 @@ type WebACLSummary struct {
// The Amazon Resource Name (ARN) of the entity.
ARN *string `min:"20" type:"string"`
- // A friendly description of the Web ACL. You cannot change the description
- // of a Web ACL after you create it.
+ // A description of the Web ACL that helps with identification. You cannot change
+ // the description of a Web ACL after you create it.
Description *string `min:"1" type:"string"`
// The unique identifier for the Web ACL. This ID is returned in the responses
@@ -12902,8 +14143,8 @@ type WebACLSummary struct {
// operation.
LockToken *string `min:"1" type:"string"`
- // A friendly name of the Web ACL. You cannot change the name of a Web ACL after
- // you create it.
+ // The name of the Web ACL. You cannot change the name of a Web ACL after you
+ // create it.
Name *string `min:"1" type:"string"`
}
@@ -12971,8 +14212,8 @@ type XssMatchStatement struct {
// Text transformations eliminate some of the unusual formatting that attackers
// use in web requests in an effort to bypass detection. If you specify one
// or more transformations in a rule statement, AWS WAF performs all transformations
- // on the content identified by FieldToMatch, starting from the lowest priority
- // setting, before inspecting the content for a match.
+ // on the content of the request component identified by FieldToMatch, starting
+ // from the lowest priority setting, before inspecting the content for a match.
//
// TextTransformations is a required field
TextTransformations []*TextTransformation `min:"1" type:"list" required:"true"`
@@ -13922,6 +15163,9 @@ const (
// ParameterExceptionFieldMetricName is a ParameterExceptionField enum value
ParameterExceptionFieldMetricName = "METRIC_NAME"
+
+ // ParameterExceptionFieldFirewallManagerStatement is a ParameterExceptionField enum value
+ ParameterExceptionFieldFirewallManagerStatement = "FIREWALL_MANAGER_STATEMENT"
)
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafv2/doc.go b/vendor/github.com/aws/aws-sdk-go/service/wafv2/doc.go
index 7ba3ae4f638..04e8ecfdda2 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/wafv2/doc.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/wafv2/doc.go
@@ -34,8 +34,8 @@
// WAF features and an overview of how to use AWS WAF, see the AWS WAF Developer
// Guide (https://docs.aws.amazon.com/waf/latest/developerguide/).
//
-// You can make API calls using the endpoints listed in AWS Service Endpoints
-// for AWS WAF (https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region).
+// You can make calls using the endpoints listed in AWS Service Endpoints for
+// AWS WAF (https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region).
//
// * For regional applications, you can use any of the endpoints in the list.
// A regional application can be an Application Load Balancer (ALB) or an
@@ -56,9 +56,9 @@
// need to distinguish the scope, you specify a Scope parameter and set it
// to CLOUDFRONT or REGIONAL.
//
-// * You can define a Web ACL or rule group with a single API call, and update
+// * You can define a Web ACL or rule group with a single call, and update
// it with a single call. You define all rule specifications in JSON format,
-// and pass them to your rule group or Web ACL API calls.
+// and pass them to your rule group or Web ACL calls.
//
// * The limits AWS WAF places on the use of rules more closely reflects
// the cost of running each type of rule. Rule groups include capacity settings,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafv2/errors.go b/vendor/github.com/aws/aws-sdk-go/service/wafv2/errors.go
index e4985c1dfe8..e3d65731f70 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/wafv2/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/wafv2/errors.go
@@ -29,6 +29,12 @@ const (
// of a system problem. Retry your request.
ErrCodeWAFInternalErrorException = "WAFInternalErrorException"
+ // ErrCodeWAFInvalidOperationException for service response error code
+ // "WAFInvalidOperationException".
+ //
+ // The operation isn't valid.
+ ErrCodeWAFInvalidOperationException = "WAFInvalidOperationException"
+
// ErrCodeWAFInvalidParameterException for service response error code
// "WAFInvalidParameterException".
//
@@ -47,6 +53,28 @@ const (
// a resource with which a Web ACL cannot be associated.
ErrCodeWAFInvalidParameterException = "WAFInvalidParameterException"
+ // ErrCodeWAFInvalidPermissionPolicyException for service response error code
+ // "WAFInvalidPermissionPolicyException".
+ //
+ // The operation failed because the specified policy isn't in the proper format.
+ //
+ // The policy specifications must conform to the following:
+ //
+ // * The policy must be composed using IAM Policy version 2012-10-17 or version
+ // 2015-01-01.
+ //
+ // * The policy must include specifications for Effect, Action, and Principal.
+ //
+ // * Effect must specify Allow.
+ //
+ // * Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups.
+ // AWS WAF rejects any extra actions or wildcard actions in the policy.
+ //
+ // * The policy must not include a Resource parameter.
+ //
+ // For more information, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).
+ ErrCodeWAFInvalidPermissionPolicyException = "WAFInvalidPermissionPolicyException"
+
// ErrCodeWAFInvalidResourceException for service response error code
// "WAFInvalidResourceException".
//
@@ -120,7 +148,9 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"WAFAssociatedItemException": newErrorWAFAssociatedItemException,
"WAFDuplicateItemException": newErrorWAFDuplicateItemException,
"WAFInternalErrorException": newErrorWAFInternalErrorException,
+ "WAFInvalidOperationException": newErrorWAFInvalidOperationException,
"WAFInvalidParameterException": newErrorWAFInvalidParameterException,
+ "WAFInvalidPermissionPolicyException": newErrorWAFInvalidPermissionPolicyException,
"WAFInvalidResourceException": newErrorWAFInvalidResourceException,
"WAFLimitsExceededException": newErrorWAFLimitsExceededException,
"WAFNonexistentItemException": newErrorWAFNonexistentItemException,
diff --git a/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go b/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go
index 201091da1f5..517b093fece 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go
@@ -4647,8 +4647,8 @@ func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary {
// The service is temporarily unavailable.
type InternalServerErrorException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4665,17 +4665,17 @@ func (s InternalServerErrorException) GoString() string {
func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
return &InternalServerErrorException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InternalServerErrorException) Code() string {
+func (s *InternalServerErrorException) Code() string {
return "InternalServerErrorException"
}
// Message returns the exception's message.
-func (s InternalServerErrorException) Message() string {
+func (s *InternalServerErrorException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4683,28 +4683,28 @@ func (s InternalServerErrorException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InternalServerErrorException) OrigErr() error {
+func (s *InternalServerErrorException) OrigErr() error {
return nil
}
-func (s InternalServerErrorException) Error() string {
+func (s *InternalServerErrorException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InternalServerErrorException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InternalServerErrorException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InternalServerErrorException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InternalServerErrorException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request is not valid.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4721,17 +4721,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4739,22 +4739,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListDevicesInput struct {
@@ -5237,8 +5237,8 @@ func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthoriti
// The resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5255,17 +5255,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5273,28 +5273,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The requested resource was not found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5311,17 +5311,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5329,22 +5329,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type RestoreDomainAccessInput struct {
@@ -5565,8 +5565,8 @@ func (s SignOutUserOutput) GoString() string {
// The number of requests exceeds the limit.
type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5583,17 +5583,17 @@ func (s TooManyRequestsException) GoString() string {
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyRequestsException) Code() string {
+func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
-func (s TooManyRequestsException) Message() string {
+func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5601,28 +5601,28 @@ func (s TooManyRequestsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyRequestsException) OrigErr() error {
+func (s *TooManyRequestsException) OrigErr() error {
return nil
}
-func (s TooManyRequestsException) Error() string {
+func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyRequestsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyRequestsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You are not authorized to perform this action.
type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5639,17 +5639,17 @@ func (s UnauthorizedException) GoString() string {
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnauthorizedException) Code() string {
+func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
-func (s UnauthorizedException) Message() string {
+func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5657,22 +5657,22 @@ func (s UnauthorizedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnauthorizedException) OrigErr() error {
+func (s *UnauthorizedException) OrigErr() error {
return nil
}
-func (s UnauthorizedException) Error() string {
+func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnauthorizedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnauthorizedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnauthorizedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnauthorizedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateAuditStreamConfigurationInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go b/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go
index 8d0f2473292..24766b693f2 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go
@@ -6132,8 +6132,8 @@ func (s *DescribeUserOutput) SetUserRole(v string) *DescribeUserOutput {
// The directory service doesn't recognize the credentials supplied by WorkMail.
type DirectoryServiceAuthenticationFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6150,17 +6150,17 @@ func (s DirectoryServiceAuthenticationFailedException) GoString() string {
func newErrorDirectoryServiceAuthenticationFailedException(v protocol.ResponseMetadata) error {
return &DirectoryServiceAuthenticationFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryServiceAuthenticationFailedException) Code() string {
+func (s *DirectoryServiceAuthenticationFailedException) Code() string {
return "DirectoryServiceAuthenticationFailedException"
}
// Message returns the exception's message.
-func (s DirectoryServiceAuthenticationFailedException) Message() string {
+func (s *DirectoryServiceAuthenticationFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6168,28 +6168,28 @@ func (s DirectoryServiceAuthenticationFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryServiceAuthenticationFailedException) OrigErr() error {
+func (s *DirectoryServiceAuthenticationFailedException) OrigErr() error {
return nil
}
-func (s DirectoryServiceAuthenticationFailedException) Error() string {
+func (s *DirectoryServiceAuthenticationFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryServiceAuthenticationFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryServiceAuthenticationFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryServiceAuthenticationFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryServiceAuthenticationFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The directory on which you are trying to perform operations isn't available.
type DirectoryUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6206,17 +6206,17 @@ func (s DirectoryUnavailableException) GoString() string {
func newErrorDirectoryUnavailableException(v protocol.ResponseMetadata) error {
return &DirectoryUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s DirectoryUnavailableException) Code() string {
+func (s *DirectoryUnavailableException) Code() string {
return "DirectoryUnavailableException"
}
// Message returns the exception's message.
-func (s DirectoryUnavailableException) Message() string {
+func (s *DirectoryUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6224,22 +6224,22 @@ func (s DirectoryUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s DirectoryUnavailableException) OrigErr() error {
+func (s *DirectoryUnavailableException) OrigErr() error {
return nil
}
-func (s DirectoryUnavailableException) Error() string {
+func (s *DirectoryUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s DirectoryUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *DirectoryUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s DirectoryUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *DirectoryUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type DisassociateDelegateFromResourceInput struct {
@@ -6415,8 +6415,8 @@ func (s DisassociateMemberFromGroupOutput) GoString() string {
// The email address that you're trying to assign is already created for a different
// user, group, or resource.
type EmailAddressInUseException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6433,17 +6433,17 @@ func (s EmailAddressInUseException) GoString() string {
func newErrorEmailAddressInUseException(v protocol.ResponseMetadata) error {
return &EmailAddressInUseException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EmailAddressInUseException) Code() string {
+func (s *EmailAddressInUseException) Code() string {
return "EmailAddressInUseException"
}
// Message returns the exception's message.
-func (s EmailAddressInUseException) Message() string {
+func (s *EmailAddressInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6451,28 +6451,28 @@ func (s EmailAddressInUseException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EmailAddressInUseException) OrigErr() error {
+func (s *EmailAddressInUseException) OrigErr() error {
return nil
}
-func (s EmailAddressInUseException) Error() string {
+func (s *EmailAddressInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EmailAddressInUseException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EmailAddressInUseException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EmailAddressInUseException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EmailAddressInUseException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The user, group, or resource that you're trying to register is already registered.
type EntityAlreadyRegisteredException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6489,17 +6489,17 @@ func (s EntityAlreadyRegisteredException) GoString() string {
func newErrorEntityAlreadyRegisteredException(v protocol.ResponseMetadata) error {
return &EntityAlreadyRegisteredException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityAlreadyRegisteredException) Code() string {
+func (s *EntityAlreadyRegisteredException) Code() string {
return "EntityAlreadyRegisteredException"
}
// Message returns the exception's message.
-func (s EntityAlreadyRegisteredException) Message() string {
+func (s *EntityAlreadyRegisteredException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6507,29 +6507,29 @@ func (s EntityAlreadyRegisteredException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityAlreadyRegisteredException) OrigErr() error {
+func (s *EntityAlreadyRegisteredException) OrigErr() error {
return nil
}
-func (s EntityAlreadyRegisteredException) Error() string {
+func (s *EntityAlreadyRegisteredException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityAlreadyRegisteredException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityAlreadyRegisteredException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityAlreadyRegisteredException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityAlreadyRegisteredException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The identifier supplied for the user, group, or resource does not exist in
// your organization.
type EntityNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6546,17 +6546,17 @@ func (s EntityNotFoundException) GoString() string {
func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error {
return &EntityNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityNotFoundException) Code() string {
+func (s *EntityNotFoundException) Code() string {
return "EntityNotFoundException"
}
// Message returns the exception's message.
-func (s EntityNotFoundException) Message() string {
+func (s *EntityNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6564,29 +6564,29 @@ func (s EntityNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityNotFoundException) OrigErr() error {
+func (s *EntityNotFoundException) OrigErr() error {
return nil
}
-func (s EntityNotFoundException) Error() string {
+func (s *EntityNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You are performing an operation on a user, group, or resource that isn't
// in the expected state, such as trying to delete an active user.
type EntityStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6603,17 +6603,17 @@ func (s EntityStateException) GoString() string {
func newErrorEntityStateException(v protocol.ResponseMetadata) error {
return &EntityStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s EntityStateException) Code() string {
+func (s *EntityStateException) Code() string {
return "EntityStateException"
}
// Message returns the exception's message.
-func (s EntityStateException) Message() string {
+func (s *EntityStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6621,22 +6621,22 @@ func (s EntityStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s EntityStateException) OrigErr() error {
+func (s *EntityStateException) OrigErr() error {
return nil
}
-func (s EntityStateException) Error() string {
+func (s *EntityStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s EntityStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *EntityStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s EntityStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *EntityStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type GetAccessControlEffectInput struct {
@@ -6922,8 +6922,8 @@ func (s *Group) SetState(v string) *Group {
// to auto-respond to requests or have at least one delegate associated that
// can do so on its behalf.
type InvalidConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6940,17 +6940,17 @@ func (s InvalidConfigurationException) GoString() string {
func newErrorInvalidConfigurationException(v protocol.ResponseMetadata) error {
return &InvalidConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidConfigurationException) Code() string {
+func (s *InvalidConfigurationException) Code() string {
return "InvalidConfigurationException"
}
// Message returns the exception's message.
-func (s InvalidConfigurationException) Message() string {
+func (s *InvalidConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6958,28 +6958,28 @@ func (s InvalidConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidConfigurationException) OrigErr() error {
+func (s *InvalidConfigurationException) OrigErr() error {
return nil
}
-func (s InvalidConfigurationException) Error() string {
+func (s *InvalidConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// One or more of the input parameters don't match the service's restrictions.
type InvalidParameterException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -6996,17 +6996,17 @@ func (s InvalidParameterException) GoString() string {
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterException) Code() string {
+func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
-func (s InvalidParameterException) Message() string {
+func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7014,29 +7014,29 @@ func (s InvalidParameterException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterException) OrigErr() error {
+func (s *InvalidParameterException) OrigErr() error {
return nil
}
-func (s InvalidParameterException) Error() string {
+func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The supplied password doesn't match the minimum security constraints, such
// as length or use of special characters.
type InvalidPasswordException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7053,17 +7053,17 @@ func (s InvalidPasswordException) GoString() string {
func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error {
return &InvalidPasswordException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidPasswordException) Code() string {
+func (s *InvalidPasswordException) Code() string {
return "InvalidPasswordException"
}
// Message returns the exception's message.
-func (s InvalidPasswordException) Message() string {
+func (s *InvalidPasswordException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7071,28 +7071,28 @@ func (s InvalidPasswordException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidPasswordException) OrigErr() error {
+func (s *InvalidPasswordException) OrigErr() error {
return nil
}
-func (s InvalidPasswordException) Error() string {
+func (s *InvalidPasswordException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidPasswordException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidPasswordException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidPasswordException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidPasswordException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The request exceeds the limit of the resource.
type LimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -7109,17 +7109,17 @@ func (s LimitExceededException) GoString() string {
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s LimitExceededException) Code() string {
+func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
-func (s LimitExceededException) Message() string {
+func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7127,22 +7127,22 @@ func (s LimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s LimitExceededException) OrigErr() error {
+func (s *LimitExceededException) OrigErr() error {
return nil
}
-func (s LimitExceededException) Error() string {
+func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s LimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s LimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ListAccessControlRulesInput struct {
@@ -8099,8 +8099,8 @@ func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput {
// For an email or alias to be created in Amazon WorkMail, the included domain
// must be defined in the organization.
type MailDomainNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8117,17 +8117,17 @@ func (s MailDomainNotFoundException) GoString() string {
func newErrorMailDomainNotFoundException(v protocol.ResponseMetadata) error {
return &MailDomainNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MailDomainNotFoundException) Code() string {
+func (s *MailDomainNotFoundException) Code() string {
return "MailDomainNotFoundException"
}
// Message returns the exception's message.
-func (s MailDomainNotFoundException) Message() string {
+func (s *MailDomainNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8135,29 +8135,29 @@ func (s MailDomainNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MailDomainNotFoundException) OrigErr() error {
+func (s *MailDomainNotFoundException) OrigErr() error {
return nil
}
-func (s MailDomainNotFoundException) Error() string {
+func (s *MailDomainNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MailDomainNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MailDomainNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MailDomainNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MailDomainNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// After a domain has been added to the organization, it must be verified. The
// domain is not yet verified.
type MailDomainStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8174,17 +8174,17 @@ func (s MailDomainStateException) GoString() string {
func newErrorMailDomainStateException(v protocol.ResponseMetadata) error {
return &MailDomainStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s MailDomainStateException) Code() string {
+func (s *MailDomainStateException) Code() string {
return "MailDomainStateException"
}
// Message returns the exception's message.
-func (s MailDomainStateException) Message() string {
+func (s *MailDomainStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8192,22 +8192,22 @@ func (s MailDomainStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s MailDomainStateException) OrigErr() error {
+func (s *MailDomainStateException) OrigErr() error {
return nil
}
-func (s MailDomainStateException) Error() string {
+func (s *MailDomainStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s MailDomainStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *MailDomainStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s MailDomainStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *MailDomainStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The representation of a user or group.
@@ -8281,8 +8281,8 @@ func (s *Member) SetType(v string) *Member {
// The user, group, or resource name isn't unique in Amazon WorkMail.
type NameAvailabilityException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8299,17 +8299,17 @@ func (s NameAvailabilityException) GoString() string {
func newErrorNameAvailabilityException(v protocol.ResponseMetadata) error {
return &NameAvailabilityException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s NameAvailabilityException) Code() string {
+func (s *NameAvailabilityException) Code() string {
return "NameAvailabilityException"
}
// Message returns the exception's message.
-func (s NameAvailabilityException) Message() string {
+func (s *NameAvailabilityException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8317,29 +8317,29 @@ func (s NameAvailabilityException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s NameAvailabilityException) OrigErr() error {
+func (s *NameAvailabilityException) OrigErr() error {
return nil
}
-func (s NameAvailabilityException) Error() string {
+func (s *NameAvailabilityException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s NameAvailabilityException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *NameAvailabilityException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s NameAvailabilityException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *NameAvailabilityException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// An operation received a valid organization identifier that either doesn't
// belong or exist in the system.
type OrganizationNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8356,17 +8356,17 @@ func (s OrganizationNotFoundException) GoString() string {
func newErrorOrganizationNotFoundException(v protocol.ResponseMetadata) error {
return &OrganizationNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationNotFoundException) Code() string {
+func (s *OrganizationNotFoundException) Code() string {
return "OrganizationNotFoundException"
}
// Message returns the exception's message.
-func (s OrganizationNotFoundException) Message() string {
+func (s *OrganizationNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8374,29 +8374,29 @@ func (s OrganizationNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationNotFoundException) OrigErr() error {
+func (s *OrganizationNotFoundException) OrigErr() error {
return nil
}
-func (s OrganizationNotFoundException) Error() string {
+func (s *OrganizationNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The organization must have a valid state (Active or Synchronizing) to perform
// certain operations on the organization or its members.
type OrganizationStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8413,17 +8413,17 @@ func (s OrganizationStateException) GoString() string {
func newErrorOrganizationStateException(v protocol.ResponseMetadata) error {
return &OrganizationStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OrganizationStateException) Code() string {
+func (s *OrganizationStateException) Code() string {
return "OrganizationStateException"
}
// Message returns the exception's message.
-func (s OrganizationStateException) Message() string {
+func (s *OrganizationStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8431,22 +8431,22 @@ func (s OrganizationStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OrganizationStateException) OrigErr() error {
+func (s *OrganizationStateException) OrigErr() error {
return nil
}
-func (s OrganizationStateException) Error() string {
+func (s *OrganizationStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OrganizationStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OrganizationStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OrganizationStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OrganizationStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The representation of an organization.
@@ -8906,8 +8906,8 @@ func (s RegisterToWorkMailOutput) GoString() string {
// This user, group, or resource name is not allowed in Amazon WorkMail.
type ReservedNameException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -8924,17 +8924,17 @@ func (s ReservedNameException) GoString() string {
func newErrorReservedNameException(v protocol.ResponseMetadata) error {
return &ReservedNameException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ReservedNameException) Code() string {
+func (s *ReservedNameException) Code() string {
return "ReservedNameException"
}
// Message returns the exception's message.
-func (s ReservedNameException) Message() string {
+func (s *ReservedNameException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8942,22 +8942,22 @@ func (s ReservedNameException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ReservedNameException) OrigErr() error {
+func (s *ReservedNameException) OrigErr() error {
return nil
}
-func (s ReservedNameException) Error() string {
+func (s *ReservedNameException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ReservedNameException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ReservedNameException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ReservedNameException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ReservedNameException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type ResetPasswordInput struct {
@@ -9124,8 +9124,8 @@ func (s *Resource) SetType(v string) *Resource {
// The resource cannot be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9142,17 +9142,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9160,22 +9160,22 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a tag applied to a resource.
@@ -9315,8 +9315,8 @@ func (s TagResourceOutput) GoString() string {
// The resource can have up to 50 user-applied tags.
type TooManyTagsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9333,17 +9333,17 @@ func (s TooManyTagsException) GoString() string {
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s TooManyTagsException) Code() string {
+func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
-func (s TooManyTagsException) Message() string {
+func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9351,28 +9351,28 @@ func (s TooManyTagsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s TooManyTagsException) OrigErr() error {
+func (s *TooManyTagsException) OrigErr() error {
return nil
}
-func (s TooManyTagsException) Error() string {
+func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s TooManyTagsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *TooManyTagsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s TooManyTagsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *TooManyTagsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// You can't perform a write operation against a read-only directory.
type UnsupportedOperationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -9389,17 +9389,17 @@ func (s UnsupportedOperationException) GoString() string {
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedOperationException) Code() string {
+func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
-func (s UnsupportedOperationException) Message() string {
+func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9407,22 +9407,22 @@ func (s UnsupportedOperationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedOperationException) OrigErr() error {
+func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
-func (s UnsupportedOperationException) Error() string {
+func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedOperationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedOperationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedOperationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedOperationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go
index 5ec35c9e415..16866ca6bec 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go
@@ -3796,8 +3796,8 @@ func (c *WorkSpaces) UpdateRulesOfIpGroupWithContext(ctx aws.Context, input *Upd
// The user is not authorized to access a resource.
type AccessDeniedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -3814,17 +3814,17 @@ func (s AccessDeniedException) GoString() string {
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s AccessDeniedException) Code() string {
+func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
-func (s AccessDeniedException) Message() string {
+func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -3832,22 +3832,22 @@ func (s AccessDeniedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s AccessDeniedException) OrigErr() error {
+func (s *AccessDeniedException) OrigErr() error {
return nil
}
-func (s AccessDeniedException) Error() string {
+func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s AccessDeniedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s AccessDeniedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes a modification to the configuration of Bring Your Own License (BYOL)
@@ -6055,8 +6055,8 @@ func (s *ImportWorkspaceImageOutput) SetImageId(v string) *ImportWorkspaceImageO
// One or more parameter values are not valid.
type InvalidParameterValuesException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception error message.
Message_ *string `locationName:"message" type:"string"`
@@ -6074,17 +6074,17 @@ func (s InvalidParameterValuesException) GoString() string {
func newErrorInvalidParameterValuesException(v protocol.ResponseMetadata) error {
return &InvalidParameterValuesException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidParameterValuesException) Code() string {
+func (s *InvalidParameterValuesException) Code() string {
return "InvalidParameterValuesException"
}
// Message returns the exception's message.
-func (s InvalidParameterValuesException) Message() string {
+func (s *InvalidParameterValuesException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6092,28 +6092,28 @@ func (s InvalidParameterValuesException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidParameterValuesException) OrigErr() error {
+func (s *InvalidParameterValuesException) OrigErr() error {
return nil
}
-func (s InvalidParameterValuesException) Error() string {
+func (s *InvalidParameterValuesException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidParameterValuesException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidParameterValuesException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidParameterValuesException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidParameterValuesException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The state of the resource is not valid for this operation.
type InvalidResourceStateException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6130,17 +6130,17 @@ func (s InvalidResourceStateException) GoString() string {
func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error {
return &InvalidResourceStateException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidResourceStateException) Code() string {
+func (s *InvalidResourceStateException) Code() string {
return "InvalidResourceStateException"
}
// Message returns the exception's message.
-func (s InvalidResourceStateException) Message() string {
+func (s *InvalidResourceStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6148,22 +6148,22 @@ func (s InvalidResourceStateException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidResourceStateException) OrigErr() error {
+func (s *InvalidResourceStateException) OrigErr() error {
return nil
}
-func (s InvalidResourceStateException) Error() string {
+func (s *InvalidResourceStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidResourceStateException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidResourceStateException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidResourceStateException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidResourceStateException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes an IP access control group.
@@ -6958,8 +6958,8 @@ func (s *OperatingSystem) SetType(v string) *OperatingSystem {
// The properties of this WorkSpace are currently being modified. Try again
// in a moment.
type OperationInProgressException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -6976,17 +6976,17 @@ func (s OperationInProgressException) GoString() string {
func newErrorOperationInProgressException(v protocol.ResponseMetadata) error {
return &OperationInProgressException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationInProgressException) Code() string {
+func (s *OperationInProgressException) Code() string {
return "OperationInProgressException"
}
// Message returns the exception's message.
-func (s OperationInProgressException) Message() string {
+func (s *OperationInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -6994,28 +6994,28 @@ func (s OperationInProgressException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationInProgressException) OrigErr() error {
+func (s *OperationInProgressException) OrigErr() error {
return nil
}
-func (s OperationInProgressException) Error() string {
+func (s *OperationInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationInProgressException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationInProgressException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationInProgressException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationInProgressException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// This operation is not supported.
type OperationNotSupportedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7032,17 +7032,17 @@ func (s OperationNotSupportedException) GoString() string {
func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error {
return &OperationNotSupportedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s OperationNotSupportedException) Code() string {
+func (s *OperationNotSupportedException) Code() string {
return "OperationNotSupportedException"
}
// Message returns the exception's message.
-func (s OperationNotSupportedException) Message() string {
+func (s *OperationNotSupportedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7050,22 +7050,22 @@ func (s OperationNotSupportedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s OperationNotSupportedException) OrigErr() error {
+func (s *OperationNotSupportedException) OrigErr() error {
return nil
}
-func (s OperationNotSupportedException) Error() string {
+func (s *OperationNotSupportedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s OperationNotSupportedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *OperationNotSupportedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s OperationNotSupportedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *OperationNotSupportedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Describes the information used to reboot a WorkSpace.
@@ -7427,8 +7427,8 @@ func (s RegisterWorkspaceDirectoryOutput) GoString() string {
// The specified resource already exists.
type ResourceAlreadyExistsException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7445,17 +7445,17 @@ func (s ResourceAlreadyExistsException) GoString() string {
func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
return &ResourceAlreadyExistsException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAlreadyExistsException) Code() string {
+func (s *ResourceAlreadyExistsException) Code() string {
return "ResourceAlreadyExistsException"
}
// Message returns the exception's message.
-func (s ResourceAlreadyExistsException) Message() string {
+func (s *ResourceAlreadyExistsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7463,28 +7463,28 @@ func (s ResourceAlreadyExistsException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAlreadyExistsException) OrigErr() error {
+func (s *ResourceAlreadyExistsException) OrigErr() error {
return nil
}
-func (s ResourceAlreadyExistsException) Error() string {
+func (s *ResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAlreadyExistsException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAlreadyExistsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAlreadyExistsException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAlreadyExistsException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource is associated with a directory.
type ResourceAssociatedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7501,17 +7501,17 @@ func (s ResourceAssociatedException) GoString() string {
func newErrorResourceAssociatedException(v protocol.ResponseMetadata) error {
return &ResourceAssociatedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceAssociatedException) Code() string {
+func (s *ResourceAssociatedException) Code() string {
return "ResourceAssociatedException"
}
// Message returns the exception's message.
-func (s ResourceAssociatedException) Message() string {
+func (s *ResourceAssociatedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7519,28 +7519,28 @@ func (s ResourceAssociatedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceAssociatedException) OrigErr() error {
+func (s *ResourceAssociatedException) OrigErr() error {
return nil
}
-func (s ResourceAssociatedException) Error() string {
+func (s *ResourceAssociatedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceAssociatedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceAssociatedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceAssociatedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceAssociatedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource could not be created.
type ResourceCreationFailedException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -7557,17 +7557,17 @@ func (s ResourceCreationFailedException) GoString() string {
func newErrorResourceCreationFailedException(v protocol.ResponseMetadata) error {
return &ResourceCreationFailedException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceCreationFailedException) Code() string {
+func (s *ResourceCreationFailedException) Code() string {
return "ResourceCreationFailedException"
}
// Message returns the exception's message.
-func (s ResourceCreationFailedException) Message() string {
+func (s *ResourceCreationFailedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7575,28 +7575,28 @@ func (s ResourceCreationFailedException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceCreationFailedException) OrigErr() error {
+func (s *ResourceCreationFailedException) OrigErr() error {
return nil
}
-func (s ResourceCreationFailedException) Error() string {
+func (s *ResourceCreationFailedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceCreationFailedException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceCreationFailedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceCreationFailedException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceCreationFailedException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// Your resource limits have been exceeded.
type ResourceLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception error message.
Message_ *string `locationName:"message" type:"string"`
@@ -7614,17 +7614,17 @@ func (s ResourceLimitExceededException) GoString() string {
func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error {
return &ResourceLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceLimitExceededException) Code() string {
+func (s *ResourceLimitExceededException) Code() string {
return "ResourceLimitExceededException"
}
// Message returns the exception's message.
-func (s ResourceLimitExceededException) Message() string {
+func (s *ResourceLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7632,28 +7632,28 @@ func (s ResourceLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceLimitExceededException) OrigErr() error {
+func (s *ResourceLimitExceededException) OrigErr() error {
return nil
}
-func (s ResourceLimitExceededException) Error() string {
+func (s *ResourceLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The resource could not be found.
type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The resource could not be found.
Message_ *string `locationName:"message" type:"string"`
@@ -7674,17 +7674,17 @@ func (s ResourceNotFoundException) GoString() string {
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceNotFoundException) Code() string {
+func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
-func (s ResourceNotFoundException) Message() string {
+func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7692,28 +7692,28 @@ func (s ResourceNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceNotFoundException) OrigErr() error {
+func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
-func (s ResourceNotFoundException) Error() string {
+func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The specified resource is not available.
type ResourceUnavailableException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// The exception error message.
Message_ *string `locationName:"message" type:"string"`
@@ -7734,17 +7734,17 @@ func (s ResourceUnavailableException) GoString() string {
func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error {
return &ResourceUnavailableException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ResourceUnavailableException) Code() string {
+func (s *ResourceUnavailableException) Code() string {
return "ResourceUnavailableException"
}
// Message returns the exception's message.
-func (s ResourceUnavailableException) Message() string {
+func (s *ResourceUnavailableException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -7752,22 +7752,22 @@ func (s ResourceUnavailableException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ResourceUnavailableException) OrigErr() error {
+func (s *ResourceUnavailableException) OrigErr() error {
return nil
}
-func (s ResourceUnavailableException) Error() string {
+func (s *ResourceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ResourceUnavailableException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ResourceUnavailableException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ResourceUnavailableException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ResourceUnavailableException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type RestoreWorkspaceInput struct {
@@ -8345,8 +8345,8 @@ func (s *TerminateWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChange
// network IP range. For more information, see Configure a VPC for Amazon WorkSpaces
// (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html).
type UnsupportedNetworkConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8363,17 +8363,17 @@ func (s UnsupportedNetworkConfigurationException) GoString() string {
func newErrorUnsupportedNetworkConfigurationException(v protocol.ResponseMetadata) error {
return &UnsupportedNetworkConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedNetworkConfigurationException) Code() string {
+func (s *UnsupportedNetworkConfigurationException) Code() string {
return "UnsupportedNetworkConfigurationException"
}
// Message returns the exception's message.
-func (s UnsupportedNetworkConfigurationException) Message() string {
+func (s *UnsupportedNetworkConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8381,30 +8381,30 @@ func (s UnsupportedNetworkConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedNetworkConfigurationException) OrigErr() error {
+func (s *UnsupportedNetworkConfigurationException) OrigErr() error {
return nil
}
-func (s UnsupportedNetworkConfigurationException) Error() string {
+func (s *UnsupportedNetworkConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedNetworkConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedNetworkConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedNetworkConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedNetworkConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// The configuration of this WorkSpace is not supported for this operation.
// For more information, see Required Configuration and Service Components for
// WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html).
type UnsupportedWorkspaceConfigurationException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -8421,17 +8421,17 @@ func (s UnsupportedWorkspaceConfigurationException) GoString() string {
func newErrorUnsupportedWorkspaceConfigurationException(v protocol.ResponseMetadata) error {
return &UnsupportedWorkspaceConfigurationException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s UnsupportedWorkspaceConfigurationException) Code() string {
+func (s *UnsupportedWorkspaceConfigurationException) Code() string {
return "UnsupportedWorkspaceConfigurationException"
}
// Message returns the exception's message.
-func (s UnsupportedWorkspaceConfigurationException) Message() string {
+func (s *UnsupportedWorkspaceConfigurationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -8439,22 +8439,22 @@ func (s UnsupportedWorkspaceConfigurationException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s UnsupportedWorkspaceConfigurationException) OrigErr() error {
+func (s *UnsupportedWorkspaceConfigurationException) OrigErr() error {
return nil
}
-func (s UnsupportedWorkspaceConfigurationException) Error() string {
+func (s *UnsupportedWorkspaceConfigurationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s UnsupportedWorkspaceConfigurationException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *UnsupportedWorkspaceConfigurationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s UnsupportedWorkspaceConfigurationException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *UnsupportedWorkspaceConfigurationException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type UpdateRulesOfIpGroupInput struct {
@@ -9459,8 +9459,8 @@ func (s *WorkspaceRequest) SetWorkspaceProperties(v *WorkspaceProperties) *Works
// role before you can register a directory. For more information, see Creating
// the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role).
type WorkspacesDefaultRoleNotFoundException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
@@ -9477,17 +9477,17 @@ func (s WorkspacesDefaultRoleNotFoundException) GoString() string {
func newErrorWorkspacesDefaultRoleNotFoundException(v protocol.ResponseMetadata) error {
return &WorkspacesDefaultRoleNotFoundException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s WorkspacesDefaultRoleNotFoundException) Code() string {
+func (s *WorkspacesDefaultRoleNotFoundException) Code() string {
return "WorkspacesDefaultRoleNotFoundException"
}
// Message returns the exception's message.
-func (s WorkspacesDefaultRoleNotFoundException) Message() string {
+func (s *WorkspacesDefaultRoleNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -9495,22 +9495,22 @@ func (s WorkspacesDefaultRoleNotFoundException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s WorkspacesDefaultRoleNotFoundException) OrigErr() error {
+func (s *WorkspacesDefaultRoleNotFoundException) OrigErr() error {
return nil
}
-func (s WorkspacesDefaultRoleNotFoundException) Error() string {
+func (s *WorkspacesDefaultRoleNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s WorkspacesDefaultRoleNotFoundException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *WorkspacesDefaultRoleNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s WorkspacesDefaultRoleNotFoundException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *WorkspacesDefaultRoleNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
}
const (
diff --git a/vendor/github.com/aws/aws-sdk-go/service/xray/api.go b/vendor/github.com/aws/aws-sdk-go/service/xray/api.go
index cdd6fd1f926..9092ddb1b4d 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/xray/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/xray/api.go
@@ -2893,6 +2893,9 @@ func (s *EncryptionConfig) SetType(v string) *EncryptionConfig {
type ErrorRootCause struct {
_ struct{} `type:"structure"`
+ // A flag that denotes that the root cause impacts the trace client.
+ ClientImpacting *bool `type:"boolean"`
+
// A list of services corresponding to an error. A service identifies a segment
// and it contains a name, account ID, type, and inferred flag.
Services []*ErrorRootCauseService `type:"list"`
@@ -2908,6 +2911,12 @@ func (s ErrorRootCause) GoString() string {
return s.String()
}
+// SetClientImpacting sets the ClientImpacting field's value.
+func (s *ErrorRootCause) SetClientImpacting(v bool) *ErrorRootCause {
+ s.ClientImpacting = &v
+ return s
+}
+
// SetServices sets the Services field's value.
func (s *ErrorRootCause) SetServices(v []*ErrorRootCauseService) *ErrorRootCause {
s.Services = v
@@ -3073,6 +3082,9 @@ func (s *ErrorStatistics) SetTotalCount(v int64) *ErrorStatistics {
type FaultRootCause struct {
_ struct{} `type:"structure"`
+ // A flag that denotes that the root cause impacts the trace client.
+ ClientImpacting *bool `type:"boolean"`
+
// A list of corresponding services. A service identifies a segment and it contains
// a name, account ID, type, and inferred flag.
Services []*FaultRootCauseService `type:"list"`
@@ -3088,6 +3100,12 @@ func (s FaultRootCause) GoString() string {
return s.String()
}
+// SetClientImpacting sets the ClientImpacting field's value.
+func (s *FaultRootCause) SetClientImpacting(v bool) *FaultRootCause {
+ s.ClientImpacting = &v
+ return s
+}
+
// SetServices sets the Services field's value.
func (s *FaultRootCause) SetServices(v []*FaultRootCauseService) *FaultRootCause {
s.Services = v
@@ -4354,8 +4372,8 @@ func (s *InstanceIdDetail) SetId(v string) *InstanceIdDetail {
// The request is missing required parameters or has invalid parameters.
type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4372,17 +4390,17 @@ func (s InvalidRequestException) GoString() string {
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s InvalidRequestException) Code() string {
+func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
-func (s InvalidRequestException) Message() string {
+func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4390,22 +4408,22 @@ func (s InvalidRequestException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s InvalidRequestException) OrigErr() error {
+func (s *InvalidRequestException) OrigErr() error {
return nil
}
-func (s InvalidRequestException) Error() string {
+func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s InvalidRequestException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *InvalidRequestException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s InvalidRequestException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *InvalidRequestException) RequestID() string {
+ return s.RespMetadata.RequestID
}
type PutEncryptionConfigInput struct {
@@ -4666,6 +4684,9 @@ func (s *ResourceARNDetail) SetARN(v string) *ResourceARNDetail {
type ResponseTimeRootCause struct {
_ struct{} `type:"structure"`
+ // A flag that denotes that the root cause impacts the trace client.
+ ClientImpacting *bool `type:"boolean"`
+
// A list of corresponding services. A service identifies a segment and contains
// a name, account ID, type, and inferred flag.
Services []*ResponseTimeRootCauseService `type:"list"`
@@ -4681,6 +4702,12 @@ func (s ResponseTimeRootCause) GoString() string {
return s.String()
}
+// SetClientImpacting sets the ClientImpacting field's value.
+func (s *ResponseTimeRootCause) SetClientImpacting(v bool) *ResponseTimeRootCause {
+ s.ClientImpacting = &v
+ return s
+}
+
// SetServices sets the Services field's value.
func (s *ResponseTimeRootCause) SetServices(v []*ResponseTimeRootCauseService) *ResponseTimeRootCause {
s.Services = v
@@ -4834,8 +4861,8 @@ func (s *RootCauseException) SetName(v string) *RootCauseException {
// You have reached the maximum number of sampling rules.
type RuleLimitExceededException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -4852,17 +4879,17 @@ func (s RuleLimitExceededException) GoString() string {
func newErrorRuleLimitExceededException(v protocol.ResponseMetadata) error {
return &RuleLimitExceededException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s RuleLimitExceededException) Code() string {
+func (s *RuleLimitExceededException) Code() string {
return "RuleLimitExceededException"
}
// Message returns the exception's message.
-func (s RuleLimitExceededException) Message() string {
+func (s *RuleLimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -4870,22 +4897,22 @@ func (s RuleLimitExceededException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s RuleLimitExceededException) OrigErr() error {
+func (s *RuleLimitExceededException) OrigErr() error {
return nil
}
-func (s RuleLimitExceededException) Error() string {
+func (s *RuleLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s RuleLimitExceededException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *RuleLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s RuleLimitExceededException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *RuleLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A sampling rule that services use to decide whether to instrument a request.
@@ -5918,8 +5945,8 @@ func (s *TelemetryRecord) SetTimestamp(v time.Time) *TelemetryRecord {
// The request exceeds the maximum number of requests per second.
type ThrottledException struct {
- _ struct{} `type:"structure"`
- respMetadata protocol.ResponseMetadata
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
@@ -5936,17 +5963,17 @@ func (s ThrottledException) GoString() string {
func newErrorThrottledException(v protocol.ResponseMetadata) error {
return &ThrottledException{
- respMetadata: v,
+ RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s ThrottledException) Code() string {
+func (s *ThrottledException) Code() string {
return "ThrottledException"
}
// Message returns the exception's message.
-func (s ThrottledException) Message() string {
+func (s *ThrottledException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -5954,22 +5981,22 @@ func (s ThrottledException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s ThrottledException) OrigErr() error {
+func (s *ThrottledException) OrigErr() error {
return nil
}
-func (s ThrottledException) Error() string {
+func (s *ThrottledException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s ThrottledException) StatusCode() int {
- return s.respMetadata.StatusCode
+func (s *ThrottledException) StatusCode() int {
+ return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s ThrottledException) RequestID() string {
- return s.respMetadata.RequestID
+func (s *ThrottledException) RequestID() string {
+ return s.RespMetadata.RequestID
}
// A list of TimeSeriesStatistic structures.
diff --git a/vendor/github.com/jmespath/go-jmespath/.travis.yml b/vendor/github.com/jmespath/go-jmespath/.travis.yml
index 1f98077570d..730c7fa51be 100644
--- a/vendor/github.com/jmespath/go-jmespath/.travis.yml
+++ b/vendor/github.com/jmespath/go-jmespath/.travis.yml
@@ -3,7 +3,15 @@ language: go
sudo: false
go:
- - 1.4
+ - 1.5.x
+ - 1.6.x
+ - 1.7.x
+ - 1.8.x
+ - 1.9.x
+ - 1.10.x
+ - 1.11.x
+ - 1.12.x
+ - 1.13.x
install: go get -v -t ./...
script: make test
diff --git a/vendor/github.com/jmespath/go-jmespath/README.md b/vendor/github.com/jmespath/go-jmespath/README.md
index 187ef676dc9..110ad799976 100644
--- a/vendor/github.com/jmespath/go-jmespath/README.md
+++ b/vendor/github.com/jmespath/go-jmespath/README.md
@@ -4,4 +4,84 @@
-See http://jmespath.org for more info.
+go-jmespath is a GO implementation of JMESPath,
+which is a query language for JSON. It will take a JSON
+document and transform it into another JSON document
+through a JMESPath expression.
+
+Using go-jmespath is really easy. There's a single function
+you use, `jmespath.search`:
+
+
+```go
+> import "github.com/jmespath/go-jmespath"
+>
+> var jsondata = []byte(`{"foo": {"bar": {"baz": [0, 1, 2, 3, 4]}}}`) // your data
+> var data interface{}
+> err := json.Unmarshal(jsondata, &data)
+> result, err := jmespath.Search("foo.bar.baz[2]", data)
+result = 2
+```
+
+In the example we gave the ``search`` function input data of
+`{"foo": {"bar": {"baz": [0, 1, 2, 3, 4]}}}` as well as the JMESPath
+expression `foo.bar.baz[2]`, and the `search` function evaluated
+the expression against the input data to produce the result ``2``.
+
+The JMESPath language can do a lot more than select an element
+from a list. Here are a few more examples:
+
+```go
+> var jsondata = []byte(`{"foo": {"bar": {"baz": [0, 1, 2, 3, 4]}}}`) // your data
+> var data interface{}
+> err := json.Unmarshal(jsondata, &data)
+> result, err := jmespath.search("foo.bar", data)
+result = { "baz": [ 0, 1, 2, 3, 4 ] }
+
+
+> var jsondata = []byte(`{"foo": [{"first": "a", "last": "b"},
+ {"first": "c", "last": "d"}]}`) // your data
+> var data interface{}
+> err := json.Unmarshal(jsondata, &data)
+> result, err := jmespath.search({"foo[*].first", data)
+result [ 'a', 'c' ]
+
+
+> var jsondata = []byte(`{"foo": [{"age": 20}, {"age": 25},
+ {"age": 30}, {"age": 35},
+ {"age": 40}]}`) // your data
+> var data interface{}
+> err := json.Unmarshal(jsondata, &data)
+> result, err := jmespath.search("foo[?age > `30`]")
+result = [ { age: 35 }, { age: 40 } ]
+```
+
+You can also pre-compile your query. This is usefull if
+you are going to run multiple searches with it:
+
+```go
+ > var jsondata = []byte(`{"foo": "bar"}`)
+ > var data interface{}
+ > err := json.Unmarshal(jsondata, &data)
+ > precompiled, err := Compile("foo")
+ > if err != nil{
+ > // ... handle the error
+ > }
+ > result, err := precompiled.Search(data)
+ result = "bar"
+```
+
+## More Resources
+
+The example above only show a small amount of what
+a JMESPath expression can do. If you want to take a
+tour of the language, the *best* place to go is the
+[JMESPath Tutorial](http://jmespath.org/tutorial.html).
+
+One of the best things about JMESPath is that it is
+implemented in many different programming languages including
+python, ruby, php, lua, etc. To see a complete list of libraries,
+check out the [JMESPath libraries page](http://jmespath.org/libraries.html).
+
+And finally, the full JMESPath specification can be found
+on the [JMESPath site](http://jmespath.org/specification.html).
diff --git a/vendor/github.com/jmespath/go-jmespath/api.go b/vendor/github.com/jmespath/go-jmespath/api.go
index 8e26ffeecff..010efe9bfba 100644
--- a/vendor/github.com/jmespath/go-jmespath/api.go
+++ b/vendor/github.com/jmespath/go-jmespath/api.go
@@ -2,7 +2,7 @@ package jmespath
import "strconv"
-// JMESPath is the epresentation of a compiled JMES path query. A JMESPath is
+// JMESPath is the representation of a compiled JMES path query. A JMESPath is
// safe for concurrent use by multiple goroutines.
type JMESPath struct {
ast ASTNode
diff --git a/vendor/github.com/jmespath/go-jmespath/go.mod b/vendor/github.com/jmespath/go-jmespath/go.mod
new file mode 100644
index 00000000000..aa1e3f1c9f7
--- /dev/null
+++ b/vendor/github.com/jmespath/go-jmespath/go.mod
@@ -0,0 +1,5 @@
+module github.com/jmespath/go-jmespath
+
+go 1.14
+
+require github.com/stretchr/testify v1.5.1
diff --git a/vendor/github.com/jmespath/go-jmespath/go.sum b/vendor/github.com/jmespath/go-jmespath/go.sum
new file mode 100644
index 00000000000..331fa69822d
--- /dev/null
+++ b/vendor/github.com/jmespath/go-jmespath/go.sum
@@ -0,0 +1,11 @@
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/jmespath/go-jmespath/parser.go b/vendor/github.com/jmespath/go-jmespath/parser.go
index 1240a175521..4abc303ab4a 100644
--- a/vendor/github.com/jmespath/go-jmespath/parser.go
+++ b/vendor/github.com/jmespath/go-jmespath/parser.go
@@ -137,7 +137,7 @@ func (p *Parser) Parse(expression string) (ASTNode, error) {
}
if p.current() != tEOF {
return ASTNode{}, p.syntaxError(fmt.Sprintf(
- "Unexpected token at the end of the expresssion: %s", p.current()))
+ "Unexpected token at the end of the expression: %s", p.current()))
}
return parsed, nil
}
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go b/vendor/github.com/stretchr/testify/assert/assertion_format.go
index e0364e9e7f6..bf89ecd21f7 100644
--- a/vendor/github.com/stretchr/testify/assert/assertion_format.go
+++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go
@@ -32,7 +32,8 @@ func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args
return Contains(t, s, contains, append([]interface{}{msg}, args...)...)
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -160,7 +161,8 @@ func Falsef(t TestingT, value bool, msg string, args ...interface{}) bool {
return False(t, value, append([]interface{}{msg}, args...)...)
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -267,7 +269,7 @@ func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, ms
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// assert.InDeltaf(t, math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -325,14 +327,6 @@ func JSONEqf(t TestingT, expected string, actual string, msg string, args ...int
return JSONEq(t, expected, actual, append([]interface{}{msg}, args...)...)
}
-// YAMLEqf asserts that two YAML strings are equivalent.
-func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool {
- if h, ok := t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEq(t, expected, actual, append([]interface{}{msg}, args...)...)
-}
-
// Lenf asserts that the specified object has specific length.
// Lenf also fails if the object has a type that len() not accept.
//
@@ -369,6 +363,17 @@ func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args .
return LessOrEqual(t, e1, e2, append([]interface{}{msg}, args...)...)
}
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return Never(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...)
+}
+
// Nilf asserts that the specified object is nil.
//
// assert.Nilf(t, err, "error message %s", "formatted")
@@ -379,6 +384,15 @@ func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool
return Nil(t, object, append([]interface{}{msg}, args...)...)
}
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExists(t, path, append([]interface{}{msg}, args...)...)
+}
+
// NoErrorf asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -392,6 +406,15 @@ func NoErrorf(t TestingT, err error, msg string, args ...interface{}) bool {
return NoError(t, err, append([]interface{}{msg}, args...)...)
}
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExists(t, path, append([]interface{}{msg}, args...)...)
+}
+
// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -462,6 +485,19 @@ func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ..
return NotRegexp(t, rx, str, append([]interface{}{msg}, args...)...)
}
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// assert.NotSamef(t, ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSame(t, expected, actual, append([]interface{}{msg}, args...)...)
+}
+
// NotSubsetf asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -491,6 +527,18 @@ func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool
return Panics(t, f, append([]interface{}{msg}, args...)...)
}
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithErrorf(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func PanicsWithErrorf(t TestingT, errString string, f PanicTestFunc, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithError(t, errString, f, append([]interface{}{msg}, args...)...)
+}
+
// PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -557,6 +605,14 @@ func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta tim
return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...)
}
+// YAMLEqf asserts that two YAML strings are equivalent.
+func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEq(t, expected, actual, append([]interface{}{msg}, args...)...)
+}
+
// Zerof asserts that i is the zero value for its type.
func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool {
if h, ok := t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go b/vendor/github.com/stretchr/testify/assert/assertion_forward.go
index 26830403a9b..75ecdcaa2f3 100644
--- a/vendor/github.com/stretchr/testify/assert/assertion_forward.go
+++ b/vendor/github.com/stretchr/testify/assert/assertion_forward.go
@@ -53,7 +53,8 @@ func (a *Assertions) Containsf(s interface{}, contains interface{}, msg string,
return Containsf(a.t, s, contains, msg, args...)
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -61,7 +62,8 @@ func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool {
return DirExists(a.t, path, msgAndArgs...)
}
-// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// DirExistsf checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -309,7 +311,8 @@ func (a *Assertions) Falsef(value bool, msg string, args ...interface{}) bool {
return Falsef(a.t, value, msg, args...)
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -317,7 +320,8 @@ func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool {
return FileExists(a.t, path, msgAndArgs...)
}
-// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExistsf checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -521,7 +525,7 @@ func (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}
// InDelta asserts that the two numerals are within delta of each other.
//
-// a.InDelta(math.Pi, (22 / 7.0), 0.01)
+// a.InDelta(math.Pi, 22/7.0, 0.01)
func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -563,7 +567,7 @@ func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, del
// InDeltaf asserts that the two numerals are within delta of each other.
//
-// a.InDeltaf(math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
+// a.InDeltaf(math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
func (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
h.Helper()
@@ -639,22 +643,6 @@ func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ..
return JSONEqf(a.t, expected, actual, msg, args...)
}
-// YAMLEq asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) bool {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEq(a.t, expected, actual, msgAndArgs...)
-}
-
-// YAMLEqf asserts that two YAML strings are equivalent.
-func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) bool {
- if h, ok := a.t.(tHelper); ok {
- h.Helper()
- }
- return YAMLEqf(a.t, expected, actual, msg, args...)
-}
-
// Len asserts that the specified object has specific length.
// Len also fails if the object has a type that len() not accept.
//
@@ -727,6 +715,28 @@ func (a *Assertions) Lessf(e1 interface{}, e2 interface{}, msg string, args ...i
return Lessf(a.t, e1, e2, msg, args...)
}
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)
+func (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return Never(a.t, condition, waitFor, tick, msgAndArgs...)
+}
+
+// Neverf asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
+func (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return Neverf(a.t, condition, waitFor, tick, msg, args...)
+}
+
// Nil asserts that the specified object is nil.
//
// a.Nil(err)
@@ -747,6 +757,24 @@ func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) b
return Nilf(a.t, object, msg, args...)
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExists(path string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExists(a.t, path, msgAndArgs...)
+}
+
+// NoDirExistsf checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func (a *Assertions) NoDirExistsf(path string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoDirExistsf(a.t, path, msg, args...)
+}
+
// NoError asserts that a function returned no error (i.e. `nil`).
//
// actualObj, err := SomeFunction()
@@ -773,6 +801,24 @@ func (a *Assertions) NoErrorf(err error, msg string, args ...interface{}) bool {
return NoErrorf(a.t, err, msg, args...)
}
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExists(path string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExists(a.t, path, msgAndArgs...)
+}
+
+// NoFileExistsf checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func (a *Assertions) NoFileExistsf(path string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NoFileExistsf(a.t, path, msg, args...)
+}
+
// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
// specified substring or element.
//
@@ -913,6 +959,32 @@ func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, arg
return NotRegexpf(a.t, rx, str, msg, args...)
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// a.NotSame(ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSame(a.t, expected, actual, msgAndArgs...)
+}
+
+// NotSamef asserts that two pointers do not reference the same object.
+//
+// a.NotSamef(ptr1, ptr2, "error message %s", "formatted")
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return NotSamef(a.t, expected, actual, msg, args...)
+}
+
// NotSubset asserts that the specified list(array, slice...) contains not all
// elements given in the specified subset(array, slice...).
//
@@ -961,6 +1033,30 @@ func (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool {
return Panics(a.t, f, msgAndArgs...)
}
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithError("crazy error", func(){ GoCrazy() })
+func (a *Assertions) PanicsWithError(errString string, f PanicTestFunc, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithError(a.t, errString, f, msgAndArgs...)
+}
+
+// PanicsWithErrorf asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// a.PanicsWithErrorf("crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
+func (a *Assertions) PanicsWithErrorf(errString string, f PanicTestFunc, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return PanicsWithErrorf(a.t, errString, f, msg, args...)
+}
+
// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
// the recovered panic value equals the expected panic value.
//
@@ -1103,6 +1199,22 @@ func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta
return WithinDurationf(a.t, expected, actual, delta, msg, args...)
}
+// YAMLEq asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEq(a.t, expected, actual, msgAndArgs...)
+}
+
+// YAMLEqf asserts that two YAML strings are equivalent.
+func (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) bool {
+ if h, ok := a.t.(tHelper); ok {
+ h.Helper()
+ }
+ return YAMLEqf(a.t, expected, actual, msg, args...)
+}
+
// Zero asserts that i is the zero value for its type.
func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool {
if h, ok := a.t.(tHelper); ok {
diff --git a/vendor/github.com/stretchr/testify/assert/assertions.go b/vendor/github.com/stretchr/testify/assert/assertions.go
index 044da8b01f2..bdd81389a97 100644
--- a/vendor/github.com/stretchr/testify/assert/assertions.go
+++ b/vendor/github.com/stretchr/testify/assert/assertions.go
@@ -11,6 +11,7 @@ import (
"reflect"
"regexp"
"runtime"
+ "runtime/debug"
"strings"
"time"
"unicode"
@@ -21,7 +22,7 @@ import (
yaml "gopkg.in/yaml.v2"
)
-//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_format.go.tmpl
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_format.go.tmpl"
// TestingT is an interface wrapper around *testing.T
type TestingT interface {
@@ -351,6 +352,19 @@ func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
}
+// validateEqualArgs checks whether provided arguments can be safely used in the
+// Equal/NotEqual functions.
+func validateEqualArgs(expected, actual interface{}) error {
+ if expected == nil && actual == nil {
+ return nil
+ }
+
+ if isFunction(expected) || isFunction(actual) {
+ return errors.New("cannot take func type as argument")
+ }
+ return nil
+}
+
// Same asserts that two pointers reference the same object.
//
// assert.Same(t, ptr1, ptr2)
@@ -362,18 +376,7 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b
h.Helper()
}
- expectedPtr, actualPtr := reflect.ValueOf(expected), reflect.ValueOf(actual)
- if expectedPtr.Kind() != reflect.Ptr || actualPtr.Kind() != reflect.Ptr {
- return Fail(t, "Invalid operation: both arguments must be pointers", msgAndArgs...)
- }
-
- expectedType, actualType := reflect.TypeOf(expected), reflect.TypeOf(actual)
- if expectedType != actualType {
- return Fail(t, fmt.Sprintf("Pointer expected to be of type %v, but was %v",
- expectedType, actualType), msgAndArgs...)
- }
-
- if expected != actual {
+ if !samePointers(expected, actual) {
return Fail(t, fmt.Sprintf("Not same: \n"+
"expected: %p %#v\n"+
"actual : %p %#v", expected, expected, actual, actual), msgAndArgs...)
@@ -382,6 +385,42 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b
return true
}
+// NotSame asserts that two pointers do not reference the same object.
+//
+// assert.NotSame(t, ptr1, ptr2)
+//
+// Both arguments must be pointer variables. Pointer variable sameness is
+// determined based on the equality of both type and value.
+func NotSame(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ if samePointers(expected, actual) {
+ return Fail(t, fmt.Sprintf(
+ "Expected and actual point to the same object: %p %#v",
+ expected, expected), msgAndArgs...)
+ }
+ return true
+}
+
+// samePointers compares two generic interface objects and returns whether
+// they point to the same object
+func samePointers(first, second interface{}) bool {
+ firstPtr, secondPtr := reflect.ValueOf(first), reflect.ValueOf(second)
+ if firstPtr.Kind() != reflect.Ptr || secondPtr.Kind() != reflect.Ptr {
+ return false
+ }
+
+ firstType, secondType := reflect.TypeOf(first), reflect.TypeOf(second)
+ if firstType != secondType {
+ return false
+ }
+
+ // compare pointer addresses
+ return first == second
+}
+
// formatUnequalValues takes two values of arbitrary types and returns string
// representations appropriate to be presented to the user.
//
@@ -393,9 +432,11 @@ func formatUnequalValues(expected, actual interface{}) (e string, a string) {
return fmt.Sprintf("%T(%#v)", expected, expected),
fmt.Sprintf("%T(%#v)", actual, actual)
}
-
- return fmt.Sprintf("%#v", expected),
- fmt.Sprintf("%#v", actual)
+ switch expected.(type) {
+ case time.Duration:
+ return fmt.Sprintf("%v", expected), fmt.Sprintf("%v", actual)
+ }
+ return fmt.Sprintf("%#v", expected), fmt.Sprintf("%#v", actual)
}
// EqualValues asserts that two objects are equal or convertable to the same types
@@ -901,15 +942,17 @@ func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool {
type PanicTestFunc func()
// didPanic returns true if the function passed to it panics. Otherwise, it returns false.
-func didPanic(f PanicTestFunc) (bool, interface{}) {
+func didPanic(f PanicTestFunc) (bool, interface{}, string) {
didPanic := false
var message interface{}
+ var stack string
func() {
defer func() {
if message = recover(); message != nil {
didPanic = true
+ stack = string(debug.Stack())
}
}()
@@ -918,7 +961,7 @@ func didPanic(f PanicTestFunc) (bool, interface{}) {
}()
- return didPanic, message
+ return didPanic, message, stack
}
@@ -930,7 +973,7 @@ func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {
h.Helper()
}
- if funcDidPanic, panicValue := didPanic(f); !funcDidPanic {
+ if funcDidPanic, panicValue, _ := didPanic(f); !funcDidPanic {
return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
}
@@ -946,12 +989,34 @@ func PanicsWithValue(t TestingT, expected interface{}, f PanicTestFunc, msgAndAr
h.Helper()
}
- funcDidPanic, panicValue := didPanic(f)
+ funcDidPanic, panicValue, panickedStack := didPanic(f)
if !funcDidPanic {
return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
}
if panicValue != expected {
- return Fail(t, fmt.Sprintf("func %#v should panic with value:\t%#v\n\tPanic value:\t%#v", f, expected, panicValue), msgAndArgs...)
+ return Fail(t, fmt.Sprintf("func %#v should panic with value:\t%#v\n\tPanic value:\t%#v\n\tPanic stack:\t%s", f, expected, panicValue, panickedStack), msgAndArgs...)
+ }
+
+ return true
+}
+
+// PanicsWithError asserts that the code inside the specified PanicTestFunc
+// panics, and that the recovered panic value is an error that satisfies the
+// EqualError comparison.
+//
+// assert.PanicsWithError(t, "crazy error", func(){ GoCrazy() })
+func PanicsWithError(t TestingT, errString string, f PanicTestFunc, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ funcDidPanic, panicValue, panickedStack := didPanic(f)
+ if !funcDidPanic {
+ return Fail(t, fmt.Sprintf("func %#v should panic\n\tPanic value:\t%#v", f, panicValue), msgAndArgs...)
+ }
+ panicErr, ok := panicValue.(error)
+ if !ok || panicErr.Error() != errString {
+ return Fail(t, fmt.Sprintf("func %#v should panic with error message:\t%#v\n\tPanic value:\t%#v\n\tPanic stack:\t%s", f, errString, panicValue, panickedStack), msgAndArgs...)
}
return true
@@ -965,8 +1030,8 @@ func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool {
h.Helper()
}
- if funcDidPanic, panicValue := didPanic(f); funcDidPanic {
- return Fail(t, fmt.Sprintf("func %#v should not panic\n\tPanic value:\t%v", f, panicValue), msgAndArgs...)
+ if funcDidPanic, panicValue, panickedStack := didPanic(f); funcDidPanic {
+ return Fail(t, fmt.Sprintf("func %#v should not panic\n\tPanic value:\t%v\n\tPanic stack:\t%s", f, panicValue, panickedStack), msgAndArgs...)
}
return true
@@ -1026,7 +1091,7 @@ func toFloat(x interface{}) (float64, bool) {
// InDelta asserts that the two numerals are within delta of each other.
//
-// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01)
+// assert.InDelta(t, math.Pi, 22/7.0, 0.01)
func InDelta(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1314,7 +1379,8 @@ func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool {
return true
}
-// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
+// FileExists checks whether a file exists in the given path. It also fails if
+// the path points to a directory or there is an error when trying to check the file.
func FileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1332,7 +1398,24 @@ func FileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
return true
}
-// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
+// NoFileExists checks whether a file does not exist in a given path. It fails
+// if the path points to an existing _file_ only.
+func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ info, err := os.Lstat(path)
+ if err != nil {
+ return true
+ }
+ if info.IsDir() {
+ return true
+ }
+ return Fail(t, fmt.Sprintf("file %q exists", path), msgAndArgs...)
+}
+
+// DirExists checks whether a directory exists in the given path. It also fails
+// if the path is a file rather a directory or there is an error checking whether it exists.
func DirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
@@ -1350,6 +1433,25 @@ func DirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
return true
}
+// NoDirExists checks whether a directory does not exist in the given path.
+// It fails if the path points to an existing _directory_ only.
+func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+ info, err := os.Lstat(path)
+ if err != nil {
+ if os.IsNotExist(err) {
+ return true
+ }
+ return true
+ }
+ if !info.IsDir() {
+ return true
+ }
+ return Fail(t, fmt.Sprintf("directory %q exists", path), msgAndArgs...)
+}
+
// JSONEq asserts that two JSON strings are equivalent.
//
// assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
@@ -1439,15 +1541,6 @@ func diff(expected interface{}, actual interface{}) string {
return "\n\nDiff:\n" + diff
}
-// validateEqualArgs checks whether provided arguments can be safely used in the
-// Equal/NotEqual functions.
-func validateEqualArgs(expected, actual interface{}) error {
- if isFunction(expected) || isFunction(actual) {
- return errors.New("cannot take func type as argument")
- }
- return nil
-}
-
func isFunction(arg interface{}) bool {
if arg == nil {
return false
@@ -1475,24 +1568,59 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t
h.Helper()
}
+ ch := make(chan bool, 1)
+
timer := time.NewTimer(waitFor)
- ticker := time.NewTicker(tick)
- checkPassed := make(chan bool)
defer timer.Stop()
+
+ ticker := time.NewTicker(tick)
defer ticker.Stop()
- defer close(checkPassed)
- for {
+
+ for tick := ticker.C; ; {
select {
case <-timer.C:
return Fail(t, "Condition never satisfied", msgAndArgs...)
- case result := <-checkPassed:
- if result {
+ case <-tick:
+ tick = nil
+ go func() { ch <- condition() }()
+ case v := <-ch:
+ if v {
return true
}
- case <-ticker.C:
- go func() {
- checkPassed <- condition()
- }()
+ tick = ticker.C
+ }
+ }
+}
+
+// Never asserts that the given condition doesn't satisfy in waitFor time,
+// periodically checking the target function each tick.
+//
+// assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
+func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
+ if h, ok := t.(tHelper); ok {
+ h.Helper()
+ }
+
+ ch := make(chan bool, 1)
+
+ timer := time.NewTimer(waitFor)
+ defer timer.Stop()
+
+ ticker := time.NewTicker(tick)
+ defer ticker.Stop()
+
+ for tick := ticker.C; ; {
+ select {
+ case <-timer.C:
+ return true
+ case <-tick:
+ tick = nil
+ go func() { ch <- condition() }()
+ case v := <-ch:
+ if v {
+ return Fail(t, "Condition satisfied", msgAndArgs...)
+ }
+ tick = ticker.C
}
}
}
diff --git a/vendor/github.com/stretchr/testify/assert/forward_assertions.go b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
index 9ad56851d97..df189d2348f 100644
--- a/vendor/github.com/stretchr/testify/assert/forward_assertions.go
+++ b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
@@ -13,4 +13,4 @@ func New(t TestingT) *Assertions {
}
}
-//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs
+//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/awserr.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/awserr.go
index 8c2be2c7502..8a1397406f7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/awserr.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/awserr.go
@@ -40,8 +40,7 @@ func retryOnAwsCode(code string, f func() (interface{}, error)) (interface{}, er
var err error
resp, err = f()
if err != nil {
- awsErr, ok := err.(awserr.Error)
- if ok && awsErr.Code() == code {
+ if isAWSErr(err, code, "") {
return resource.RetryableError(err)
}
return resource.NonRetryableError(err)
@@ -50,26 +49,3 @@ func retryOnAwsCode(code string, f func() (interface{}, error)) (interface{}, er
})
return resp, err
}
-
-// RetryOnAwsCodes retries AWS error codes for one minute
-// Note: This function will be moved out of the aws package in the future.
-func RetryOnAwsCodes(codes []string, f func() (interface{}, error)) (interface{}, error) {
- var resp interface{}
- err := resource.Retry(1*time.Minute, func() *resource.RetryError {
- var err error
- resp, err = f()
- if err != nil {
- awsErr, ok := err.(awserr.Error)
- if ok {
- for _, code := range codes {
- if awsErr.Code() == code {
- return resource.RetryableError(err)
- }
- }
- }
- return resource.NonRetryableError(err)
- }
- return nil
- })
- return resp, err
-}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/config.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/config.go
index 1e448089c00..fda4fafb566 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/config.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/config.go
@@ -117,6 +117,7 @@ import (
"github.com/aws/aws-sdk-go/service/redshift"
"github.com/aws/aws-sdk-go/service/resourcegroups"
"github.com/aws/aws-sdk-go/service/route53"
+ "github.com/aws/aws-sdk-go/service/route53domains"
"github.com/aws/aws-sdk-go/service/route53resolver"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3control"
@@ -167,10 +168,9 @@ type Config struct {
AllowedAccountIds []string
ForbiddenAccountIds []string
- Endpoints map[string]string
- IgnoreTagPrefixes []string
- IgnoreTags []string
- Insecure bool
+ Endpoints map[string]string
+ IgnoreTagsConfig *keyvaluetags.IgnoreConfig
+ Insecure bool
SkipCredsValidation bool
SkipGetEC2Platforms bool
@@ -254,8 +254,7 @@ type AWSClient struct {
guarddutyconn *guardduty.GuardDuty
greengrassconn *greengrass.Greengrass
iamconn *iam.IAM
- ignoreTagPrefixes keyvaluetags.KeyValueTags
- ignoreTags keyvaluetags.KeyValueTags
+ IgnoreTagsConfig *keyvaluetags.IgnoreConfig
imagebuilderconn *imagebuilder.Imagebuilder
inspectorconn *inspector.Inspector
iotconn *iot.IoT
@@ -298,6 +297,7 @@ type AWSClient struct {
redshiftconn *redshift.Redshift
region string
resourcegroupsconn *resourcegroups.ResourceGroups
+ route53domainsconn *route53domains.Route53Domains
route53resolverconn *route53resolver.Route53Resolver
s3conn *s3.S3
s3connUriCleaningDisabled *s3.S3
@@ -472,8 +472,7 @@ func (c *Config) Client() (interface{}, error) {
guarddutyconn: guardduty.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["guardduty"])})),
greengrassconn: greengrass.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["greengrass"])})),
iamconn: iam.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["iam"])})),
- ignoreTagPrefixes: keyvaluetags.New(c.IgnoreTagPrefixes),
- ignoreTags: keyvaluetags.New(c.IgnoreTags),
+ IgnoreTagsConfig: c.IgnoreTagsConfig,
imagebuilderconn: imagebuilder.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["imagebuilder"])})),
inspectorconn: inspector.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["inspector"])})),
iotconn: iot.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["iot"])})),
@@ -514,6 +513,7 @@ func (c *Config) Client() (interface{}, error) {
redshiftconn: redshift.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["redshift"])})),
region: c.Region,
resourcegroupsconn: resourcegroups.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["resourcegroups"])})),
+ route53domainsconn: route53domains.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["route53domains"])})),
route53resolverconn: route53resolver.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["route53resolver"])})),
s3controlconn: s3control.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["s3control"])})),
sagemakerconn: sagemaker.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["sagemaker"])})),
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acm_certificate.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acm_certificate.go
index a5180b77651..7c97530d794 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acm_certificate.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acm_certificate.go
@@ -9,6 +9,7 @@ import (
"github.com/aws/aws-sdk-go/service/acm"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
func dataSourceAwsAcmCertificate() *schema.Resource {
@@ -53,12 +54,14 @@ func dataSourceAwsAcmCertificate() *schema.Resource {
Optional: true,
Default: false,
},
+ "tags": tagsSchemaComputed(),
},
}
}
func dataSourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).acmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &acm.ListCertificatesInput{}
@@ -74,7 +77,7 @@ func dataSourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) e
statusStrings := statuses.([]interface{})
params.CertificateStatuses = expandStringList(statusStrings)
} else {
- params.CertificateStatuses = []*string{aws.String("ISSUED")}
+ params.CertificateStatuses = []*string{aws.String(acm.CertificateStatusIssued)}
}
var arns []*string
@@ -169,6 +172,16 @@ func dataSourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) e
d.SetId(time.Now().UTC().String())
d.Set("arn", matchedCertificate.CertificateArn)
+ tags, err := keyvaluetags.AcmListTags(conn, aws.StringValue(matchedCertificate.CertificateArn))
+
+ if err != nil {
+ return fmt.Errorf("error listing tags for ACM Certificate (%s): %s", d.Id(), err)
+ }
+
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acmpca_certificate_authority.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acmpca_certificate_authority.go
index f9cf1659f81..f8af0c9a27e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acmpca_certificate_authority.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_acmpca_certificate_authority.go
@@ -95,6 +95,7 @@ func dataSourceAwsAcmpcaCertificateAuthority() *schema.Resource {
func dataSourceAwsAcmpcaCertificateAuthorityRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).acmpcaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
certificateAuthorityArn := d.Get("arn").(string)
describeCertificateAuthorityInput := &acmpca.DescribeCertificateAuthorityInput{
@@ -169,7 +170,7 @@ func dataSourceAwsAcmpcaCertificateAuthorityRead(d *schema.ResourceData, meta in
return fmt.Errorf("error listing tags for ACMPCA Certificate Authority (%s): %s", certificateAuthorityArn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami.go
index 2f255d3bf72..0f5e9e12d92 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami.go
@@ -25,20 +25,17 @@ func dataSourceAwsAmi() *schema.Resource {
"executable_users": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"name_regex": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
ValidateFunc: validation.StringIsValidRegExp,
},
"most_recent": {
Type: schema.TypeBool,
Optional: true,
Default: false,
- ForceNew: true,
},
"owners": {
Type: schema.TypeList,
@@ -185,6 +182,7 @@ func dataSourceAwsAmi() *schema.Resource {
// dataSourceAwsAmiDescriptionRead performs the AMI lookup.
func dataSourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &ec2.DescribeImagesInput{
Owners: expandStringList(d.Get("owners").([]interface{})),
@@ -240,11 +238,11 @@ func dataSourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
})
}
- return amiDescriptionAttributes(d, filteredImages[0])
+ return amiDescriptionAttributes(d, filteredImages[0], ignoreTagsConfig)
}
// populate the numerous fields that the image description returns.
-func amiDescriptionAttributes(d *schema.ResourceData, image *ec2.Image) error {
+func amiDescriptionAttributes(d *schema.ResourceData, image *ec2.Image, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
// Simple attributes first
d.SetId(*image.ImageId)
d.Set("architecture", image.Architecture)
@@ -291,7 +289,7 @@ func amiDescriptionAttributes(d *schema.ResourceData, image *ec2.Image) error {
if err := d.Set("state_reason", amiStateReason(image.StateReason)); err != nil {
return err
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(image.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(image.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami_ids.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami_ids.go
index a872c0f2848..5002ab05f6e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami_ids.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ami_ids.go
@@ -23,13 +23,11 @@ func dataSourceAwsAmiIds() *schema.Resource {
"executable_users": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"name_regex": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
ValidateFunc: validation.StringIsValidRegExp,
},
"owners": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_api_key.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_api_key.go
index 8b9618a3fd6..5af057c4a62 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_api_key.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_api_key.go
@@ -50,6 +50,8 @@ func dataSourceAwsApiGatewayApiKey() *schema.Resource {
func dataSourceAwsApiGatewayApiKeyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
apiKey, err := conn.GetApiKey(&apigateway.GetApiKeyInput{
ApiKey: aws.String(d.Get("id").(string)),
IncludeValue: aws.Bool(true),
@@ -67,7 +69,7 @@ func dataSourceAwsApiGatewayApiKeyRead(d *schema.ResourceData, meta interface{})
d.Set("enabled", apiKey.Enabled)
d.Set("last_updated_date", aws.TimeValue(apiKey.LastUpdatedDate).Format(time.RFC3339))
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(apiKey.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(apiKey.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_rest_api.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_rest_api.go
index 84ec05a4db5..f6d74b4edb8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_rest_api.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_rest_api.go
@@ -59,7 +59,7 @@ func dataSourceAwsApiGatewayRestApi() *schema.Resource {
Elem: &schema.Schema{Type: schema.TypeString},
},
"vpc_endpoint_ids": {
- Type: schema.TypeList,
+ Type: schema.TypeSet,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
@@ -77,6 +77,8 @@ func dataSourceAwsApiGatewayRestApi() *schema.Resource {
func dataSourceAwsApiGatewayRestApiRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &apigateway.GetRestApisInput{}
target := d.Get("name")
@@ -127,7 +129,7 @@ func dataSourceAwsApiGatewayRestApiRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error setting endpoint_configuration: %s", err)
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(match.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(match.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_vpc_link.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_vpc_link.go
index 63c02fe78fb..4d1edd470ab 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_vpc_link.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_api_gateway_vpc_link.go
@@ -48,6 +48,8 @@ func dataSourceAwsApiGatewayVpcLink() *schema.Resource {
func dataSourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &apigateway.GetVpcLinksInput{}
target := d.Get("name")
@@ -81,7 +83,7 @@ func dataSourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{}
d.Set("description", match.Description)
d.Set("target_arns", flattenStringList(match.TargetArns))
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(match.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(match.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_autoscaling_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_autoscaling_group.go
index 917e9c82559..9e908eb4103 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_autoscaling_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_autoscaling_group.go
@@ -18,7 +18,6 @@ func dataSourceAwsAutoscalingGroup() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zone.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zone.go
index 3878aa75d34..15db6af609c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zone.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zone.go
@@ -14,28 +14,41 @@ func dataSourceAwsAvailabilityZone() *schema.Resource {
Read: dataSourceAwsAvailabilityZoneRead,
Schema: map[string]*schema.Schema{
+ "all_availability_zones": {
+ Type: schema.TypeBool,
+ Optional: true,
+ },
+ "filter": ec2CustomFiltersSchema(),
+ "group_name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
-
- "region": {
+ "name_suffix": {
Type: schema.TypeString,
Computed: true,
},
-
- "name_suffix": {
+ "network_border_group": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "opt_in_status": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "region": {
Type: schema.TypeString,
Computed: true,
},
-
"state": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
-
"zone_id": {
Type: schema.TypeString,
Optional: true,
@@ -50,6 +63,10 @@ func dataSourceAwsAvailabilityZoneRead(d *schema.ResourceData, meta interface{})
req := &ec2.DescribeAvailabilityZonesInput{}
+ if v, ok := d.GetOk("all_availability_zones"); ok {
+ req.AllAvailabilityZones = aws.Bool(v.(bool))
+ }
+
if v := d.Get("name").(string); v != "" {
req.ZoneNames = []*string{aws.String(v)}
}
@@ -61,6 +78,13 @@ func dataSourceAwsAvailabilityZoneRead(d *schema.ResourceData, meta interface{})
"state": d.Get("state").(string),
},
)
+
+ if filters, filtersOk := d.GetOk("filter"); filtersOk {
+ req.Filters = append(req.Filters, buildEC2CustomFilterList(
+ filters.(*schema.Set),
+ )...)
+ }
+
if len(req.Filters) == 0 {
// Don't send an empty filters list; the EC2 API won't accept it.
req.Filters = nil
@@ -87,8 +111,11 @@ func dataSourceAwsAvailabilityZoneRead(d *schema.ResourceData, meta interface{})
nameSuffix := (*az.ZoneName)[len(*az.RegionName):]
d.SetId(aws.StringValue(az.ZoneName))
+ d.Set("group_name", az.GroupName)
d.Set("name", az.ZoneName)
d.Set("name_suffix", nameSuffix)
+ d.Set("network_border_group", az.NetworkBorderGroup)
+ d.Set("opt_in_status", az.OptInStatus)
d.Set("region", az.RegionName)
d.Set("state", az.State)
d.Set("zone_id", az.ZoneId)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zones.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zones.go
index b9e9526afea..bee053e1d9a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zones.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_availability_zones.go
@@ -17,6 +17,10 @@ func dataSourceAwsAvailabilityZones() *schema.Resource {
Read: dataSourceAwsAvailabilityZonesRead,
Schema: map[string]*schema.Schema{
+ "all_availability_zones": {
+ Type: schema.TypeBool,
+ Optional: true,
+ },
"blacklisted_names": {
Type: schema.TypeSet,
Optional: true,
@@ -27,6 +31,12 @@ func dataSourceAwsAvailabilityZones() *schema.Resource {
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
+ "filter": ec2CustomFiltersSchema(),
+ "group_names": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
"names": {
Type: schema.TypeList,
Computed: true,
@@ -59,6 +69,10 @@ func dataSourceAwsAvailabilityZonesRead(d *schema.ResourceData, meta interface{}
request := &ec2.DescribeAvailabilityZonesInput{}
+ if v, ok := d.GetOk("all_availability_zones"); ok {
+ request.AllAvailabilityZones = aws.Bool(v.(bool))
+ }
+
if v, ok := d.GetOk("state"); ok {
request.Filters = []*ec2.Filter{
{
@@ -68,6 +82,17 @@ func dataSourceAwsAvailabilityZonesRead(d *schema.ResourceData, meta interface{}
}
}
+ if filters, filtersOk := d.GetOk("filter"); filtersOk {
+ request.Filters = append(request.Filters, buildEC2CustomFilterList(
+ filters.(*schema.Set),
+ )...)
+ }
+
+ if len(request.Filters) == 0 {
+ // Don't send an empty filters list; the EC2 API won't accept it.
+ request.Filters = nil
+ }
+
log.Printf("[DEBUG] Reading Availability Zones: %s", request)
resp, err := conn.DescribeAvailabilityZones(request)
if err != nil {
@@ -80,9 +105,11 @@ func dataSourceAwsAvailabilityZonesRead(d *schema.ResourceData, meta interface{}
blacklistedNames := d.Get("blacklisted_names").(*schema.Set)
blacklistedZoneIDs := d.Get("blacklisted_zone_ids").(*schema.Set)
+ groupNames := schema.NewSet(schema.HashString, nil)
names := []string{}
zoneIds := []string{}
for _, v := range resp.AvailabilityZones {
+ groupName := aws.StringValue(v.GroupName)
name := aws.StringValue(v.ZoneName)
zoneID := aws.StringValue(v.ZoneId)
@@ -94,10 +121,17 @@ func dataSourceAwsAvailabilityZonesRead(d *schema.ResourceData, meta interface{}
continue
}
+ if !groupNames.Contains(groupName) {
+ groupNames.Add(groupName)
+ }
+
names = append(names, name)
zoneIds = append(zoneIds, zoneID)
}
+ if err := d.Set("group_names", groupNames); err != nil {
+ return fmt.Errorf("error setting group_names: %s", err)
+ }
if err := d.Set("names", names); err != nil {
return fmt.Errorf("Error setting Availability Zone names: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_plan.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_plan.go
new file mode 100644
index 00000000000..05e0a454019
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_plan.go
@@ -0,0 +1,64 @@
+package aws
+
+import (
+ "fmt"
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/backup"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func dataSourceAwsBackupPlan() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsBackupPlanRead,
+
+ Schema: map[string]*schema.Schema{
+ "plan_id": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "tags": tagsSchemaComputed(),
+ "version": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ },
+ }
+}
+
+func dataSourceAwsBackupPlanRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).backupconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ id := d.Get("plan_id").(string)
+
+ resp, err := conn.GetBackupPlan(&backup.GetBackupPlanInput{
+ BackupPlanId: aws.String(id),
+ })
+ if err != nil {
+ return fmt.Errorf("Error getting Backup Plan: %v", err)
+ }
+
+ d.SetId(aws.StringValue(resp.BackupPlanId))
+ d.Set("arn", resp.BackupPlanArn)
+ d.Set("name", resp.BackupPlan.BackupPlanName)
+ d.Set("version", resp.VersionId)
+
+ tags, err := keyvaluetags.BackupListTags(conn, aws.StringValue(resp.BackupPlanArn))
+ if err != nil {
+ return fmt.Errorf("error listing tags for Backup Plan (%s): %s", id, err)
+ }
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_selection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_selection.go
new file mode 100644
index 00000000000..cb26f481592
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_selection.go
@@ -0,0 +1,64 @@
+package aws
+
+import (
+ "fmt"
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/backup"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+)
+
+func dataSourceAwsBackupSelection() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsBackupSelectionRead,
+
+ Schema: map[string]*schema.Schema{
+ "plan_id": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "selection_id": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "iam_role_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "resources": {
+ Type: schema.TypeSet,
+ Computed: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ },
+ }
+}
+
+func dataSourceAwsBackupSelectionRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).backupconn
+
+ input := &backup.GetBackupSelectionInput{
+ BackupPlanId: aws.String(d.Get("plan_id").(string)),
+ SelectionId: aws.String(d.Get("selection_id").(string)),
+ }
+
+ resp, err := conn.GetBackupSelection(input)
+ if err != nil {
+ return fmt.Errorf("Error getting Backup Selection: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.SelectionId))
+ d.Set("iam_role_arn", resp.BackupSelection.IamRoleArn)
+ d.Set("name", resp.BackupSelection.SelectionName)
+
+ if resp.BackupSelection.Resources != nil {
+ if err := d.Set("resources", aws.StringValueSlice(resp.BackupSelection.Resources)); err != nil {
+ return fmt.Errorf("error setting resources: %s", err)
+ }
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_vault.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_vault.go
new file mode 100644
index 00000000000..71a911d7f97
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_backup_vault.go
@@ -0,0 +1,66 @@
+package aws
+
+import (
+ "fmt"
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/backup"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func dataSourceAwsBackupVault() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsBackupVaultRead,
+
+ Schema: map[string]*schema.Schema{
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "kms_key_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "recovery_points": {
+ Type: schema.TypeInt,
+ Computed: true,
+ },
+ "tags": tagsSchemaComputed(),
+ },
+ }
+}
+
+func dataSourceAwsBackupVaultRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).backupconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ name := d.Get("name").(string)
+ input := &backup.DescribeBackupVaultInput{
+ BackupVaultName: aws.String(name),
+ }
+
+ resp, err := conn.DescribeBackupVault(input)
+ if err != nil {
+ return fmt.Errorf("Error getting Backup Vault: %v", err)
+ }
+
+ d.SetId(aws.StringValue(resp.BackupVaultName))
+ d.Set("arn", resp.BackupVaultArn)
+ d.Set("kms_key_arn", resp.EncryptionKeyArn)
+ d.Set("name", resp.BackupVaultName)
+ d.Set("recovery_points", resp.NumberOfRecoveryPoints)
+
+ tags, err := keyvaluetags.BackupListTags(conn, aws.StringValue(resp.BackupVaultArn))
+ if err != nil {
+ return fmt.Errorf("error listing tags for Backup Vault (%s): %s", name, err)
+ }
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_compute_environment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_compute_environment.go
index f4dfc00b97a..96c5e8564c6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_compute_environment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_compute_environment.go
@@ -17,7 +17,6 @@ func dataSourceAwsBatchComputeEnvironment() *schema.Resource {
"compute_environment_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_job_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_job_queue.go
index 2770d692d9e..5daa62fb8a3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_job_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_batch_job_queue.go
@@ -17,7 +17,6 @@ func dataSourceAwsBatchJobQueue() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudformation_stack.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudformation_stack.go
index d1182ef49e9..93a5a36bba5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudformation_stack.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudformation_stack.go
@@ -66,6 +66,8 @@ func dataSourceAwsCloudFormationStack() *schema.Resource {
func dataSourceAwsCloudFormationStackRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cfconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name := d.Get("name").(string)
input := &cloudformation.DescribeStacksInput{
StackName: aws.String(name),
@@ -92,7 +94,7 @@ func dataSourceAwsCloudFormationStackRead(d *schema.ResourceData, meta interface
}
d.Set("parameters", flattenAllCloudFormationParameters(stack.Parameters))
- if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stack.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stack.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
d.Set("outputs", flattenCloudFormationOutputs(stack.Outputs))
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudfront_distribution.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudfront_distribution.go
new file mode 100644
index 00000000000..8cb071203cd
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudfront_distribution.go
@@ -0,0 +1,96 @@
+package aws
+
+import (
+ "fmt"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/cloudfront"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func dataSourceAwsCloudFrontDistribution() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsCloudFrontDistributionRead,
+
+ Schema: map[string]*schema.Schema{
+ "id": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "enabled": {
+ Type: schema.TypeBool,
+ Computed: true,
+ },
+ "etag": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "domain_name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "last_modified_time": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "in_progress_validation_batches": {
+ Type: schema.TypeInt,
+ Computed: true,
+ },
+ "hosted_zone_id": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "status": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+
+ "tags": tagsSchema(),
+ },
+ }
+}
+
+func dataSourceAwsCloudFrontDistributionRead(d *schema.ResourceData, meta interface{}) error {
+ d.SetId(d.Get("id").(string))
+ conn := meta.(*AWSClient).cloudfrontconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ input := &cloudfront.GetDistributionInput{
+ Id: aws.String(d.Id()),
+ }
+
+ output, err := conn.GetDistribution(input)
+ if err != nil {
+ return fmt.Errorf("error getting CloudFront Distribution (%s): %w", d.Id(), err)
+ }
+ if output == nil {
+ return fmt.Errorf("error getting CloudFront Distribution (%s): empty response", d.Id())
+ }
+ d.Set("etag", output.ETag)
+ if distribution := output.Distribution; distribution != nil {
+ d.Set("arn", distribution.ARN)
+ d.Set("domain_name", distribution.DomainName)
+ d.Set("in_progress_validation_batches", distribution.InProgressInvalidationBatches)
+ d.Set("last_modified_time", aws.String(distribution.LastModifiedTime.String()))
+ d.Set("status", distribution.Status)
+ if distributionConfig := distribution.DistributionConfig; distributionConfig != nil {
+ d.Set("enabled", distributionConfig.Enabled)
+ }
+ }
+ tags, err := keyvaluetags.CloudfrontListTags(conn, d.Get("arn").(string))
+ if err != nil {
+ return fmt.Errorf("error listing tags for CloudFront Distribution (%s): %w", d.Id(), err)
+ }
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ d.Set("hosted_zone_id", cloudFrontRoute53ZoneID)
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudtrail_service_account.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudtrail_service_account.go
index 6358368fcd6..46904ac39f5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudtrail_service_account.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudtrail_service_account.go
@@ -11,6 +11,7 @@ import (
// See https://docs.aws.amazon.com/govcloud-us/latest/ug-east/verifying-cloudtrail.html
// See https://docs.aws.amazon.com/govcloud-us/latest/ug-west/verifying-cloudtrail.html
var cloudTrailServiceAccountPerRegionMap = map[string]string{
+ "af-south-1": "525921808201",
"ap-east-1": "119688915426",
"ap-northeast-1": "216624486486",
"ap-northeast-2": "492519147666",
@@ -23,6 +24,7 @@ var cloudTrailServiceAccountPerRegionMap = map[string]string{
"cn-northwest-1": "681348832753",
"eu-central-1": "035351147821",
"eu-north-1": "829690693026",
+ "eu-south-1": "669305197877",
"eu-west-1": "859597730677",
"eu-west-2": "282025262664",
"eu-west-3": "262312530599",
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudwatch_log_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudwatch_log_group.go
index 0a317ea5ef5..d729a7756b7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudwatch_log_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_cloudwatch_log_group.go
@@ -40,6 +40,7 @@ func dataSourceAwsCloudwatchLogGroup() *schema.Resource {
func dataSourceAwsCloudwatchLogGroupRead(d *schema.ResourceData, meta interface{}) error {
name := d.Get("name").(string)
conn := meta.(*AWSClient).cloudwatchlogsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
logGroup, err := lookupCloudWatchLogGroup(conn, name)
if err != nil {
@@ -61,7 +62,7 @@ func dataSourceAwsCloudwatchLogGroupRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for CloudWatch Logs Group (%s): %s", name, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_codecommit_repository.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_codecommit_repository.go
index fbc3aa5bb16..10308b1f8fc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_codecommit_repository.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_codecommit_repository.go
@@ -18,7 +18,6 @@ func dataSourceAwsCodeCommitRepository() *schema.Resource {
"repository_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
ValidateFunc: validation.StringLenBetween(0, 100),
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_common_schema.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_common_schema.go
index b0535be3ac2..3c0b9c73813 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_common_schema.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_common_schema.go
@@ -26,7 +26,6 @@ func dataSourceFiltersSchema() *schema.Schema {
return &schema.Schema{
Type: schema.TypeSet,
Optional: true,
- ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_customer_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_customer_gateway.go
index 748ec6ce0b9..27a01479cfc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_customer_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_customer_gateway.go
@@ -41,6 +41,8 @@ func dataSourceAwsCustomerGateway() *schema.Resource {
func dataSourceAwsCustomerGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
input := ec2.DescribeCustomerGatewaysInput{}
if v, ok := d.GetOk("filter"); ok {
@@ -84,7 +86,7 @@ func dataSourceAwsCustomerGatewayRead(d *schema.ResourceData, meta interface{})
d.Set("bgp_asn", int(asn))
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(cg.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(cg.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags for EC2 Customer Gateway %q: %s", aws.StringValue(cg.CustomerGatewayId), err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_cluster_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_cluster_snapshot.go
index 9b6913baa66..d05205b1db2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_cluster_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_cluster_snapshot.go
@@ -112,6 +112,7 @@ func dataSourceAwsDbClusterSnapshot() *schema.Resource {
func dataSourceAwsDbClusterSnapshotRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
clusterIdentifier, clusterIdentifierOk := d.GetOk("db_cluster_identifier")
snapshotIdentifier, snapshotIdentifierOk := d.GetOk("db_cluster_snapshot_identifier")
@@ -185,7 +186,7 @@ func dataSourceAwsDbClusterSnapshotRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for RDS DB Cluster Snapshot (%s): %s", d.Get("db_cluster_snapshot_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_instance.go
index 4251d183ae9..e8197702643 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_instance.go
@@ -18,7 +18,6 @@ func dataSourceAwsDbInstance() *schema.Resource {
"db_instance_identifier": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"tags": tagsSchemaComputed(),
@@ -218,6 +217,7 @@ func dataSourceAwsDbInstance() *schema.Resource {
func dataSourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
opts := &rds.DescribeDBInstancesInput{
DBInstanceIdentifier: aws.String(d.Get("db_instance_identifier").(string)),
@@ -323,7 +323,7 @@ func dataSourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for RDS DB Instance (%s): %s", d.Get("db_instance_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go
index 90688fbee27..5729d29941a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go
@@ -20,39 +20,33 @@ func dataSourceAwsDbSnapshot() *schema.Resource {
"db_instance_identifier": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
},
"db_snapshot_identifier": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
},
"snapshot_type": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
},
"include_shared": {
Type: schema.TypeBool,
Optional: true,
- ForceNew: true,
Default: false,
},
"include_public": {
Type: schema.TypeBool,
Optional: true,
- ForceNew: true,
Default: false,
},
"most_recent": {
Type: schema.TypeBool,
Optional: true,
Default: false,
- ForceNew: true,
},
//Computed values returned
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_directory_service_directory.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_directory_service_directory.go
index f43fe3c7b60..e2892d8785b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_directory_service_directory.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_directory_service_directory.go
@@ -2,9 +2,10 @@ package aws
import (
"fmt"
+ "log"
+
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
- "log"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/directoryservice"
@@ -118,6 +119,7 @@ func dataSourceAwsDirectoryServiceDirectory() *schema.Resource {
func dataSourceAwsDirectoryServiceDirectoryRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
directoryID := d.Get("directory_id").(string)
out, err := conn.DescribeDirectories(&directoryservice.DescribeDirectoriesInput{
@@ -167,7 +169,7 @@ func dataSourceAwsDirectoryServiceDirectoryRead(d *schema.ResourceData, meta int
return fmt.Errorf("error listing tags for Directory Service Directory (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_dynamodb_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_dynamodb_table.go
index 77594acee11..80aaead1e79 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_dynamodb_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_dynamodb_table.go
@@ -8,6 +8,7 @@ import (
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
func dataSourceAwsDynamoDbTable() *schema.Resource {
@@ -161,6 +162,18 @@ func dataSourceAwsDynamoDbTable() *schema.Resource {
Type: schema.TypeInt,
Computed: true,
},
+ "replica": {
+ Type: schema.TypeSet,
+ Computed: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "region_name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ },
+ },
+ },
"server_side_encryption": {
Type: schema.TypeList,
Optional: true,
@@ -201,6 +214,7 @@ func dataSourceAwsDynamoDbTable() *schema.Resource {
func dataSourceAwsDynamoDbTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dynamodbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
result, err := conn.DescribeTable(&dynamodb.DescribeTableInput{
TableName: aws.String(d.Get("name").(string)),
@@ -227,11 +241,15 @@ func dataSourceAwsDynamoDbTableRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error setting ttl: %s", err)
}
- tags, err := readDynamoDbTableTags(d.Get("arn").(string), conn)
- if err != nil {
- return err
+ tags, err := keyvaluetags.DynamodbListTags(conn, d.Get("arn").(string))
+
+ if err != nil && !isAWSErr(err, "UnknownOperationException", "Tagging is not currently supported in DynamoDB Local.") {
+ return fmt.Errorf("error listing tags for DynamoDB Table (%s): %s", d.Get("arn").(string), err)
+ }
+
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
}
- d.Set("tags", tags)
pitrOut, err := conn.DescribeContinuousBackups(&dynamodb.DescribeContinuousBackupsInput{
TableName: aws.String(d.Id()),
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot.go
index 2d7fc22f952..5bd91216a67 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot.go
@@ -22,24 +22,20 @@ func dataSourceAwsEbsSnapshot() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: false,
- ForceNew: true,
},
"owners": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"snapshot_ids": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"restorable_by_user_ids": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
//Computed values returned
@@ -90,6 +86,7 @@ func dataSourceAwsEbsSnapshot() *schema.Resource {
func dataSourceAwsEbsSnapshotRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
restorableUsers, restorableUsersOk := d.GetOk("restorable_by_user_ids")
filters, filtersOk := d.GetOk("filter")
@@ -135,10 +132,10 @@ func dataSourceAwsEbsSnapshotRead(d *schema.ResourceData, meta interface{}) erro
}
//Single Snapshot found so set to state
- return snapshotDescriptionAttributes(d, resp.Snapshots[0])
+ return snapshotDescriptionAttributes(d, resp.Snapshots[0], ignoreTagsConfig)
}
-func snapshotDescriptionAttributes(d *schema.ResourceData, snapshot *ec2.Snapshot) error {
+func snapshotDescriptionAttributes(d *schema.ResourceData, snapshot *ec2.Snapshot, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
d.SetId(*snapshot.SnapshotId)
d.Set("snapshot_id", snapshot.SnapshotId)
d.Set("volume_id", snapshot.VolumeId)
@@ -151,7 +148,7 @@ func snapshotDescriptionAttributes(d *schema.ResourceData, snapshot *ec2.Snapsho
d.Set("owner_id", snapshot.OwnerId)
d.Set("owner_alias", snapshot.OwnerAlias)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot_ids.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot_ids.go
index 03b014ca73a..7f23ed3816a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot_ids.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_snapshot_ids.go
@@ -20,13 +20,11 @@ func dataSourceAwsEbsSnapshotIds() *schema.Resource {
"owners": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"restorable_by_user_ids": {
Type: schema.TypeList,
Optional: true,
- ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"ids": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_volume.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_volume.go
index df47570a16a..06ebe17aec1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_volume.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ebs_volume.go
@@ -21,7 +21,6 @@ func dataSourceAwsEbsVolume() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: false,
- ForceNew: true,
},
"arn": {
Type: schema.TypeString,
@@ -55,6 +54,10 @@ func dataSourceAwsEbsVolume() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"volume_id": {
Type: schema.TypeString,
Computed: true,
@@ -141,8 +144,9 @@ func volumeDescriptionAttributes(d *schema.ResourceData, client *AWSClient, volu
d.Set("size", volume.Size)
d.Set("snapshot_id", volume.SnapshotId)
d.Set("volume_type", volume.VolumeType)
+ d.Set("outpost_arn", volume.OutpostArn)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(volume.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(volume.Tags).IgnoreAws().IgnoreConfig(client.IgnoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway.go
index a11a6f44b20..4c092513bad 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway.go
@@ -72,6 +72,7 @@ func dataSourceAwsEc2TransitGateway() *schema.Resource {
func dataSourceAwsEc2TransitGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeTransitGatewaysInput{}
@@ -119,7 +120,7 @@ func dataSourceAwsEc2TransitGatewayRead(d *schema.ResourceData, meta interface{}
d.Set("owner_id", transitGateway.OwnerId)
d.Set("propagation_default_route_table_id", transitGateway.Options.PropagationDefaultRouteTableId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGateway.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGateway.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_dx_gateway_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_dx_gateway_attachment.go
index 37f83b28a9a..0c6dac6f884 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_dx_gateway_attachment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_dx_gateway_attachment.go
@@ -18,36 +18,55 @@ func dataSourceAwsEc2TransitGatewayDxGatewayAttachment() *schema.Resource {
Schema: map[string]*schema.Schema{
"dx_gateway_id": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
},
"tags": tagsSchemaComputed(),
"transit_gateway_id": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
},
+ "filter": dataSourceFiltersSchema(),
},
}
}
func dataSourceAwsEc2TransitGatewayDxGatewayAttachmentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ filters, filtersOk := d.GetOk("filter")
+ tags, tagsOk := d.GetOk("tags")
+ dxGatewayId, dxGatewayIdOk := d.GetOk("dx_gateway_id")
+ transitGatewayId, transitGatewayIdOk := d.GetOk("transit_gateway_id")
input := &ec2.DescribeTransitGatewayAttachmentsInput{
Filters: []*ec2.Filter{
- {
- Name: aws.String("resource-id"),
- Values: []*string{aws.String(d.Get("dx_gateway_id").(string))},
- },
{
Name: aws.String("resource-type"),
- Values: []*string{aws.String("direct-connect-gateway")}, // Not yet defined in ec2/api.go.
- },
- {
- Name: aws.String("transit-gateway-id"),
- Values: []*string{aws.String(d.Get("transit_gateway_id").(string))},
+ Values: []*string{aws.String(ec2.TransitGatewayAttachmentResourceTypeDirectConnectGateway)},
},
},
}
+ if filtersOk {
+ input.Filters = append(input.Filters, buildAwsDataSourceFilters(filters.(*schema.Set))...)
+ }
+ if tagsOk {
+ input.Filters = append(input.Filters, ec2TagFiltersFromMap(tags.(map[string]interface{}))...)
+ }
+ // to preserve original functionality
+ if dxGatewayIdOk {
+ input.Filters = append(input.Filters, &ec2.Filter{
+ Name: aws.String("resource-id"),
+ Values: []*string{aws.String(dxGatewayId.(string))},
+ })
+ }
+
+ if transitGatewayIdOk {
+ input.Filters = append(input.Filters, &ec2.Filter{
+ Name: aws.String("transit-gateway-id"),
+ Values: []*string{aws.String(transitGatewayId.(string))},
+ })
+ }
log.Printf("[DEBUG] Reading EC2 Transit Gateway Direct Connect Gateway Attachments: %s", input)
output, err := conn.DescribeTransitGatewayAttachments(input)
@@ -66,7 +85,7 @@ func dataSourceAwsEc2TransitGatewayDxGatewayAttachmentRead(d *schema.ResourceDat
transitGatewayAttachment := output.TransitGatewayAttachments[0]
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayAttachment.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_peering_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_peering_attachment.go
new file mode 100644
index 00000000000..2b00ec2b48b
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_peering_attachment.go
@@ -0,0 +1,105 @@
+package aws
+
+import (
+ "errors"
+ "fmt"
+ "log"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/ec2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func dataSourceAwsEc2TransitGatewayPeeringAttachment() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsEc2TransitGatewayPeeringAttachmentRead,
+
+ Schema: map[string]*schema.Schema{
+ "filter": ec2CustomFiltersSchema(),
+ "id": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "peer_account_id": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "peer_region": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "peer_transit_gateway_id": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "tags": tagsSchemaComputed(),
+ "transit_gateway_id": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ },
+ }
+}
+
+func dataSourceAwsEc2TransitGatewayPeeringAttachmentRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ input := &ec2.DescribeTransitGatewayPeeringAttachmentsInput{}
+
+ if v, ok := d.GetOk("id"); ok {
+ input.TransitGatewayAttachmentIds = aws.StringSlice([]string{v.(string)})
+ }
+
+ input.Filters = buildEC2CustomFilterList(d.Get("filter").(*schema.Set))
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ input.Filters = append(input.Filters, ec2TagFiltersFromMap(v)...)
+ }
+ if len(input.Filters) == 0 {
+ // Don't send an empty filters list; the EC2 API won't accept it.
+ input.Filters = nil
+ }
+
+ log.Printf("[DEBUG] Reading EC2 Transit Gateway Peering Attachments: %s", input)
+ output, err := conn.DescribeTransitGatewayPeeringAttachments(input)
+
+ if err != nil {
+ return fmt.Errorf("error reading EC2 Transit Gateway Peering Attachments: %s", err)
+ }
+
+ if output == nil || len(output.TransitGatewayPeeringAttachments) == 0 {
+ return errors.New("error reading EC2 Transit Gateway Peering Attachment: no results found")
+ }
+
+ if len(output.TransitGatewayPeeringAttachments) > 1 {
+ return errors.New("error reading EC2 Transit Gateway Peering Attachment: multiple results found, try adjusting search criteria")
+ }
+
+ transitGatewayPeeringAttachment := output.TransitGatewayPeeringAttachments[0]
+
+ if transitGatewayPeeringAttachment == nil {
+ return errors.New("error reading EC2 Transit Gateway Peering Attachment: empty result")
+ }
+
+ local := transitGatewayPeeringAttachment.RequesterTgwInfo
+ peer := transitGatewayPeeringAttachment.AccepterTgwInfo
+
+ if aws.StringValue(transitGatewayPeeringAttachment.AccepterTgwInfo.OwnerId) == meta.(*AWSClient).accountid && aws.StringValue(transitGatewayPeeringAttachment.AccepterTgwInfo.Region) == meta.(*AWSClient).region {
+ local = transitGatewayPeeringAttachment.AccepterTgwInfo
+ peer = transitGatewayPeeringAttachment.RequesterTgwInfo
+ }
+
+ d.Set("peer_account_id", peer.OwnerId)
+ d.Set("peer_region", peer.Region)
+ d.Set("peer_transit_gateway_id", peer.TransitGatewayId)
+ d.Set("transit_gateway_id", local.TransitGatewayId)
+
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayPeeringAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ d.SetId(aws.StringValue(transitGatewayPeeringAttachment.TransitGatewayAttachmentId))
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_route_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_route_table.go
index 4d9f7c5657d..98082192fa2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_route_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_route_table.go
@@ -40,6 +40,7 @@ func dataSourceAwsEc2TransitGatewayRouteTable() *schema.Resource {
func dataSourceAwsEc2TransitGatewayRouteTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeTransitGatewayRouteTablesInput{}
@@ -75,7 +76,7 @@ func dataSourceAwsEc2TransitGatewayRouteTableRead(d *schema.ResourceData, meta i
d.Set("default_association_route_table", aws.BoolValue(transitGatewayRouteTable.DefaultAssociationRouteTable))
d.Set("default_propagation_route_table", aws.BoolValue(transitGatewayRouteTable.DefaultPropagationRouteTable))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayRouteTable.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayRouteTable.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpc_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpc_attachment.go
index 0c720a8eb31..155c188deef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpc_attachment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpc_attachment.go
@@ -53,6 +53,7 @@ func dataSourceAwsEc2TransitGatewayVpcAttachment() *schema.Resource {
func dataSourceAwsEc2TransitGatewayVpcAttachmentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeTransitGatewayVpcAttachmentsInput{}
@@ -96,7 +97,7 @@ func dataSourceAwsEc2TransitGatewayVpcAttachmentRead(d *schema.ResourceData, met
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpn_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpn_attachment.go
index 02bc3da6459..4a3ed475452 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpn_attachment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ec2_transit_gateway_vpn_attachment.go
@@ -19,36 +19,55 @@ func dataSourceAwsEc2TransitGatewayVpnAttachment() *schema.Resource {
"tags": tagsSchemaComputed(),
"transit_gateway_id": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
},
"vpn_connection_id": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
},
+ "filter": dataSourceFiltersSchema(),
},
}
}
func dataSourceAwsEc2TransitGatewayVpnAttachmentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ filters, filtersOk := d.GetOk("filter")
+ tags, tagsOk := d.GetOk("tags")
+ connectionId, connectionIdOk := d.GetOk("vpn_connection_id")
+ transitGatewayId, transitGatewayIdOk := d.GetOk("transit_gateway_id")
input := &ec2.DescribeTransitGatewayAttachmentsInput{
Filters: []*ec2.Filter{
- {
- Name: aws.String("resource-id"),
- Values: []*string{aws.String(d.Get("vpn_connection_id").(string))},
- },
{
Name: aws.String("resource-type"),
Values: []*string{aws.String(ec2.TransitGatewayAttachmentResourceTypeVpn)},
},
- {
- Name: aws.String("transit-gateway-id"),
- Values: []*string{aws.String(d.Get("transit_gateway_id").(string))},
- },
},
}
+ if filtersOk {
+ input.Filters = append(input.Filters, buildAwsDataSourceFilters(filters.(*schema.Set))...)
+ }
+ if tagsOk {
+ input.Filters = append(input.Filters, ec2TagFiltersFromMap(tags.(map[string]interface{}))...)
+ }
+ if connectionIdOk {
+ input.Filters = append(input.Filters, &ec2.Filter{
+ Name: aws.String("resource-id"),
+ Values: []*string{aws.String(connectionId.(string))},
+ })
+ }
+
+ if transitGatewayIdOk {
+ input.Filters = append(input.Filters, &ec2.Filter{
+ Name: aws.String("transit-gateway-id"),
+ Values: []*string{aws.String(transitGatewayId.(string))},
+ })
+ }
+
log.Printf("[DEBUG] Reading EC2 Transit Gateway VPN Attachments: %s", input)
output, err := conn.DescribeTransitGatewayAttachments(input)
@@ -66,7 +85,7 @@ func dataSourceAwsEc2TransitGatewayVpnAttachmentRead(d *schema.ResourceData, met
transitGatewayAttachment := output.TransitGatewayAttachments[0]
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayAttachment.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecr_repository.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecr_repository.go
index 9bc8e4df698..6f3b8a95d43 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecr_repository.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecr_repository.go
@@ -18,7 +18,6 @@ func dataSourceAwsEcrRepository() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
Type: schema.TypeString,
@@ -39,6 +38,7 @@ func dataSourceAwsEcrRepository() *schema.Resource {
func dataSourceAwsEcrRepositoryRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecrconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &ecr.DescribeRepositoriesInput{
RepositoryNames: aws.StringSlice([]string{d.Get("name").(string)}),
@@ -69,7 +69,7 @@ func dataSourceAwsEcrRepositoryRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error listing tags for ECR Repository (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_cluster.go
index 8ca184f05f9..bbeab1dff1c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_cluster.go
@@ -17,7 +17,6 @@ func dataSourceAwsEcsCluster() *schema.Resource {
"cluster_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_container_definition.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_container_definition.go
index e275fffd438..eb769f395ef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_container_definition.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_container_definition.go
@@ -18,12 +18,10 @@ func dataSourceAwsEcsContainerDefinition() *schema.Resource {
"task_definition": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"container_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
// Computed values.
"image": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_service.go
index 2a87cd1f77a..422018e2ec6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_service.go
@@ -17,7 +17,6 @@ func dataSourceAwsEcsService() *schema.Resource {
"service_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"arn": {
Type: schema.TypeString,
@@ -26,7 +25,6 @@ func dataSourceAwsEcsService() *schema.Resource {
"cluster_arn": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"desired_count": {
Type: schema.TypeInt,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_task_definition.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_task_definition.go
index 8123a8b512f..3d3d8859dc0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_task_definition.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ecs_task_definition.go
@@ -17,7 +17,6 @@ func dataSourceAwsEcsTaskDefinition() *schema.Resource {
"task_definition": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
// Computed values.
"family": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_file_system.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_file_system.go
index cbbaed6ddbb..778bec8fa1a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_file_system.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_file_system.go
@@ -25,7 +25,6 @@ func dataSourceAwsEfsFileSystem() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ForceNew: true,
ValidateFunc: validation.StringLenBetween(0, 64),
},
"encrypted": {
@@ -36,7 +35,6 @@ func dataSourceAwsEfsFileSystem() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ForceNew: true,
},
"kms_key_id": {
Type: schema.TypeString,
@@ -77,6 +75,7 @@ func dataSourceAwsEfsFileSystem() *schema.Resource {
func dataSourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) error {
efsconn := meta.(*AWSClient).efsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeEfsOpts := &efs.DescribeFileSystemsInput{}
@@ -130,7 +129,7 @@ func dataSourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) er
d.Set("provisioned_throughput_in_mibps", fs.ProvisionedThroughputInMibps)
d.Set("throughput_mode", fs.ThroughputMode)
- if err := d.Set("tags", keyvaluetags.EfsKeyValueTags(fs.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EfsKeyValueTags(fs.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -141,8 +140,9 @@ func dataSourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("Error describing lifecycle configuration for EFS file system (%s): %s",
aws.StringValue(fs.FileSystemId), err)
}
- if err := resourceAwsEfsFileSystemSetLifecyclePolicy(d, res.LifecyclePolicies); err != nil {
- return err
+
+ if err := d.Set("lifecycle_policy", flattenEfsFileSystemLifecyclePolicies(res.LifecyclePolicies)); err != nil {
+ return fmt.Errorf("error setting lifecycle_policy: %s", err)
}
d.Set("dns_name", meta.(*AWSClient).RegionalHostname(fmt.Sprintf("%s.efs", aws.StringValue(fs.FileSystemId))))
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_mount_target.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_mount_target.go
index 601dca8112a..5d95cdc9216 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_mount_target.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_efs_mount_target.go
@@ -18,7 +18,6 @@ func dataSourceAwsEfsMountTarget() *schema.Resource {
"mount_target_id": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"file_system_arn": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eip.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eip.go
index f77666b9225..a717ddb9412 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eip.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eip.go
@@ -70,6 +70,7 @@ func dataSourceAwsEip() *schema.Resource {
func dataSourceAwsEipRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeAddressesInput{}
@@ -149,7 +150,7 @@ func dataSourceAwsEipRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("public_ipv4_pool", eip.PublicIpv4Pool)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eip.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eip.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eks_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eks_cluster.go
index f6decfa3c5d..9b45c094f24 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eks_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_eks_cluster.go
@@ -69,7 +69,6 @@ func dataSourceAwsEksCluster() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
ValidateFunc: validation.NoZeroValues,
},
"platform_version": {
@@ -134,6 +133,8 @@ func dataSourceAwsEksCluster() *schema.Resource {
func dataSourceAwsEksClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).eksconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name := d.Get("name").(string)
input := &eks.DescribeClusterInput{
@@ -173,7 +174,7 @@ func dataSourceAwsEksClusterRead(d *schema.ResourceData, meta interface{}) error
d.Set("role_arn", cluster.RoleArn)
d.Set("status", cluster.Status)
- if err := d.Set("tags", keyvaluetags.EksKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EksKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_application.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_application.go
index c1d0a7d3ed8..01d55d1ffd8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_application.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_application.go
@@ -20,7 +20,6 @@ func dataSourceAwsElasticBeanstalkApplication() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"description": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_hosted_zone.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_hosted_zone.go
index 9532043f18e..286653ab29b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_hosted_zone.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_hosted_zone.go
@@ -8,6 +8,7 @@ import (
// See http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region
var elasticBeanstalkHostedZoneIds = map[string]string{
+ "af-south-1": "Z1EI3BVKMKK4AM",
"ap-southeast-1": "Z16FZ9L249IFLT",
"ap-southeast-2": "Z2PCDNR3VC2G1N",
"ap-east-1": "ZPWYUBWRU171A",
@@ -18,6 +19,7 @@ var elasticBeanstalkHostedZoneIds = map[string]string{
"ca-central-1": "ZJFCZL7SSZB5I",
"eu-central-1": "Z1FRNW7UH4DEZJ",
"eu-north-1": "Z23GO28BZ5AETM",
+ "eu-south-1": "Z10VDYYOA2JFKM",
"eu-west-1": "Z2NYPWQ7DFZAZH",
"eu-west-2": "Z1GKAAAUGATPF1",
"eu-west-3": "Z5WN6GAYWG5OB",
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_solution_stack.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_solution_stack.go
index 89c30a41c96..25c0ba94999 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_solution_stack.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elastic_beanstalk_solution_stack.go
@@ -18,14 +18,12 @@ func dataSourceAwsElasticBeanstalkSolutionStack() *schema.Resource {
"name_regex": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
ValidateFunc: validation.StringIsValidRegExp,
},
"most_recent": {
Type: schema.TypeBool,
Optional: true,
Default: false,
- ForceNew: true,
},
// Computed values.
"name": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticache_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticache_cluster.go
index 9b07c8b83c2..557f1c2b776 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticache_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticache_cluster.go
@@ -20,7 +20,6 @@ func dataSourceAwsElastiCacheCluster() *schema.Resource {
"cluster_id": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
StateFunc: func(v interface{}) string {
value := v.(string)
return strings.ToLower(value)
@@ -153,6 +152,7 @@ func dataSourceAwsElastiCacheCluster() *schema.Resource {
func dataSourceAwsElastiCacheClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticacheconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &elasticache.DescribeCacheClustersInput{
CacheClusterId: aws.String(d.Get("cluster_id").(string)),
@@ -229,7 +229,7 @@ func dataSourceAwsElastiCacheClusterRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for Elasticache Cluster (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticsearch_domain.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticsearch_domain.go
index c8fee7689f5..aab4877483c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticsearch_domain.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elasticsearch_domain.go
@@ -248,6 +248,7 @@ func dataSourceAwsElasticSearchDomain() *schema.Resource {
func dataSourceAwsElasticSearchDomainRead(d *schema.ResourceData, meta interface{}) error {
esconn := meta.(*AWSClient).esconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &elasticsearchservice.DescribeElasticsearchDomainInput{
DomainName: aws.String(d.Get("domain_name").(string)),
@@ -357,7 +358,7 @@ func dataSourceAwsElasticSearchDomainRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error listing tags for Elasticsearch Cluster (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb.go
index b4d40db9728..a0e0e53959b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb.go
@@ -196,6 +196,8 @@ func dataSourceAwsElb() *schema.Resource {
func dataSourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
elbconn := meta.(*AWSClient).elbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
lbName := d.Get("name").(string)
input := &elb.DescribeLoadBalancersInput{
@@ -221,5 +223,5 @@ func dataSourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("arn", arn.String())
- return flattenAwsELbResource(d, meta.(*AWSClient).ec2conn, elbconn, resp.LoadBalancerDescriptions[0])
+ return flattenAwsELbResource(d, meta.(*AWSClient).ec2conn, elbconn, resp.LoadBalancerDescriptions[0], ignoreTagsConfig)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_hosted_zone_id.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_hosted_zone_id.go
index 9c88dae928b..e16d546f29f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_hosted_zone_id.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_hosted_zone_id.go
@@ -9,6 +9,7 @@ import (
// See http://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region
// See https://docs.amazonaws.cn/en_us/general/latest/gr/rande.html#elb_region
var elbHostedZoneIdPerRegionMap = map[string]string{
+ "af-south-1": "Z268VQBMOI5EKX",
"ap-east-1": "Z3DQVH9N71FHZ0",
"ap-northeast-1": "Z14GRHDCWA56QT",
"ap-northeast-2": "ZWKZPGTI48KDX",
@@ -21,6 +22,7 @@ var elbHostedZoneIdPerRegionMap = map[string]string{
"cn-northwest-1": "Z3BX2TMKNYI13Y",
"eu-central-1": "Z215JYRZR1TBD5",
"eu-north-1": "Z23TAZ6LKFMNIO",
+ "eu-south-1": "Z3ULH7SSC9OV64",
"eu-west-1": "Z32O12XQLNTSW2",
"eu-west-2": "ZHURV8PSTC4K8",
"eu-west-3": "Z3Q77PNBQS71R4",
@@ -28,6 +30,8 @@ var elbHostedZoneIdPerRegionMap = map[string]string{
"sa-east-1": "Z2P70J7HTTTPLU",
"us-east-1": "Z35SXDOTRQ7X7K",
"us-east-2": "Z3AADJGX6KTTL2",
+ "us-gov-east-1": "Z166TLBEWOO7G0",
+ "us-gov-west-1": "Z33AYJ8TM3BH4J",
"us-west-1": "Z368ELLRRE2KJ0",
"us-west-2": "Z1H1FL5HABSF5",
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_service_account.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_service_account.go
index e17424cda6b..4e6cb236e6c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_service_account.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_elb_service_account.go
@@ -9,6 +9,7 @@ import (
// See http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy
var elbAccountIdPerRegionMap = map[string]string{
+ "af-south-1": "098369216593",
"ap-east-1": "754344448648",
"ap-northeast-1": "582318560864",
"ap-northeast-2": "600734575887",
@@ -21,6 +22,7 @@ var elbAccountIdPerRegionMap = map[string]string{
"cn-northwest-1": "037604701340",
"eu-central-1": "054676820928",
"eu-north-1": "897822967062",
+ "eu-south-1": "635631232127",
"eu-west-1": "156460612806",
"eu-west-2": "652711504416",
"eu-west-3": "009996457667",
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_role.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_role.go
index 8072120d309..9f3a41476d3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_role.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_role.go
@@ -2,10 +2,11 @@ package aws
import (
"fmt"
- "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
"net/url"
"time"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -74,6 +75,8 @@ func dataSourceAwsIAMRole() *schema.Resource {
func dataSourceAwsIAMRoleRead(d *schema.ResourceData, meta interface{}) error {
iamconn := meta.(*AWSClient).iamconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name := d.Get("name").(string)
input := &iam.GetRoleInput{
@@ -98,7 +101,7 @@ func dataSourceAwsIAMRoleRead(d *schema.ResourceData, meta interface{}) error {
d.Set("permissions_boundary", output.Role.PermissionsBoundary.PermissionsBoundaryArn)
}
d.Set("unique_id", output.Role.RoleId)
- d.Set("tags", keyvaluetags.IamKeyValueTags(output.Role.Tags).IgnoreAws().Map())
+ d.Set("tags", keyvaluetags.IamKeyValueTags(output.Role.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
assumRolePolicy, err := url.QueryUnescape(aws.StringValue(output.Role.AssumeRolePolicyDocument))
if err != nil {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_server_certificate.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_server_certificate.go
index e04879c31e7..24695e9e55f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_server_certificate.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_iam_server_certificate.go
@@ -23,7 +23,6 @@ func dataSourceAwsIAMServerCertificate() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ForceNew: true,
ConflictsWith: []string{"name_prefix"},
ValidateFunc: validation.StringLenBetween(0, 128),
},
@@ -31,7 +30,6 @@ func dataSourceAwsIAMServerCertificate() *schema.Resource {
"name_prefix": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
ConflictsWith: []string{"name"},
ValidateFunc: validation.StringLenBetween(0, 128-resource.UniqueIDSuffixLength),
},
@@ -39,13 +37,11 @@ func dataSourceAwsIAMServerCertificate() *schema.Resource {
"path_prefix": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
},
"latest": {
Type: schema.TypeBool,
Optional: true,
- ForceNew: true,
Default: false,
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_instance.go
index 8f02a7316bd..db576e5305a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_instance.go
@@ -25,7 +25,6 @@ func dataSourceAwsInstance() *schema.Resource {
"instance_id": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
},
"ami": {
Type: schema.TypeString,
@@ -96,6 +95,10 @@ func dataSourceAwsInstance() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"network_interface_id": {
Type: schema.TypeString,
Computed: true,
@@ -235,6 +238,11 @@ func dataSourceAwsInstance() *schema.Resource {
Computed: true,
},
+ "device_name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+
"encrypted": {
Type: schema.TypeBool,
Computed: true,
@@ -279,6 +287,26 @@ func dataSourceAwsInstance() *schema.Resource {
},
},
},
+ "metadata_options": {
+ Type: schema.TypeList,
+ Computed: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "http_endpoint": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "http_tokens": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "http_put_response_hop_limit": {
+ Type: schema.TypeInt,
+ Computed: true,
+ },
+ },
+ },
+ },
"disable_api_termination": {
Type: schema.TypeBool,
Computed: true,
@@ -290,6 +318,7 @@ func dataSourceAwsInstance() *schema.Resource {
// dataSourceAwsInstanceRead performs the instanceID lookup
func dataSourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
filters, filtersOk := d.GetOk("filter")
instanceID, instanceIDOk := d.GetOk("instance_id")
@@ -348,7 +377,7 @@ func dataSourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
}
log.Printf("[DEBUG] aws_instance - Single Instance ID found: %s", *instance.InstanceId)
- if err := instanceDescriptionAttributes(d, instance, conn); err != nil {
+ if err := instanceDescriptionAttributes(d, instance, conn, ignoreTagsConfig); err != nil {
return err
}
@@ -374,7 +403,7 @@ func dataSourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
}
// Populate instance attribute fields with the returned instance
-func instanceDescriptionAttributes(d *schema.ResourceData, instance *ec2.Instance, conn *ec2.EC2) error {
+func instanceDescriptionAttributes(d *schema.ResourceData, instance *ec2.Instance, conn *ec2.EC2, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
d.SetId(*instance.InstanceId)
// Set the easy attributes
d.Set("instance_state", instance.State.Name)
@@ -397,6 +426,7 @@ func instanceDescriptionAttributes(d *schema.ResourceData, instance *ec2.Instanc
d.Set("public_ip", instance.PublicIpAddress)
d.Set("private_dns", instance.PrivateDnsName)
d.Set("private_ip", instance.PrivateIpAddress)
+ d.Set("outpost_arn", instance.OutpostArn)
d.Set("iam_instance_profile", iamInstanceProfileArnToName(instance.IamInstanceProfile))
// iterate through network interfaces, and set subnet, network_interface, public_addr
@@ -423,7 +453,7 @@ func instanceDescriptionAttributes(d *schema.ResourceData, instance *ec2.Instanc
d.Set("monitoring", monitoringState == "enabled" || monitoringState == "pending")
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(instance.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(instance.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -486,5 +516,9 @@ func instanceDescriptionAttributes(d *schema.ResourceData, instance *ec2.Instanc
return fmt.Errorf("error setting credit_specification: %s", err)
}
+ if err := d.Set("metadata_options", flattenEc2InstanceMetadataOptions(instance.MetadataOptions)); err != nil {
+ return fmt.Errorf("error setting metadata_options: %s", err)
+ }
+
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_internet_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_internet_gateway.go
index 01c587a2eb8..f5d311766cf 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_internet_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_internet_gateway.go
@@ -47,6 +47,8 @@ func dataSourceAwsInternetGateway() *schema.Resource {
func dataSourceAwsInternetGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &ec2.DescribeInternetGatewaysInput{}
internetGatewayId, internetGatewayIdOk := d.GetOk("internet_gateway_id")
tags, tagsOk := d.GetOk("tags")
@@ -82,7 +84,7 @@ func dataSourceAwsInternetGatewayRead(d *schema.ResourceData, meta interface{})
igw := resp.InternetGateways[0]
d.SetId(aws.StringValue(igw.InternetGatewayId))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(igw.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(igw.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kinesis_stream.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kinesis_stream.go
index 5a8d5706130..ebaa1c144d1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kinesis_stream.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kinesis_stream.go
@@ -65,6 +65,8 @@ func dataSourceAwsKinesisStream() *schema.Resource {
func dataSourceAwsKinesisStreamRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kinesisconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
sn := d.Get("name").(string)
state, err := readKinesisStreamState(conn, sn)
@@ -87,7 +89,7 @@ func dataSourceAwsKinesisStreamRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error listing tags for Kinesis Stream (%s): %s", sn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secret.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secret.go
index b0f2c13e29f..c98988a28ac 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secret.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secret.go
@@ -18,7 +18,6 @@ func dataSourceAwsKmsSecret() *schema.Resource {
"secret": {
Type: schema.TypeSet,
Required: true,
- ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secrets.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secrets.go
index f00ad2d51b3..aa1780badab 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secrets.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_kms_secrets.go
@@ -19,7 +19,6 @@ func dataSourceAwsKmsSecrets() *schema.Resource {
"secret": {
Type: schema.TypeSet,
Required: true,
- ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_function.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_function.go
index 3c4a3f5e92f..4c01bbb72b8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_function.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_function.go
@@ -159,6 +159,8 @@ func dataSourceAwsLambdaFunction() *schema.Resource {
func dataSourceAwsLambdaFunctionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).lambdaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
functionName := d.Get("function_name").(string)
input := &lambda.GetFunctionInput{
@@ -236,7 +238,7 @@ func dataSourceAwsLambdaFunctionRead(d *schema.ResourceData, meta interface{}) e
d.Set("source_code_hash", function.CodeSha256)
d.Set("source_code_size", function.CodeSize)
- if err := d.Set("tags", keyvaluetags.LambdaKeyValueTags(output.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.LambdaKeyValueTags(output.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_invocation.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_invocation.go
index d896c109dbc..a916932a635 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_invocation.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_lambda_invocation.go
@@ -20,21 +20,18 @@ func dataSourceAwsLambdaInvocation() *schema.Resource {
"function_name": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"qualifier": {
Type: schema.TypeString,
Optional: true,
- ForceNew: true,
Default: "$LATEST",
},
"input": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"result": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_launch_template.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_launch_template.go
index 7d043dfcb0e..d093f2b9bb2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_launch_template.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_launch_template.go
@@ -19,7 +19,7 @@ func dataSourceAwsLaunchTemplate() *schema.Resource {
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
},
"description": {
Type: schema.TypeString,
@@ -202,6 +202,26 @@ func dataSourceAwsLaunchTemplate() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
+ "metadata_options": {
+ Type: schema.TypeList,
+ Computed: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "http_endpoint": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "http_tokens": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "http_put_response_hop_limit": {
+ Type: schema.TypeInt,
+ Computed: true,
+ },
+ },
+ },
+ },
"monitoring": {
Type: schema.TypeList,
Computed: true,
@@ -220,7 +240,7 @@ func dataSourceAwsLaunchTemplate() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"associate_public_ip_address": {
- Type: schema.TypeBool,
+ Type: schema.TypeString,
Computed: true,
},
"delete_on_termination": {
@@ -336,19 +356,44 @@ func dataSourceAwsLaunchTemplate() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
- "tags": tagsSchemaComputed(),
+ "hibernation_options": {
+ Type: schema.TypeList,
+ Computed: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "configured": {
+ Type: schema.TypeBool,
+ Computed: true,
+ },
+ },
+ },
+ },
+ "tags": tagsSchemaComputed(),
+ "filter": dataSourceFiltersSchema(),
},
}
}
func dataSourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
- log.Printf("[DEBUG] Reading launch template %s", d.Get("name"))
+ filters, filtersOk := d.GetOk("filter")
+ name, nameOk := d.GetOk("name")
+ tags, tagsOk := d.GetOk("tags")
- dlt, err := conn.DescribeLaunchTemplates(&ec2.DescribeLaunchTemplatesInput{
- LaunchTemplateNames: []*string{aws.String(d.Get("name").(string))},
- })
+ params := &ec2.DescribeLaunchTemplatesInput{}
+ if filtersOk {
+ params.Filters = buildAwsDataSourceFilters(filters.(*schema.Set))
+ }
+ if nameOk {
+ params.LaunchTemplateNames = []*string{aws.String(name.(string))}
+ }
+ if tagsOk {
+ params.Filters = append(params.Filters, ec2TagFiltersFromMap(tags.(map[string]interface{}))...)
+ }
+
+ dlt, err := conn.DescribeLaunchTemplates(params)
if isAWSErr(err, ec2.LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist, "") {
log.Printf("[WARN] launch template (%s) not found - removing from state", d.Id())
@@ -380,7 +425,7 @@ func dataSourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) e
d.Set("name", lt.LaunchTemplateName)
d.Set("latest_version", lt.LatestVersionNumber)
d.Set("default_version", lt.DefaultVersionNumber)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(lt.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(lt.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -444,6 +489,10 @@ func dataSourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error setting instance_market_options: %s", err)
}
+ if err := d.Set("metadata_options", flattenLaunchTemplateInstanceMetadataOptions(ltData.MetadataOptions)); err != nil {
+ return fmt.Errorf("error setting metadata_options: %s", err)
+ }
+
if err := d.Set("monitoring", getMonitoring(ltData.Monitoring)); err != nil {
return fmt.Errorf("error setting monitoring: %s", err)
}
@@ -456,6 +505,10 @@ func dataSourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error setting placement: %s", err)
}
+ if err := d.Set("hibernation_options", flattenLaunchTemplateHibernationOptions(ltData.HibernationOptions)); err != nil {
+ return fmt.Errorf("error setting hibernation_options: %s", err)
+ }
+
if err := d.Set("tag_specifications", getTagSpecifications(ltData.TagSpecifications)); err != nil {
return fmt.Errorf("error setting tag_specifications: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_msk_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_msk_cluster.go
index 10b07b8d5ca..00f2d18f03e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_msk_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_msk_cluster.go
@@ -51,6 +51,7 @@ func dataSourceAwsMskCluster() *schema.Resource {
func dataSourceAwsMskClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kafkaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
listClustersInput := &kafka.ListClustersInput{
ClusterNameFilter: aws.String(d.Get("cluster_name").(string)),
@@ -104,7 +105,7 @@ func dataSourceAwsMskClusterRead(d *schema.ResourceData, meta interface{}) error
d.Set("kafka_version", aws.StringValue(cluster.CurrentBrokerSoftwareInfo.KafkaVersion))
d.Set("number_of_broker_nodes", aws.Int64Value(cluster.NumberOfBrokerNodes))
- if err := d.Set("tags", keyvaluetags.KafkaKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.KafkaKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_nat_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_nat_gateway.go
index e802eac2630..1f3f57a753a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_nat_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_nat_gateway.go
@@ -59,6 +59,7 @@ func dataSourceAwsNatGateway() *schema.Resource {
func dataSourceAwsNatGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeNatGatewaysInput{}
@@ -124,7 +125,7 @@ func dataSourceAwsNatGatewayRead(d *schema.ResourceData, meta interface{}) error
d.Set("subnet_id", ngw.SubnetId)
d.Set("vpc_id", ngw.VpcId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ngw.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ngw.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_network_interface.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_network_interface.go
index d1eca3e9fd5..bc3a6fa1be4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_network_interface.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_network_interface.go
@@ -123,6 +123,10 @@ func dataSourceAwsNetworkInterface() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"vpc_id": {
Type: schema.TypeString,
Computed: true,
@@ -134,6 +138,7 @@ func dataSourceAwsNetworkInterface() *schema.Resource {
func dataSourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeNetworkInterfacesInput{}
if v, ok := d.GetOk("id"); ok {
@@ -180,9 +185,10 @@ func dataSourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{})
d.Set("private_ips", flattenNetworkInterfacesPrivateIPAddresses(eni.PrivateIpAddresses))
d.Set("requester_id", eni.RequesterId)
d.Set("subnet_id", eni.SubnetId)
+ d.Set("outpost_arn", eni.OutpostArn)
d.Set("vpc_id", eni.VpcId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eni.TagSet).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eni.TagSet).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_prefix_list.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_prefix_list.go
index faf1eeee18c..82c8a2ae37f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_prefix_list.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_prefix_list.go
@@ -28,6 +28,7 @@ func dataSourceAwsPrefixList() *schema.Resource {
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
+ "filter": dataSourceFiltersSchema(),
},
}
}
@@ -35,8 +36,12 @@ func dataSourceAwsPrefixList() *schema.Resource {
func dataSourceAwsPrefixListRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- req := &ec2.DescribePrefixListsInput{}
+ filters, filtersOk := d.GetOk("filter")
+ req := &ec2.DescribePrefixListsInput{}
+ if filtersOk {
+ req.Filters = buildAwsDataSourceFilters(filters.(*schema.Set))
+ }
if prefixListID := d.Get("prefix_list_id"); prefixListID != "" {
req.PrefixListIds = aws.StringSlice([]string{prefixListID.(string)})
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ram_resource_share.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ram_resource_share.go
index e3cf1440023..0f9f4d0373b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ram_resource_share.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_ram_resource_share.go
@@ -69,6 +69,7 @@ func dataSourceAwsRamResourceShare() *schema.Resource {
func dataSourceAwsRamResourceShareRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ramconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
name := d.Get("name").(string)
owner := d.Get("resource_owner").(string)
@@ -106,7 +107,7 @@ func dataSourceAwsRamResourceShareRead(d *schema.ResourceData, meta interface{})
d.Set("owning_account_id", aws.StringValue(r.OwningAccountId))
d.Set("status", aws.StringValue(r.Status))
- if err := d.Set("tags", keyvaluetags.RamKeyValueTags(r.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RamKeyValueTags(r.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_rds_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_rds_cluster.go
index 7a111a2f57c..a4a555e1041 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_rds_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_rds_cluster.go
@@ -160,6 +160,7 @@ func dataSourceAwsRdsCluster() *schema.Resource {
func dataSourceAwsRdsClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
dbClusterIdentifier := d.Get("cluster_identifier").(string)
@@ -264,7 +265,7 @@ func dataSourceAwsRdsClusterRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for RDS Cluster (%s): %s", *arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_cluster.go
index 5431fca4ecc..ea766b3ca26 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_cluster.go
@@ -171,6 +171,7 @@ func dataSourceAwsRedshiftCluster() *schema.Resource {
func dataSourceAwsRedshiftClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
cluster := d.Get("cluster_identifier").(string)
@@ -250,7 +251,7 @@ func dataSourceAwsRedshiftClusterRead(d *schema.ResourceData, meta interface{})
d.Set("preferred_maintenance_window", rsc.PreferredMaintenanceWindow)
d.Set("publicly_accessible", rsc.PubliclyAccessible)
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(rsc.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(rsc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_service_account.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_service_account.go
index 6fa61225d61..fa4357cfb55 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_service_account.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_redshift_service_account.go
@@ -15,6 +15,7 @@ var redshiftServiceAccountPerRegionMap = map[string]string{
"us-east-2": "391106570357",
"us-west-1": "262260360010",
"us-west-2": "902366379725",
+ "af-south-1": "365689465814",
"ap-east-1": "313564881002",
"ap-south-1": "865932855811",
"ap-northeast-3": "090321488786",
@@ -30,6 +31,7 @@ var redshiftServiceAccountPerRegionMap = map[string]string{
"eu-west-2": "307160386991",
"eu-west-3": "915173422425",
"eu-north-1": "729911121831",
+ "eu-south-1": "945612479654",
"me-south-1": "013126148197",
"sa-east-1": "075028567923",
"us-gov-east-1": "665727464434",
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_regions.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_regions.go
new file mode 100644
index 00000000000..0237b032e66
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_regions.go
@@ -0,0 +1,62 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/ec2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+)
+
+func dataSourceAwsRegions() *schema.Resource {
+ return &schema.Resource{
+ Read: dataSourceAwsRegionsRead,
+
+ Schema: map[string]*schema.Schema{
+ "filter": dataSourceFiltersSchema(),
+ "names": {
+ Type: schema.TypeSet,
+ Computed: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+
+ "all_regions": {
+ Type: schema.TypeBool,
+ Optional: true,
+ },
+ },
+ }
+}
+
+func dataSourceAwsRegionsRead(d *schema.ResourceData, meta interface{}) error {
+ connection := meta.(*AWSClient).ec2conn
+
+ log.Printf("[DEBUG] Reading regions.")
+ request := &ec2.DescribeRegionsInput{}
+ if v, ok := d.GetOk("filter"); ok {
+ request.Filters = buildAwsDataSourceFilters(v.(*schema.Set))
+ }
+ if v, ok := d.GetOk("all_regions"); ok {
+ request.AllRegions = aws.Bool(v.(bool))
+ }
+
+ log.Printf("[DEBUG] Reading regions for request: %s", request)
+ response, err := connection.DescribeRegions(request)
+ if err != nil {
+ return fmt.Errorf("Error fetching Regions: %s", err)
+ }
+
+ names := []string{}
+ for _, v := range response.Regions {
+ names = append(names, aws.StringValue(v.RegionName))
+ }
+
+ d.SetId(time.Now().UTC().String())
+ if err := d.Set("names", names); err != nil {
+ return fmt.Errorf("error setting names: %s", err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_resolver_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_resolver_rule.go
index cd4fa487851..943a1d9a07f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_resolver_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_resolver_rule.go
@@ -80,6 +80,7 @@ func dataSourceAwsRoute53ResolverRule() *schema.Resource {
func dataSourceAwsRoute53ResolverRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).route53resolverconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
var rule *route53resolver.ResolverRule
if v, ok := d.GetOk("resolver_rule_id"); ok {
@@ -137,7 +138,7 @@ func dataSourceAwsRoute53ResolverRuleRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error listing tags for Route 53 Resolver rule (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_zone.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_zone.go
index aa90f50edf2..0feff3f9e76 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_zone.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route53_zone.go
@@ -69,6 +69,8 @@ func dataSourceAwsRoute53Zone() *schema.Resource {
func dataSourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).r53conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name, nameExists := d.GetOk("name")
name = hostedZoneName(name.(string))
id, idExists := d.GetOk("zone_id")
@@ -179,7 +181,7 @@ func dataSourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("Error finding Route 53 Hosted Zone: %v", err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route_table.go
index acb4739e5bc..4ea77524058 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_route_table.go
@@ -131,6 +131,8 @@ func dataSourceAwsRouteTable() *schema.Resource {
func dataSourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &ec2.DescribeRouteTablesInput{}
vpcId, vpcIdOk := d.GetOk("vpc_id")
subnetId, subnetIdOk := d.GetOk("subnet_id")
@@ -175,7 +177,7 @@ func dataSourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error
d.Set("route_table_id", rt.RouteTableId)
d.Set("vpc_id", rt.VpcId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(rt.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(rt.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_s3_bucket_object.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_s3_bucket_object.go
index cad280b2f44..ec7d78300a0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_s3_bucket_object.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_s3_bucket_object.go
@@ -120,6 +120,7 @@ func dataSourceAwsS3BucketObject() *schema.Resource {
func dataSourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).s3conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
bucket := d.Get("bucket").(string)
key := d.Get("key").(string)
@@ -225,7 +226,7 @@ func dataSourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error listing tags for S3 Bucket (%s) Object (%s): %s", bucket, key, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret.go
index 898191a9d8b..76e5fbaca13 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret.go
@@ -70,6 +70,8 @@ func dataSourceAwsSecretsManagerSecret() *schema.Resource {
func dataSourceAwsSecretsManagerSecretRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).secretsmanagerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
var secretID string
if v, ok := d.GetOk("arn"); ok {
secretID = v.(string)
@@ -132,7 +134,7 @@ func dataSourceAwsSecretsManagerSecretRead(d *schema.ResourceData, meta interfac
return fmt.Errorf("error setting rotation_rules: %s", err)
}
- if err := d.Set("tags", keyvaluetags.SecretsmanagerKeyValueTags(output.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.SecretsmanagerKeyValueTags(output.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret_version.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret_version.go
index 1842f4612d1..1252cf5091e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret_version.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_secretsmanager_secret_version.go
@@ -21,7 +21,6 @@ func dataSourceAwsSecretsManagerSecretVersion() *schema.Resource {
"secret_id": {
Type: schema.TypeString,
Required: true,
- ForceNew: true,
},
"secret_string": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_security_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_security_group.go
index 88a16f4b746..7289907d31a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_security_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_security_group.go
@@ -51,6 +51,8 @@ func dataSourceAwsSecurityGroup() *schema.Resource {
func dataSourceAwsSecurityGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &ec2.DescribeSecurityGroupsInput{}
if id, ok := d.GetOk("id"); ok {
@@ -93,7 +95,7 @@ func dataSourceAwsSecurityGroupRead(d *schema.ResourceData, meta interface{}) er
d.Set("description", sg.Description)
d.Set("vpc_id", sg.VpcId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(sg.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(sg.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_sqs_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_sqs_queue.go
index 14ffcddb961..bebf63c07a4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_sqs_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_sqs_queue.go
@@ -32,6 +32,8 @@ func dataSourceAwsSqsQueue() *schema.Resource {
func dataSourceAwsSqsQueueRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sqsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name := d.Get("name").(string)
urlOutput, err := conn.GetQueueUrl(&sqs.GetQueueUrlInput{
@@ -61,7 +63,7 @@ func dataSourceAwsSqsQueueRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for SQS Queue (%s): %s", queueURL, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_subnet.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_subnet.go
index a9291d474c6..35d669b40a4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_subnet.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_subnet.go
@@ -39,6 +39,11 @@ func dataSourceAwsSubnet() *schema.Resource {
Computed: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+
"default_for_az": {
Type: schema.TypeBool,
Optional: true,
@@ -97,6 +102,7 @@ func dataSourceAwsSubnet() *schema.Resource {
func dataSourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeSubnetsInput{}
@@ -167,8 +173,9 @@ func dataSourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
d.Set("cidr_block", subnet.CidrBlock)
d.Set("default_for_az", subnet.DefaultForAz)
d.Set("state", subnet.State)
+ d.Set("outpost_arn", subnet.OutpostArn)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc.go
index 686eeb053ff..8a186ef54ee 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc.go
@@ -116,6 +116,7 @@ func dataSourceAwsVpc() *schema.Resource {
func dataSourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeVpcsInput{}
@@ -182,7 +183,7 @@ func dataSourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
d.Set("default", vpc.IsDefault)
d.Set("state", vpc.State)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpc.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_dhcp_options.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_dhcp_options.go
index dd53ed161d6..c7fe8ebf85d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_dhcp_options.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_dhcp_options.go
@@ -57,6 +57,7 @@ func dataSourceAwsVpcDhcpOptions() *schema.Resource {
func dataSourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeDhcpOptionsInput{}
@@ -123,7 +124,7 @@ func dataSourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) e
}
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(output.DhcpOptions[0].Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(output.DhcpOptions[0].Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
d.Set("owner_id", output.DhcpOptions[0].OwnerId)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint.go
index 8e2139e81e8..2def730f951 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint.go
@@ -113,6 +113,7 @@ func dataSourceAwsVpcEndpoint() *schema.Resource {
func dataSourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeVpcEndpointsInput{}
@@ -208,7 +209,7 @@ func dataSourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) erro
if err != nil {
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpce.Tags).IgnoreAws().Map())
+ err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpce.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
if err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint_service.go
index 53af9811123..8807bbe0bef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_endpoint_service.go
@@ -69,25 +69,37 @@ func dataSourceAwsVpcEndpointService() *schema.Resource {
Type: schema.TypeBool,
Computed: true,
},
+ "filter": dataSourceFiltersSchema(),
},
}
}
func dataSourceAwsVpcEndpointServiceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ filters, filtersOk := d.GetOk("filter")
+ tags, tagsOk := d.GetOk("tags")
var serviceName string
+ serviceNameOk := false
if v, ok := d.GetOk("service_name"); ok {
serviceName = v.(string)
+ serviceNameOk = true
} else if v, ok := d.GetOk("service"); ok {
serviceName = fmt.Sprintf("com.amazonaws.%s.%s", meta.(*AWSClient).region, v.(string))
- } else {
- return fmt.Errorf(
- "One of ['service', 'service_name'] must be set to query VPC Endpoint Services")
+ serviceNameOk = true
}
- req := &ec2.DescribeVpcEndpointServicesInput{
- ServiceNames: aws.StringSlice([]string{serviceName}),
+ req := &ec2.DescribeVpcEndpointServicesInput{}
+ if filtersOk {
+ req.Filters = buildAwsDataSourceFilters(filters.(*schema.Set))
+ }
+ if serviceNameOk {
+ req.ServiceNames = aws.StringSlice([]string{serviceName})
+ }
+ if tagsOk {
+ req.Filters = append(req.Filters, ec2TagFiltersFromMap(tags.(map[string]interface{}))...)
}
log.Printf("[DEBUG] Reading VPC Endpoint Service: %s", req)
@@ -138,7 +150,7 @@ func dataSourceAwsVpcEndpointServiceRead(d *schema.ResourceData, meta interface{
d.Set("private_dns_name", sd.PrivateDnsName)
d.Set("service_id", sd.ServiceId)
d.Set("service_type", sd.ServiceType[0].ServiceType)
- err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(sd.Tags).IgnoreAws().Map())
+ err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(sd.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
if err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_peering_connection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_peering_connection.go
index f635485cedb..4e58eab1e8c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_peering_connection.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpc_peering_connection.go
@@ -83,6 +83,7 @@ func dataSourceAwsVpcPeeringConnection() *schema.Resource {
func dataSourceAwsVpcPeeringConnectionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading VPC Peering Connections.")
@@ -142,7 +143,7 @@ func dataSourceAwsVpcPeeringConnectionRead(d *schema.ResourceData, meta interfac
d.Set("peer_owner_id", pcx.AccepterVpcInfo.OwnerId)
d.Set("peer_cidr_block", pcx.AccepterVpcInfo.CidrBlock)
d.Set("peer_region", pcx.AccepterVpcInfo.Region)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(pcx.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(pcx.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpn_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpn_gateway.go
index 22d5c40294e..0152c362a48 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpn_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_vpn_gateway.go
@@ -49,6 +49,7 @@ func dataSourceAwsVpnGateway() *schema.Resource {
func dataSourceAwsVpnGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeVpnGatewaysInput{}
@@ -107,7 +108,7 @@ func dataSourceAwsVpnGatewayRead(d *schema.ResourceData, meta interface{}) error
d.Set("availability_zone", vgw.AvailabilityZone)
d.Set("amazon_side_asn", strconv.FormatInt(aws.Int64Value(vgw.AmazonSideAsn), 10))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vgw.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vgw.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/ec2_transit_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/ec2_transit_gateway.go
index 236ea3e2830..0dd982664a6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/ec2_transit_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/ec2_transit_gateway.go
@@ -211,6 +211,43 @@ func ec2DescribeTransitGatewayRouteTablePropagation(conn *ec2.EC2, transitGatewa
return output.TransitGatewayRouteTablePropagations[0], nil
}
+func ec2DescribeTransitGatewayPeeringAttachment(conn *ec2.EC2, transitGatewayAttachmentID string) (*ec2.TransitGatewayPeeringAttachment, error) {
+ input := &ec2.DescribeTransitGatewayPeeringAttachmentsInput{
+ TransitGatewayAttachmentIds: []*string{aws.String(transitGatewayAttachmentID)},
+ }
+
+ log.Printf("[DEBUG] Reading EC2 Transit Gateway Peering Attachment (%s): %s", transitGatewayAttachmentID, input)
+ for {
+ output, err := conn.DescribeTransitGatewayPeeringAttachments(input)
+
+ if err != nil {
+ return nil, err
+ }
+
+ if output == nil || len(output.TransitGatewayPeeringAttachments) == 0 {
+ return nil, nil
+ }
+
+ for _, transitGatewayPeeringAttachment := range output.TransitGatewayPeeringAttachments {
+ if transitGatewayPeeringAttachment == nil {
+ continue
+ }
+
+ if aws.StringValue(transitGatewayPeeringAttachment.TransitGatewayAttachmentId) == transitGatewayAttachmentID {
+ return transitGatewayPeeringAttachment, nil
+ }
+ }
+
+ if aws.StringValue(output.NextToken) == "" {
+ break
+ }
+
+ input.NextToken = output.NextToken
+ }
+
+ return nil, nil
+}
+
func ec2DescribeTransitGatewayVpcAttachment(conn *ec2.EC2, transitGatewayAttachmentID string) (*ec2.TransitGatewayVpcAttachment, error) {
input := &ec2.DescribeTransitGatewayVpcAttachmentsInput{
TransitGatewayAttachmentIds: []*string{aws.String(transitGatewayAttachmentID)},
@@ -374,6 +411,30 @@ func ec2TransitGatewayRouteTableAssociationRefreshFunc(conn *ec2.EC2, transitGat
}
}
+func ec2TransitGatewayPeeringAttachmentRefreshFunc(conn *ec2.EC2, transitGatewayAttachmentID string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ transitGatewayPeeringAttachment, err := ec2DescribeTransitGatewayPeeringAttachment(conn, transitGatewayAttachmentID)
+
+ if isAWSErr(err, "InvalidTransitGatewayAttachmentID.NotFound", "") {
+ return nil, ec2.TransitGatewayAttachmentStateDeleted, nil
+ }
+
+ if err != nil {
+ return nil, "", fmt.Errorf("error reading EC2 Transit Gateway Peering Attachment (%s): %s", transitGatewayAttachmentID, err)
+ }
+
+ if transitGatewayPeeringAttachment == nil {
+ return nil, ec2.TransitGatewayAttachmentStateDeleted, nil
+ }
+
+ if aws.StringValue(transitGatewayPeeringAttachment.State) == ec2.TransitGatewayAttachmentStateFailed && transitGatewayPeeringAttachment.Status != nil {
+ return transitGatewayPeeringAttachment, aws.StringValue(transitGatewayPeeringAttachment.State), fmt.Errorf("%s: %s", aws.StringValue(transitGatewayPeeringAttachment.Status.Code), aws.StringValue(transitGatewayPeeringAttachment.Status.Message))
+ }
+
+ return transitGatewayPeeringAttachment, aws.StringValue(transitGatewayPeeringAttachment.State), nil
+ }
+}
+
func ec2TransitGatewayVpcAttachmentRefreshFunc(conn *ec2.EC2, transitGatewayAttachmentID string) resource.StateRefreshFunc {
return func() (interface{}, string, error) {
transitGatewayVpcAttachment, err := ec2DescribeTransitGatewayVpcAttachment(conn, transitGatewayAttachmentID)
@@ -502,6 +563,50 @@ func waitForEc2TransitGatewayRouteTableAssociationDeletion(conn *ec2.EC2, transi
return err
}
+func waitForEc2TransitGatewayPeeringAttachmentCreation(conn *ec2.EC2, transitGatewayAttachmentID string) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{
+ ec2.TransitGatewayAttachmentStateFailing,
+ ec2.TransitGatewayAttachmentStatePending,
+ "initiatingRequest", // No ENUM currently exists in the SDK for the state given by AWS
+ },
+ Target: []string{
+ ec2.TransitGatewayAttachmentStateAvailable,
+ ec2.TransitGatewayAttachmentStatePendingAcceptance,
+ },
+ Refresh: ec2TransitGatewayPeeringAttachmentRefreshFunc(conn, transitGatewayAttachmentID),
+ Timeout: 10 * time.Minute,
+ }
+
+ log.Printf("[DEBUG] Waiting for EC2 Transit Gateway Peering Attachment (%s) availability", transitGatewayAttachmentID)
+ _, err := stateConf.WaitForState()
+
+ return err
+}
+
+func waitForEc2TransitGatewayPeeringAttachmentDeletion(conn *ec2.EC2, transitGatewayAttachmentID string) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{
+ ec2.TransitGatewayAttachmentStateAvailable,
+ ec2.TransitGatewayAttachmentStateDeleting,
+ ec2.TransitGatewayAttachmentStatePendingAcceptance,
+ ec2.TransitGatewayAttachmentStateRejected,
+ },
+ Target: []string{ec2.TransitGatewayAttachmentStateDeleted},
+ Refresh: ec2TransitGatewayPeeringAttachmentRefreshFunc(conn, transitGatewayAttachmentID),
+ Timeout: 10 * time.Minute,
+ }
+
+ log.Printf("[DEBUG] Waiting for EC2 Transit Gateway Peering Attachment (%s) deletion", transitGatewayAttachmentID)
+ _, err := stateConf.WaitForState()
+
+ if isResourceNotFoundError(err) {
+ return nil
+ }
+
+ return err
+}
+
func waitForEc2TransitGatewayVpcAttachmentAcceptance(conn *ec2.EC2, transitGatewayAttachmentID string) error {
stateConf := &resource.StateChangeConf{
Pending: []string{
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/hosted_zones.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/hosted_zones.go
index bb50d2381b8..bc64a270732 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/hosted_zones.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/hosted_zones.go
@@ -9,6 +9,7 @@ import "fmt"
// See https://docs.aws.amazon.com/pt_br/govcloud-us/latest/ug-east/using-govcloud-endpoints.html
// See https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html
var hostedZoneIDsMap = map[string]string{
+ "af-south-1": "Z11KHD8FBVPUYU",
"ap-east-1": "ZNB98KWMFR0R6",
"ap-northeast-1": "Z2M4EHUR26P7ZW",
"ap-northeast-2": "Z3W03O7B5YMIYP",
@@ -19,6 +20,7 @@ var hostedZoneIDsMap = map[string]string{
"ca-central-1": "Z1QDHH18159H29",
"eu-central-1": "Z21DNDUVLTQW6Q",
"eu-north-1": "Z3BAZG2TWCNX0D",
+ "eu-south-1": "Z3IXVV8C73GIO3",
"eu-west-1": "Z1BKCTXD74EZPE",
"eu-west-2": "Z3GKZC51ZF0DB4",
"eu-west-3": "Z3R1K369G5AVDG",
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/create_tags_gen.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/create_tags_gen.go
new file mode 100644
index 00000000000..e944ccc4a7d
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/create_tags_gen.go
@@ -0,0 +1,78 @@
+// Code generated by generators/createtags/main.go; DO NOT EDIT.
+
+package keyvaluetags
+
+import (
+ "errors"
+ "fmt"
+ "strings"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/awserr"
+ "github.com/aws/aws-sdk-go/service/ec2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const EventualConsistencyTimeout = 5 * time.Minute
+
+// Similar to isAWSErr from aws/awserr.go
+// TODO: Add and export in shared package
+func isAWSErrCode(err error, code string) bool {
+ var awsErr awserr.Error
+ if errors.As(err, &awsErr) {
+ return awsErr.Code() == code
+ }
+ return false
+}
+
+// TODO: Add and export in shared package
+func isAWSErrCodeContains(err error, code string) bool {
+ var awsErr awserr.Error
+ if errors.As(err, &awsErr) {
+ return strings.Contains(awsErr.Code(), code)
+ }
+ return false
+}
+
+// Copied from aws/utils.go
+// TODO: Export in shared package or add to Terraform Plugin SDK
+func isResourceTimeoutError(err error) bool {
+ timeoutErr, ok := err.(*resource.TimeoutError)
+ return ok && timeoutErr.LastError == nil
+}
+
+// Ec2CreateTags creates ec2 service tags for new resources.
+// The identifier is typically the Amazon Resource Name (ARN), although
+// it may also be a different identifier depending on the service.
+func Ec2CreateTags(conn *ec2.EC2, identifier string, tagsMap interface{}) error {
+ tags := New(tagsMap)
+ input := &ec2.CreateTagsInput{
+ Resources: aws.StringSlice([]string{identifier}),
+ Tags: tags.IgnoreAws().Ec2Tags(),
+ }
+
+ err := resource.Retry(EventualConsistencyTimeout, func() *resource.RetryError {
+ _, err := conn.CreateTags(input)
+
+ if isAWSErrCodeContains(err, ".NotFound") {
+ return resource.RetryableError(err)
+ }
+
+ if err != nil {
+ return resource.NonRetryableError(err)
+ }
+
+ return nil
+ })
+
+ if isResourceTimeoutError(err) {
+ _, err = conn.CreateTags(input)
+ }
+
+ if err != nil {
+ return fmt.Errorf("error tagging resource (%s): %w", identifier, err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/key_value_tags.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/key_value_tags.go
index 76d31980852..58c27c34d73 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/key_value_tags.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/key_value_tags.go
@@ -1,5 +1,6 @@
//go:generate go run -tags generate generators/servicetags/main.go
//go:generate go run -tags generate generators/listtags/main.go
+//go:generate go run -tags generate generators/createtags/main.go
//go:generate go run -tags generate generators/updatetags/main.go
package keyvaluetags
@@ -19,6 +20,12 @@ const (
RdsTagKeyPrefix = `rds:`
)
+// IgnoreConfig contains various options for removing resource tags.
+type IgnoreConfig struct {
+ Keys KeyValueTags
+ KeyPrefixes KeyValueTags
+}
+
// KeyValueTags is a standard implementation for AWS key-value resource tags.
// The AWS Go SDK is split into multiple service packages, each service with
// its own Go struct type representing a resource tag. To standardize logic
@@ -38,6 +45,18 @@ func (tags KeyValueTags) IgnoreAws() KeyValueTags {
return result
}
+// IgnoreConfig returns any tags not removed by a given configuration.
+func (tags KeyValueTags) IgnoreConfig(config *IgnoreConfig) KeyValueTags {
+ if config == nil {
+ return tags
+ }
+
+ result := tags.IgnorePrefixes(config.KeyPrefixes)
+ result = result.Ignore(config.Keys)
+
+ return result
+}
+
// IgnoreElasticbeanstalk returns non-AWS and non-Elasticbeanstalk tag keys.
func (tags KeyValueTags) IgnoreElasticbeanstalk() KeyValueTags {
result := make(KeyValueTags)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/service_generation_customizations.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/service_generation_customizations.go
index a18d21b6978..b7e88349a38 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/service_generation_customizations.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/service_generation_customizations.go
@@ -4,7 +4,6 @@ package keyvaluetags
import (
"fmt"
- "github.com/aws/aws-sdk-go/service/quicksight"
"reflect"
"github.com/aws/aws-sdk-go/service/accessanalyzer"
@@ -87,6 +86,7 @@ import (
"github.com/aws/aws-sdk-go/service/organizations"
"github.com/aws/aws-sdk-go/service/pinpoint"
"github.com/aws/aws-sdk-go/service/qldb"
+ "github.com/aws/aws-sdk-go/service/quicksight"
"github.com/aws/aws-sdk-go/service/ram"
"github.com/aws/aws-sdk-go/service/rds"
"github.com/aws/aws-sdk-go/service/redshift"
@@ -325,6 +325,444 @@ func ServiceClientType(serviceName string) string {
return funcType.Out(0).String()
}
+// ServiceListTagsFunction determines the service list tagging function.
+func ServiceListTagsFunction(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "ListTagsForCertificate"
+ case "acmpca":
+ return "ListTags"
+ case "apigatewayv2":
+ return "GetTags"
+ case "backup":
+ return "ListTags"
+ case "cloudhsmv2":
+ return "ListTags"
+ case "cloudtrail":
+ return "ListTags"
+ case "cloudwatchlogs":
+ return "ListTagsLogGroup"
+ case "dax":
+ return "ListTags"
+ case "directconnect":
+ return "DescribeTags"
+ case "dynamodb":
+ return "ListTagsOfResource"
+ case "efs":
+ return "DescribeTags"
+ case "elasticsearchservice":
+ return "ListTags"
+ case "elb":
+ return "DescribeTags"
+ case "elbv2":
+ return "DescribeTags"
+ case "firehose":
+ return "ListTagsForDeliveryStream"
+ case "glacier":
+ return "ListTagsForVault"
+ case "glue":
+ return "GetTags"
+ case "kinesis":
+ return "ListTagsForStream"
+ case "kinesisvideo":
+ return "ListTagsForStream"
+ case "kms":
+ return "ListResourceTags"
+ case "lambda":
+ return "ListTags"
+ case "mq":
+ return "ListTags"
+ case "opsworks":
+ return "ListTags"
+ case "redshift":
+ return "DescribeTags"
+ case "resourcegroups":
+ return "GetTags"
+ case "sagemaker":
+ return "ListTags"
+ case "sqs":
+ return "ListQueueTags"
+ case "workspaces":
+ return "DescribeTags"
+ default:
+ return "ListTagsForResource"
+ }
+}
+
+// ServiceListTagsInputIdentifierField determines the service list tag identifier field.
+func ServiceListTagsInputIdentifierField(serviceName string) string {
+ switch serviceName {
+ case "cloudtrail":
+ return "ResourceIdList"
+ case "directconnect":
+ return "ResourceArns"
+ case "efs":
+ return "FileSystemId"
+ case "workspaces":
+ return "ResourceId"
+ default:
+ return ServiceTagInputIdentifierField(serviceName)
+ }
+}
+
+// ServiceListTagInputIdentifierRequiresSlice determines if the service list tagging resource field requires a slice.
+func ServiceListTagsInputIdentifierRequiresSlice(serviceName string) string {
+ switch serviceName {
+ case "cloudtrail":
+ return "yes"
+ case "directconnect":
+ return "yes"
+ case "elb":
+ return "yes"
+ case "elbv2":
+ return "yes"
+ default:
+ return ""
+ }
+}
+
+// ServiceListTagsInputResourceTypeField determines the service list tagging resource type field.
+func ServiceListTagsInputResourceTypeField(serviceName string) string {
+ switch serviceName {
+ case "route53":
+ return "ResourceType"
+ case "ssm":
+ return "ResourceType"
+ default:
+ return ""
+ }
+}
+
+// ServiceListTagsOutputTagsField determines the service list tag field.
+func ServiceListTagsOutputTagsField(serviceName string) string {
+ switch serviceName {
+ case "cloudfront":
+ return "Tags.Items"
+ case "cloudhsmv2":
+ return "TagList"
+ case "cloudtrail":
+ return "ResourceTagList[0].TagsList"
+ case "databasemigrationservice":
+ return "TagList"
+ case "directconnect":
+ return "ResourceTags[0].Tags"
+ case "docdb":
+ return "TagList"
+ case "elasticache":
+ return "TagList"
+ case "elasticbeanstalk":
+ return "ResourceTags"
+ case "elasticsearchservice":
+ return "TagList"
+ case "elb":
+ return "TagDescriptions[0].Tags"
+ case "elbv2":
+ return "TagDescriptions[0].Tags"
+ case "mediaconvert":
+ return "ResourceTags.Tags"
+ case "neptune":
+ return "TagList"
+ case "pinpoint":
+ return "TagsModel.Tags"
+ case "rds":
+ return "TagList"
+ case "route53":
+ return "ResourceTagSet.Tags"
+ case "ssm":
+ return "TagList"
+ case "waf":
+ return "TagInfoForResource.TagList"
+ case "wafregional":
+ return "TagInfoForResource.TagList"
+ case "wafv2":
+ return "TagInfoForResource.TagList"
+ case "workspaces":
+ return "TagList"
+ default:
+ return "Tags"
+ }
+}
+
+// ServiceResourceNotFoundErrorCode determines the error code of tagable resources when not found
+func ServiceResourceNotFoundErrorCode(serviceName string) string {
+ switch serviceName {
+ default:
+ return "ResourceNotFoundException"
+ }
+}
+
+// ServiceResourceNotFoundErrorCode determines the common substring of error codes of tagable resources when not found
+// This value takes precedence over ServiceResourceNotFoundErrorCode when defined for a service.
+func ServiceResourceNotFoundErrorCodeContains(serviceName string) string {
+ switch serviceName {
+ case "ec2":
+ return ".NotFound"
+ default:
+ return ""
+ }
+}
+
+// ServiceRetryCreationOnResourceNotFound determines if tag creation should be retried when the tagable resource is not found
+// This should only be used for services with eventual consistency considerations.
+func ServiceRetryCreationOnResourceNotFound(serviceName string) string {
+ switch serviceName {
+ case "ec2":
+ return "yes"
+ default:
+ return ""
+ }
+}
+
+// ServiceTagFunction determines the service tagging function.
+func ServiceTagFunction(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "AddTagsToCertificate"
+ case "acmpca":
+ return "TagCertificateAuthority"
+ case "cloudtrail":
+ return "AddTags"
+ case "cloudwatchlogs":
+ return "TagLogGroup"
+ case "databasemigrationservice":
+ return "AddTagsToResource"
+ case "datapipeline":
+ return "AddTags"
+ case "directoryservice":
+ return "AddTagsToResource"
+ case "docdb":
+ return "AddTagsToResource"
+ case "ec2":
+ return "CreateTags"
+ case "elasticache":
+ return "AddTagsToResource"
+ case "elasticbeanstalk":
+ return "UpdateTagsForResource"
+ case "elasticsearchservice":
+ return "AddTags"
+ case "elb":
+ return "AddTags"
+ case "elbv2":
+ return "AddTags"
+ case "emr":
+ return "AddTags"
+ case "firehose":
+ return "TagDeliveryStream"
+ case "glacier":
+ return "AddTagsToVault"
+ case "kinesis":
+ return "AddTagsToStream"
+ case "kinesisvideo":
+ return "TagStream"
+ case "medialive":
+ return "CreateTags"
+ case "mq":
+ return "CreateTags"
+ case "neptune":
+ return "AddTagsToResource"
+ case "rds":
+ return "AddTagsToResource"
+ case "redshift":
+ return "CreateTags"
+ case "resourcegroups":
+ return "Tag"
+ case "route53":
+ return "ChangeTagsForResource"
+ case "sagemaker":
+ return "AddTags"
+ case "sqs":
+ return "TagQueue"
+ case "ssm":
+ return "AddTagsToResource"
+ case "storagegateway":
+ return "AddTagsToResource"
+ default:
+ return "TagResource"
+ }
+}
+
+// ServiceTagFunctionBatchSize determines the batch size (if any) for tagging and untagging.
+func ServiceTagFunctionBatchSize(serviceName string) string {
+ switch serviceName {
+ case "kinesis":
+ return "10"
+ default:
+ return ""
+ }
+}
+
+// ServiceTagInputIdentifierField determines the service tag identifier field.
+func ServiceTagInputIdentifierField(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "CertificateArn"
+ case "acmpca":
+ return "CertificateAuthorityArn"
+ case "athena":
+ return "ResourceARN"
+ case "cloud9":
+ return "ResourceARN"
+ case "cloudfront":
+ return "Resource"
+ case "cloudhsmv2":
+ return "ResourceId"
+ case "cloudtrail":
+ return "ResourceId"
+ case "cloudwatch":
+ return "ResourceARN"
+ case "cloudwatchevents":
+ return "ResourceARN"
+ case "cloudwatchlogs":
+ return "LogGroupName"
+ case "codestarnotifications":
+ return "Arn"
+ case "datapipeline":
+ return "PipelineId"
+ case "dax":
+ return "ResourceName"
+ case "devicefarm":
+ return "ResourceARN"
+ case "directoryservice":
+ return "ResourceId"
+ case "docdb":
+ return "ResourceName"
+ case "ec2":
+ return "Resources"
+ case "efs":
+ return "ResourceId"
+ case "elasticache":
+ return "ResourceName"
+ case "elasticsearchservice":
+ return "ARN"
+ case "elb":
+ return "LoadBalancerNames"
+ case "elbv2":
+ return "ResourceArns"
+ case "emr":
+ return "ResourceId"
+ case "firehose":
+ return "DeliveryStreamName"
+ case "fsx":
+ return "ResourceARN"
+ case "gamelift":
+ return "ResourceARN"
+ case "glacier":
+ return "VaultName"
+ case "kinesis":
+ return "StreamName"
+ case "kinesisanalytics":
+ return "ResourceARN"
+ case "kinesisanalyticsv2":
+ return "ResourceARN"
+ case "kinesisvideo":
+ return "StreamARN"
+ case "kms":
+ return "KeyId"
+ case "lambda":
+ return "Resource"
+ case "lightsail":
+ return "ResourceName"
+ case "mediaconvert":
+ return "Arn"
+ case "mediastore":
+ return "Resource"
+ case "neptune":
+ return "ResourceName"
+ case "organizations":
+ return "ResourceId"
+ case "ram":
+ return "ResourceShareArn"
+ case "rds":
+ return "ResourceName"
+ case "redshift":
+ return "ResourceName"
+ case "resourcegroups":
+ return "Arn"
+ case "route53":
+ return "ResourceId"
+ case "secretsmanager":
+ return "SecretId"
+ case "sqs":
+ return "QueueUrl"
+ case "ssm":
+ return "ResourceId"
+ case "storagegateway":
+ return "ResourceARN"
+ case "transfer":
+ return "Arn"
+ case "waf":
+ return "ResourceARN"
+ case "wafregional":
+ return "ResourceARN"
+ case "wafv2":
+ return "ResourceARN"
+ default:
+ return "ResourceArn"
+ }
+}
+
+// ServiceTagInputIdentifierRequiresSlice determines if the service tagging resource field requires a slice.
+func ServiceTagInputIdentifierRequiresSlice(serviceName string) string {
+ switch serviceName {
+ case "ec2":
+ return "yes"
+ case "elb":
+ return "yes"
+ case "elbv2":
+ return "yes"
+ default:
+ return ""
+ }
+}
+
+// ServiceTagInputTagsField determines the service tagging tags field.
+func ServiceTagInputTagsField(serviceName string) string {
+ switch serviceName {
+ case "cloudhsmv2":
+ return "TagList"
+ case "cloudtrail":
+ return "TagsList"
+ case "elasticbeanstalk":
+ return "TagsToAdd"
+ case "elasticsearchservice":
+ return "TagList"
+ case "glue":
+ return "TagsToAdd"
+ case "pinpoint":
+ return "TagsModel"
+ case "route53":
+ return "AddTags"
+ default:
+ return "Tags"
+ }
+}
+
+// ServiceTagInputCustomValue determines any custom value for the service tagging tags field.
+func ServiceTagInputCustomValue(serviceName string) string {
+ switch serviceName {
+ case "cloudfront":
+ return "&cloudfront.Tags{Items: updatedTags.IgnoreAws().CloudfrontTags()}"
+ case "kinesis":
+ return "aws.StringMap(updatedTags.IgnoreAws().Map())"
+ case "pinpoint":
+ return "&pinpoint.TagsModel{Tags: updatedTags.IgnoreAws().PinpointTags()}"
+ default:
+ return ""
+ }
+}
+
+// ServiceTagInputResourceTypeField determines the service tagging resource type field.
+func ServiceTagInputResourceTypeField(serviceName string) string {
+ switch serviceName {
+ case "route53":
+ return "ResourceType"
+ case "ssm":
+ return "ResourceType"
+ default:
+ return ""
+ }
+}
+
func ServiceTagPackage(serviceName string) string {
switch serviceName {
case "wafregional":
@@ -333,3 +771,189 @@ func ServiceTagPackage(serviceName string) string {
return serviceName
}
}
+
+// ServiceTagKeyType determines the service tagging tag key type.
+func ServiceTagKeyType(serviceName string) string {
+ switch serviceName {
+ case "elb":
+ return "TagKeyOnly"
+ default:
+ return ""
+ }
+}
+
+// ServiceTagType determines the service tagging tag type.
+func ServiceTagType(serviceName string) string {
+ switch serviceName {
+ case "appmesh":
+ return "TagRef"
+ case "datasync":
+ return "TagListEntry"
+ case "fms":
+ return "ResourceTag"
+ case "swf":
+ return "ResourceTag"
+ default:
+ return "Tag"
+ }
+}
+
+// ServiceTagTypeKeyField determines the service tagging tag type key field.
+func ServiceTagTypeKeyField(serviceName string) string {
+ switch serviceName {
+ case "kms":
+ return "TagKey"
+ default:
+ return "Key"
+ }
+}
+
+// ServiceTagTypeValueField determines the service tagging tag type value field.
+func ServiceTagTypeValueField(serviceName string) string {
+ switch serviceName {
+ case "kms":
+ return "TagValue"
+ default:
+ return "Value"
+ }
+}
+
+// ServiceUntagFunction determines the service untagging function.
+func ServiceUntagFunction(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "RemoveTagsFromCertificate"
+ case "acmpca":
+ return "UntagCertificateAuthority"
+ case "cloudtrail":
+ return "RemoveTags"
+ case "cloudwatchlogs":
+ return "UntagLogGroup"
+ case "databasemigrationservice":
+ return "RemoveTagsFromResource"
+ case "datapipeline":
+ return "RemoveTags"
+ case "directoryservice":
+ return "RemoveTagsFromResource"
+ case "docdb":
+ return "RemoveTagsFromResource"
+ case "ec2":
+ return "DeleteTags"
+ case "elasticache":
+ return "RemoveTagsFromResource"
+ case "elasticbeanstalk":
+ return "UpdateTagsForResource"
+ case "elasticsearchservice":
+ return "RemoveTags"
+ case "elb":
+ return "RemoveTags"
+ case "elbv2":
+ return "RemoveTags"
+ case "emr":
+ return "RemoveTags"
+ case "firehose":
+ return "UntagDeliveryStream"
+ case "glacier":
+ return "RemoveTagsFromVault"
+ case "kinesis":
+ return "RemoveTagsFromStream"
+ case "kinesisvideo":
+ return "UntagStream"
+ case "medialive":
+ return "DeleteTags"
+ case "mq":
+ return "DeleteTags"
+ case "neptune":
+ return "RemoveTagsFromResource"
+ case "rds":
+ return "RemoveTagsFromResource"
+ case "redshift":
+ return "DeleteTags"
+ case "resourcegroups":
+ return "Untag"
+ case "route53":
+ return "ChangeTagsForResource"
+ case "sagemaker":
+ return "DeleteTags"
+ case "sqs":
+ return "UntagQueue"
+ case "ssm":
+ return "RemoveTagsFromResource"
+ case "storagegateway":
+ return "RemoveTagsFromResource"
+ default:
+ return "UntagResource"
+ }
+}
+
+// ServiceUntagInputRequiresTagType determines if the service untagging requires full Tag type.
+func ServiceUntagInputRequiresTagType(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "yes"
+ case "acmpca":
+ return "yes"
+ case "cloudtrail":
+ return "yes"
+ case "ec2":
+ return "yes"
+ default:
+ return ""
+ }
+}
+
+// ServiceUntagInputRequiresTagKeyType determines if a special type for the untagging function tag key field is needed.
+func ServiceUntagInputRequiresTagKeyType(serviceName string) string {
+ switch serviceName {
+ case "elb":
+ return "yes"
+ default:
+ return ""
+ }
+}
+
+// ServiceUntagInputTagsField determines the service untagging tags field.
+func ServiceUntagInputTagsField(serviceName string) string {
+ switch serviceName {
+ case "acm":
+ return "Tags"
+ case "acmpca":
+ return "Tags"
+ case "backup":
+ return "TagKeyList"
+ case "cloudhsmv2":
+ return "TagKeyList"
+ case "cloudtrail":
+ return "TagsList"
+ case "cloudwatchlogs":
+ return "Tags"
+ case "datasync":
+ return "Keys"
+ case "ec2":
+ return "Tags"
+ case "elasticbeanstalk":
+ return "TagsToRemove"
+ case "elb":
+ return "Tags"
+ case "glue":
+ return "TagsToRemove"
+ case "kinesisvideo":
+ return "TagKeyList"
+ case "resourcegroups":
+ return "Keys"
+ case "route53":
+ return "RemoveTagKeys"
+ default:
+ return "TagKeys"
+ }
+}
+
+// ServiceUntagInputCustomValue determines any custom value for the service untagging tags field.
+func ServiceUntagInputCustomValue(serviceName string) string {
+ switch serviceName {
+ case "cloudfront":
+ return "&cloudfront.TagKeys{Items: aws.StringSlice(removedTags.IgnoreAws().Keys())}"
+ default:
+ return ""
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/status.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/status.go
new file mode 100644
index 00000000000..5549c3ece82
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/status.go
@@ -0,0 +1,56 @@
+package waiter
+
+import (
+ "fmt"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+// DeploymentStatus fetches the Deployment and its Status
+func DeploymentStatus(conn *apigatewayv2.ApiGatewayV2, apiId, deploymentId string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ input := &apigatewayv2.GetDeploymentInput{
+ ApiId: aws.String(apiId),
+ DeploymentId: aws.String(deploymentId),
+ }
+
+ output, err := conn.GetDeployment(input)
+
+ if err != nil {
+ return nil, apigatewayv2.DeploymentStatusFailed, err
+ }
+
+ // Error messages can also be contained in the response with FAILED status
+
+ if aws.StringValue(output.DeploymentStatus) == apigatewayv2.DeploymentStatusFailed {
+ return output, apigatewayv2.DeploymentStatusFailed, fmt.Errorf("%s", aws.StringValue(output.DeploymentStatusMessage))
+ }
+
+ return output, aws.StringValue(output.DeploymentStatus), nil
+ }
+}
+
+// VpcLinkStatus fetches the VPC Link and its Status
+func VpcLinkStatus(conn *apigatewayv2.ApiGatewayV2, vpcLinkId string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ input := &apigatewayv2.GetVpcLinkInput{
+ VpcLinkId: aws.String(vpcLinkId),
+ }
+
+ output, err := conn.GetVpcLink(input)
+
+ if err != nil {
+ return nil, apigatewayv2.VpcLinkStatusFailed, err
+ }
+
+ // Error messages can also be contained in the response with FAILED status
+
+ if aws.StringValue(output.VpcLinkStatus) == apigatewayv2.VpcLinkStatusFailed {
+ return output, apigatewayv2.VpcLinkStatusFailed, fmt.Errorf("%s", aws.StringValue(output.VpcLinkStatusMessage))
+ }
+
+ return output, aws.StringValue(output.VpcLinkStatus), nil
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/waiter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/waiter.go
new file mode 100644
index 00000000000..9611009c81a
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter/waiter.go
@@ -0,0 +1,73 @@
+package waiter
+
+import (
+ "time"
+
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const (
+ // Maximum amount of time to wait for a Deployment to return Deployed
+ DeploymentDeployedTimeout = 5 * time.Minute
+
+ // Maximum amount of time to wait for a VPC Link to return Available
+ VpcLinkAvailableTimeout = 10 * time.Minute
+
+ // Maximum amount of time to wait for a VPC Link to return Deleted
+ VpcLinkDeletedTimeout = 10 * time.Minute
+)
+
+// DeploymentDeployed waits for a Deployment to return Deployed
+func DeploymentDeployed(conn *apigatewayv2.ApiGatewayV2, apiId, deploymentId string) (*apigatewayv2.GetDeploymentOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{apigatewayv2.DeploymentStatusPending},
+ Target: []string{apigatewayv2.DeploymentStatusDeployed},
+ Refresh: DeploymentStatus(conn, apiId, deploymentId),
+ Timeout: DeploymentDeployedTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if v, ok := outputRaw.(*apigatewayv2.GetDeploymentOutput); ok {
+ return v, err
+ }
+
+ return nil, err
+}
+
+// VpcLinkAvailable waits for a VPC Link to return Available
+func VpcLinkAvailable(conn *apigatewayv2.ApiGatewayV2, vpcLinkId string) (*apigatewayv2.GetVpcLinkOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{apigatewayv2.VpcLinkStatusPending},
+ Target: []string{apigatewayv2.VpcLinkStatusAvailable},
+ Refresh: VpcLinkStatus(conn, vpcLinkId),
+ Timeout: VpcLinkAvailableTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if v, ok := outputRaw.(*apigatewayv2.GetVpcLinkOutput); ok {
+ return v, err
+ }
+
+ return nil, err
+}
+
+// VpcLinkAvailable waits for a VPC Link to return Deleted
+func VpcLinkDeleted(conn *apigatewayv2.ApiGatewayV2, vpcLinkId string) (*apigatewayv2.GetVpcLinkOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{apigatewayv2.VpcLinkStatusDeleting},
+ Target: []string{apigatewayv2.VpcLinkStatusFailed},
+ Refresh: VpcLinkStatus(conn, vpcLinkId),
+ Timeout: VpcLinkDeletedTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if v, ok := outputRaw.(*apigatewayv2.GetVpcLinkOutput); ok {
+ return v, err
+ }
+
+ return nil, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/status.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/status.go
new file mode 100644
index 00000000000..33df4596100
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/status.go
@@ -0,0 +1,59 @@
+package waiter
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/guardduty"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const (
+ // AdminStatus NotFound
+ AdminStatusNotFound = "NotFound"
+
+ // AdminStatus Unknown
+ AdminStatusUnknown = "Unknown"
+)
+
+// AdminAccountAdminStatus fetches the AdminAccount and its AdminStatus
+func AdminAccountAdminStatus(conn *guardduty.GuardDuty, adminAccountID string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ adminAccount, err := getOrganizationAdminAccount(conn, adminAccountID)
+
+ if err != nil {
+ return nil, AdminStatusUnknown, err
+ }
+
+ if adminAccount == nil {
+ return adminAccount, AdminStatusNotFound, nil
+ }
+
+ return adminAccount, aws.StringValue(adminAccount.AdminStatus), nil
+ }
+}
+
+// TODO: Migrate to shared internal package for aws package and this package
+func getOrganizationAdminAccount(conn *guardduty.GuardDuty, adminAccountID string) (*guardduty.AdminAccount, error) {
+ input := &guardduty.ListOrganizationAdminAccountsInput{}
+ var result *guardduty.AdminAccount
+
+ err := conn.ListOrganizationAdminAccountsPages(input, func(page *guardduty.ListOrganizationAdminAccountsOutput, lastPage bool) bool {
+ if page == nil {
+ return !lastPage
+ }
+
+ for _, adminAccount := range page.AdminAccounts {
+ if adminAccount == nil {
+ continue
+ }
+
+ if aws.StringValue(adminAccount.AdminAccountId) == adminAccountID {
+ result = adminAccount
+ return false
+ }
+ }
+
+ return !lastPage
+ })
+
+ return result, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/waiter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/waiter.go
new file mode 100644
index 00000000000..7124290afda
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter/waiter.go
@@ -0,0 +1,59 @@
+package waiter
+
+import (
+ "time"
+
+ "github.com/aws/aws-sdk-go/service/guardduty"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const (
+ // Maximum amount of time to wait for an AdminAccount to return Enabled
+ AdminAccountEnabledTimeout = 5 * time.Minute
+
+ // Maximum amount of time to wait for an AdminAccount to return NotFound
+ AdminAccountNotFoundTimeout = 5 * time.Minute
+
+ // Maximum amount of time to wait for membership to propagate
+ // When removing Organization Admin Accounts, there is eventual
+ // consistency even after the account is no longer listed.
+ // Reference error message:
+ // BadRequestException: The request is rejected because the current account cannot delete detector while it has invited or associated members.
+ MembershipPropagationTimeout = 2 * time.Minute
+)
+
+// AdminAccountEnabled waits for an AdminAccount to return Enabled
+func AdminAccountEnabled(conn *guardduty.GuardDuty, adminAccountID string) (*guardduty.AdminAccount, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{AdminStatusNotFound},
+ Target: []string{guardduty.AdminStatusEnabled},
+ Refresh: AdminAccountAdminStatus(conn, adminAccountID),
+ Timeout: AdminAccountNotFoundTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if output, ok := outputRaw.(*guardduty.AdminAccount); ok {
+ return output, err
+ }
+
+ return nil, err
+}
+
+// AdminAccountNotFound waits for an AdminAccount to return NotFound
+func AdminAccountNotFound(conn *guardduty.GuardDuty, adminAccountID string) (*guardduty.AdminAccount, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{guardduty.AdminStatusDisableInProgress},
+ Target: []string{AdminStatusNotFound},
+ Refresh: AdminAccountAdminStatus(conn, adminAccountID),
+ Timeout: AdminAccountNotFoundTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if output, ok := outputRaw.(*guardduty.AdminAccount); ok {
+ return output, err
+ }
+
+ return nil, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter/waiter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter/waiter.go
new file mode 100644
index 00000000000..7706bb6f2e5
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter/waiter.go
@@ -0,0 +1,14 @@
+package waiter
+
+import (
+ "time"
+)
+
+const (
+ // Maximum amount of time to wait for IAM changes to propagate
+ // This timeout should not be increased without strong consideration
+ // as this will negatively impact user experience when configurations
+ // have incorrect references or permissions.
+ // Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
+ PropagationTimeout = 2 * time.Minute
+)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/status.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/status.go
new file mode 100644
index 00000000000..d0021759c22
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/status.go
@@ -0,0 +1,28 @@
+package waiter
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/kms"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+// KeyState fetches the Key and its State
+func KeyState(conn *kms.KMS, keyID string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ input := &kms.DescribeKeyInput{
+ KeyId: aws.String(keyID),
+ }
+
+ output, err := conn.DescribeKey(input)
+
+ if err != nil {
+ return nil, kms.KeyStateUnavailable, err
+ }
+
+ if output == nil || output.KeyMetadata == nil {
+ return output, kms.KeyStateUnavailable, nil
+ }
+
+ return output, aws.StringValue(output.KeyMetadata.KeyState), nil
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/waiter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/waiter.go
new file mode 100644
index 00000000000..741178145c5
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter/waiter.go
@@ -0,0 +1,34 @@
+package waiter
+
+import (
+ "time"
+
+ "github.com/aws/aws-sdk-go/service/kms"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const (
+ // Maximum amount of time to wait for KeyState to return PendingDeletion
+ KeyStatePendingDeletionTimeout = 20 * time.Minute
+)
+
+// KeyStatePendingDeletion waits for KeyState to return PendingDeletion
+func KeyStatePendingDeletion(conn *kms.KMS, keyID string) (*kms.DescribeKeyOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{
+ kms.KeyStateDisabled,
+ kms.KeyStateEnabled,
+ },
+ Target: []string{kms.KeyStatePendingDeletion},
+ Refresh: KeyState(conn, keyID),
+ Timeout: KeyStatePendingDeletionTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if output, ok := outputRaw.(*kms.DescribeKeyOutput); ok {
+ return output, err
+ }
+
+ return nil, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/status.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/status.go
new file mode 100644
index 00000000000..be6d4cfcad6
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/status.go
@@ -0,0 +1,35 @@
+package waiter
+
+import (
+ "fmt"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/servicediscovery"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+// OperationStatus fetches the Operation and its Status
+func OperationStatus(conn *servicediscovery.ServiceDiscovery, operationID string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ input := &servicediscovery.GetOperationInput{
+ OperationId: aws.String(operationID),
+ }
+
+ output, err := conn.GetOperation(input)
+
+ if err != nil {
+ return nil, servicediscovery.OperationStatusFail, err
+ }
+
+ // Error messages can also be contained in the response with FAIL status
+ // "ErrorCode":"CANNOT_CREATE_HOSTED_ZONE",
+ // "ErrorMessage":"The VPC that you chose, vpc-xxx in region xxx, is already associated with another private hosted zone that has an overlapping name space, xxx.. (Service: AmazonRoute53; Status Code: 400; Error Code: ConflictingDomainExists; Request ID: xxx)"
+ // "Status":"FAIL",
+
+ if aws.StringValue(output.Operation.Status) == servicediscovery.OperationStatusFail {
+ return output, servicediscovery.OperationStatusFail, fmt.Errorf("%s: %s", aws.StringValue(output.Operation.ErrorCode), aws.StringValue(output.Operation.ErrorMessage))
+ }
+
+ return output, aws.StringValue(output.Operation.Status), nil
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/waiter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/waiter.go
new file mode 100644
index 00000000000..ccba30a9bdf
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter/waiter.go
@@ -0,0 +1,31 @@
+package waiter
+
+import (
+ "time"
+
+ "github.com/aws/aws-sdk-go/service/servicediscovery"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+)
+
+const (
+ // Maximum amount of time to wait for an Operation to return Success
+ OperationSuccessTimeout = 5 * time.Minute
+)
+
+// OperationSuccess waits for an Operation to return Success
+func OperationSuccess(conn *servicediscovery.ServiceDiscovery, operationID string) (*servicediscovery.GetOperationOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
+ Target: []string{servicediscovery.OperationStatusSuccess},
+ Refresh: OperationStatus(conn, operationID),
+ Timeout: OperationSuccessTimeout,
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ if output, ok := outputRaw.(*servicediscovery.GetOperationOutput); ok {
+ return output, err
+ }
+
+ return nil, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/opsworks_layers.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/opsworks_layers.go
index ee7dda8ef44..f4031dc3c66 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/opsworks_layers.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/opsworks_layers.go
@@ -248,7 +248,9 @@ func (lt *opsworksLayerType) SchemaResource() *schema.Resource {
return &schema.Resource{
Read: func(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
- return lt.Read(d, client)
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ return lt.Read(d, client, ignoreTagsConfig)
},
Create: func(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
@@ -256,7 +258,9 @@ func (lt *opsworksLayerType) SchemaResource() *schema.Resource {
},
Update: func(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
- return lt.Update(d, client)
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ return lt.Update(d, client, ignoreTagsConfig)
},
Delete: func(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
@@ -270,7 +274,7 @@ func (lt *opsworksLayerType) SchemaResource() *schema.Resource {
}
}
-func (lt *opsworksLayerType) Read(d *schema.ResourceData, client *opsworks.OpsWorks) error {
+func (lt *opsworksLayerType) Read(d *schema.ResourceData, client *opsworks.OpsWorks, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
req := &opsworks.DescribeLayersInput{
LayerIds: []*string{
@@ -349,7 +353,7 @@ func (lt *opsworksLayerType) Read(d *schema.ResourceData, client *opsworks.OpsWo
return fmt.Errorf("error listing tags for Opsworks Layer (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -357,6 +361,7 @@ func (lt *opsworksLayerType) Read(d *schema.ResourceData, client *opsworks.OpsWo
}
func (lt *opsworksLayerType) Create(d *schema.ResourceData, client *opsworks.OpsWorks, meta interface{}) error {
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &opsworks.CreateLayerInput{
AutoAssignElasticIps: aws.Bool(d.Get("auto_assign_elastic_ips").(bool)),
@@ -420,10 +425,10 @@ func (lt *opsworksLayerType) Create(d *schema.ResourceData, client *opsworks.Ops
}
}
- return lt.Read(d, client)
+ return lt.Read(d, client, ignoreTagsConfig)
}
-func (lt *opsworksLayerType) Update(d *schema.ResourceData, client *opsworks.OpsWorks) error {
+func (lt *opsworksLayerType) Update(d *schema.ResourceData, client *opsworks.OpsWorks, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
req := &opsworks.UpdateLayerInput{
LayerId: aws.String(d.Id()),
@@ -495,7 +500,7 @@ func (lt *opsworksLayerType) Update(d *schema.ResourceData, client *opsworks.Ops
}
}
- return lt.Read(d, client)
+ return lt.Read(d, client, ignoreTagsConfig)
}
func (lt *opsworksLayerType) Delete(d *schema.ResourceData, client *opsworks.OpsWorks) error {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/provider.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/provider.go
index 3758c3ae6e2..b0f5d3b72ad 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/provider.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/provider.go
@@ -7,6 +7,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
homedir "github.com/mitchellh/go-homedir"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
// Provider returns a terraform.ResourceProvider.
@@ -90,20 +91,29 @@ func Provider() terraform.ResourceProvider {
"endpoints": endpointsSchema(),
- "ignore_tag_prefixes": {
- Type: schema.TypeSet,
- Optional: true,
- Elem: &schema.Schema{Type: schema.TypeString},
- Set: schema.HashString,
- Description: "Resource tag key prefixes to ignore across all resources.",
- },
-
"ignore_tags": {
- Type: schema.TypeSet,
+ Type: schema.TypeList,
Optional: true,
- Elem: &schema.Schema{Type: schema.TypeString},
- Set: schema.HashString,
- Description: "Resource tag keys to ignore across all resources.",
+ MaxItems: 1,
+ Description: "Configuration block with settings to ignore resource tags across all resources.",
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "keys": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ Description: "Resource tag keys to ignore across all resources.",
+ },
+ "key_prefixes": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ Description: "Resource tag key prefixes to ignore across all resources.",
+ },
+ },
+ },
},
"insecure": {
@@ -170,6 +180,9 @@ func Provider() terraform.ResourceProvider {
"aws_autoscaling_groups": dataSourceAwsAutoscalingGroups(),
"aws_availability_zone": dataSourceAwsAvailabilityZone(),
"aws_availability_zones": dataSourceAwsAvailabilityZones(),
+ "aws_backup_plan": dataSourceAwsBackupPlan(),
+ "aws_backup_selection": dataSourceAwsBackupSelection(),
+ "aws_backup_vault": dataSourceAwsBackupVault(),
"aws_batch_compute_environment": dataSourceAwsBatchComputeEnvironment(),
"aws_batch_job_queue": dataSourceAwsBatchJobQueue(),
"aws_billing_service_account": dataSourceAwsBillingServiceAccount(),
@@ -177,6 +190,7 @@ func Provider() terraform.ResourceProvider {
"aws_canonical_user_id": dataSourceAwsCanonicalUserId(),
"aws_cloudformation_export": dataSourceAwsCloudFormationExport(),
"aws_cloudformation_stack": dataSourceAwsCloudFormationStack(),
+ "aws_cloudfront_distribution": dataSourceAwsCloudFrontDistribution(),
"aws_cloudhsm_v2_cluster": dataSourceCloudHsmV2Cluster(),
"aws_cloudtrail_service_account": dataSourceAwsCloudTrailServiceAccount(),
"aws_cloudwatch_log_group": dataSourceAwsCloudwatchLogGroup(),
@@ -199,6 +213,7 @@ func Provider() terraform.ResourceProvider {
"aws_ec2_instance_type_offerings": dataSourceAwsEc2InstanceTypeOfferings(),
"aws_ec2_transit_gateway": dataSourceAwsEc2TransitGateway(),
"aws_ec2_transit_gateway_dx_gateway_attachment": dataSourceAwsEc2TransitGatewayDxGatewayAttachment(),
+ "aws_ec2_transit_gateway_peering_attachment": dataSourceAwsEc2TransitGatewayPeeringAttachment(),
"aws_ec2_transit_gateway_route_table": dataSourceAwsEc2TransitGatewayRouteTable(),
"aws_ec2_transit_gateway_vpc_attachment": dataSourceAwsEc2TransitGatewayVpcAttachment(),
"aws_ec2_transit_gateway_vpn_attachment": dataSourceAwsEc2TransitGatewayVpnAttachment(),
@@ -269,6 +284,7 @@ func Provider() terraform.ResourceProvider {
"aws_redshift_cluster": dataSourceAwsRedshiftCluster(),
"aws_redshift_service_account": dataSourceAwsRedshiftServiceAccount(),
"aws_region": dataSourceAwsRegion(),
+ "aws_regions": dataSourceAwsRegions(),
"aws_route": dataSourceAwsRoute(),
"aws_route_table": dataSourceAwsRouteTable(),
"aws_route_tables": dataSourceAwsRouteTables(),
@@ -355,6 +371,17 @@ func Provider() terraform.ResourceProvider {
"aws_api_gateway_usage_plan_key": resourceAwsApiGatewayUsagePlanKey(),
"aws_api_gateway_vpc_link": resourceAwsApiGatewayVpcLink(),
"aws_apigatewayv2_api": resourceAwsApiGatewayV2Api(),
+ "aws_apigatewayv2_api_mapping": resourceAwsApiGatewayV2ApiMapping(),
+ "aws_apigatewayv2_authorizer": resourceAwsApiGatewayV2Authorizer(),
+ "aws_apigatewayv2_deployment": resourceAwsApiGatewayV2Deployment(),
+ "aws_apigatewayv2_domain_name": resourceAwsApiGatewayV2DomainName(),
+ "aws_apigatewayv2_integration": resourceAwsApiGatewayV2Integration(),
+ "aws_apigatewayv2_integration_response": resourceAwsApiGatewayV2IntegrationResponse(),
+ "aws_apigatewayv2_model": resourceAwsApiGatewayV2Model(),
+ "aws_apigatewayv2_route": resourceAwsApiGatewayV2Route(),
+ "aws_apigatewayv2_route_response": resourceAwsApiGatewayV2RouteResponse(),
+ "aws_apigatewayv2_stage": resourceAwsApiGatewayV2Stage(),
+ "aws_apigatewayv2_vpc_link": resourceAwsApiGatewayV2VpcLink(),
"aws_app_cookie_stickiness_policy": resourceAwsAppCookieStickinessPolicy(),
"aws_appautoscaling_target": resourceAwsAppautoscalingTarget(),
"aws_appautoscaling_policy": resourceAwsAppautoscalingPolicy(),
@@ -459,6 +486,7 @@ func Provider() terraform.ResourceProvider {
"aws_dlm_lifecycle_policy": resourceAwsDlmLifecyclePolicy(),
"aws_dms_certificate": resourceAwsDmsCertificate(),
"aws_dms_endpoint": resourceAwsDmsEndpoint(),
+ "aws_dms_event_subscription": resourceAwsDmsEventSubscription(),
"aws_dms_replication_instance": resourceAwsDmsReplicationInstance(),
"aws_dms_replication_subnet_group": resourceAwsDmsReplicationSubnetGroup(),
"aws_dms_replication_task": resourceAwsDmsReplicationTask(),
@@ -491,6 +519,7 @@ func Provider() terraform.ResourceProvider {
"aws_ebs_snapshot": resourceAwsEbsSnapshot(),
"aws_ebs_snapshot_copy": resourceAwsEbsSnapshotCopy(),
"aws_ebs_volume": resourceAwsEbsVolume(),
+ "aws_ec2_availability_zone_group": resourceAwsEc2AvailabilityZoneGroup(),
"aws_ec2_capacity_reservation": resourceAwsEc2CapacityReservation(),
"aws_ec2_client_vpn_endpoint": resourceAwsEc2ClientVpnEndpoint(),
"aws_ec2_client_vpn_network_association": resourceAwsEc2ClientVpnNetworkAssociation(),
@@ -500,6 +529,7 @@ func Provider() terraform.ResourceProvider {
"aws_ec2_traffic_mirror_target": resourceAwsEc2TrafficMirrorTarget(),
"aws_ec2_traffic_mirror_session": resourceAwsEc2TrafficMirrorSession(),
"aws_ec2_transit_gateway": resourceAwsEc2TransitGateway(),
+ "aws_ec2_transit_gateway_peering_attachment": resourceAwsEc2TransitGatewayPeeringAttachment(),
"aws_ec2_transit_gateway_route": resourceAwsEc2TransitGatewayRoute(),
"aws_ec2_transit_gateway_route_table": resourceAwsEc2TransitGatewayRouteTable(),
"aws_ec2_transit_gateway_route_table_association": resourceAwsEc2TransitGatewayRouteTableAssociation(),
@@ -565,6 +595,8 @@ func Provider() terraform.ResourceProvider {
"aws_guardduty_invite_accepter": resourceAwsGuardDutyInviteAccepter(),
"aws_guardduty_ipset": resourceAwsGuardDutyIpset(),
"aws_guardduty_member": resourceAwsGuardDutyMember(),
+ "aws_guardduty_organization_admin_account": resourceAwsGuardDutyOrganizationAdminAccount(),
+ "aws_guardduty_organization_configuration": resourceAwsGuardDutyOrganizationConfiguration(),
"aws_guardduty_threatintelset": resourceAwsGuardDutyThreatintelset(),
"aws_iam_access_key": resourceAwsIamAccessKey(),
"aws_iam_account_alias": resourceAwsIamAccountAlias(),
@@ -1067,6 +1099,7 @@ func init() {
"redshift",
"resourcegroups",
"route53",
+ "route53domains",
"route53resolver",
"s3",
"s3control",
@@ -1107,6 +1140,7 @@ func providerConfigure(d *schema.ResourceData, terraformVersion string) (interfa
Region: d.Get("region").(string),
Endpoints: make(map[string]string),
MaxRetries: d.Get("max_retries").(int),
+ IgnoreTagsConfig: expandProviderIgnoreTags(d.Get("ignore_tags").([]interface{})),
Insecure: d.Get("insecure").(bool),
SkipCredsValidation: d.Get("skip_credentials_validation").(bool),
SkipGetEC2Platforms: d.Get("skip_get_ec2_platforms").(bool),
@@ -1150,18 +1184,6 @@ func providerConfigure(d *schema.ResourceData, terraformVersion string) (interfa
}
}
- if v, ok := d.GetOk("ignore_tag_prefixes"); ok {
- for _, ignoreTagPrefixRaw := range v.(*schema.Set).List() {
- config.IgnoreTagPrefixes = append(config.IgnoreTagPrefixes, ignoreTagPrefixRaw.(string))
- }
- }
-
- if v, ok := d.GetOk("ignore_tags"); ok {
- for _, ignoreTagRaw := range v.(*schema.Set).List() {
- config.IgnoreTags = append(config.IgnoreTags, ignoreTagRaw.(string))
- }
- }
-
if v, ok := d.GetOk("allowed_account_ids"); ok {
for _, accountIDRaw := range v.(*schema.Set).List() {
config.AllowedAccountIds = append(config.AllowedAccountIds, accountIDRaw.(string))
@@ -1239,3 +1261,22 @@ func endpointsSchema() *schema.Schema {
},
}
}
+
+func expandProviderIgnoreTags(l []interface{}) *keyvaluetags.IgnoreConfig {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ ignoreConfig := &keyvaluetags.IgnoreConfig{}
+ m := l[0].(map[string]interface{})
+
+ if v, ok := m["keys"].(*schema.Set); ok {
+ ignoreConfig.Keys = keyvaluetags.New(v.List())
+ }
+
+ if v, ok := m["key_prefixes"].(*schema.Set); ok {
+ ignoreConfig.KeyPrefixes = keyvaluetags.New(v.List())
+ }
+
+ return ignoreConfig
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_accessanalyzer_analyzer.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_accessanalyzer_analyzer.go
index 8e656bebcd5..e28b9cfef05 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_accessanalyzer_analyzer.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_accessanalyzer_analyzer.go
@@ -70,6 +70,7 @@ func resourceAwsAccessAnalyzerAnalyzerCreate(d *schema.ResourceData, meta interf
func resourceAwsAccessAnalyzerAnalyzerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).accessanalyzerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &accessanalyzer.GetAnalyzerInput{
AnalyzerName: aws.String(d.Id()),
@@ -94,7 +95,7 @@ func resourceAwsAccessAnalyzerAnalyzerRead(d *schema.ResourceData, meta interfac
d.Set("analyzer_name", output.Analyzer.Name)
d.Set("arn", output.Analyzer.Arn)
- if err := d.Set("tags", keyvaluetags.AccessanalyzerKeyValueTags(output.Analyzer.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.AccessanalyzerKeyValueTags(output.Analyzer.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acm_certificate.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acm_certificate.go
index 7aa96427671..dcc95600b4f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acm_certificate.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acm_certificate.go
@@ -221,6 +221,7 @@ func resourceAwsAcmCertificateCreateRequested(d *schema.ResourceData, meta inter
func resourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) error {
acmconn := meta.(*AWSClient).acmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &acm.DescribeCertificateInput{
CertificateArn: aws.String(d.Id()),
@@ -270,7 +271,7 @@ func resourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) err
return resource.NonRetryableError(fmt.Errorf("error listing tags for ACM Certificate (%s): %s", d.Id(), err))
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return resource.NonRetryableError(fmt.Errorf("error setting tags: %s", err))
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acmpca_certificate_authority.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acmpca_certificate_authority.go
index 29e02768d91..138e8232d48 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acmpca_certificate_authority.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_acmpca_certificate_authority.go
@@ -328,6 +328,7 @@ func resourceAwsAcmpcaCertificateAuthorityCreate(d *schema.ResourceData, meta in
func resourceAwsAcmpcaCertificateAuthorityRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).acmpcaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeCertificateAuthorityInput := &acmpca.DescribeCertificateAuthorityInput{
CertificateAuthorityArn: aws.String(d.Id()),
@@ -426,7 +427,7 @@ func resourceAwsAcmpcaCertificateAuthorityRead(d *schema.ResourceData, meta inte
return fmt.Errorf("error listing tags for ACMPCA Certificate Authority (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami.go
index 81bd1322abb..9e25b346d2e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami.go
@@ -171,7 +171,6 @@ func resourceAwsAmi() *schema.Resource {
"manage_ebs_snapshots": {
Type: schema.TypeBool,
Computed: true,
- ForceNew: true,
},
"name": {
Type: schema.TypeString,
@@ -280,7 +279,7 @@ func resourceAwsAmiCreate(d *schema.ResourceData, meta interface{}) error {
d.SetId(id)
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(client, id, nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(client, id, v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
}
@@ -295,6 +294,8 @@ func resourceAwsAmiCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
id := d.Id()
req := &ec2.DescribeImagesInput{
@@ -401,7 +402,7 @@ func resourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
d.Set("ebs_block_device", ebsBlockDevs)
d.Set("ephemeral_block_device", ephemeralBlockDevs)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(image.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(image.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -411,8 +412,6 @@ func resourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsAmiUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).ec2conn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -431,11 +430,8 @@ func resourceAwsAmiUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return err
}
- d.SetPartial("description")
}
- d.Partial(false)
-
return resourceAwsAmiRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_copy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_copy.go
index 238bbfe1d91..c41c864f1d8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_copy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_copy.go
@@ -145,7 +145,6 @@ func resourceAwsAmiCopy() *schema.Resource {
"manage_ebs_snapshots": {
Type: schema.TypeBool,
Computed: true,
- ForceNew: true,
},
"name": {
Type: schema.TypeString,
@@ -215,13 +214,10 @@ func resourceAwsAmiCopyCreate(d *schema.ResourceData, meta interface{}) error {
id := *res.ImageId
d.SetId(id)
- d.Partial(true) // make sure we record the id even if the rest of this gets interrupted
d.Set("manage_ebs_snapshots", true)
- d.SetPartial("manage_ebs_snapshots")
- d.Partial(false)
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(client, id, nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(client, id, v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_from_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_from_instance.go
index fd9d4013426..5a4682dfabe 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_from_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_from_instance.go
@@ -132,7 +132,6 @@ func resourceAwsAmiFromInstance() *schema.Resource {
"manage_ebs_snapshots": {
Type: schema.TypeBool,
Computed: true,
- ForceNew: true,
},
"name": {
Type: schema.TypeString,
@@ -197,13 +196,10 @@ func resourceAwsAmiFromInstanceCreate(d *schema.ResourceData, meta interface{})
id := *res.ImageId
d.SetId(id)
- d.Partial(true) // make sure we record the id even if the rest of this gets interrupted
d.Set("manage_ebs_snapshots", true)
- d.SetPartial("manage_ebs_snapshots")
- d.Partial(false)
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(client, id, nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(client, id, v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_launch_permission.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_launch_permission.go
index aa5fa564e10..af47e3dea0a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_launch_permission.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ami_launch_permission.go
@@ -13,7 +13,6 @@ import (
func resourceAwsAmiLaunchPermission() *schema.Resource {
return &schema.Resource{
- Exists: resourceAwsAmiLaunchPermissionExists,
Create: resourceAwsAmiLaunchPermissionCreate,
Read: resourceAwsAmiLaunchPermissionRead,
Delete: resourceAwsAmiLaunchPermissionDelete,
@@ -47,14 +46,6 @@ func resourceAwsAmiLaunchPermission() *schema.Resource {
}
}
-func resourceAwsAmiLaunchPermissionExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).ec2conn
-
- image_id := d.Get("image_id").(string)
- account_id := d.Get("account_id").(string)
- return hasLaunchPermission(conn, image_id, account_id)
-}
-
func resourceAwsAmiLaunchPermissionCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
@@ -71,7 +62,7 @@ func resourceAwsAmiLaunchPermissionCreate(d *schema.ResourceData, meta interface
},
})
if err != nil {
- return fmt.Errorf("error creating ami launch permission: %s", err)
+ return fmt.Errorf("error creating AMI launch permission: %w", err)
}
d.SetId(fmt.Sprintf("%s-%s", image_id, account_id))
@@ -79,6 +70,18 @@ func resourceAwsAmiLaunchPermissionCreate(d *schema.ResourceData, meta interface
}
func resourceAwsAmiLaunchPermissionRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ exists, err := hasLaunchPermission(conn, d.Get("image_id").(string), d.Get("account_id").(string))
+ if err != nil {
+ return fmt.Errorf("error reading AMI launch permission (%s): %w", d.Id(), err)
+ }
+ if !exists {
+ log.Printf("[WARN] AMI launch permission (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
return nil
}
@@ -98,7 +101,7 @@ func resourceAwsAmiLaunchPermissionDelete(d *schema.ResourceData, meta interface
},
})
if err != nil {
- return fmt.Errorf("error removing ami launch permission: %s", err)
+ return fmt.Errorf("error deleting AMI launch permission (%s): %w", d.Id(), err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_api_key.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_api_key.go
index 6a32367c3b4..eba07fa80f3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_api_key.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_api_key.go
@@ -110,6 +110,8 @@ func resourceAwsApiGatewayApiKeyCreate(d *schema.ResourceData, meta interface{})
func resourceAwsApiGatewayApiKeyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading API Gateway API Key: %s", d.Id())
apiKey, err := conn.GetApiKey(&apigateway.GetApiKeyInput{
@@ -126,7 +128,7 @@ func resourceAwsApiGatewayApiKeyRead(d *schema.ResourceData, meta interface{}) e
return err
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(apiKey.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(apiKey.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_client_certificate.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_client_certificate.go
index 7d58e2640aa..f0c4f63edcc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_client_certificate.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_client_certificate.go
@@ -71,6 +71,7 @@ func resourceAwsApiGatewayClientCertificateCreate(d *schema.ResourceData, meta i
func resourceAwsApiGatewayClientCertificateRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := apigateway.GetClientCertificateInput{
ClientCertificateId: aws.String(d.Id()),
@@ -86,7 +87,7 @@ func resourceAwsApiGatewayClientCertificateRead(d *schema.ResourceData, meta int
}
log.Printf("[DEBUG] Received API Gateway Client Certificate: %s", out)
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(out.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(out.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_domain_name.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_domain_name.go
index e6fb810452a..81ecdcf40e2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_domain_name.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_domain_name.go
@@ -210,6 +210,8 @@ func resourceAwsApiGatewayDomainNameCreate(d *schema.ResourceData, meta interfac
func resourceAwsApiGatewayDomainNameRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading API Gateway Domain Name %s", d.Id())
domainName, err := conn.GetDomainName(&apigateway.GetDomainNameInput{
@@ -225,7 +227,7 @@ func resourceAwsApiGatewayDomainNameRead(d *schema.ResourceData, meta interface{
return err
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(domainName.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(domainName.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_rest_api.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_rest_api.go
index 1b1f6d729ad..d8f74e8ac6a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_rest_api.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_rest_api.go
@@ -49,7 +49,7 @@ func resourceAwsApiGatewayRestApi() *schema.Resource {
"policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
@@ -191,6 +191,8 @@ func resourceAwsApiGatewayRestApiCreate(d *schema.ResourceData, meta interface{}
func resourceAwsApiGatewayRestApiRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading API Gateway %s", d.Id())
api, err := conn.GetRestApi(&apigateway.GetRestApiInput{
@@ -265,7 +267,7 @@ func resourceAwsApiGatewayRestApiRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error setting endpoint_configuration: %s", err)
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(api.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(api.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -483,7 +485,7 @@ func flattenApiGatewayEndpointConfiguration(endpointConfiguration *apigateway.En
}
if len(endpointConfiguration.VpcEndpointIds) > 0 {
- m["vpc_endpoint_ids"] = flattenStringSet(endpointConfiguration.VpcEndpointIds)
+ m["vpc_endpoint_ids"] = aws.StringValueSlice(endpointConfiguration.VpcEndpointIds)
}
return []interface{}{m}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_stage.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_stage.go
index c3dbf58b23a..6131a706f78 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_stage.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_stage.go
@@ -8,7 +8,6 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/arn"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/apigateway"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -131,8 +130,6 @@ func resourceAwsApiGatewayStage() *schema.Resource {
func resourceAwsApiGatewayStageCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
- d.Partial(true)
-
input := apigateway.CreateStageInput{
RestApiId: aws.String(d.Get("rest_api_id").(string)),
StageName: aws.String(d.Get("stage_name").(string)),
@@ -175,13 +172,6 @@ func resourceAwsApiGatewayStageCreate(d *schema.ResourceData, meta interface{})
d.SetId(fmt.Sprintf("ags-%s-%s", d.Get("rest_api_id").(string), d.Get("stage_name").(string)))
- d.SetPartial("rest_api_id")
- d.SetPartial("stage_name")
- d.SetPartial("deployment_id")
- d.SetPartial("description")
- d.SetPartial("variables")
- d.SetPartial("xray_tracing_enabled")
-
if waitForCache && *out.CacheClusterStatus != apigateway.CacheClusterStatusNotAvailable {
stateConf := &resource.StateChangeConf{
Pending: []string{
@@ -202,10 +192,6 @@ func resourceAwsApiGatewayStageCreate(d *schema.ResourceData, meta interface{})
}
}
- d.SetPartial("cache_cluster_enabled")
- d.SetPartial("cache_cluster_size")
- d.Partial(false)
-
if _, ok := d.GetOk("client_certificate_id"); ok {
return resourceAwsApiGatewayStageUpdate(d, meta)
}
@@ -217,6 +203,7 @@ func resourceAwsApiGatewayStageCreate(d *schema.ResourceData, meta interface{})
func resourceAwsApiGatewayStageRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading API Gateway Stage %s", d.Id())
restApiId := d.Get("rest_api_id").(string)
@@ -226,14 +213,17 @@ func resourceAwsApiGatewayStageRead(d *schema.ResourceData, meta interface{}) er
StageName: aws.String(stageName),
}
stage, err := conn.GetStage(&input)
+
+ if isAWSErr(err, apigateway.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway Stage (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == apigateway.ErrCodeNotFoundException {
- log.Printf("[WARN] API Gateway Stage (%s) not found, removing from state", d.Id())
- d.SetId("")
- return nil
- }
- return err
+ return fmt.Errorf("error getting API Gateway REST API (%s) Stage (%s): %w", restApiId, stageName, err)
}
+
log.Printf("[DEBUG] Received API Gateway Stage: %s", stage)
if err := d.Set("access_log_settings", flattenApiGatewayStageAccessLogSettings(stage.AccessLogSettings)); err != nil {
@@ -255,7 +245,7 @@ func resourceAwsApiGatewayStageRead(d *schema.ResourceData, meta interface{}) er
d.Set("documentation_version", stage.DocumentationVersion)
d.Set("xray_tracing_enabled", stage.TracingEnabled)
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(stage.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(stage.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -288,8 +278,6 @@ func resourceAwsApiGatewayStageRead(d *schema.ResourceData, meta interface{}) er
func resourceAwsApiGatewayStageUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
- d.Partial(true)
-
stageArn := arn.ARN{
Partition: meta.(*AWSClient).partition,
Region: meta.(*AWSClient).region,
@@ -395,12 +383,6 @@ func resourceAwsApiGatewayStageUpdate(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Updating API Gateway Stage failed: %s", err)
}
- d.SetPartial("client_certificate_id")
- d.SetPartial("deployment_id")
- d.SetPartial("description")
- d.SetPartial("xray_tracing_enabled")
- d.SetPartial("variables")
-
if waitForCache && *out.CacheClusterStatus != apigateway.CacheClusterStatusNotAvailable {
stateConf := &resource.StateChangeConf{
Pending: []string{
@@ -425,10 +407,6 @@ func resourceAwsApiGatewayStageUpdate(d *schema.ResourceData, meta interface{})
}
}
- d.SetPartial("cache_cluster_enabled")
- d.SetPartial("cache_cluster_size")
- d.Partial(false)
-
return resourceAwsApiGatewayStageRead(d, meta)
}
@@ -487,8 +465,13 @@ func resourceAwsApiGatewayStageDelete(d *schema.ResourceData, meta interface{})
StageName: aws.String(d.Get("stage_name").(string)),
}
_, err := conn.DeleteStage(&input)
+
+ if isAWSErr(err, apigateway.ErrCodeNotFoundException, "") {
+ return nil
+ }
+
if err != nil {
- return fmt.Errorf("Deleting API Gateway Stage failed: %s", err)
+ return fmt.Errorf("error deleting API Gateway REST API (%s) Stage (%s): %w", d.Get("rest_api_id").(string), d.Get("stage_name").(string), err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_usage_plan.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_usage_plan.go
index 914f4393431..a3397dc5886 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_usage_plan.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_usage_plan.go
@@ -240,6 +240,8 @@ func resourceAwsApiGatewayUsagePlanCreate(d *schema.ResourceData, meta interface
func resourceAwsApiGatewayUsagePlanRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading API Gateway Usage Plan: %s", d.Id())
up, err := conn.GetUsagePlan(&apigateway.GetUsagePlanInput{
@@ -254,7 +256,7 @@ func resourceAwsApiGatewayUsagePlanRead(d *schema.ResourceData, meta interface{}
return err
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(up.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(up.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_vpc_link.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_vpc_link.go
index 2bb3828f51c..473f59d7828 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_vpc_link.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_api_gateway_vpc_link.go
@@ -87,6 +87,7 @@ func resourceAwsApiGatewayVpcLinkCreate(d *schema.ResourceData, meta interface{}
func resourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &apigateway.GetVpcLinkInput{
VpcLinkId: aws.String(d.Id()),
@@ -102,7 +103,7 @@ func resourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{})
return err
}
- if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(resp.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ApigatewayKeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api.go
index 995997f9036..67049184e0f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api.go
@@ -40,6 +40,53 @@ func resourceAwsApiGatewayV2Api() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
+ "cors_configuration": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "allow_credentials": {
+ Type: schema.TypeBool,
+ Optional: true,
+ },
+ "allow_headers": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: hashStringCaseInsensitive,
+ },
+ "allow_methods": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: hashStringCaseInsensitive,
+ },
+ "allow_origins": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: hashStringCaseInsensitive,
+ },
+ "expose_headers": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: hashStringCaseInsensitive,
+ },
+ "max_age": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "credentials_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validateArn,
+ },
"description": {
Type: schema.TypeString,
Optional: true,
@@ -63,12 +110,22 @@ func resourceAwsApiGatewayV2Api() *schema.Resource {
apigatewayv2.ProtocolTypeWebsocket,
}, false),
},
+ "route_key": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ },
"route_selection_expression": {
Type: schema.TypeString,
Optional: true,
Default: "$request.method $request.path",
},
"tags": tagsSchema(),
+ "target": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ },
"version": {
Type: schema.TypeString,
Optional: true,
@@ -90,12 +147,24 @@ func resourceAwsApiGatewayV2ApiCreate(d *schema.ResourceData, meta interface{})
if v, ok := d.GetOk("api_key_selection_expression"); ok {
req.ApiKeySelectionExpression = aws.String(v.(string))
}
+ if v, ok := d.GetOk("cors_configuration"); ok {
+ req.CorsConfiguration = expandApiGateway2CorsConfiguration(v.([]interface{}))
+ }
+ if v, ok := d.GetOk("credentials_arn"); ok {
+ req.CredentialsArn = aws.String(v.(string))
+ }
if v, ok := d.GetOk("description"); ok {
req.Description = aws.String(v.(string))
}
+ if v, ok := d.GetOk("route_key"); ok {
+ req.RouteKey = aws.String(v.(string))
+ }
if v, ok := d.GetOk("route_selection_expression"); ok {
req.RouteSelectionExpression = aws.String(v.(string))
}
+ if v, ok := d.GetOk("target"); ok {
+ req.Target = aws.String(v.(string))
+ }
if v, ok := d.GetOk("version"); ok {
req.Version = aws.String(v.(string))
}
@@ -113,6 +182,7 @@ func resourceAwsApiGatewayV2ApiCreate(d *schema.ResourceData, meta interface{})
func resourceAwsApiGatewayV2ApiRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.GetApi(&apigatewayv2.GetApiInput{
ApiId: aws.String(d.Id()),
@@ -135,6 +205,9 @@ func resourceAwsApiGatewayV2ApiRead(d *schema.ResourceData, meta interface{}) er
Resource: fmt.Sprintf("/apis/%s", d.Id()),
}.String()
d.Set("arn", apiArn)
+ if err := d.Set("cors_configuration", flattenApiGateway2CorsConfiguration(resp.CorsConfiguration)); err != nil {
+ return fmt.Errorf("error setting cors_configuration: %s", err)
+ }
d.Set("description", resp.Description)
executionArn := arn.ARN{
Partition: meta.(*AWSClient).partition,
@@ -147,7 +220,7 @@ func resourceAwsApiGatewayV2ApiRead(d *schema.ResourceData, meta interface{}) er
d.Set("name", resp.Name)
d.Set("protocol_type", resp.ProtocolType)
d.Set("route_selection_expression", resp.RouteSelectionExpression)
- if err := d.Set("tags", keyvaluetags.Apigatewayv2KeyValueTags(resp.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Apigatewayv2KeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
d.Set("version", resp.Version)
@@ -158,7 +231,24 @@ func resourceAwsApiGatewayV2ApiRead(d *schema.ResourceData, meta interface{}) er
func resourceAwsApiGatewayV2ApiUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).apigatewayv2conn
- if d.HasChanges("api_key_selection_expression", "description", "name", "route_selection_expression", "version") {
+ deleteCorsConfiguration := false
+ if d.HasChange("cors_configuration") {
+ v := d.Get("cors_configuration")
+ if len(v.([]interface{})) == 0 {
+ deleteCorsConfiguration = true
+
+ log.Printf("[DEBUG] Deleting CORS configuration for API Gateway v2 API (%s)", d.Id())
+ _, err := conn.DeleteCorsConfiguration(&apigatewayv2.DeleteCorsConfigurationInput{
+ ApiId: aws.String(d.Id()),
+ })
+ if err != nil {
+ return fmt.Errorf("error deleting CORS configuration for API Gateway v2 API (%s): %s", d.Id(), err)
+ }
+ }
+ }
+
+ if d.HasChanges("api_key_selection_expression", "description", "name", "route_selection_expression", "version") ||
+ (d.HasChange("cors_configuration") && !deleteCorsConfiguration) {
req := &apigatewayv2.UpdateApiInput{
ApiId: aws.String(d.Id()),
}
@@ -166,6 +256,9 @@ func resourceAwsApiGatewayV2ApiUpdate(d *schema.ResourceData, meta interface{})
if d.HasChange("api_key_selection_expression") {
req.ApiKeySelectionExpression = aws.String(d.Get("api_key_selection_expression").(string))
}
+ if d.HasChange("cors_configuration") {
+ req.CorsConfiguration = expandApiGateway2CorsConfiguration(d.Get("cors_configuration").([]interface{}))
+ }
if d.HasChange("description") {
req.Description = aws.String(d.Get("description").(string))
}
@@ -212,3 +305,48 @@ func resourceAwsApiGatewayV2ApiDelete(d *schema.ResourceData, meta interface{})
return nil
}
+
+func expandApiGateway2CorsConfiguration(vConfiguration []interface{}) *apigatewayv2.Cors {
+ configuration := &apigatewayv2.Cors{}
+
+ if len(vConfiguration) == 0 || vConfiguration[0] == nil {
+ return configuration
+ }
+ mConfiguration := vConfiguration[0].(map[string]interface{})
+
+ if vAllowCredentials, ok := mConfiguration["allow_credentials"].(bool); ok {
+ configuration.AllowCredentials = aws.Bool(vAllowCredentials)
+ }
+ if vAllowHeaders, ok := mConfiguration["allow_headers"].(*schema.Set); ok {
+ configuration.AllowHeaders = expandStringSet(vAllowHeaders)
+ }
+ if vAllowMethods, ok := mConfiguration["allow_methods"].(*schema.Set); ok {
+ configuration.AllowMethods = expandStringSet(vAllowMethods)
+ }
+ if vAllowOrigins, ok := mConfiguration["allow_origins"].(*schema.Set); ok {
+ configuration.AllowOrigins = expandStringSet(vAllowOrigins)
+ }
+ if vExposeHeaders, ok := mConfiguration["expose_headers"].(*schema.Set); ok {
+ configuration.ExposeHeaders = expandStringSet(vExposeHeaders)
+ }
+ if vMaxAge, ok := mConfiguration["max_age"].(int); ok {
+ configuration.MaxAge = aws.Int64(int64(vMaxAge))
+ }
+
+ return configuration
+}
+
+func flattenApiGateway2CorsConfiguration(configuration *apigatewayv2.Cors) []interface{} {
+ if configuration == nil {
+ return []interface{}{}
+ }
+
+ return []interface{}{map[string]interface{}{
+ "allow_credentials": aws.BoolValue(configuration.AllowCredentials),
+ "allow_headers": flattenCaseInsensitiveStringSet(configuration.AllowHeaders),
+ "allow_methods": flattenCaseInsensitiveStringSet(configuration.AllowMethods),
+ "allow_origins": flattenCaseInsensitiveStringSet(configuration.AllowOrigins),
+ "expose_headers": flattenCaseInsensitiveStringSet(configuration.ExposeHeaders),
+ "max_age": int(aws.Int64Value(configuration.MaxAge)),
+ }}
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api_mapping.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api_mapping.go
new file mode 100644
index 00000000000..38eede5f4b1
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_api_mapping.go
@@ -0,0 +1,144 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+)
+
+func resourceAwsApiGatewayV2ApiMapping() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2ApiMappingCreate,
+ Read: resourceAwsApiGatewayV2ApiMappingRead,
+ Update: resourceAwsApiGatewayV2ApiMappingUpdate,
+ Delete: resourceAwsApiGatewayV2ApiMappingDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2ApiMappingImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "api_mapping_key": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "domain_name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "stage": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2ApiMappingCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateApiMappingInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ DomainName: aws.String(d.Get("domain_name").(string)),
+ Stage: aws.String(d.Get("stage").(string)),
+ }
+ if v, ok := d.GetOk("api_mapping_key"); ok {
+ req.ApiMappingKey = aws.String(v.(string))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 API mapping: %s", req)
+ resp, err := conn.CreateApiMapping(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 API mapping: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.ApiMappingId))
+
+ return resourceAwsApiGatewayV2ApiMappingRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2ApiMappingRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetApiMapping(&apigatewayv2.GetApiMappingInput{
+ ApiMappingId: aws.String(d.Id()),
+ DomainName: aws.String(d.Get("domain_name").(string)),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 API mapping (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 API mapping: %s", err)
+ }
+
+ d.Set("api_id", resp.ApiId)
+ d.Set("api_mapping_key", resp.ApiMappingKey)
+ d.Set("stage", resp.Stage)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2ApiMappingUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateApiMappingInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ApiMappingId: aws.String(d.Id()),
+ DomainName: aws.String(d.Get("domain_name").(string)),
+ }
+ if d.HasChange("api_mapping_key") {
+ req.ApiMappingKey = aws.String(d.Get("api_mapping_key").(string))
+ }
+ if d.HasChange("stage") {
+ req.Stage = aws.String(d.Get("stage").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 API mapping: %s", req)
+ _, err := conn.UpdateApiMapping(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 API mapping: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2ApiMappingRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2ApiMappingDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 API mapping (%s)", d.Id())
+ _, err := conn.DeleteApiMapping(&apigatewayv2.DeleteApiMappingInput{
+ ApiMappingId: aws.String(d.Id()),
+ DomainName: aws.String(d.Get("domain_name").(string)),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 API mapping: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2ApiMappingImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-mapping-id/domain-name'", d.Id())
+ }
+
+ d.SetId(parts[0])
+ d.Set("domain_name", parts[1])
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_authorizer.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_authorizer.go
new file mode 100644
index 00000000000..e761cbf2ca6
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_authorizer.go
@@ -0,0 +1,234 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsApiGatewayV2Authorizer() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2AuthorizerCreate,
+ Read: resourceAwsApiGatewayV2AuthorizerRead,
+ Update: resourceAwsApiGatewayV2AuthorizerUpdate,
+ Delete: resourceAwsApiGatewayV2AuthorizerDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2AuthorizerImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "authorizer_credentials_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validateArn,
+ },
+ "authorizer_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.AuthorizerTypeJwt,
+ apigatewayv2.AuthorizerTypeRequest,
+ }, false),
+ },
+ "authorizer_uri": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(1, 2048),
+ },
+ "identity_sources": {
+ Type: schema.TypeSet,
+ Required: true,
+ MinItems: 1,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "jwt_configuration": {
+ Type: schema.TypeList,
+ Optional: true,
+ MinItems: 0,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "audience": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "issuer": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringLenBetween(1, 128),
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2AuthorizerCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateAuthorizerInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ AuthorizerType: aws.String(d.Get("authorizer_type").(string)),
+ IdentitySource: expandStringSet(d.Get("identity_sources").(*schema.Set)),
+ Name: aws.String(d.Get("name").(string)),
+ }
+ if v, ok := d.GetOk("authorizer_credentials_arn"); ok {
+ req.AuthorizerCredentialsArn = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("authorizer_uri"); ok {
+ req.AuthorizerUri = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("jwt_configuration"); ok {
+ req.JwtConfiguration = expandApiGateway2JwtConfiguration(v.([]interface{}))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 authorizer: %s", req)
+ resp, err := conn.CreateAuthorizer(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 authorizer: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.AuthorizerId))
+
+ return resourceAwsApiGatewayV2AuthorizerRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2AuthorizerRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetAuthorizer(&apigatewayv2.GetAuthorizerInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ AuthorizerId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 authorizer (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 authorizer: %s", err)
+ }
+
+ d.Set("authorizer_credentials_arn", resp.AuthorizerCredentialsArn)
+ d.Set("authorizer_type", resp.AuthorizerType)
+ d.Set("authorizer_uri", resp.AuthorizerUri)
+ if err := d.Set("identity_sources", flattenStringSet(resp.IdentitySource)); err != nil {
+ return fmt.Errorf("error setting identity_sources: %s", err)
+ }
+ if err := d.Set("jwt_configuration", flattenApiGateway2JwtConfiguration(resp.JwtConfiguration)); err != nil {
+ return fmt.Errorf("error setting jwt_configuration: %s", err)
+ }
+ d.Set("name", resp.Name)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2AuthorizerUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateAuthorizerInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ AuthorizerId: aws.String(d.Id()),
+ }
+ if d.HasChange("authorizer_credentials_arn") {
+ req.AuthorizerCredentialsArn = aws.String(d.Get("authorizer_credentials_arn").(string))
+ }
+ if d.HasChange("authorizer_type") {
+ req.AuthorizerType = aws.String(d.Get("authorizer_type").(string))
+ }
+ if d.HasChange("authorizer_uri") {
+ req.AuthorizerUri = aws.String(d.Get("authorizer_uri").(string))
+ }
+ if d.HasChange("identity_sources") {
+ req.IdentitySource = expandStringSet(d.Get("identity_sources").(*schema.Set))
+ }
+ if d.HasChange("name") {
+ req.Name = aws.String(d.Get("name").(string))
+ }
+ if d.HasChange("jwt_configuration") {
+ req.JwtConfiguration = expandApiGateway2JwtConfiguration(d.Get("jwt_configuration").([]interface{}))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 authorizer: %s", req)
+ _, err := conn.UpdateAuthorizer(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 authorizer: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2AuthorizerRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2AuthorizerDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 authorizer (%s)", d.Id())
+ _, err := conn.DeleteAuthorizer(&apigatewayv2.DeleteAuthorizerInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ AuthorizerId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 authorizer: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2AuthorizerImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/authorizer-id'", d.Id())
+ }
+
+ d.SetId(parts[1])
+ d.Set("api_id", parts[0])
+
+ return []*schema.ResourceData{d}, nil
+}
+
+func expandApiGateway2JwtConfiguration(vConfiguration []interface{}) *apigatewayv2.JWTConfiguration {
+ configuration := &apigatewayv2.JWTConfiguration{}
+
+ if len(vConfiguration) == 0 || vConfiguration[0] == nil {
+ return configuration
+ }
+ mConfiguration := vConfiguration[0].(map[string]interface{})
+
+ if vAudience, ok := mConfiguration["audience"].(*schema.Set); ok && vAudience.Len() > 0 {
+ configuration.Audience = expandStringSet(vAudience)
+ }
+ if vIssuer, ok := mConfiguration["issuer"].(string); ok && vIssuer != "" {
+ configuration.Issuer = aws.String(vIssuer)
+ }
+
+ return configuration
+}
+
+func flattenApiGateway2JwtConfiguration(configuration *apigatewayv2.JWTConfiguration) []interface{} {
+ if configuration == nil {
+ return []interface{}{}
+ }
+
+ return []interface{}{map[string]interface{}{
+ "audience": flattenStringSet(configuration.Audience),
+ "issuer": aws.StringValue(configuration.Issuer),
+ }}
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_deployment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_deployment.go
new file mode 100644
index 00000000000..35152ef7b99
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_deployment.go
@@ -0,0 +1,141 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter"
+)
+
+func resourceAwsApiGatewayV2Deployment() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2DeploymentCreate,
+ Read: resourceAwsApiGatewayV2DeploymentRead,
+ Update: resourceAwsApiGatewayV2DeploymentUpdate,
+ Delete: resourceAwsApiGatewayV2DeploymentDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2DeploymentImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "auto_deployed": {
+ Type: schema.TypeBool,
+ Computed: true,
+ },
+ "description": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(0, 1024),
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2DeploymentCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateDeploymentInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ }
+ if v, ok := d.GetOk("description"); ok {
+ req.Description = aws.String(v.(string))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 deployment: %s", req)
+ resp, err := conn.CreateDeployment(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 deployment: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.DeploymentId))
+
+ if _, err := waiter.DeploymentDeployed(conn, d.Get("api_id").(string), d.Id()); err != nil {
+ return fmt.Errorf("error waiting for API Gateway v2 deployment (%s) creation: %s", d.Id(), err)
+ }
+
+ return resourceAwsApiGatewayV2DeploymentRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2DeploymentRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ outputRaw, _, err := waiter.DeploymentStatus(conn, d.Get("api_id").(string), d.Id())()
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 deployment (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 deployment: %s", err)
+ }
+
+ output := outputRaw.(*apigatewayv2.GetDeploymentOutput)
+ d.Set("auto_deployed", output.AutoDeployed)
+ d.Set("description", output.Description)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2DeploymentUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateDeploymentInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ DeploymentId: aws.String(d.Id()),
+ }
+ if d.HasChange("description") {
+ req.Description = aws.String(d.Get("description").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 deployment: %s", req)
+ _, err := conn.UpdateDeployment(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 deployment: %s", err)
+ }
+
+ if _, err := waiter.DeploymentDeployed(conn, d.Get("api_id").(string), d.Id()); err != nil {
+ return fmt.Errorf("error waiting for API Gateway v2 deployment (%s) update: %s", d.Id(), err)
+ }
+
+ return resourceAwsApiGatewayV2DeploymentRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2DeploymentDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 deployment (%s)", d.Id())
+ _, err := conn.DeleteDeployment(&apigatewayv2.DeleteDeploymentInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ DeploymentId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 deployment: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2DeploymentImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/deployment-id'", d.Id())
+ }
+
+ d.SetId(parts[1])
+ d.Set("api_id", parts[0])
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_domain_name.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_domain_name.go
new file mode 100644
index 00000000000..fe512f7d98b
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_domain_name.go
@@ -0,0 +1,260 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/arn"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+const (
+ apiGatewayV2DomainNameStatusDeleted = "DELETED"
+)
+
+func resourceAwsApiGatewayV2DomainName() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2DomainNameCreate,
+ Read: resourceAwsApiGatewayV2DomainNameRead,
+ Update: resourceAwsApiGatewayV2DomainNameUpdate,
+ Delete: resourceAwsApiGatewayV2DomainNameDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Timeouts: &schema.ResourceTimeout{
+ Update: schema.DefaultTimeout(60 * time.Minute),
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_mapping_selection_expression": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "domain_name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringLenBetween(1, 512),
+ },
+ "domain_name_configuration": {
+ Type: schema.TypeList,
+ Required: true,
+ MinItems: 1,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "certificate_arn": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
+ },
+ "endpoint_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.EndpointTypeRegional,
+ }, true),
+ },
+ "hosted_zone_id": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "security_policy": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.SecurityPolicyTls12,
+ }, true),
+ },
+ "target_domain_name": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ },
+ },
+ },
+ "tags": tagsSchema(),
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2DomainNameCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateDomainNameInput{
+ DomainName: aws.String(d.Get("domain_name").(string)),
+ DomainNameConfigurations: expandApiGatewayV2DomainNameConfiguration(d.Get("domain_name_configuration").([]interface{})),
+ Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().Apigatewayv2Tags(),
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 domain name: %s", req)
+ resp, err := conn.CreateDomainName(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 domain name: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.DomainName))
+
+ return resourceAwsApiGatewayV2DomainNameRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2DomainNameRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ respRaw, state, err := apiGatewayV2DomainNameRefresh(conn, d.Id())()
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 domain name (%s): %s", d.Id(), err)
+ }
+
+ if state == apiGatewayV2DomainNameStatusDeleted {
+ log.Printf("[WARN] API Gateway v2 domain name (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ resp := respRaw.(*apigatewayv2.GetDomainNameOutput)
+ d.Set("api_mapping_selection_expression", resp.ApiMappingSelectionExpression)
+ arn := arn.ARN{
+ Partition: meta.(*AWSClient).partition,
+ Service: "apigateway",
+ Region: meta.(*AWSClient).region,
+ Resource: fmt.Sprintf("/domainnames/%s", d.Id()),
+ }.String()
+ d.Set("arn", arn)
+ d.Set("domain_name", resp.DomainName)
+ err = d.Set("domain_name_configuration", flattenApiGatewayV2DomainNameConfiguration(resp.DomainNameConfigurations[0]))
+ if err != nil {
+ return fmt.Errorf("error setting domain_name_configuration: %s", err)
+ }
+ if err := d.Set("tags", keyvaluetags.Apigatewayv2KeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2DomainNameUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ if d.HasChange("domain_name_configuration") {
+ req := &apigatewayv2.UpdateDomainNameInput{
+ DomainName: aws.String(d.Id()),
+ DomainNameConfigurations: expandApiGatewayV2DomainNameConfiguration(d.Get("domain_name_configuration").([]interface{})),
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 domain name: %s", req)
+ _, err := conn.UpdateDomainName(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 domain name (%s): %s", d.Id(), err)
+ }
+
+ if err := waitForApiGatewayV2DomainNameAvailabilityOnUpdate(conn, d.Id(), d.Timeout(schema.TimeoutUpdate)); err != nil {
+ return fmt.Errorf("error waiting for API Gateway v2 domain name (%s) to become available: %s", d.Id(), err)
+ }
+ }
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+ if err := keyvaluetags.Apigatewayv2UpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
+ return fmt.Errorf("error updating API Gateway v2 domain name (%s) tags: %s", d.Id(), err)
+ }
+ }
+
+ return resourceAwsApiGatewayV2DomainNameRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2DomainNameDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 domain name (%s)", d.Id())
+ _, err := conn.DeleteDomainName(&apigatewayv2.DeleteDomainNameInput{
+ DomainName: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 domain name (%s): %s", d.Id(), err)
+ }
+
+ return nil
+}
+
+func apiGatewayV2DomainNameRefresh(conn *apigatewayv2.ApiGatewayV2, domainName string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ resp, err := conn.GetDomainName(&apigatewayv2.GetDomainNameInput{
+ DomainName: aws.String(domainName),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return "", apiGatewayV2DomainNameStatusDeleted, nil
+ }
+ if err != nil {
+ return nil, "", err
+ }
+
+ if n := len(resp.DomainNameConfigurations); n != 1 {
+ return nil, "", fmt.Errorf("Found %d domain name configurations for %s, expected 1", n, domainName)
+ }
+
+ domainNameConfiguration := resp.DomainNameConfigurations[0]
+ if statusMessage := aws.StringValue(domainNameConfiguration.DomainNameStatusMessage); statusMessage != "" {
+ log.Printf("[INFO] Domain name (%s) status message: %s", domainName, statusMessage)
+ }
+
+ return resp, aws.StringValue(domainNameConfiguration.DomainNameStatus), nil
+ }
+}
+
+func waitForApiGatewayV2DomainNameAvailabilityOnUpdate(conn *apigatewayv2.ApiGatewayV2, domainName string, timeout time.Duration) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{apigatewayv2.DomainNameStatusUpdating},
+ Target: []string{apigatewayv2.DomainNameStatusAvailable},
+ Refresh: apiGatewayV2DomainNameRefresh(conn, domainName),
+ Timeout: timeout,
+ Delay: 10 * time.Second,
+ MinTimeout: 5 * time.Second,
+ }
+
+ _, err := stateConf.WaitForState()
+
+ return err
+}
+
+func expandApiGatewayV2DomainNameConfiguration(vDomainNameConfiguration []interface{}) []*apigatewayv2.DomainNameConfiguration {
+ if len(vDomainNameConfiguration) == 0 || vDomainNameConfiguration[0] == nil {
+ return nil
+ }
+ mDomainNameConfiguration := vDomainNameConfiguration[0].(map[string]interface{})
+
+ return []*apigatewayv2.DomainNameConfiguration{{
+ CertificateArn: aws.String(mDomainNameConfiguration["certificate_arn"].(string)),
+ EndpointType: aws.String(mDomainNameConfiguration["endpoint_type"].(string)),
+ SecurityPolicy: aws.String(mDomainNameConfiguration["security_policy"].(string)),
+ }}
+}
+
+func flattenApiGatewayV2DomainNameConfiguration(domainNameConfiguration *apigatewayv2.DomainNameConfiguration) []interface{} {
+ if domainNameConfiguration == nil {
+ return []interface{}{}
+ }
+
+ return []interface{}{map[string]interface{}{
+ "certificate_arn": aws.StringValue(domainNameConfiguration.CertificateArn),
+ "endpoint_type": aws.StringValue(domainNameConfiguration.EndpointType),
+ "hosted_zone_id": aws.StringValue(domainNameConfiguration.HostedZoneId),
+ "security_policy": aws.StringValue(domainNameConfiguration.SecurityPolicy),
+ "target_domain_name": aws.StringValue(domainNameConfiguration.ApiGatewayDomainName),
+ }}
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration.go
new file mode 100644
index 00000000000..eed4e89d9ec
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration.go
@@ -0,0 +1,314 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsApiGatewayV2Integration() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2IntegrationCreate,
+ Read: resourceAwsApiGatewayV2IntegrationRead,
+ Update: resourceAwsApiGatewayV2IntegrationUpdate,
+ Delete: resourceAwsApiGatewayV2IntegrationDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2IntegrationImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "connection_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(1, 1024),
+ },
+ "connection_type": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: apigatewayv2.ConnectionTypeInternet,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.ConnectionTypeInternet,
+ apigatewayv2.ConnectionTypeVpcLink,
+ }, false),
+ },
+ "content_handling_strategy": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.ContentHandlingStrategyConvertToBinary,
+ apigatewayv2.ContentHandlingStrategyConvertToText,
+ }, false),
+ },
+ "credentials_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validateArn,
+ },
+ "description": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "integration_method": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validateHTTPMethod(),
+ },
+ "integration_response_selection_expression": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "integration_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.IntegrationTypeAws,
+ apigatewayv2.IntegrationTypeAwsProxy,
+ apigatewayv2.IntegrationTypeHttp,
+ apigatewayv2.IntegrationTypeHttpProxy,
+ apigatewayv2.IntegrationTypeMock,
+ }, false),
+ },
+ "integration_uri": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "passthrough_behavior": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: apigatewayv2.PassthroughBehaviorWhenNoMatch,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.PassthroughBehaviorWhenNoMatch,
+ apigatewayv2.PassthroughBehaviorNever,
+ apigatewayv2.PassthroughBehaviorWhenNoTemplates,
+ }, false),
+ },
+ "payload_format_version": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: "1.0",
+ ValidateFunc: validation.StringInSlice([]string{
+ "1.0",
+ "2.0",
+ }, false),
+ },
+ "request_templates": {
+ Type: schema.TypeMap,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "template_selection_expression": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "timeout_milliseconds": {
+ Type: schema.TypeInt,
+ Optional: true,
+ Default: 29000,
+ ValidateFunc: validation.IntBetween(50, 29000),
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2IntegrationCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateIntegrationInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationType: aws.String(d.Get("integration_type").(string)),
+ }
+ if v, ok := d.GetOk("connection_id"); ok {
+ req.ConnectionId = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("connection_type"); ok {
+ req.ConnectionType = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("content_handling_strategy"); ok {
+ req.ContentHandlingStrategy = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("credentials_arn"); ok {
+ req.CredentialsArn = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("description"); ok {
+ req.Description = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("integration_method"); ok {
+ req.IntegrationMethod = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("integration_uri"); ok {
+ req.IntegrationUri = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("passthrough_behavior"); ok {
+ req.PassthroughBehavior = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("payload_format_version"); ok {
+ req.PayloadFormatVersion = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("request_templates"); ok {
+ req.RequestTemplates = stringMapToPointers(v.(map[string]interface{}))
+ }
+ if v, ok := d.GetOk("template_selection_expression"); ok {
+ req.TemplateSelectionExpression = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("timeout_milliseconds"); ok {
+ req.TimeoutInMillis = aws.Int64(int64(v.(int)))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 integration: %s", req)
+ resp, err := conn.CreateIntegration(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 integration: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.IntegrationId))
+
+ return resourceAwsApiGatewayV2IntegrationRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2IntegrationRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetIntegration(&apigatewayv2.GetIntegrationInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 integration (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 integration: %s", err)
+ }
+
+ d.Set("connection_id", resp.ConnectionId)
+ d.Set("connection_type", resp.ConnectionType)
+ d.Set("content_handling_strategy", resp.ContentHandlingStrategy)
+ d.Set("credentials_arn", resp.CredentialsArn)
+ d.Set("description", resp.Description)
+ d.Set("integration_method", resp.IntegrationMethod)
+ d.Set("integration_response_selection_expression", resp.IntegrationResponseSelectionExpression)
+ d.Set("integration_type", resp.IntegrationType)
+ d.Set("integration_uri", resp.IntegrationUri)
+ d.Set("passthrough_behavior", resp.PassthroughBehavior)
+ d.Set("payload_format_version", resp.PayloadFormatVersion)
+ err = d.Set("request_templates", pointersMapToStringList(resp.RequestTemplates))
+ if err != nil {
+ return fmt.Errorf("error setting request_templates: %s", err)
+ }
+ d.Set("template_selection_expression", resp.TemplateSelectionExpression)
+ d.Set("timeout_milliseconds", resp.TimeoutInMillis)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2IntegrationUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateIntegrationInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Id()),
+ }
+ if d.HasChange("connection_id") {
+ req.ConnectionId = aws.String(d.Get("connection_id").(string))
+ }
+ if d.HasChange("connection_type") {
+ req.ConnectionType = aws.String(d.Get("connection_type").(string))
+ }
+ if d.HasChange("content_handling_strategy") {
+ req.ContentHandlingStrategy = aws.String(d.Get("content_handling_strategy").(string))
+ }
+ if d.HasChange("credentials_arn") {
+ req.CredentialsArn = aws.String(d.Get("credentials_arn").(string))
+ }
+ if d.HasChange("description") {
+ req.Description = aws.String(d.Get("description").(string))
+ }
+ if d.HasChange("integration_method") {
+ req.IntegrationMethod = aws.String(d.Get("integration_method").(string))
+ }
+ if d.HasChange("integration_uri") {
+ req.IntegrationUri = aws.String(d.Get("integration_uri").(string))
+ }
+ if d.HasChange("passthrough_behavior") {
+ req.PassthroughBehavior = aws.String(d.Get("passthrough_behavior").(string))
+ }
+ if d.HasChange("payload_format_version") {
+ req.PayloadFormatVersion = aws.String(d.Get("payload_format_version").(string))
+ }
+ if d.HasChange("request_templates") {
+ req.RequestTemplates = stringMapToPointers(d.Get("request_templates").(map[string]interface{}))
+ }
+ if d.HasChange("template_selection_expression") {
+ req.TemplateSelectionExpression = aws.String(d.Get("template_selection_expression").(string))
+ }
+ if d.HasChange("timeout_milliseconds") {
+ req.TimeoutInMillis = aws.Int64(int64(d.Get("timeout_milliseconds").(int)))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 integration: %s", req)
+ _, err := conn.UpdateIntegration(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 integration: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2IntegrationRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2IntegrationDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 integration (%s)", d.Id())
+ _, err := conn.DeleteIntegration(&apigatewayv2.DeleteIntegrationInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 integration: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2IntegrationImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/integration-id'", d.Id())
+ }
+
+ apiId := parts[0]
+ integrationId := parts[1]
+
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetIntegration(&apigatewayv2.GetIntegrationInput{
+ ApiId: aws.String(apiId),
+ IntegrationId: aws.String(integrationId),
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ if aws.BoolValue(resp.ApiGatewayManaged) {
+ return nil, fmt.Errorf("API Gateway v2 integration (%s) was created via quick create", integrationId)
+ }
+
+ d.SetId(integrationId)
+ d.Set("api_id", apiId)
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration_response.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration_response.go
new file mode 100644
index 00000000000..3ebc1fa0bc8
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_integration_response.go
@@ -0,0 +1,177 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsApiGatewayV2IntegrationResponse() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2IntegrationResponseCreate,
+ Read: resourceAwsApiGatewayV2IntegrationResponseRead,
+ Update: resourceAwsApiGatewayV2IntegrationResponseUpdate,
+ Delete: resourceAwsApiGatewayV2IntegrationResponseDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2IntegrationResponseImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "content_handling_strategy": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.ContentHandlingStrategyConvertToBinary,
+ apigatewayv2.ContentHandlingStrategyConvertToText,
+ }, false),
+ },
+ "integration_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "integration_response_key": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "response_templates": {
+ Type: schema.TypeMap,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "template_selection_expression": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2IntegrationResponseCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateIntegrationResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Get("integration_id").(string)),
+ IntegrationResponseKey: aws.String(d.Get("integration_response_key").(string)),
+ }
+ if v, ok := d.GetOk("content_handling_strategy"); ok {
+ req.ContentHandlingStrategy = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("response_templates"); ok {
+ req.ResponseTemplates = stringMapToPointers(v.(map[string]interface{}))
+ }
+ if v, ok := d.GetOk("template_selection_expression"); ok {
+ req.TemplateSelectionExpression = aws.String(v.(string))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 integration response: %s", req)
+ resp, err := conn.CreateIntegrationResponse(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 integration response: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.IntegrationResponseId))
+
+ return resourceAwsApiGatewayV2IntegrationResponseRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2IntegrationResponseRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetIntegrationResponse(&apigatewayv2.GetIntegrationResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Get("integration_id").(string)),
+ IntegrationResponseId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 integration response (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 integration response: %s", err)
+ }
+
+ d.Set("content_handling_strategy", resp.ContentHandlingStrategy)
+ d.Set("integration_response_key", resp.IntegrationResponseKey)
+ err = d.Set("response_templates", pointersMapToStringList(resp.ResponseTemplates))
+ if err != nil {
+ return fmt.Errorf("error setting response_templates: %s", err)
+ }
+ d.Set("template_selection_expression", resp.TemplateSelectionExpression)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2IntegrationResponseUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateIntegrationResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Get("integration_id").(string)),
+ IntegrationResponseId: aws.String(d.Id()),
+ }
+ if d.HasChange("content_handling_strategy") {
+ req.ContentHandlingStrategy = aws.String(d.Get("content_handling_strategy").(string))
+ }
+ if d.HasChange("integration_response_key") {
+ req.IntegrationResponseKey = aws.String(d.Get("integration_response_key").(string))
+ }
+ if d.HasChange("response_templates") {
+ req.ResponseTemplates = stringMapToPointers(d.Get("response_templates").(map[string]interface{}))
+ }
+ if d.HasChange("template_selection_expression") {
+ req.TemplateSelectionExpression = aws.String(d.Get("template_selection_expression").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 integration response: %s", req)
+ _, err := conn.UpdateIntegrationResponse(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 integration response: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2IntegrationResponseRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2IntegrationResponseDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 integration response (%s)", d.Id())
+ _, err := conn.DeleteIntegrationResponse(&apigatewayv2.DeleteIntegrationResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ IntegrationId: aws.String(d.Get("integration_id").(string)),
+ IntegrationResponseId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 integration response: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2IntegrationResponseImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 3 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/integration-id/integration-response-id'", d.Id())
+ }
+
+ d.SetId(parts[2])
+ d.Set("api_id", parts[0])
+ d.Set("integration_id", parts[1])
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_model.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_model.go
new file mode 100644
index 00000000000..dd297f4142e
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_model.go
@@ -0,0 +1,172 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "regexp"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/structure"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsApiGatewayV2Model() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2ModelCreate,
+ Read: resourceAwsApiGatewayV2ModelRead,
+ Update: resourceAwsApiGatewayV2ModelUpdate,
+ Delete: resourceAwsApiGatewayV2ModelDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2ModelImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "content_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringLenBetween(1, 256),
+ },
+ "description": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(1, 128),
+ },
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.All(
+ validation.StringLenBetween(1, 128),
+ validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9]+$`), "must be alphanumeric"),
+ ),
+ },
+ "schema": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.All(
+ validation.StringLenBetween(0, 32768),
+ validation.StringIsJSON,
+ ),
+ DiffSuppressFunc: suppressEquivalentJsonDiffs,
+ StateFunc: func(v interface{}) string {
+ json, _ := structure.NormalizeJsonString(v)
+ return json
+ },
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2ModelCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateModelInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ContentType: aws.String(d.Get("content_type").(string)),
+ Name: aws.String(d.Get("name").(string)),
+ Schema: aws.String(d.Get("schema").(string)),
+ }
+ if v, ok := d.GetOk("description"); ok {
+ req.Description = aws.String(v.(string))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 model: %s", req)
+ resp, err := conn.CreateModel(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 model: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.ModelId))
+
+ return resourceAwsApiGatewayV2ModelRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2ModelRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetModel(&apigatewayv2.GetModelInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ModelId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 model (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 model: %s", err)
+ }
+
+ d.Set("content_type", resp.ContentType)
+ d.Set("description", resp.Description)
+ d.Set("name", resp.Name)
+ d.Set("schema", resp.Schema)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2ModelUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateModelInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ModelId: aws.String(d.Id()),
+ }
+ if d.HasChange("content_type") {
+ req.ContentType = aws.String(d.Get("content_type").(string))
+ }
+ if d.HasChange("description") {
+ req.Description = aws.String(d.Get("description").(string))
+ }
+ if d.HasChange("name") {
+ req.Name = aws.String(d.Get("name").(string))
+ }
+ if d.HasChange("schema") {
+ req.Schema = aws.String(d.Get("schema").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 model: %s", req)
+ _, err := conn.UpdateModel(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 model: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2ModelRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2ModelDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 model (%s)", d.Id())
+ _, err := conn.DeleteModel(&apigatewayv2.DeleteModelInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ModelId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 model: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2ModelImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/model-id'", d.Id())
+ }
+
+ d.SetId(parts[1])
+ d.Set("api_id", parts[0])
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route.go
new file mode 100644
index 00000000000..185973467b9
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route.go
@@ -0,0 +1,251 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsApiGatewayV2Route() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2RouteCreate,
+ Read: resourceAwsApiGatewayV2RouteRead,
+ Update: resourceAwsApiGatewayV2RouteUpdate,
+ Delete: resourceAwsApiGatewayV2RouteDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2RouteImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "api_key_required": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "authorization_scopes": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "authorization_type": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: apigatewayv2.AuthorizationTypeNone,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.AuthorizationTypeNone,
+ apigatewayv2.AuthorizationTypeAwsIam,
+ apigatewayv2.AuthorizationTypeCustom,
+ apigatewayv2.AuthorizationTypeJwt,
+ }, false),
+ },
+ "authorizer_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "model_selection_expression": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "operation_name": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(1, 64),
+ },
+ "request_models": {
+ Type: schema.TypeMap,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "route_key": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "route_response_selection_expression": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "target": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(1, 128),
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2RouteCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateRouteInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ ApiKeyRequired: aws.Bool(d.Get("api_key_required").(bool)),
+ AuthorizationType: aws.String(d.Get("authorization_type").(string)),
+ RouteKey: aws.String(d.Get("route_key").(string)),
+ }
+ if v, ok := d.GetOk("authorization_scopes"); ok {
+ req.AuthorizationScopes = expandStringSet(v.(*schema.Set))
+ }
+ if v, ok := d.GetOk("authorizer_id"); ok {
+ req.AuthorizerId = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("model_selection_expression"); ok {
+ req.ModelSelectionExpression = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("operation_name"); ok {
+ req.OperationName = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("request_models"); ok {
+ req.RequestModels = stringMapToPointers(v.(map[string]interface{}))
+ }
+ if v, ok := d.GetOk("route_response_selection_expression"); ok {
+ req.RouteResponseSelectionExpression = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("target"); ok {
+ req.Target = aws.String(v.(string))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 route: %s", req)
+ resp, err := conn.CreateRoute(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 route: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.RouteId))
+
+ return resourceAwsApiGatewayV2RouteRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2RouteRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetRoute(&apigatewayv2.GetRouteInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 route (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 route: %s", err)
+ }
+
+ d.Set("api_key_required", resp.ApiKeyRequired)
+ if err := d.Set("authorization_scopes", flattenStringSet(resp.AuthorizationScopes)); err != nil {
+ return fmt.Errorf("error setting authorization_scopes: %s", err)
+ }
+ d.Set("authorization_type", resp.AuthorizationType)
+ d.Set("authorizer_id", resp.AuthorizerId)
+ d.Set("model_selection_expression", resp.ModelSelectionExpression)
+ d.Set("operation_name", resp.OperationName)
+ if err := d.Set("request_models", pointersMapToStringList(resp.RequestModels)); err != nil {
+ return fmt.Errorf("error setting request_models: %s", err)
+ }
+ d.Set("route_key", resp.RouteKey)
+ d.Set("route_response_selection_expression", resp.RouteResponseSelectionExpression)
+ d.Set("target", resp.Target)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2RouteUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateRouteInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Id()),
+ }
+ if d.HasChange("api_key_required") {
+ req.ApiKeyRequired = aws.Bool(d.Get("api_key_required").(bool))
+ }
+ if d.HasChange("authorization_scopes") {
+ req.AuthorizationScopes = expandStringSet(d.Get("authorization_scopes").(*schema.Set))
+ }
+ if d.HasChange("authorization_type") {
+ req.AuthorizationType = aws.String(d.Get("authorization_type").(string))
+ }
+ if d.HasChange("authorizer_id") {
+ req.AuthorizerId = aws.String(d.Get("authorizer_id").(string))
+ }
+ if d.HasChange("model_selection_expression") {
+ req.ModelSelectionExpression = aws.String(d.Get("model_selection_expression").(string))
+ }
+ if d.HasChange("operation_name") {
+ req.OperationName = aws.String(d.Get("operation_name").(string))
+ }
+ if d.HasChange("request_models") {
+ req.RequestModels = stringMapToPointers(d.Get("request_models").(map[string]interface{}))
+ }
+ if d.HasChange("route_response_selection_expression") {
+ req.RouteResponseSelectionExpression = aws.String(d.Get("route_response_selection_expression").(string))
+ }
+ if d.HasChange("target") {
+ req.Target = aws.String(d.Get("target").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 route: %s", req)
+ _, err := conn.UpdateRoute(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 route: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2RouteRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2RouteDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 route (%s)", d.Id())
+ _, err := conn.DeleteRoute(&apigatewayv2.DeleteRouteInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 route: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2RouteImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/route-id'", d.Id())
+ }
+
+ apiId := parts[0]
+ routeId := parts[1]
+
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetRoute(&apigatewayv2.GetRouteInput{
+ ApiId: aws.String(apiId),
+ RouteId: aws.String(routeId),
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ if aws.BoolValue(resp.ApiGatewayManaged) {
+ return nil, fmt.Errorf("API Gateway v2 route (%s) was created via quick create", routeId)
+ }
+
+ d.SetId(routeId)
+ d.Set("api_id", apiId)
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route_response.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route_response.go
new file mode 100644
index 00000000000..ed8f895aad3
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_route_response.go
@@ -0,0 +1,160 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+)
+
+func resourceAwsApiGatewayV2RouteResponse() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2RouteResponseCreate,
+ Read: resourceAwsApiGatewayV2RouteResponseRead,
+ Update: resourceAwsApiGatewayV2RouteResponseUpdate,
+ Delete: resourceAwsApiGatewayV2RouteResponseDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2RouteResponseImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "model_selection_expression": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "response_models": {
+ Type: schema.TypeMap,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "route_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "route_response_key": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2RouteResponseCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateRouteResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Get("route_id").(string)),
+ RouteResponseKey: aws.String(d.Get("route_response_key").(string)),
+ }
+ if v, ok := d.GetOk("model_selection_expression"); ok {
+ req.ModelSelectionExpression = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("response_models"); ok {
+ req.ResponseModels = stringMapToPointers(v.(map[string]interface{}))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 route response: %s", req)
+ resp, err := conn.CreateRouteResponse(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 route response: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.RouteResponseId))
+
+ return resourceAwsApiGatewayV2RouteResponseRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2RouteResponseRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetRouteResponse(&apigatewayv2.GetRouteResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Get("route_id").(string)),
+ RouteResponseId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 route response (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 route response: %s", err)
+ }
+
+ d.Set("model_selection_expression", resp.ModelSelectionExpression)
+ if err := d.Set("response_models", pointersMapToStringList(resp.ResponseModels)); err != nil {
+ return fmt.Errorf("error setting response_models: %s", err)
+ }
+ d.Set("route_response_key", resp.RouteResponseKey)
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2RouteResponseUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.UpdateRouteResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Get("route_id").(string)),
+ RouteResponseId: aws.String(d.Id()),
+ }
+ if d.HasChange("model_selection_expression") {
+ req.ModelSelectionExpression = aws.String(d.Get("model_selection_expression").(string))
+ }
+ if d.HasChange("response_models") {
+ req.ResponseModels = stringMapToPointers(d.Get("response_models").(map[string]interface{}))
+ }
+ if d.HasChange("route_response_key") {
+ req.RouteResponseKey = aws.String(d.Get("route_response_key").(string))
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 route response: %s", req)
+ _, err := conn.UpdateRouteResponse(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 route response: %s", err)
+ }
+
+ return resourceAwsApiGatewayV2RouteResponseRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2RouteResponseDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 route response (%s)", d.Id())
+ _, err := conn.DeleteRouteResponse(&apigatewayv2.DeleteRouteResponseInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ RouteId: aws.String(d.Get("route_id").(string)),
+ RouteResponseId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 route response: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2RouteResponseImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 3 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/route-id/route-response-id'", d.Id())
+ }
+
+ d.SetId(parts[2])
+ d.Set("api_id", parts[0])
+ d.Set("route_id", parts[1])
+
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_stage.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_stage.go
new file mode 100644
index 00000000000..7817fd79369
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_stage.go
@@ -0,0 +1,540 @@
+package aws
+
+import (
+ "bytes"
+ "fmt"
+ "log"
+ "strings"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/arn"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func resourceAwsApiGatewayV2Stage() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2StageCreate,
+ Read: resourceAwsApiGatewayV2StageRead,
+ Update: resourceAwsApiGatewayV2StageUpdate,
+ Delete: resourceAwsApiGatewayV2StageDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsApiGatewayV2StageImport,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "access_log_settings": {
+ Type: schema.TypeList,
+ Optional: true,
+ MinItems: 0,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "destination_arn": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
+ StateFunc: func(v interface{}) string {
+ return strings.TrimSuffix(v.(string), ":*")
+ },
+ },
+ "format": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ },
+ },
+ },
+ "api_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "auto_deploy": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "client_certificate_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "default_route_settings": {
+ Type: schema.TypeList,
+ Optional: true,
+ MinItems: 0,
+ MaxItems: 1,
+ DiffSuppressFunc: suppressMissingOptionalConfigurationBlock,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "data_trace_enabled": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "detailed_metrics_enabled": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "logging_level": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: apigatewayv2.LoggingLevelOff,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.LoggingLevelError,
+ apigatewayv2.LoggingLevelInfo,
+ apigatewayv2.LoggingLevelOff,
+ }, false),
+ },
+ "throttling_burst_limit": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
+ "throttling_rate_limit": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "deployment_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "description": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringLenBetween(0, 1024),
+ },
+ "execution_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "invoke_url": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringLenBetween(1, 128),
+ },
+ "route_settings": {
+ Type: schema.TypeSet,
+ Optional: true,
+ MinItems: 0,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "data_trace_enabled": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "detailed_metrics_enabled": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+ "logging_level": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: apigatewayv2.LoggingLevelOff,
+ ValidateFunc: validation.StringInSlice([]string{
+ apigatewayv2.LoggingLevelError,
+ apigatewayv2.LoggingLevelInfo,
+ apigatewayv2.LoggingLevelOff,
+ }, false),
+ },
+ "route_key": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ "throttling_burst_limit": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
+ "throttling_rate_limit": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ },
+ },
+ },
+ Set: apiGatewayV2RouteSettingsHash,
+ },
+ "stage_variables": {
+ Type: schema.TypeMap,
+ Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ },
+ "tags": tagsSchema(),
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2StageCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateStageInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ AutoDeploy: aws.Bool(d.Get("auto_deploy").(bool)),
+ StageName: aws.String(d.Get("name").(string)),
+ Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().Apigatewayv2Tags(),
+ }
+ if v, ok := d.GetOk("access_log_settings"); ok {
+ req.AccessLogSettings = expandApiGatewayV2AccessLogSettings(v.([]interface{}))
+ }
+ if v, ok := d.GetOk("client_certificate_id"); ok {
+ req.ClientCertificateId = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("default_route_settings"); ok {
+ req.DefaultRouteSettings = expandApiGatewayV2DefaultRouteSettings(v.([]interface{}))
+ }
+ if v, ok := d.GetOk("deployment_id"); ok {
+ req.DeploymentId = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("description"); ok {
+ req.Description = aws.String(v.(string))
+ }
+ if v, ok := d.GetOk("route_settings"); ok {
+ req.RouteSettings = expandApiGatewayV2RouteSettings(v.(*schema.Set))
+ }
+ if v, ok := d.GetOk("stage_variables"); ok {
+ req.StageVariables = stringMapToPointers(v.(map[string]interface{}))
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 stage: %s", req)
+ resp, err := conn.CreateStage(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 stage: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.StageName))
+
+ return resourceAwsApiGatewayV2StageRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2StageRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ apiId := d.Get("api_id").(string)
+ resp, err := conn.GetStage(&apigatewayv2.GetStageInput{
+ ApiId: aws.String(apiId),
+ StageName: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 stage (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 stage (%s): %s", d.Id(), err)
+ }
+
+ stageName := aws.StringValue(resp.StageName)
+ err = d.Set("access_log_settings", flattenApiGatewayV2AccessLogSettings(resp.AccessLogSettings))
+ if err != nil {
+ return fmt.Errorf("error setting access_log_settings: %s", err)
+ }
+ region := meta.(*AWSClient).region
+ resourceArn := arn.ARN{
+ Partition: meta.(*AWSClient).partition,
+ Service: "apigateway",
+ Region: region,
+ Resource: fmt.Sprintf("/apis/%s/stages/%s", apiId, stageName),
+ }.String()
+ d.Set("arn", resourceArn)
+ d.Set("auto_deploy", resp.AutoDeploy)
+ d.Set("client_certificate_id", resp.ClientCertificateId)
+ err = d.Set("default_route_settings", flattenApiGatewayV2DefaultRouteSettings(resp.DefaultRouteSettings))
+ if err != nil {
+ return fmt.Errorf("error setting default_route_settings: %s", err)
+ }
+ d.Set("deployment_id", resp.DeploymentId)
+ d.Set("description", resp.Description)
+ executionArn := arn.ARN{
+ Partition: meta.(*AWSClient).partition,
+ Service: "execute-api",
+ Region: region,
+ AccountID: meta.(*AWSClient).accountid,
+ Resource: fmt.Sprintf("%s/%s", apiId, stageName),
+ }.String()
+ d.Set("execution_arn", executionArn)
+ d.Set("invoke_url", fmt.Sprintf("wss://%s.execute-api.%s.amazonaws.com/%s", apiId, region, stageName))
+ d.Set("name", stageName)
+ err = d.Set("route_settings", flattenApiGatewayV2RouteSettings(resp.RouteSettings))
+ if err != nil {
+ return fmt.Errorf("error setting route_settings: %s", err)
+ }
+ err = d.Set("stage_variables", pointersMapToStringList(resp.StageVariables))
+ if err != nil {
+ return fmt.Errorf("error setting stage_variables: %s", err)
+ }
+ if err := d.Set("tags", keyvaluetags.Apigatewayv2KeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2StageUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ if d.HasChanges("access_log_settings", "auto_deploy", "client_certificate_id",
+ "default_route_settings", "deployment_id", "description",
+ "route_settings", "stage_variables") {
+ req := &apigatewayv2.UpdateStageInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ StageName: aws.String(d.Id()),
+ }
+ if d.HasChange("access_log_settings") {
+ req.AccessLogSettings = expandApiGatewayV2AccessLogSettings(d.Get("access_log_settings").([]interface{}))
+ }
+ if d.HasChange("auto_deploy") {
+ req.AutoDeploy = aws.Bool(d.Get("auto_deploy").(bool))
+ }
+ if d.HasChange("client_certificate_id") {
+ req.ClientCertificateId = aws.String(d.Get("client_certificate_id").(string))
+ }
+ if d.HasChange("default_route_settings") {
+ req.DefaultRouteSettings = expandApiGatewayV2DefaultRouteSettings(d.Get("default_route_settings").([]interface{}))
+ }
+ if d.HasChange("deployment_id") {
+ req.DeploymentId = aws.String(d.Get("deployment_id").(string))
+ }
+ if d.HasChange("description") {
+ req.Description = aws.String(d.Get("description").(string))
+ }
+ if d.HasChange("route_settings") {
+ req.RouteSettings = expandApiGatewayV2RouteSettings(d.Get("route_settings").(*schema.Set))
+ }
+ if d.HasChange("stage_variables") {
+ o, n := d.GetChange("stage_variables")
+ add, del := diffStringMaps(o.(map[string]interface{}), n.(map[string]interface{}))
+ // Variables are removed by setting the associated value to "".
+ for k := range del {
+ del[k] = aws.String("")
+ }
+ variables := del
+ for k, v := range add {
+ variables[k] = v
+ }
+ req.StageVariables = variables
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 stage: %s", req)
+ _, err := conn.UpdateStage(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 stage (%s): %s", d.Id(), err)
+ }
+ }
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+ if err := keyvaluetags.Apigatewayv2UpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
+ return fmt.Errorf("error updating API Gateway v2 stage (%s) tags: %s", d.Id(), err)
+ }
+ }
+
+ return resourceAwsApiGatewayV2StageRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2StageDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 stage (%s)", d.Id())
+ _, err := conn.DeleteStage(&apigatewayv2.DeleteStageInput{
+ ApiId: aws.String(d.Get("api_id").(string)),
+ StageName: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 stage (%s): %s", d.Id(), err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2StageImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ parts := strings.Split(d.Id(), "/")
+ if len(parts) != 2 {
+ return []*schema.ResourceData{}, fmt.Errorf("Wrong format of resource: %s. Please follow 'api-id/stage-name'", d.Id())
+ }
+
+ apiId := parts[0]
+ stageName := parts[1]
+
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ resp, err := conn.GetStage(&apigatewayv2.GetStageInput{
+ ApiId: aws.String(apiId),
+ StageName: aws.String(stageName),
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ if aws.BoolValue(resp.ApiGatewayManaged) {
+ return nil, fmt.Errorf("API Gateway v2 stage (%s) was created via quick create", stageName)
+ }
+
+ d.SetId(stageName)
+ d.Set("api_id", apiId)
+
+ return []*schema.ResourceData{d}, nil
+}
+
+func expandApiGatewayV2AccessLogSettings(vSettings []interface{}) *apigatewayv2.AccessLogSettings {
+ settings := &apigatewayv2.AccessLogSettings{}
+
+ if len(vSettings) == 0 || vSettings[0] == nil {
+ return settings
+ }
+ mSettings := vSettings[0].(map[string]interface{})
+
+ if vDestinationArn, ok := mSettings["destination_arn"].(string); ok && vDestinationArn != "" {
+ settings.DestinationArn = aws.String(vDestinationArn)
+ }
+ if vFormat, ok := mSettings["format"].(string); ok && vFormat != "" {
+ settings.Format = aws.String(vFormat)
+ }
+
+ return settings
+}
+
+func flattenApiGatewayV2AccessLogSettings(settings *apigatewayv2.AccessLogSettings) []interface{} {
+ if settings == nil {
+ return []interface{}{}
+ }
+
+ return []interface{}{map[string]interface{}{
+ "destination_arn": aws.StringValue(settings.DestinationArn),
+ "format": aws.StringValue(settings.Format),
+ }}
+}
+
+func expandApiGatewayV2DefaultRouteSettings(vSettings []interface{}) *apigatewayv2.RouteSettings {
+ routeSettings := &apigatewayv2.RouteSettings{}
+
+ if len(vSettings) == 0 || vSettings[0] == nil {
+ return routeSettings
+ }
+ mSettings := vSettings[0].(map[string]interface{})
+
+ if vDataTraceEnabled, ok := mSettings["data_trace_enabled"].(bool); ok {
+ routeSettings.DataTraceEnabled = aws.Bool(vDataTraceEnabled)
+ }
+ if vDetailedMetricsEnabled, ok := mSettings["detailed_metrics_enabled"].(bool); ok {
+ routeSettings.DetailedMetricsEnabled = aws.Bool(vDetailedMetricsEnabled)
+ }
+ if vLoggingLevel, ok := mSettings["logging_level"].(string); ok && vLoggingLevel != "" {
+ routeSettings.LoggingLevel = aws.String(vLoggingLevel)
+ }
+ if vThrottlingBurstLimit, ok := mSettings["throttling_burst_limit"].(int); ok {
+ routeSettings.ThrottlingBurstLimit = aws.Int64(int64(vThrottlingBurstLimit))
+ }
+ if vThrottlingRateLimit, ok := mSettings["throttling_rate_limit"].(float64); ok {
+ routeSettings.ThrottlingRateLimit = aws.Float64(vThrottlingRateLimit)
+ }
+
+ return routeSettings
+}
+
+func flattenApiGatewayV2DefaultRouteSettings(routeSettings *apigatewayv2.RouteSettings) []interface{} {
+ if routeSettings == nil {
+ return []interface{}{}
+ }
+
+ return []interface{}{map[string]interface{}{
+ "data_trace_enabled": aws.BoolValue(routeSettings.DataTraceEnabled),
+ "detailed_metrics_enabled": aws.BoolValue(routeSettings.DetailedMetricsEnabled),
+ "logging_level": aws.StringValue(routeSettings.LoggingLevel),
+ "throttling_burst_limit": int(aws.Int64Value(routeSettings.ThrottlingBurstLimit)),
+ "throttling_rate_limit": aws.Float64Value(routeSettings.ThrottlingRateLimit),
+ }}
+}
+
+func expandApiGatewayV2RouteSettings(vSettings *schema.Set) map[string]*apigatewayv2.RouteSettings {
+ settings := map[string]*apigatewayv2.RouteSettings{}
+
+ for _, v := range vSettings.List() {
+ routeSettings := &apigatewayv2.RouteSettings{}
+
+ mSettings := v.(map[string]interface{})
+
+ if v, ok := mSettings["data_trace_enabled"].(bool); ok {
+ routeSettings.DataTraceEnabled = aws.Bool(v)
+ }
+ if v, ok := mSettings["detailed_metrics_enabled"].(bool); ok {
+ routeSettings.DetailedMetricsEnabled = aws.Bool(v)
+ }
+ if v, ok := mSettings["logging_level"].(string); ok {
+ routeSettings.LoggingLevel = aws.String(v)
+ }
+ if v, ok := mSettings["throttling_burst_limit"].(int); ok {
+ routeSettings.ThrottlingBurstLimit = aws.Int64(int64(v))
+ }
+ if v, ok := mSettings["throttling_rate_limit"].(float64); ok {
+ routeSettings.ThrottlingRateLimit = aws.Float64(v)
+ }
+
+ settings[mSettings["route_key"].(string)] = routeSettings
+ }
+
+ return settings
+}
+
+func flattenApiGatewayV2RouteSettings(settings map[string]*apigatewayv2.RouteSettings) *schema.Set {
+ vSettings := []interface{}{}
+
+ for k, routeSetting := range settings {
+ vSettings = append(vSettings, map[string]interface{}{
+ "data_trace_enabled": aws.BoolValue(routeSetting.DataTraceEnabled),
+ "detailed_metrics_enabled": aws.BoolValue(routeSetting.DetailedMetricsEnabled),
+ "logging_level": aws.StringValue(routeSetting.LoggingLevel),
+ "route_key": k,
+ "throttling_burst_limit": int(aws.Int64Value(routeSetting.ThrottlingBurstLimit)),
+ "throttling_rate_limit": aws.Float64Value(routeSetting.ThrottlingRateLimit),
+ })
+ }
+
+ return schema.NewSet(apiGatewayV2RouteSettingsHash, vSettings)
+}
+
+func apiGatewayV2RouteSettingsHash(vSettings interface{}) int {
+ var buf bytes.Buffer
+
+ mSettings := vSettings.(map[string]interface{})
+
+ if v, ok := mSettings["route_key"].(string); ok {
+ buf.WriteString(fmt.Sprintf("%s-", v))
+ }
+ if v, ok := mSettings["data_trace_enabled"].(bool); ok {
+ buf.WriteString(fmt.Sprintf("%t-", v))
+ }
+ if v, ok := mSettings["detailed_metrics_enabled"].(bool); ok {
+ buf.WriteString(fmt.Sprintf("%t-", v))
+ }
+ if v, ok := mSettings["logging_level"].(string); ok {
+ buf.WriteString(fmt.Sprintf("%s-", v))
+ }
+ if v, ok := mSettings["throttling_burst_limit"].(int); ok {
+ buf.WriteString(fmt.Sprintf("%d-", v))
+ }
+ if v, ok := mSettings["throttling_rate_limit"].(float64); ok {
+ buf.WriteString(fmt.Sprintf("%g-", v))
+ }
+
+ return hashcode.String(buf.String())
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_vpc_link.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_vpc_link.go
new file mode 100644
index 00000000000..0befd1e2121
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_apigatewayv2_vpc_link.go
@@ -0,0 +1,165 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/arn"
+ "github.com/aws/aws-sdk-go/service/apigatewayv2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter"
+)
+
+func resourceAwsApiGatewayV2VpcLink() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsApiGatewayV2VpcLinkCreate,
+ Read: resourceAwsApiGatewayV2VpcLinkRead,
+ Update: resourceAwsApiGatewayV2VpcLinkUpdate,
+ Delete: resourceAwsApiGatewayV2VpcLinkDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringLenBetween(1, 128),
+ },
+ "security_group_ids": {
+ Type: schema.TypeSet,
+ Required: true,
+ ForceNew: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ },
+ "subnet_ids": {
+ Type: schema.TypeSet,
+ Required: true,
+ ForceNew: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ },
+ "tags": tagsSchema(),
+ },
+ }
+}
+
+func resourceAwsApiGatewayV2VpcLinkCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ req := &apigatewayv2.CreateVpcLinkInput{
+ Name: aws.String(d.Get("name").(string)),
+ SecurityGroupIds: expandStringSet(d.Get("security_group_ids").(*schema.Set)),
+ SubnetIds: expandStringSet(d.Get("subnet_ids").(*schema.Set)),
+ Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().Apigatewayv2Tags(),
+ }
+
+ log.Printf("[DEBUG] Creating API Gateway v2 VPC Link: %s", req)
+ resp, err := conn.CreateVpcLink(req)
+ if err != nil {
+ return fmt.Errorf("error creating API Gateway v2 VPC Link: %s", err)
+ }
+
+ d.SetId(aws.StringValue(resp.VpcLinkId))
+
+ if _, err := waiter.VpcLinkAvailable(conn, d.Id()); err != nil {
+ return fmt.Errorf("error waiting for API Gateway v2 deployment (%s) availability: %s", d.Id(), err)
+ }
+
+ return resourceAwsApiGatewayV2VpcLinkRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2VpcLinkRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ outputRaw, _, err := waiter.VpcLinkStatus(conn, d.Id())()
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ log.Printf("[WARN] API Gateway v2 VPC Link (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error reading API Gateway v2 VPC Link (%s): %s", d.Id(), err)
+ }
+
+ output := outputRaw.(*apigatewayv2.GetVpcLinkOutput)
+ arn := arn.ARN{
+ Partition: meta.(*AWSClient).partition,
+ Service: "apigateway",
+ Region: meta.(*AWSClient).region,
+ Resource: fmt.Sprintf("/vpclinks/%s", d.Id()),
+ }.String()
+ d.Set("arn", arn)
+ d.Set("name", output.Name)
+ if err := d.Set("security_group_ids", flattenStringSet(output.SecurityGroupIds)); err != nil {
+ return fmt.Errorf("error setting security_group_ids: %s", err)
+ }
+ if err := d.Set("subnet_ids", flattenStringSet(output.SubnetIds)); err != nil {
+ return fmt.Errorf("error setting subnet_ids: %s", err)
+ }
+ if err := d.Set("tags", keyvaluetags.Apigatewayv2KeyValueTags(output.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsApiGatewayV2VpcLinkUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ if d.HasChange("name") {
+ req := &apigatewayv2.UpdateVpcLinkInput{
+ VpcLinkId: aws.String(d.Id()),
+ Name: aws.String(d.Get("name").(string)),
+ }
+
+ log.Printf("[DEBUG] Updating API Gateway v2 VPC Link: %s", req)
+ _, err := conn.UpdateVpcLink(req)
+ if err != nil {
+ return fmt.Errorf("error updating API Gateway v2 VPC Link (%s): %s", d.Id(), err)
+ }
+ }
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+ if err := keyvaluetags.Apigatewayv2UpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
+ return fmt.Errorf("error updating API Gateway v2 VPC Link (%s) tags: %s", d.Id(), err)
+ }
+ }
+
+ return resourceAwsApiGatewayV2VpcLinkRead(d, meta)
+}
+
+func resourceAwsApiGatewayV2VpcLinkDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).apigatewayv2conn
+
+ log.Printf("[DEBUG] Deleting API Gateway v2 VPC Link (%s)", d.Id())
+ _, err := conn.DeleteVpcLink(&apigatewayv2.DeleteVpcLinkInput{
+ VpcLinkId: aws.String(d.Id()),
+ })
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error deleting API Gateway v2 VPC Link (%s): %s", d.Id(), err)
+ }
+
+ _, err = waiter.VpcLinkDeleted(conn, d.Id())
+ if isAWSErr(err, apigatewayv2.ErrCodeNotFoundException, "") {
+ return nil
+ }
+ if err != nil {
+ return fmt.Errorf("error waiting for API Gateway v2 VPC Link (%s) deletion: %s", d.Id(), err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_policy.go
index 98b20d579e8..612c1f98ea5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_policy.go
@@ -441,9 +441,16 @@ func validateAppautoscalingPolicyImportInput(id string) ([]string, error) {
switch idParts[0] {
case "dynamodb":
serviceNamespace = idParts[0]
- resourceId = strings.Join(idParts[1:3], "/")
- scalableDimension = idParts[3]
- policyName = strings.Join(idParts[4:], "/")
+
+ dimensionIx := 3
+ // DynamoDB resource ID can be "/table/tableName" or "/table/tableName/index/indexName"
+ if idParts[dimensionIx] == "index" {
+ dimensionIx = 5
+ }
+
+ resourceId = strings.Join(idParts[1:dimensionIx], "/")
+ scalableDimension = idParts[dimensionIx]
+ policyName = strings.Join(idParts[dimensionIx+1:], "/")
default:
serviceNamespace = idParts[0]
resourceId = strings.Join(idParts[1:len(idParts)-2], "/")
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_scheduled_action.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_scheduled_action.go
index f0372cfd50c..498e70fc0f8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_scheduled_action.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appautoscaling_scheduled_action.go
@@ -150,25 +150,40 @@ func resourceAwsAppautoscalingScheduledActionRead(d *schema.ResourceData, meta i
saName := d.Get("name").(string)
input := &applicationautoscaling.DescribeScheduledActionsInput{
+ ResourceId: aws.String(d.Get("resource_id").(string)),
ScheduledActionNames: []*string{aws.String(saName)},
ServiceNamespace: aws.String(d.Get("service_namespace").(string)),
}
resp, err := conn.DescribeScheduledActions(input)
if err != nil {
- return err
+ return fmt.Errorf("error describing Application Auto Scaling Scheduled Action (%s): %w", d.Id(), err)
+ }
+
+ var scheduledAction *applicationautoscaling.ScheduledAction
+
+ if resp == nil {
+ return fmt.Errorf("error describing Application Auto Scaling Scheduled Action (%s): empty response", d.Id())
+ }
+
+ for _, sa := range resp.ScheduledActions {
+ if sa == nil {
+ continue
+ }
+
+ if aws.StringValue(sa.ScheduledActionName) == saName {
+ scheduledAction = sa
+ break
+ }
}
- if len(resp.ScheduledActions) < 1 {
+
+ if scheduledAction == nil {
log.Printf("[WARN] Application Autoscaling Scheduled Action (%s) not found, removing from state", d.Id())
d.SetId("")
return nil
}
- if len(resp.ScheduledActions) != 1 {
- return fmt.Errorf("Expected 1 scheduled action under %s, found %d", saName, len(resp.ScheduledActions))
- }
- if *resp.ScheduledActions[0].ScheduledActionName != saName {
- return fmt.Errorf("Scheduled Action (%s) not found", saName)
- }
- d.Set("arn", resp.ScheduledActions[0].ScheduledActionARN)
+
+ d.Set("arn", scheduledAction.ScheduledActionARN)
+
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_mesh.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_mesh.go
index eabfc0b9b30..3514e37821d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_mesh.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_mesh.go
@@ -104,6 +104,7 @@ func resourceAwsAppmeshMeshCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsAppmeshMeshRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appmeshconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeMesh(&appmesh.DescribeMeshInput{
MeshName: aws.String(d.Id()),
@@ -138,7 +139,7 @@ func resourceAwsAppmeshMeshRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for App Mesh service mesh (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_route.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_route.go
index fba4783b6b3..7d6024bb6a4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_route.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_route.go
@@ -314,6 +314,7 @@ func resourceAwsAppmeshRouteCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsAppmeshRouteRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appmeshconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeRoute(&appmesh.DescribeRouteInput{
MeshName: aws.String(d.Get("mesh_name").(string)),
@@ -352,7 +353,7 @@ func resourceAwsAppmeshRouteRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for App Mesh route (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_node.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_node.go
index 69fdc3e881c..e7ddc3b8263 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_node.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_node.go
@@ -321,6 +321,7 @@ func resourceAwsAppmeshVirtualNodeCreate(d *schema.ResourceData, meta interface{
func resourceAwsAppmeshVirtualNodeRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appmeshconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeVirtualNode(&appmesh.DescribeVirtualNodeInput{
MeshName: aws.String(d.Get("mesh_name").(string)),
@@ -357,7 +358,7 @@ func resourceAwsAppmeshVirtualNodeRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for App Mesh virtual node (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_router.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_router.go
index 9081e50667b..a11d1d3eb51 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_router.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_router.go
@@ -140,6 +140,7 @@ func resourceAwsAppmeshVirtualRouterCreate(d *schema.ResourceData, meta interfac
func resourceAwsAppmeshVirtualRouterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appmeshconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeVirtualRouter(&appmesh.DescribeVirtualRouterInput{
MeshName: aws.String(d.Get("mesh_name").(string)),
@@ -176,7 +177,7 @@ func resourceAwsAppmeshVirtualRouterRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for App Mesh virtual router (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_service.go
index 367e5dcb88d..1332f725d30 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appmesh_virtual_service.go
@@ -135,6 +135,7 @@ func resourceAwsAppmeshVirtualServiceCreate(d *schema.ResourceData, meta interfa
func resourceAwsAppmeshVirtualServiceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appmeshconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeVirtualService(&appmesh.DescribeVirtualServiceInput{
MeshName: aws.String(d.Get("mesh_name").(string)),
@@ -171,7 +172,7 @@ func resourceAwsAppmeshVirtualServiceRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error listing tags for App Mesh virtual service (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appsync_graphql_api.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appsync_graphql_api.go
index 3a765373b6f..e91676547a7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appsync_graphql_api.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_appsync_graphql_api.go
@@ -131,6 +131,11 @@ func resourceAwsAppsyncGraphqlApi() *schema.Resource {
appsync.FieldLogLevelNone,
}, false),
},
+ "exclude_verbose_content": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
},
},
},
@@ -255,6 +260,7 @@ func resourceAwsAppsyncGraphqlApiCreate(d *schema.ResourceData, meta interface{}
func resourceAwsAppsyncGraphqlApiRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).appsyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &appsync.GetGraphqlApiInput{
ApiId: aws.String(d.Id()),
@@ -296,7 +302,7 @@ func resourceAwsAppsyncGraphqlApiRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error setting uris: %s", err)
}
- if err := d.Set("tags", keyvaluetags.AppsyncKeyValueTags(resp.GraphqlApi.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.AppsyncKeyValueTags(resp.GraphqlApi.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -387,6 +393,7 @@ func expandAppsyncGraphqlApiLogConfig(l []interface{}) *appsync.LogConfig {
logConfig := &appsync.LogConfig{
CloudWatchLogsRoleArn: aws.String(m["cloudwatch_logs_role_arn"].(string)),
FieldLogLevel: aws.String(m["field_log_level"].(string)),
+ ExcludeVerboseContent: aws.Bool(m["exclude_verbose_content"].(bool)),
}
return logConfig
@@ -503,6 +510,7 @@ func flattenAppsyncGraphqlApiLogConfig(logConfig *appsync.LogConfig) []interface
m := map[string]interface{}{
"cloudwatch_logs_role_arn": aws.StringValue(logConfig.CloudWatchLogsRoleArn),
"field_log_level": aws.StringValue(logConfig.FieldLogLevel),
+ "exclude_verbose_content": aws.BoolValue(logConfig.ExcludeVerboseContent),
}
return []interface{}{m}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_athena_workgroup.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_athena_workgroup.go
index 10ed951e383..7dacaca8b5e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_athena_workgroup.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_athena_workgroup.go
@@ -115,6 +115,11 @@ func resourceAwsAthenaWorkgroup() *schema.Resource {
athena.WorkGroupStateEnabled,
}, false),
},
+ "force_destroy": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
"tags": tagsSchema(),
},
}
@@ -164,6 +169,7 @@ func resourceAwsAthenaWorkgroupCreate(d *schema.ResourceData, meta interface{})
func resourceAwsAthenaWorkgroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).athenaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &athena.GetWorkGroupInput{
WorkGroup: aws.String(d.Id()),
@@ -199,13 +205,19 @@ func resourceAwsAthenaWorkgroupRead(d *schema.ResourceData, meta interface{}) er
d.Set("name", resp.WorkGroup.Name)
d.Set("state", resp.WorkGroup.State)
+ if v, ok := d.GetOk("force_destroy"); ok {
+ d.Set("force_destroy", v.(bool))
+ } else {
+ d.Set("force_destroy", false)
+ }
+
tags, err := keyvaluetags.AthenaListTags(conn, arn.String())
if err != nil {
return fmt.Errorf("error listing tags for resource (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -219,6 +231,9 @@ func resourceAwsAthenaWorkgroupDelete(d *schema.ResourceData, meta interface{})
WorkGroup: aws.String(d.Id()),
}
+ if v, ok := d.GetOk("force_destroy"); ok {
+ input.RecursiveDeleteOption = aws.Bool(v.(bool))
+ }
_, err := conn.DeleteWorkGroup(input)
if err != nil {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_group.go
index f7a1f82cffd..189dcc90918 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_group.go
@@ -750,6 +750,7 @@ func resourceAwsAutoscalingGroupRead(d *schema.ResourceData, meta interface{}) e
tagsList = append(tagsList, t)
}
}
+ //lintignore:AWSR002
d.Set("tags", autoscalingTagDescriptionsToSlice(tagsList))
}
@@ -945,18 +946,9 @@ func resourceAwsAutoscalingGroupUpdate(d *schema.ResourceData, meta interface{})
return err
}
- if d.HasChange("tag") {
- d.SetPartial("tag")
- }
-
- if d.HasChange("tags") {
- d.SetPartial("tags")
- }
-
log.Printf("[DEBUG] AutoScaling Group update configuration: %#v", opts)
_, err := conn.UpdateAutoScalingGroup(&opts)
if err != nil {
- d.Partial(true)
return fmt.Errorf("Error updating Autoscaling group: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_notification.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_notification.go
index 6276124b580..a07d3c8a06f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_notification.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_autoscaling_notification.go
@@ -66,7 +66,7 @@ func resourceAwsAutoscalingNotificationRead(d *schema.ResourceData, meta interfa
}
topic := d.Get("topic_arn").(string)
- // Grab all applicable notifcation configurations for this Topic.
+ // Grab all applicable notification configurations for this Topic.
// Each NotificationType will have a record, so 1 Group with 3 Types results
// in 3 records, all with the same Group name
gRaw := make(map[string]bool)
@@ -79,6 +79,7 @@ func resourceAwsAutoscalingNotificationRead(d *schema.ResourceData, meta interfa
log.Printf("[DEBUG] Paging DescribeNotificationConfigurations for (%s), page: %d", d.Id(), i)
} else {
log.Printf("[DEBUG] Paging finished for DescribeNotificationConfigurations (%s)", d.Id())
+ return false
}
for _, n := range resp.NotificationConfigurations {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_plan.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_plan.go
index 99769a9ded0..75995a71707 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_plan.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_plan.go
@@ -72,6 +72,36 @@ func resourceAwsBackupPlan() *schema.Resource {
},
},
},
+ "copy_action": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "lifecycle": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "cold_storage_after": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
+ "delete_after": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "destination_vault_arn": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
+ },
+ },
+ },
+ },
"recovery_point_tags": tagsSchema(),
},
},
@@ -114,6 +144,7 @@ func resourceAwsBackupPlanCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsBackupPlanRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).backupconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.GetBackupPlan(&backup.GetBackupPlanInput{
BackupPlanId: aws.String(d.Id()),
@@ -139,7 +170,7 @@ func resourceAwsBackupPlanRead(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("error listing tags for Backup Plan (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -238,12 +269,48 @@ func expandBackupPlanRules(vRules *schema.Set) []*backup.RuleInput {
rule.Lifecycle = lifecycle
}
+ if vCopyActions := expandBackupPlanCopyActions(mRule["copy_action"].(*schema.Set).List()); len(vCopyActions) > 0 {
+ rule.CopyActions = vCopyActions
+ }
+
rules = append(rules, rule)
}
return rules
}
+func expandBackupPlanCopyActions(actionList []interface{}) []*backup.CopyAction {
+ actions := []*backup.CopyAction{}
+
+ for _, i := range actionList {
+ item := i.(map[string]interface{})
+ action := &backup.CopyAction{}
+
+ action.DestinationBackupVaultArn = aws.String(item["destination_vault_arn"].(string))
+ action.Lifecycle = expandBackupPlanLifecycle(item["lifecycle"].([]interface{}))
+
+ actions = append(actions, action)
+ }
+
+ return actions
+}
+
+func expandBackupPlanLifecycle(l []interface{}) *backup.Lifecycle {
+ lifecycle := new(backup.Lifecycle)
+
+ for _, i := range l {
+ lc := i.(map[string]interface{})
+ if vDeleteAfter, ok := lc["delete_after"]; ok && vDeleteAfter.(int) > 0 {
+ lifecycle.DeleteAfterDays = aws.Int64(int64(vDeleteAfter.(int)))
+ }
+ if vMoveToColdStorageAfterDays, ok := lc["cold_storage_after"]; ok && vMoveToColdStorageAfterDays.(int) > 0 {
+ lifecycle.MoveToColdStorageAfterDays = aws.Int64(int64(vMoveToColdStorageAfterDays.(int)))
+ }
+ }
+
+ return lifecycle
+}
+
func flattenBackupPlanRules(rules []*backup.Rule) *schema.Set {
vRules := []interface{}{}
@@ -266,12 +333,50 @@ func flattenBackupPlanRules(rules []*backup.Rule) *schema.Set {
}
}
+ mRule["copy_action"] = flattenBackupPlanCopyActions(rule.CopyActions)
+
vRules = append(vRules, mRule)
}
return schema.NewSet(backupBackupPlanHash, vRules)
}
+func flattenBackupPlanCopyActions(copyActions []*backup.CopyAction) []interface{} {
+ if len(copyActions) == 0 {
+ return nil
+ }
+
+ var tfList []interface{}
+
+ for _, copyAction := range copyActions {
+ if copyAction == nil {
+ continue
+ }
+
+ tfMap := map[string]interface{}{
+ "destination_vault_arn": aws.StringValue(copyAction.DestinationBackupVaultArn),
+ "lifecycle": flattenBackupPlanCopyActionLifecycle(copyAction.Lifecycle),
+ }
+
+ tfList = append(tfList, tfMap)
+ }
+
+ return tfList
+}
+
+func flattenBackupPlanCopyActionLifecycle(copyActionLifecycle *backup.Lifecycle) []interface{} {
+ if copyActionLifecycle == nil {
+ return []interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "delete_after": aws.Int64Value(copyActionLifecycle.DeleteAfterDays),
+ "cold_storage_after": aws.Int64Value(copyActionLifecycle.MoveToColdStorageAfterDays),
+ }
+
+ return []interface{}{m}
+}
+
func backupBackupPlanHash(vRule interface{}) int {
var buf bytes.Buffer
@@ -308,5 +413,26 @@ func backupBackupPlanHash(vRule interface{}) int {
}
}
+ if vCopyActions, ok := mRule["copy_action"].(*schema.Set); ok && vCopyActions.Len() > 0 {
+ for _, a := range vCopyActions.List() {
+ action := a.(map[string]interface{})
+ if mLifecycle, ok := action["lifecycle"].([]interface{}); ok {
+ for _, l := range mLifecycle {
+ lifecycle := l.(map[string]interface{})
+ if v, ok := lifecycle["delete_after"].(int); ok {
+ buf.WriteString(fmt.Sprintf("%d-", v))
+ }
+ if v, ok := lifecycle["cold_storage_after"].(int); ok {
+ buf.WriteString(fmt.Sprintf("%d-", v))
+ }
+ }
+ }
+
+ if v, ok := action["destination_vault_arn"].(string); ok {
+ buf.WriteString(fmt.Sprintf("%s-", v))
+ }
+ }
+ }
+
return hashcode.String(buf.String())
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_vault.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_vault.go
index ed183f92227..2dd312d8e72 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_vault.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_backup_vault.go
@@ -73,6 +73,7 @@ func resourceAwsBackupVaultCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsBackupVaultRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).backupconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &backup.DescribeBackupVaultInput{
BackupVaultName: aws.String(d.Id()),
@@ -102,7 +103,7 @@ func resourceAwsBackupVaultRead(d *schema.ResourceData, meta interface{}) error
if err != nil {
return fmt.Errorf("error listing tags for Backup Vault (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_batch_job_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_batch_job_queue.go
index f9f2fb6bb50..a6935d7670b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_batch_job_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_batch_job_queue.go
@@ -3,6 +3,7 @@ package aws
import (
"fmt"
"log"
+ "sort"
"time"
"github.com/aws/aws-sdk-go/aws"
@@ -105,10 +106,16 @@ func resourceAwsBatchJobQueueRead(d *schema.ResourceData, meta interface{}) erro
d.Set("arn", jq.JobQueueArn)
- computeEnvironments := make([]string, len(jq.ComputeEnvironmentOrder))
+ computeEnvironments := make([]string, 0, len(jq.ComputeEnvironmentOrder))
+
+ sort.Slice(jq.ComputeEnvironmentOrder, func(i, j int) bool {
+ return aws.Int64Value(jq.ComputeEnvironmentOrder[i].Order) < aws.Int64Value(jq.ComputeEnvironmentOrder[j].Order)
+ })
+
for _, computeEnvironmentOrder := range jq.ComputeEnvironmentOrder {
- computeEnvironments[aws.Int64Value(computeEnvironmentOrder.Order)] = aws.StringValue(computeEnvironmentOrder.ComputeEnvironment)
+ computeEnvironments = append(computeEnvironments, aws.StringValue(computeEnvironmentOrder.ComputeEnvironment))
}
+
if err := d.Set("compute_environments", computeEnvironments); err != nil {
return fmt.Errorf("error setting compute_environments: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloud9_environment_ec2.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloud9_environment_ec2.go
index 96d0f7459e8..b1141c20086 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloud9_environment_ec2.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloud9_environment_ec2.go
@@ -148,6 +148,7 @@ func resourceAwsCloud9EnvironmentEc2Create(d *schema.ResourceData, meta interfac
func resourceAwsCloud9EnvironmentEc2Read(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloud9conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading Cloud9 Environment EC2 %s", d.Id())
@@ -182,7 +183,7 @@ func resourceAwsCloud9EnvironmentEc2Read(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for Cloud9 EC2 Environment (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack.go
index 68280373216..efeed23d0fa 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack.go
@@ -88,7 +88,7 @@ func resourceAwsCloudFormationStack() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
@@ -256,6 +256,7 @@ func resourceAwsCloudFormationStackCreate(d *schema.ResourceData, meta interface
func resourceAwsCloudFormationStackRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cfconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &cloudformation.DescribeStacksInput{
StackName: aws.String(d.Id()),
@@ -331,7 +332,7 @@ func resourceAwsCloudFormationStackRead(d *schema.ResourceData, meta interface{}
return err
}
- if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stack.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stack.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack_set.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack_set.go
index c01c2c7916c..9fbf0eed84f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack_set.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudformation_stack_set.go
@@ -147,6 +147,7 @@ func resourceAwsCloudFormationStackSetCreate(d *schema.ResourceData, meta interf
func resourceAwsCloudFormationStackSetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cfconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &cloudformation.DescribeStackSetInput{
StackSetName: aws.String(d.Id()),
@@ -188,7 +189,7 @@ func resourceAwsCloudFormationStackSetRead(d *schema.ResourceData, meta interfac
d.Set("stack_set_id", stackSet.StackSetId)
- if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stackSet.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CloudformationKeyValueTags(stackSet.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go
index b54b1b3612c..93607c5eb1e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go
@@ -801,6 +801,8 @@ func resourceAwsCloudFrontDistributionCreate(d *schema.ResourceData, meta interf
func resourceAwsCloudFrontDistributionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudfrontconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &cloudfront.GetDistributionInput{
Id: aws.String(d.Id()),
}
@@ -821,6 +823,7 @@ func resourceAwsCloudFrontDistributionRead(d *schema.ResourceData, meta interfac
if err != nil {
return err
}
+
// Update other attributes outside of DistributionConfig
err = d.Set("active_trusted_signers", flattenActiveTrustedSigners(resp.Distribution.ActiveTrustedSigners))
if err != nil {
@@ -837,7 +840,7 @@ func resourceAwsCloudFrontDistributionRead(d *schema.ResourceData, meta interfac
if err != nil {
return fmt.Errorf("error listing tags for CloudFront Distribution (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudhsm2_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudhsm2_cluster.go
index 1ff7f8f8662..d08f93bc576 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudhsm2_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudhsm2_cluster.go
@@ -154,6 +154,10 @@ func resourceAwsCloudHsmV2ClusterCreate(d *schema.ResourceData, meta interface{}
SubnetIds: expandStringSet(d.Get("subnet_ids").(*schema.Set)),
}
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ input.TagList = keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().Cloudhsmv2Tags()
+ }
+
backupId := d.Get("source_backup_identifier").(string)
if len(backupId) != 0 {
input.SourceBackupId = aws.String(backupId)
@@ -211,17 +215,12 @@ func resourceAwsCloudHsmV2ClusterCreate(d *schema.ResourceData, meta interface{}
}
}
- if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Cloudhsmv2UpdateTags(conn, d.Id(), nil, v); err != nil {
- return fmt.Errorf("error updating tags: %s", err)
- }
- }
-
return resourceAwsCloudHsmV2ClusterRead(d, meta)
}
func resourceAwsCloudHsmV2ClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudhsmv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
cluster, err := describeCloudHsmV2Cluster(conn, d.Id())
@@ -251,13 +250,7 @@ func resourceAwsCloudHsmV2ClusterRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Error saving Subnet IDs to state for CloudHSMv2 Cluster (%s): %s", d.Id(), err)
}
- tags, err := keyvaluetags.Cloudhsmv2ListTags(conn, d.Id())
-
- if err != nil {
- return fmt.Errorf("error listing tags for resource (%s): %s", d.Id(), err)
- }
-
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Cloudhsmv2KeyValueTags(cluster.TagList).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -314,12 +307,12 @@ func resourceAwsCloudHsmV2ClusterDelete(d *schema.ResourceData, meta interface{}
func readCloudHsmV2ClusterCertificates(cluster *cloudhsmv2.Cluster) []map[string]interface{} {
certs := map[string]interface{}{}
if cluster.Certificates != nil {
- if aws.StringValue(cluster.State) == "UNINITIALIZED" {
+ if aws.StringValue(cluster.State) == cloudhsmv2.ClusterStateUninitialized {
certs["cluster_csr"] = aws.StringValue(cluster.Certificates.ClusterCsr)
certs["aws_hardware_certificate"] = aws.StringValue(cluster.Certificates.AwsHardwareCertificate)
certs["hsm_certificate"] = aws.StringValue(cluster.Certificates.HsmCertificate)
certs["manufacturer_hardware_certificate"] = aws.StringValue(cluster.Certificates.ManufacturerHardwareCertificate)
- } else if aws.StringValue(cluster.State) == "ACTIVE" {
+ } else if aws.StringValue(cluster.State) == cloudhsmv2.ClusterStateActive {
certs["cluster_certificate"] = aws.StringValue(cluster.Certificates.ClusterCertificate)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudtrail.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudtrail.go
index ea77b28319f..26dd93dfe9a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudtrail.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudtrail.go
@@ -224,6 +224,7 @@ func resourceAwsCloudTrailCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsCloudTrailRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudtrailconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := cloudtrail.DescribeTrailsInput{
TrailNameList: []*string{
@@ -277,7 +278,7 @@ func resourceAwsCloudTrailRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for Cloudtrail (%s): %s", *trail.TrailARN, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_dashboard.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_dashboard.go
index a7ff5aac312..04d742bed41 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_dashboard.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_dashboard.go
@@ -34,7 +34,7 @@ func resourceAwsCloudWatchDashboard() *schema.Resource {
"dashboard_body": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_rule.go
index 62a58bfc86d..ce6098b2360 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_rule.go
@@ -132,6 +132,7 @@ func resourceAwsCloudWatchEventRuleCreate(d *schema.ResourceData, meta interface
func resourceAwsCloudWatchEventRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudwatcheventsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := events.DescribeRuleInput{
Name: aws.String(d.Id()),
@@ -177,7 +178,7 @@ func resourceAwsCloudWatchEventRuleRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for CloudWatch Event Rule (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_group.go
index cf1808ab09a..59ef0f27b0d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_group.go
@@ -117,6 +117,8 @@ func resourceAwsCloudWatchLogGroupCreate(d *schema.ResourceData, meta interface{
func resourceAwsCloudWatchLogGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudwatchlogsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading CloudWatch Log Group: %q", d.Get("name").(string))
lg, err := lookupCloudWatchLogGroup(conn, d.Id())
if err != nil {
@@ -142,7 +144,7 @@ func resourceAwsCloudWatchLogGroupRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for CloudWatch Logs Group (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_metric_filter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_metric_filter.go
index 3db85610fda..e8cd1b08f33 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_metric_filter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_log_metric_filter.go
@@ -20,6 +20,9 @@ func resourceAwsCloudWatchLogMetricFilter() *schema.Resource {
Read: resourceAwsCloudWatchLogMetricFilterRead,
Update: resourceAwsCloudWatchLogMetricFilterUpdate,
Delete: resourceAwsCloudWatchLogMetricFilterDelete,
+ Importer: &schema.ResourceImporter{
+ State: resourceAwsCloudWatchLogMetricFilterImport,
+ },
Schema: map[string]*schema.Schema{
"name": {
@@ -85,10 +88,13 @@ func resourceAwsCloudWatchLogMetricFilter() *schema.Resource {
func resourceAwsCloudWatchLogMetricFilterUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudwatchlogsconn
+ name := d.Get("name").(string)
+ logGroupName := d.Get("log_group_name").(string)
+
input := cloudwatchlogs.PutMetricFilterInput{
- FilterName: aws.String(d.Get("name").(string)),
+ FilterName: aws.String(name),
FilterPattern: aws.String(strings.TrimSpace(d.Get("pattern").(string))),
- LogGroupName: aws.String(d.Get("log_group_name").(string)),
+ LogGroupName: aws.String(logGroupName),
}
transformations := d.Get("metric_transformation").([]interface{})
@@ -201,3 +207,16 @@ func resourceAwsCloudWatchLogMetricFilterDelete(d *schema.ResourceData, meta int
return nil
}
+
+func resourceAwsCloudWatchLogMetricFilterImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ idParts := strings.Split(d.Id(), ":")
+ if len(idParts) != 2 || idParts[0] == "" || idParts[1] == "" {
+ return nil, fmt.Errorf("Unexpected format of ID (%q), expected :", d.Id())
+ }
+ logGroupName := idParts[0]
+ name := idParts[1]
+ d.Set("log_group_name", logGroupName)
+ d.Set("name", name)
+ d.SetId(name)
+ return []*schema.ResourceData{d}, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_metric_alarm.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_metric_alarm.go
index e1025068d5f..d073979218d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_metric_alarm.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_metric_alarm.go
@@ -250,6 +250,7 @@ func resourceAwsCloudWatchMetricAlarmCreate(d *schema.ResourceData, meta interfa
func resourceAwsCloudWatchMetricAlarmRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cloudwatchconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := getAwsCloudWatchMetricAlarm(d, meta)
if err != nil {
@@ -329,7 +330,7 @@ func resourceAwsCloudWatchMetricAlarmRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error listing tags for CloudWatch Metric Alarm (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go
index 45b4093e0e7..4fde4c0ee97 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codebuild_project.go
@@ -634,7 +634,7 @@ func resourceAwsCodeBuildProjectCreate(d *schema.ResourceData, meta interface{})
if aws.StringValue(projectSource.Type) == codebuild.SourceTypeNoSource {
if aws.StringValue(projectSource.Buildspec) == "" {
- return fmt.Errorf("`build_spec` must be set when source's `type` is `NO_SOURCE`")
+ return fmt.Errorf("`buildspec` must be set when source's `type` is `NO_SOURCE`")
}
if aws.StringValue(projectSource.Location) != "" {
@@ -1067,6 +1067,7 @@ func expandProjectSourceData(data map[string]interface{}) codebuild.ProjectSourc
func resourceAwsCodeBuildProjectRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codebuildconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.BatchGetProjects(&codebuild.BatchGetProjectsInput{
Names: []*string{
@@ -1135,7 +1136,7 @@ func resourceAwsCodeBuildProjectRead(d *schema.ResourceData, meta interface{}) e
d.Set("badge_url", "")
}
- if err := d.Set("tags", keyvaluetags.CodebuildKeyValueTags(project.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CodebuildKeyValueTags(project.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codecommit_repository.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codecommit_repository.go
index 00f9379eac6..d3a63365fc8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codecommit_repository.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codecommit_repository.go
@@ -121,6 +121,7 @@ func resourceAwsCodeCommitRepositoryUpdate(d *schema.ResourceData, meta interfac
func resourceAwsCodeCommitRepositoryRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codecommitconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &codecommit.GetRepositoryInput{
RepositoryName: aws.String(d.Id()),
@@ -156,7 +157,7 @@ func resourceAwsCodeCommitRepositoryRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for CodeCommit Repository (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codedeploy_deployment_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codedeploy_deployment_group.go
index 82a2c0f270b..515ec9ca000 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codedeploy_deployment_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codedeploy_deployment_group.go
@@ -685,8 +685,8 @@ func resourceAwsCodeDeployDeploymentGroupUpdate(d *schema.ResourceData, meta int
input.DeploymentConfigName = aws.String(n.(string))
}
- // include (original or new) autoscaling groups when blue_green_deployment_config changes
- if d.HasChange("autoscaling_groups") || d.HasChange("blue_green_deployment_config") {
+ // include (original or new) autoscaling groups when blue_green_deployment_config changes except for ECS
+ if _, isEcs := d.GetOk("ecs_service"); d.HasChange("autoscaling_groups") || (d.HasChange("blue_green_deployment_config") && !isEcs) {
_, n := d.GetChange("autoscaling_groups")
input.AutoScalingGroups = expandStringList(n.(*schema.Set).List())
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline.go
index 0234732184e..a00ea8aaddc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline.go
@@ -1,6 +1,7 @@
package aws
import (
+ "errors"
"fmt"
"log"
"os"
@@ -40,18 +41,15 @@ func resourceAwsCodePipeline() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
-
"artifact_store": {
- Type: schema.TypeList,
+ Type: schema.TypeSet,
Required: true,
- MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"location": {
Type: schema.TypeString,
Required: true,
},
-
"type": {
Type: schema.TypeString,
Required: true,
@@ -59,7 +57,6 @@ func resourceAwsCodePipeline() *schema.Resource {
codepipeline.ArtifactStoreTypeS3,
}, false),
},
-
"encryption_key": {
Type: schema.TypeList,
MaxItems: 1,
@@ -70,7 +67,6 @@ func resourceAwsCodePipeline() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
-
"type": {
Type: schema.TypeString,
Required: true,
@@ -81,6 +77,11 @@ func resourceAwsCodePipeline() *schema.Resource {
},
},
},
+ "region": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ },
},
},
},
@@ -102,6 +103,7 @@ func resourceAwsCodePipeline() *schema.Resource {
"configuration": {
Type: schema.TypeMap,
Optional: true,
+ Elem: &schema.Schema{Type: schema.TypeString},
},
"category": {
Type: schema.TypeString,
@@ -155,6 +157,15 @@ func resourceAwsCodePipeline() *schema.Resource {
Optional: true,
Computed: true,
},
+ "region": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ },
+ "namespace": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
},
},
},
@@ -168,13 +179,18 @@ func resourceAwsCodePipeline() *schema.Resource {
func resourceAwsCodePipelineCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codepipelineconn
+
+ pipeline, err := expandAwsCodePipeline(d)
+ if err != nil {
+ return err
+ }
params := &codepipeline.CreatePipelineInput{
- Pipeline: expandAwsCodePipeline(d),
+ Pipeline: pipeline,
Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().CodepipelineTags(),
}
var resp *codepipeline.CreatePipelineOutput
- err := resource.Retry(2*time.Minute, func() *resource.RetryError {
+ err = resource.Retry(2*time.Minute, func() *resource.RetryError {
var err error
resp, err = conn.CreatePipeline(params)
@@ -200,21 +216,60 @@ func resourceAwsCodePipelineCreate(d *schema.ResourceData, meta interface{}) err
return resourceAwsCodePipelineRead(d, meta)
}
-func expandAwsCodePipeline(d *schema.ResourceData) *codepipeline.PipelineDeclaration {
- pipelineArtifactStore := expandAwsCodePipelineArtifactStore(d)
- pipelineStages := expandAwsCodePipelineStages(d)
-
+func expandAwsCodePipeline(d *schema.ResourceData) (*codepipeline.PipelineDeclaration, error) {
pipeline := codepipeline.PipelineDeclaration{
- Name: aws.String(d.Get("name").(string)),
- RoleArn: aws.String(d.Get("role_arn").(string)),
- ArtifactStore: pipelineArtifactStore,
- Stages: pipelineStages,
+ Name: aws.String(d.Get("name").(string)),
+ RoleArn: aws.String(d.Get("role_arn").(string)),
+ Stages: expandAwsCodePipelineStages(d),
}
- return &pipeline
+
+ pipelineArtifactStores, err := expandAwsCodePipelineArtifactStores(d.Get("artifact_store").(*schema.Set).List())
+ if err != nil {
+ return nil, err
+ }
+ if len(pipelineArtifactStores) == 1 {
+ for _, v := range pipelineArtifactStores {
+ pipeline.ArtifactStore = v
+ }
+ } else {
+ pipeline.ArtifactStores = pipelineArtifactStores
+ }
+
+ return &pipeline, nil
}
-func expandAwsCodePipelineArtifactStore(d *schema.ResourceData) *codepipeline.ArtifactStore {
- configs := d.Get("artifact_store").([]interface{})
- data := configs[0].(map[string]interface{})
+
+func expandAwsCodePipelineArtifactStores(configs []interface{}) (map[string]*codepipeline.ArtifactStore, error) {
+ if len(configs) == 0 {
+ return nil, nil
+ }
+
+ regions := make([]string, 0, len(configs))
+ pipelineArtifactStores := make(map[string]*codepipeline.ArtifactStore)
+ for _, config := range configs {
+ region, store := expandAwsCodePipelineArtifactStoreData(config.(map[string]interface{}))
+ regions = append(regions, region)
+ pipelineArtifactStores[region] = store
+ }
+
+ if len(regions) == 1 {
+ if regions[0] != "" {
+ return nil, errors.New("region cannot be set for a single-region CodePipeline")
+ }
+ } else {
+ for _, v := range regions {
+ if v == "" {
+ return nil, errors.New("region must be set for a cross-region CodePipeline")
+ }
+ }
+ if len(configs) != len(pipelineArtifactStores) {
+ return nil, errors.New("only one Artifact Store can be defined per region for a cross-region CodePipeline")
+ }
+ }
+
+ return pipelineArtifactStores, nil
+}
+
+func expandAwsCodePipelineArtifactStoreData(data map[string]interface{}) (string, *codepipeline.ArtifactStore) {
pipelineArtifactStore := codepipeline.ArtifactStore{
Location: aws.String(data["location"].(string)),
Type: aws.String(data["type"].(string)),
@@ -228,10 +283,15 @@ func expandAwsCodePipelineArtifactStore(d *schema.ResourceData) *codepipeline.Ar
}
pipelineArtifactStore.EncryptionKey = &ek
}
- return &pipelineArtifactStore
+
+ return data["region"].(string), &pipelineArtifactStore
}
func flattenAwsCodePipelineArtifactStore(artifactStore *codepipeline.ArtifactStore) []interface{} {
+ if artifactStore == nil {
+ return []interface{}{}
+ }
+
values := map[string]interface{}{}
values["type"] = *artifactStore.Type
values["location"] = *artifactStore.Location
@@ -245,6 +305,16 @@ func flattenAwsCodePipelineArtifactStore(artifactStore *codepipeline.ArtifactSto
return []interface{}{values}
}
+func flattenAwsCodePipelineArtifactStores(artifactStores map[string]*codepipeline.ArtifactStore) []interface{} {
+ values := []interface{}{}
+ for region, artifactStore := range artifactStores {
+ store := flattenAwsCodePipelineArtifactStore(artifactStore)[0].(map[string]interface{})
+ store["region"] = region
+ values = append(values, store)
+ }
+ return values
+}
+
func expandAwsCodePipelineStages(d *schema.ResourceData) []*codepipeline.StageDeclaration {
configs := d.Get("stage").([]interface{})
pipelineStages := []*codepipeline.StageDeclaration{}
@@ -319,6 +389,14 @@ func expandAwsCodePipelineActions(s []interface{}) []*codepipeline.ActionDeclara
if ro > 0 {
action.RunOrder = aws.Int64(int64(ro))
}
+ r := data["region"].(string)
+ if r != "" {
+ action.Region = aws.String(r)
+ }
+ ns := data["namespace"].(string)
+ if len(ns) > 0 {
+ action.Namespace = aws.String(ns)
+ }
actions = append(actions, &action)
}
return actions
@@ -360,6 +438,14 @@ func flattenAwsCodePipelineStageActions(actions []*codepipeline.ActionDeclaratio
values["run_order"] = int(*action.RunOrder)
}
+ if action.Region != nil {
+ values["region"] = *action.Region
+ }
+
+ if action.Namespace != nil {
+ values["namespace"] = aws.StringValue(action.Namespace)
+ }
+
actionsList = append(actionsList, values)
}
return actionsList
@@ -426,6 +512,8 @@ func flattenAwsCodePipelineActionsInputArtifacts(artifacts []*codepipeline.Input
func resourceAwsCodePipelineRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codepipelineconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
resp, err := conn.GetPipeline(&codepipeline.GetPipelineInput{
Name: aws.String(d.Id()),
})
@@ -443,8 +531,14 @@ func resourceAwsCodePipelineRead(d *schema.ResourceData, meta interface{}) error
metadata := resp.Metadata
pipeline := resp.Pipeline
- if err := d.Set("artifact_store", flattenAwsCodePipelineArtifactStore(pipeline.ArtifactStore)); err != nil {
- return err
+ if pipeline.ArtifactStore != nil {
+ if err := d.Set("artifact_store", flattenAwsCodePipelineArtifactStore(pipeline.ArtifactStore)); err != nil {
+ return err
+ }
+ } else if pipeline.ArtifactStores != nil {
+ if err := d.Set("artifact_store", flattenAwsCodePipelineArtifactStores(pipeline.ArtifactStores)); err != nil {
+ return err
+ }
}
if err := d.Set("stage", flattenAwsCodePipelineStages(pipeline.Stages)); err != nil {
@@ -462,7 +556,7 @@ func resourceAwsCodePipelineRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Codepipeline (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -472,11 +566,14 @@ func resourceAwsCodePipelineRead(d *schema.ResourceData, meta interface{}) error
func resourceAwsCodePipelineUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codepipelineconn
- pipeline := expandAwsCodePipeline(d)
+ pipeline, err := expandAwsCodePipeline(d)
+ if err != nil {
+ return err
+ }
params := &codepipeline.UpdatePipelineInput{
Pipeline: pipeline,
}
- _, err := conn.UpdatePipeline(params)
+ _, err = conn.UpdatePipeline(params)
if err != nil {
return fmt.Errorf(
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go
index a97ce7ec104..3fda7a58a7e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go
@@ -228,6 +228,7 @@ func flattenCodePipelineWebhookAuthenticationConfiguration(authConfig *codepipel
func resourceAwsCodePipelineWebhookRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codepipelineconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
arn := d.Id()
webhook, err := getCodePipelineWebhook(conn, arn)
@@ -270,7 +271,7 @@ func resourceAwsCodePipelineWebhookRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error setting filter: %s", err)
}
- if err := d.Set("tags", keyvaluetags.CodepipelineKeyValueTags(webhook.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CodepipelineKeyValueTags(webhook.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codestarnotifications_notification_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codestarnotifications_notification_rule.go
index feb4d21602b..f114798d8f7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codestarnotifications_notification_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_codestarnotifications_notification_rule.go
@@ -142,6 +142,7 @@ func resourceAwsCodeStarNotificationsNotificationRuleCreate(d *schema.ResourceDa
func resourceAwsCodeStarNotificationsNotificationRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codestarnotificationsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
rule, err := conn.DescribeNotificationRule(&codestarnotifications.DescribeNotificationRuleInput{
Arn: aws.String(d.Id()),
@@ -168,7 +169,7 @@ func resourceAwsCodeStarNotificationsNotificationRuleRead(d *schema.ResourceData
d.Set("name", rule.Name)
d.Set("status", rule.Status)
d.Set("resource", rule.Resource)
- d.Set("tags", keyvaluetags.New(rule.Tags).IgnoreAws().Map())
+ d.Set("tags", keyvaluetags.New(rule.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
targets := make([]map[string]interface{}, 0, len(rule.Targets))
for _, t := range rule.Targets {
@@ -233,8 +234,6 @@ func cleanupCodeStarNotificationsNotificationRuleTargets(conn *codestarnotificat
func resourceAwsCodeStarNotificationsNotificationRuleUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codestarnotificationsconn
- d.Partial(true)
-
params := &codestarnotifications.UpdateNotificationRuleInput{
Arn: aws.String(d.Id()),
DetailType: aws.String(d.Get("detail_type").(string)),
@@ -248,11 +247,6 @@ func resourceAwsCodeStarNotificationsNotificationRuleUpdate(d *schema.ResourceDa
return fmt.Errorf("error updating codestar notification rule: %s", err)
}
- d.SetPartial("detail_type")
- d.SetPartial("event_type_ids")
- d.SetPartial("name")
- d.SetPartial("target")
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
if err := keyvaluetags.CodestarnotificationsUpdateTags(conn, d.Id(), o, n); err != nil {
@@ -267,8 +261,6 @@ func resourceAwsCodeStarNotificationsNotificationRuleUpdate(d *schema.ResourceDa
}
}
- d.Partial(false)
-
return resourceAwsCodeStarNotificationsNotificationRuleRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_pool.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_pool.go
index d3ba64534c5..39dd829d222 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_pool.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_pool.go
@@ -149,6 +149,8 @@ func resourceAwsCognitoIdentityPoolCreate(d *schema.ResourceData, meta interface
func resourceAwsCognitoIdentityPoolRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cognitoconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading Cognito Identity Pool: %s", d.Id())
ip, err := conn.DescribeIdentityPool(&cognitoidentity.DescribeIdentityPoolInput{
@@ -173,7 +175,7 @@ func resourceAwsCognitoIdentityPoolRead(d *schema.ResourceData, meta interface{}
d.Set("identity_pool_name", ip.IdentityPoolName)
d.Set("allow_unauthenticated_identities", ip.AllowUnauthenticatedIdentities)
d.Set("developer_provider_name", ip.DeveloperProviderName)
- if err := d.Set("tags", keyvaluetags.CognitoidentityKeyValueTags(ip.IdentityPoolTags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CognitoidentityKeyValueTags(ip.IdentityPoolTags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_provider.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_provider.go
index 29044b853c2..8364786aed5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_provider.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_identity_provider.go
@@ -3,11 +3,13 @@ package aws
import (
"fmt"
"log"
+ "regexp"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)
func resourceAwsCognitoIdentityProvider() *schema.Resource {
@@ -25,13 +27,22 @@ func resourceAwsCognitoIdentityProvider() *schema.Resource {
"attribute_mapping": {
Type: schema.TypeMap,
Optional: true,
+ Computed: true,
+ Elem: &schema.Schema{
+ Type: schema.TypeString,
+ },
},
"idp_identifiers": {
Type: schema.TypeList,
Optional: true,
+ MaxItems: 50,
Elem: &schema.Schema{
Type: schema.TypeString,
+ ValidateFunc: validation.All(
+ validation.StringLenBetween(1, 40),
+ validation.StringMatch(regexp.MustCompile(`^[\w\s+=.@-]+$`), "see https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#API_CreateIdentityProvider_RequestSyntax"),
+ ),
},
},
@@ -43,11 +54,25 @@ func resourceAwsCognitoIdentityProvider() *schema.Resource {
"provider_name": {
Type: schema.TypeString,
Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.All(
+ validation.StringLenBetween(1, 32),
+ validation.StringMatch(regexp.MustCompile(`^[^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+$`), "see https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#API_CreateIdentityProvider_RequestSyntax"),
+ ),
},
"provider_type": {
Type: schema.TypeString,
Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ cognitoidentityprovider.IdentityProviderTypeTypeSaml,
+ cognitoidentityprovider.IdentityProviderTypeTypeFacebook,
+ cognitoidentityprovider.IdentityProviderTypeTypeGoogle,
+ cognitoidentityprovider.IdentityProviderTypeTypeLoginWithAmazon,
+ cognitoidentityprovider.IdentityProviderTypeTypeOidc,
+ cognitoidentityprovider.IdentityProviderTypeTypeSignInWithApple,
+ }, false),
},
"user_pool_id": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_user_pool.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_user_pool.go
index a5eda64b9a0..9d5e77851e2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_user_pool.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cognito_user_pool.go
@@ -784,6 +784,7 @@ func resourceAwsCognitoUserPoolCreate(d *schema.ResourceData, meta interface{})
func resourceAwsCognitoUserPoolRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).cognitoidpconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &cognitoidentityprovider.DescribeUserPoolInput{
UserPoolId: aws.String(d.Id()),
@@ -881,7 +882,7 @@ func resourceAwsCognitoUserPoolRead(d *schema.ResourceData, meta interface{}) er
d.Set("creation_date", resp.UserPool.CreationDate.Format(time.RFC3339))
d.Set("last_modified_date", resp.UserPool.LastModifiedDate.Format(time.RFC3339))
d.Set("name", resp.UserPool.Name)
- if err := d.Set("tags", keyvaluetags.CognitoidentityKeyValueTags(resp.UserPool.UserPoolTags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.CognitoidentityKeyValueTags(resp.UserPool.UserPoolTags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_aggregate_authorization.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_aggregate_authorization.go
index 8eb59b988c2..7f6663ece8e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_aggregate_authorization.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_aggregate_authorization.go
@@ -67,6 +67,7 @@ func resourceAwsConfigAggregateAuthorizationPut(d *schema.ResourceData, meta int
func resourceAwsConfigAggregateAuthorizationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).configconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
accountId, region, err := resourceAwsConfigAggregateAuthorizationParseID(d.Id())
if err != nil {
@@ -103,7 +104,7 @@ func resourceAwsConfigAggregateAuthorizationRead(d *schema.ResourceData, meta in
return fmt.Errorf("error listing tags for Config Aggregate Authorization (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_config_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_config_rule.go
index 2c552a85f32..83605a1dc40 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_config_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_config_rule.go
@@ -49,7 +49,7 @@ func resourceAwsConfigConfigRule() *schema.Resource {
"input_parameters": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"maximum_execution_frequency": {
Type: schema.TypeString,
@@ -205,6 +205,7 @@ func resourceAwsConfigConfigRulePut(d *schema.ResourceData, meta interface{}) er
func resourceAwsConfigConfigRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).configconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
out, err := conn.DescribeConfigRules(&configservice.DescribeConfigRulesInput{
ConfigRuleNames: []*string{aws.String(d.Id())},
@@ -252,7 +253,7 @@ func resourceAwsConfigConfigRuleRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error listing tags for Config Config Rule (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_aggregator.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_aggregator.go
index 8c1bac5fe19..81a6a5574a9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_aggregator.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_aggregator.go
@@ -151,6 +151,8 @@ func resourceAwsConfigConfigurationAggregatorPut(d *schema.ResourceData, meta in
func resourceAwsConfigConfigurationAggregatorRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).configconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &configservice.DescribeConfigurationAggregatorsInput{
ConfigurationAggregatorNames: []*string{aws.String(d.Id())},
}
@@ -189,7 +191,7 @@ func resourceAwsConfigConfigurationAggregatorRead(d *schema.ResourceData, meta i
return fmt.Errorf("error listing tags for Config Configuration Aggregator (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder.go
index e5787e156e1..aa05a0e3ca7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder.go
@@ -8,7 +8,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/configservice"
)
@@ -99,7 +98,7 @@ func resourceAwsConfigConfigurationRecorderRead(d *schema.ResourceData, meta int
}
out, err := conn.DescribeConfigurationRecorders(&input)
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "NoSuchConfigurationRecorderException" {
+ if isAWSErr(err, configservice.ErrCodeNoSuchConfigurationRecorderException, "") {
log.Printf("[WARN] Configuration Recorder %q is gone (NoSuchConfigurationRecorderException)", d.Id())
d.SetId("")
return nil
@@ -142,8 +141,9 @@ func resourceAwsConfigConfigurationRecorderDelete(d *schema.ResourceData, meta i
}
_, err := conn.DeleteConfigurationRecorder(&input)
if err != nil {
- return fmt.Errorf("Deleting Configuration Recorder failed: %s", err)
+ if !isAWSErr(err, configservice.ErrCodeNoSuchConfigurationRecorderException, "") {
+ return fmt.Errorf("Deleting Configuration Recorder failed: %s", err)
+ }
}
-
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder_status.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder_status.go
index ed0cfbd51c2..34afae3bb84 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder_status.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_configuration_recorder_status.go
@@ -7,7 +7,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/configservice"
)
@@ -79,12 +78,10 @@ func resourceAwsConfigConfigurationRecorderStatusRead(d *schema.ResourceData, me
}
statusOut, err := conn.DescribeConfigurationRecorderStatus(&statusInput)
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok {
- if awsErr.Code() == "NoSuchConfigurationRecorderException" {
- log.Printf("[WARN] Configuration Recorder (status) %q is gone (NoSuchConfigurationRecorderException)", name)
- d.SetId("")
- return nil
- }
+ if isAWSErr(err, configservice.ErrCodeNoSuchConfigurationRecorderException, "") {
+ log.Printf("[WARN] Configuration Recorder (status) %q is gone (NoSuchConfigurationRecorderException)", name)
+ d.SetId("")
+ return nil
}
return fmt.Errorf("Failed describing Configuration Recorder %q status: %s",
name, err)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_custom_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_custom_rule.go
index c4ddc2fd56e..04f3941bee5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_custom_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_custom_rule.go
@@ -53,7 +53,7 @@ func resourceAwsConfigOrganizationCustomRule() *schema.Resource {
DiffSuppressFunc: suppressEquivalentJsonDiffs,
ValidateFunc: validation.All(
validation.StringLenBetween(0, 2048),
- validation.ValidateJsonString,
+ validation.StringIsJSON,
),
},
"lambda_function_arn": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_managed_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_managed_rule.go
index b37f6d7999d..0868caedf79 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_managed_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_config_organization_managed_rule.go
@@ -53,7 +53,7 @@ func resourceAwsConfigOrganizationManagedRule() *schema.Resource {
DiffSuppressFunc: suppressEquivalentJsonDiffs,
ValidateFunc: validation.All(
validation.StringLenBetween(0, 2048),
- validation.ValidateJsonString,
+ validation.StringIsJSON,
),
},
"maximum_execution_frequency": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_customer_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_customer_gateway.go
index a1e1ea6a2b2..5427250f038 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_customer_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_customer_gateway.go
@@ -100,7 +100,7 @@ func resourceAwsCustomerGatewayCreate(d *schema.ResourceData, meta interface{})
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 Customer Gateway (%s) tags: %s", d.Id(), err)
}
}
@@ -170,6 +170,7 @@ func resourceAwsCustomerGatewayExists(vpnType, ipAddress string, bgpAsn int, con
func resourceAwsCustomerGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
gatewayFilter := &ec2.Filter{
Name: aws.String("customer-gateway-id"),
@@ -203,7 +204,7 @@ func resourceAwsCustomerGatewayRead(d *schema.ResourceData, meta interface{}) er
d.Set("ip_address", customerGateway.IpAddress)
d.Set("type", customerGateway.Type)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(customerGateway.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(customerGateway.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datapipeline_pipeline.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datapipeline_pipeline.go
index 193c92d8d62..41195f5b8ae 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datapipeline_pipeline.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datapipeline_pipeline.go
@@ -68,6 +68,7 @@ func resourceAwsDataPipelinePipelineCreate(d *schema.ResourceData, meta interfac
func resourceAwsDataPipelinePipelineRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datapipelineconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
v, err := resourceAwsDataPipelinePipelineRetrieve(d.Id(), conn)
if isAWSErr(err, datapipeline.ErrCodePipelineNotFoundException, "") || isAWSErr(err, datapipeline.ErrCodePipelineDeletedException, "") || v == nil {
@@ -81,7 +82,7 @@ func resourceAwsDataPipelinePipelineRead(d *schema.ResourceData, meta interface{
d.Set("name", v.Name)
d.Set("description", v.Description)
- if err := d.Set("tags", keyvaluetags.DatapipelineKeyValueTags(v.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.DatapipelineKeyValueTags(v.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_agent.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_agent.go
index 00d20efd745..5046e40bda3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_agent.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_agent.go
@@ -169,6 +169,7 @@ func resourceAwsDataSyncAgentCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsDataSyncAgentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeAgentInput{
AgentArn: aws.String(d.Id()),
@@ -196,7 +197,7 @@ func resourceAwsDataSyncAgentRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for DataSync Agent (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_efs.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_efs.go
index 63997c02fed..e30d4c6a9c8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_efs.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_efs.go
@@ -103,6 +103,7 @@ func resourceAwsDataSyncLocationEfsCreate(d *schema.ResourceData, meta interface
func resourceAwsDataSyncLocationEfsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeLocationEfsInput{
LocationArn: aws.String(d.Id()),
@@ -142,7 +143,7 @@ func resourceAwsDataSyncLocationEfsRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for DataSync Location EFS (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_nfs.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_nfs.go
index a8a782867b2..1f6b3fd455b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_nfs.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_nfs.go
@@ -96,6 +96,7 @@ func resourceAwsDataSyncLocationNfsCreate(d *schema.ResourceData, meta interface
func resourceAwsDataSyncLocationNfsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeLocationNfsInput{
LocationArn: aws.String(d.Id()),
@@ -135,7 +136,7 @@ func resourceAwsDataSyncLocationNfsRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for DataSync Location NFS (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_s3.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_s3.go
index 72203bad8f3..9a3c8e4b1fb 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_s3.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_s3.go
@@ -126,6 +126,7 @@ func resourceAwsDataSyncLocationS3Create(d *schema.ResourceData, meta interface{
func resourceAwsDataSyncLocationS3Read(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeLocationS3Input{
LocationArn: aws.String(d.Id()),
@@ -165,7 +166,7 @@ func resourceAwsDataSyncLocationS3Read(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for DataSync Location S3 (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_smb.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_smb.go
index 6acc75790a7..9768a87db0f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_smb.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_location_smb.go
@@ -131,6 +131,7 @@ func resourceAwsDataSyncLocationSmbCreate(d *schema.ResourceData, meta interface
func resourceAwsDataSyncLocationSmbRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeLocationSmbInput{
LocationArn: aws.String(d.Id()),
@@ -178,7 +179,7 @@ func resourceAwsDataSyncLocationSmbRead(d *schema.ResourceData, meta interface{}
d.Set("subdirectory", subdirectory)
- if err := d.Set("tags", keyvaluetags.DatasyncKeyValueTags(tagsOutput.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.DatasyncKeyValueTags(tagsOutput.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_task.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_task.go
index a36d73385c1..65405532107 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_task.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_datasync_task.go
@@ -231,6 +231,7 @@ func resourceAwsDataSyncTaskCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsDataSyncTaskRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).datasyncconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &datasync.DescribeTaskInput{
TaskArn: aws.String(d.Id()),
@@ -266,7 +267,7 @@ func resourceAwsDataSyncTaskRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for DataSync Task (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dax_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dax_cluster.go
index 35f240a2ff6..63af0594cf9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dax_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dax_cluster.go
@@ -271,6 +271,8 @@ func resourceAwsDaxClusterCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsDaxClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).daxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &dax.DescribeClustersInput{
ClusterNames: []*string{aws.String(d.Id())},
}
@@ -335,7 +337,7 @@ func resourceAwsDaxClusterRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for DAX Cluster (%s): %s", aws.StringValue(c.ClusterArn), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_cluster_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_cluster_snapshot.go
index 8a0d1d82deb..c07fae4abf2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_cluster_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_cluster_snapshot.go
@@ -131,6 +131,7 @@ func resourceAwsDbClusterSnapshotCreate(d *schema.ResourceData, meta interface{}
func resourceAwsDbClusterSnapshotRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &rds.DescribeDBClusterSnapshotsInput{
DBClusterSnapshotIdentifier: aws.String(d.Id()),
@@ -177,7 +178,7 @@ func resourceAwsDbClusterSnapshotRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for RDS DB Cluster Snapshot (%s): %s", d.Get("db_cluster_snapshot_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -193,8 +194,6 @@ func resourceAwsdbClusterSnapshotUpdate(d *schema.ResourceData, meta interface{}
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("db_cluster_snapshot_arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS DB Cluster Snapshot (%s) tags: %s", d.Get("db_cluster_snapshot_arn").(string), err)
}
-
- d.SetPartial("tags")
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_event_subscription.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_event_subscription.go
index bcb8b1840cc..0cb0edbbb2e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_event_subscription.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_event_subscription.go
@@ -149,6 +149,7 @@ func resourceAwsDbEventSubscriptionCreate(d *schema.ResourceData, meta interface
func resourceAwsDbEventSubscriptionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
sub, err := resourceAwsDbEventSubscriptionRetrieve(d.Id(), conn)
@@ -197,7 +198,7 @@ func resourceAwsDbEventSubscriptionRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for RDS Event Subscription (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -236,7 +237,6 @@ func resourceAwsDbEventSubscriptionRetrieve(name string, conn *rds.RDS) (*rds.Ev
func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
- d.Partial(true)
requestUpdate := false
req := &rds.ModifyEventSubscriptionInput{
@@ -293,10 +293,6 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
if err != nil {
return fmt.Errorf("Modifying RDS Event Subscription %s failed: %s", d.Id(), err)
}
- d.SetPartial("event_categories")
- d.SetPartial("enabled")
- d.SetPartial("sns_topic")
- d.SetPartial("source_type")
}
if d.HasChange("tags") {
@@ -305,8 +301,6 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS Event Subscription (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("source_ids") {
@@ -348,11 +342,8 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
}
}
}
- d.SetPartial("source_ids")
}
- d.Partial(false)
-
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance.go
index 8cdfef1f3e2..56921e6fe65 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance.go
@@ -380,7 +380,6 @@ func resourceAwsDbInstance() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
- Elem: &schema.Schema{Type: schema.TypeString},
},
"auto_minor_version_upgrade": {
@@ -642,8 +641,7 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
- modifyDbInstanceInput.VpcSecurityGroupIds = expandStringSet(attr)
- requiresModifyDbInstance = true
+ opts.VpcSecurityGroupIds = expandStringSet(attr)
}
if attr, ok := d.GetOk("performance_insights_enabled"); ok {
@@ -736,19 +734,11 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
- var s []*string
- for _, v := range attr.List() {
- s = append(s, aws.String(v.(string)))
- }
- opts.VpcSecurityGroupIds = s
+ opts.VpcSecurityGroupIds = expandStringSet(attr)
}
if attr := d.Get("security_group_names").(*schema.Set); attr.Len() > 0 {
- var s []*string
- for _, v := range attr.List() {
- s = append(s, aws.String(v.(string)))
- }
- opts.DBSecurityGroups = s
+ opts.DBSecurityGroups = expandStringSet(attr)
}
if attr, ok := d.GetOk("storage_type"); ok {
opts.StorageType = aws.String(attr.(string))
@@ -1008,8 +998,7 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
- modifyDbInstanceInput.VpcSecurityGroupIds = expandStringSet(attr)
- requiresModifyDbInstance = true
+ opts.VpcSecurityGroupIds = expandStringSet(attr)
}
if attr, ok := d.GetOk("performance_insights_enabled"); ok {
@@ -1113,19 +1102,11 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}
if attr := d.Get("vpc_security_group_ids").(*schema.Set); attr.Len() > 0 {
- var s []*string
- for _, v := range attr.List() {
- s = append(s, aws.String(v.(string)))
- }
- opts.VpcSecurityGroupIds = s
+ opts.VpcSecurityGroupIds = expandStringSet(attr)
}
if attr := d.Get("security_group_names").(*schema.Set); attr.Len() > 0 {
- var s []*string
- for _, v := range attr.List() {
- s = append(s, aws.String(v.(string)))
- }
- opts.DBSecurityGroups = s
+ opts.DBSecurityGroups = expandStringSet(attr)
}
if attr, ok := d.GetOk("storage_type"); ok {
opts.StorageType = aws.String(attr.(string))
@@ -1276,7 +1257,10 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}
func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
- v, err := resourceAwsDbInstanceRetrieve(d.Id(), meta.(*AWSClient).rdsconn)
+ conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ v, err := resourceAwsDbInstanceRetrieve(d.Id(), conn)
if err != nil {
return err
@@ -1357,10 +1341,6 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("domain_iam_role_name", v.DomainMemberships[0].IAMRoleName)
}
- // list tags for resource
- // set tags
- conn := meta.(*AWSClient).rdsconn
-
arn := aws.StringValue(v.DBInstanceArn)
d.Set("arn", arn)
@@ -1370,7 +1350,7 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for RDS DB Instance (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -1470,81 +1450,64 @@ func waitUntilAwsDbInstanceIsDeleted(id string, conn *rds.RDS, timeout time.Dura
func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
- d.Partial(true)
-
req := &rds.ModifyDBInstanceInput{
ApplyImmediately: aws.Bool(d.Get("apply_immediately").(bool)),
DBInstanceIdentifier: aws.String(d.Id()),
}
- d.SetPartial("apply_immediately")
-
if !aws.BoolValue(req.ApplyImmediately) {
log.Println("[INFO] Only settings updating, instance changes will be applied in next maintenance window")
}
requestUpdate := false
if d.HasChange("allocated_storage") || d.HasChange("iops") {
- d.SetPartial("allocated_storage")
- d.SetPartial("iops")
req.Iops = aws.Int64(int64(d.Get("iops").(int)))
req.AllocatedStorage = aws.Int64(int64(d.Get("allocated_storage").(int)))
requestUpdate = true
}
if d.HasChange("allow_major_version_upgrade") {
- d.SetPartial("allow_major_version_upgrade")
req.AllowMajorVersionUpgrade = aws.Bool(d.Get("allow_major_version_upgrade").(bool))
// Having allowing_major_version_upgrade by itself should not trigger ModifyDBInstance
// as it results in InvalidParameterCombination: No modifications were requested
}
if d.HasChange("backup_retention_period") {
- d.SetPartial("backup_retention_period")
req.BackupRetentionPeriod = aws.Int64(int64(d.Get("backup_retention_period").(int)))
requestUpdate = true
}
if d.HasChange("copy_tags_to_snapshot") {
- d.SetPartial("copy_tags_to_snapshot")
req.CopyTagsToSnapshot = aws.Bool(d.Get("copy_tags_to_snapshot").(bool))
requestUpdate = true
}
if d.HasChange("ca_cert_identifier") {
- d.SetPartial("ca_cert_identifier")
req.CACertificateIdentifier = aws.String(d.Get("ca_cert_identifier").(string))
requestUpdate = true
}
if d.HasChange("deletion_protection") {
- d.SetPartial("deletion_protection")
req.DeletionProtection = aws.Bool(d.Get("deletion_protection").(bool))
requestUpdate = true
}
if d.HasChange("instance_class") {
- d.SetPartial("instance_class")
req.DBInstanceClass = aws.String(d.Get("instance_class").(string))
requestUpdate = true
}
if d.HasChange("parameter_group_name") {
- d.SetPartial("parameter_group_name")
req.DBParameterGroupName = aws.String(d.Get("parameter_group_name").(string))
requestUpdate = true
}
if d.HasChange("engine_version") {
- d.SetPartial("engine_version")
req.EngineVersion = aws.String(d.Get("engine_version").(string))
req.AllowMajorVersionUpgrade = aws.Bool(d.Get("allow_major_version_upgrade").(bool))
requestUpdate = true
}
if d.HasChange("backup_window") {
- d.SetPartial("backup_window")
req.PreferredBackupWindow = aws.String(d.Get("backup_window").(string))
requestUpdate = true
}
if d.HasChange("maintenance_window") {
- d.SetPartial("maintenance_window")
req.PreferredMaintenanceWindow = aws.String(d.Get("maintenance_window").(string))
requestUpdate = true
}
if d.HasChange("max_allocated_storage") {
- d.SetPartial("max_allocated_storage")
mas := d.Get("max_allocated_storage").(int)
// The API expects the max allocated storage value to be set to the allocated storage
@@ -1558,22 +1521,18 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
requestUpdate = true
}
if d.HasChange("password") {
- d.SetPartial("password")
req.MasterUserPassword = aws.String(d.Get("password").(string))
requestUpdate = true
}
if d.HasChange("multi_az") {
- d.SetPartial("multi_az")
req.MultiAZ = aws.Bool(d.Get("multi_az").(bool))
requestUpdate = true
}
if d.HasChange("publicly_accessible") {
- d.SetPartial("publicly_accessible")
req.PubliclyAccessible = aws.Bool(d.Get("publicly_accessible").(bool))
requestUpdate = true
}
if d.HasChange("storage_type") {
- d.SetPartial("storage_type")
req.StorageType = aws.String(d.Get("storage_type").(string))
requestUpdate = true
@@ -1582,19 +1541,16 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
}
}
if d.HasChange("auto_minor_version_upgrade") {
- d.SetPartial("auto_minor_version_upgrade")
req.AutoMinorVersionUpgrade = aws.Bool(d.Get("auto_minor_version_upgrade").(bool))
requestUpdate = true
}
if d.HasChange("monitoring_role_arn") {
- d.SetPartial("monitoring_role_arn")
req.MonitoringRoleArn = aws.String(d.Get("monitoring_role_arn").(string))
requestUpdate = true
}
if d.HasChange("monitoring_interval") {
- d.SetPartial("monitoring_interval")
req.MonitoringInterval = aws.Int64(int64(d.Get("monitoring_interval").(int)))
requestUpdate = true
}
@@ -1614,24 +1570,20 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("option_group_name") {
- d.SetPartial("option_group_name")
req.OptionGroupName = aws.String(d.Get("option_group_name").(string))
requestUpdate = true
}
if d.HasChange("port") {
- d.SetPartial("port")
req.DBPortNumber = aws.Int64(int64(d.Get("port").(int)))
requestUpdate = true
}
if d.HasChange("db_subnet_group_name") {
- d.SetPartial("db_subnet_group_name")
req.DBSubnetGroupName = aws.String(d.Get("db_subnet_group_name").(string))
requestUpdate = true
}
if d.HasChange("enabled_cloudwatch_logs_exports") {
- d.SetPartial("enabled_cloudwatch_logs_exports")
req.CloudwatchLogsExportConfiguration = buildCloudwatchLogsExportConfiguration(d)
requestUpdate = true
}
@@ -1642,24 +1594,19 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("domain") || d.HasChange("domain_iam_role_name") {
- d.SetPartial("domain")
- d.SetPartial("domain_iam_role_name")
req.Domain = aws.String(d.Get("domain").(string))
req.DomainIAMRoleName = aws.String(d.Get("domain_iam_role_name").(string))
requestUpdate = true
}
if d.HasChange("performance_insights_enabled") || d.HasChange("performance_insights_kms_key_id") || d.HasChange("performance_insights_retention_period") {
- d.SetPartial("performance_insights_enabled")
req.EnablePerformanceInsights = aws.Bool(d.Get("performance_insights_enabled").(bool))
if v, ok := d.GetOk("performance_insights_kms_key_id"); ok {
- d.SetPartial("performance_insights_kms_key_id")
req.PerformanceInsightsKMSKeyId = aws.String(v.(string))
}
if v, ok := d.GetOk("performance_insights_retention_period"); ok {
- d.SetPartial("performance_insights_retention_period")
req.PerformanceInsightsRetentionPeriod = aws.Int64(int64(v.(int)))
}
@@ -1729,11 +1676,8 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error updating RDS DB Instance (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsDbInstanceRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance_migrate.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance_migrate.go
index 52e5ddd28de..51b5800b46c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance_migrate.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance_migrate.go
@@ -283,7 +283,6 @@ func resourceAwsDbInstanceResourceV0() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
- Elem: &schema.Schema{Type: schema.TypeString},
},
"auto_minor_version_upgrade": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_option_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_option_group.go
index 53d8376f5a0..0aebbfeb563 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_option_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_option_group.go
@@ -160,6 +160,8 @@ func resourceAwsDbOptionGroupCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsDbOptionGroupRead(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &rds.DescribeOptionGroupsInput{
OptionGroupName: aws.String(d.Id()),
}
@@ -207,7 +209,7 @@ func resourceAwsDbOptionGroupRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for RDS Option Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -285,7 +287,6 @@ func resourceAwsDbOptionGroupUpdate(d *schema.ResourceData, meta interface{}) er
if err != nil {
return fmt.Errorf("Error modifying DB Option Group: %s", err)
}
- d.SetPartial("option")
}
}
@@ -295,8 +296,6 @@ func resourceAwsDbOptionGroupUpdate(d *schema.ResourceData, meta interface{}) er
if err := keyvaluetags.RdsUpdateTags(rdsconn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS Option Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
return resourceAwsDbOptionGroupRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_parameter_group.go
index d553efd4c78..4456fbe43e2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_parameter_group.go
@@ -113,12 +113,6 @@ func resourceAwsDbParameterGroupCreate(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Error creating DB Parameter Group: %s", err)
}
- d.Partial(true)
- d.SetPartial("name")
- d.SetPartial("family")
- d.SetPartial("description")
- d.Partial(false)
-
d.SetId(aws.StringValue(resp.DBParameterGroup.DBParameterGroupName))
d.Set("arn", resp.DBParameterGroup.DBParameterGroupArn)
log.Printf("[INFO] DB Parameter Group ID: %s", d.Id())
@@ -128,6 +122,7 @@ func resourceAwsDbParameterGroupCreate(d *schema.ResourceData, meta interface{})
func resourceAwsDbParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := rds.DescribeDBParameterGroupsInput{
DBParameterGroupName: aws.String(d.Id()),
@@ -236,7 +231,7 @@ func resourceAwsDbParameterGroupRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error listing tags for RDS DB Parameter Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -246,8 +241,6 @@ func resourceAwsDbParameterGroupRead(d *schema.ResourceData, meta interface{}) e
func resourceAwsDbParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -327,12 +320,8 @@ func resourceAwsDbParameterGroupUpdate(d *schema.ResourceData, meta interface{})
if err := keyvaluetags.RdsUpdateTags(rdsconn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS DB Parameter Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsDbParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_security_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_security_group.go
index 9164ec903a9..218490e86e5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_security_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_security_group.go
@@ -141,6 +141,8 @@ func resourceAwsDbSecurityGroupCreate(d *schema.ResourceData, meta interface{})
}
func resourceAwsDbSecurityGroupRead(d *schema.ResourceData, meta interface{}) error {
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
sg, err := resourceAwsDbSecurityGroupRetrieve(d, meta)
if err != nil {
return err
@@ -186,7 +188,7 @@ func resourceAwsDbSecurityGroupRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error listing tags for RDS DB Security Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -196,16 +198,12 @@ func resourceAwsDbSecurityGroupRead(d *schema.ResourceData, meta interface{}) er
func resourceAwsDbSecurityGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS DB Security Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("ingress") {
@@ -243,7 +241,6 @@ func resourceAwsDbSecurityGroupUpdate(d *schema.ResourceData, meta interface{})
}
}
}
- d.Partial(false)
return resourceAwsDbSecurityGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_snapshot.go
index 62ec2beca68..ac0f8f4d61e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_snapshot.go
@@ -18,6 +18,9 @@ func resourceAwsDbSnapshot() *schema.Resource {
Read: resourceAwsDbSnapshotRead,
Update: resourceAwsDbSnapshotUpdate,
Delete: resourceAwsDbSnapshotDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
Timeouts: &schema.ResourceTimeout{
Read: schema.DefaultTimeout(20 * time.Minute),
@@ -119,11 +122,11 @@ func resourceAwsDbSnapshotCreate(d *schema.ResourceData, meta interface{}) error
Tags: tags,
}
- _, err := conn.CreateDBSnapshot(params)
+ resp, err := conn.CreateDBSnapshot(params)
if err != nil {
return fmt.Errorf("Error creating AWS DB Snapshot %s: %s", dBInstanceIdentifier, err)
}
- d.SetId(d.Get("db_snapshot_identifier").(string))
+ d.SetId(aws.StringValue(resp.DBSnapshot.DBSnapshotIdentifier))
stateConf := &resource.StateChangeConf{
Pending: []string{"creating"},
@@ -145,6 +148,7 @@ func resourceAwsDbSnapshotCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsDbSnapshotRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &rds.DescribeDBSnapshotsInput{
DBSnapshotIdentifier: aws.String(d.Id()),
@@ -163,9 +167,12 @@ func resourceAwsDbSnapshotRead(d *schema.ResourceData, meta interface{}) error {
snapshot := resp.DBSnapshots[0]
+ arn := aws.StringValue(snapshot.DBSnapshotArn)
+ d.Set("db_snapshot_identifier", snapshot.DBSnapshotIdentifier)
+ d.Set("db_instance_identifier", snapshot.DBInstanceIdentifier)
d.Set("allocated_storage", snapshot.AllocatedStorage)
d.Set("availability_zone", snapshot.AvailabilityZone)
- d.Set("db_snapshot_arn", snapshot.DBSnapshotArn)
+ d.Set("db_snapshot_arn", arn)
d.Set("encrypted", snapshot.Encrypted)
d.Set("engine", snapshot.Engine)
d.Set("engine_version", snapshot.EngineVersion)
@@ -180,13 +187,13 @@ func resourceAwsDbSnapshotRead(d *schema.ResourceData, meta interface{}) error {
d.Set("status", snapshot.Status)
d.Set("vpc_id", snapshot.VpcId)
- tags, err := keyvaluetags.RdsListTags(conn, d.Get("db_snapshot_arn").(string))
+ tags, err := keyvaluetags.RdsListTags(conn, arn)
if err != nil {
- return fmt.Errorf("error listing tags for RDS DB Snapshot (%s): %s", d.Get("db_snapshot_arn").(string), err)
+ return fmt.Errorf("error listing tags for RDS DB Snapshot (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -220,8 +227,6 @@ func resourceAwsDbSnapshotUpdate(d *schema.ResourceData, meta interface{}) error
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("db_snapshot_arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS DB Snapshot (%s) tags: %s", d.Get("db_snapshot_arn").(string), err)
}
-
- d.SetPartial("tags")
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_subnet_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_subnet_group.go
index 80a29a1d320..548e4a42a27 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_subnet_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_subnet_group.go
@@ -104,6 +104,7 @@ func resourceAwsDbSubnetGroupCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsDbSubnetGroupRead(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := rds.DescribeDBSubnetGroupsInput{
DBSubnetGroupName: aws.String(d.Id()),
@@ -157,7 +158,7 @@ func resourceAwsDbSubnetGroupRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for RDS DB Subnet Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -195,8 +196,6 @@ func resourceAwsDbSubnetGroupUpdate(d *schema.ResourceData, meta interface{}) er
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS DB Subnet Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
return resourceAwsDbSubnetGroupRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_network_acl.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_network_acl.go
index 80b5c86b41b..ea3ffad7196 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_network_acl.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_network_acl.go
@@ -26,6 +26,12 @@ func resourceAwsDefaultNetworkAcl() *schema.Resource {
Read: resourceAwsNetworkAclRead,
Delete: resourceAwsDefaultNetworkAclDelete,
Update: resourceAwsDefaultNetworkAclUpdate,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ d.Set("default_network_acl_id", d.Id())
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"vpc_id": {
@@ -169,7 +175,6 @@ func resourceAwsDefaultNetworkAclCreate(d *schema.ResourceData, meta interface{}
func resourceAwsDefaultNetworkAclUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
if d.HasChange("ingress") {
err := updateNetworkAclEntries(d, "ingress", conn)
@@ -241,7 +246,6 @@ func resourceAwsDefaultNetworkAclUpdate(d *schema.ResourceData, meta interface{}
}
}
- d.Partial(false)
// Re-use the exiting Network ACL Resources READ method
return resourceAwsNetworkAclRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_route_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_route_table.go
index 964182a739c..e3ad506f883 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_route_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_route_table.go
@@ -7,6 +7,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
func resourceAwsDefaultRouteTable() *schema.Resource {
@@ -15,6 +17,12 @@ func resourceAwsDefaultRouteTable() *schema.Resource {
Read: resourceAwsDefaultRouteTableRead,
Update: resourceAwsRouteTableUpdate,
Delete: resourceAwsDefaultRouteTableDelete,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ d.Set("vpc_id", d.Id())
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"default_route_table_id": {
@@ -43,13 +51,15 @@ func resourceAwsDefaultRouteTable() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"cidr_block": {
- Type: schema.TypeString,
- Optional: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.IsCIDR,
},
"ipv6_cidr_block": {
- Type: schema.TypeString,
- Optional: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.IsCIDR,
},
"egress_only_gateway_id": {
@@ -124,6 +134,12 @@ func resourceAwsDefaultRouteTableCreate(d *schema.ResourceData, meta interface{}
return err
}
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
+ }
+
return resourceAwsRouteTableUpdate(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_security_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_security_group.go
index c07640206ec..b6076f721e5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_security_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_security_group.go
@@ -92,7 +92,7 @@ func resourceAwsDefaultSecurityGroupCreate(d *schema.ResourceData, meta interfac
log.Printf("[INFO] Default Security Group ID: %s", d.Id())
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 Default Security Group (%s) tags: %s", d.Id(), err)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_directory_service_directory.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_directory_service_directory.go
index 75e5933c8a0..fcd49045671 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_directory_service_directory.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_directory_service_directory.go
@@ -314,8 +314,6 @@ func createActiveDirectoryService(dsconn *directoryservice.DirectoryService, d *
}
func enableDirectoryServiceSso(dsconn *directoryservice.DirectoryService, d *schema.ResourceData) error {
- d.SetPartial("enable_sso")
-
if v, ok := d.GetOk("enable_sso"); ok && v.(bool) {
log.Printf("[DEBUG] Enabling SSO for DS directory %q", d.Id())
if _, err := dsconn.EnableSso(&directoryservice.EnableSsoInput{
@@ -388,8 +386,6 @@ func resourceAwsDirectoryServiceDirectoryCreate(d *schema.ResourceData, meta int
}
if v, ok := d.GetOk("alias"); ok {
- d.SetPartial("alias")
-
input := directoryservice.CreateAliasInput{
DirectoryId: aws.String(d.Id()),
Alias: aws.String(v.(string)),
@@ -436,6 +432,7 @@ func resourceAwsDirectoryServiceDirectoryUpdate(d *schema.ResourceData, meta int
func resourceAwsDirectoryServiceDirectoryRead(d *schema.ResourceData, meta interface{}) error {
dsconn := meta.(*AWSClient).dsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := directoryservice.DescribeDirectoriesInput{
DirectoryIds: []*string{aws.String(d.Id())},
@@ -485,7 +482,7 @@ func resourceAwsDirectoryServiceDirectoryRead(d *schema.ResourceData, meta inter
return fmt.Errorf("error listing tags for Directory Service Directory (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dlm_lifecycle_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dlm_lifecycle_policy.go
index 1832f6d789a..9c3f27ad115 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dlm_lifecycle_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dlm_lifecycle_policy.go
@@ -87,7 +87,7 @@ func resourceAwsDlmLifecyclePolicy() *schema.Resource {
MaxItems: 1,
Elem: &schema.Schema{
Type: schema.TypeString,
- ValidateFunc: validation.StringMatch(regexp.MustCompile("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), "see https://docs.aws.amazon.com/dlm/latest/APIReference/API_CreateRule.html#dlm-Type-CreateRule-Times"),
+ ValidateFunc: validation.StringMatch(regexp.MustCompile("^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), "see https://docs.aws.amazon.com/dlm/latest/APIReference/API_CreateRule.html#dlm-Type-CreateRule-Times"),
},
},
},
@@ -167,6 +167,7 @@ func resourceAwsDlmLifecyclePolicyCreate(d *schema.ResourceData, meta interface{
func resourceAwsDlmLifecyclePolicyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dlmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading DLM lifecycle policy: %s", d.Id())
out, err := conn.GetLifecyclePolicy(&dlm.GetLifecyclePolicyInput{
@@ -191,7 +192,7 @@ func resourceAwsDlmLifecyclePolicyRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error setting policy details %s", err)
}
- if err := d.Set("tags", keyvaluetags.DlmKeyValueTags(out.Policy.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.DlmKeyValueTags(out.Policy.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_endpoint.go
index 7aadf3eb708..3be6a980bed 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_endpoint.go
@@ -37,6 +37,54 @@ func resourceAwsDmsEndpoint() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
+ "elasticsearch_settings": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ if old == "1" && new == "0" {
+ return true
+ }
+ return false
+ },
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "endpoint_uri": {
+ Type: schema.TypeString,
+ Required: true,
+ // API returns this error with ModifyEndpoint:
+ // InvalidParameterCombinationException: Elasticsearch endpoint cant be modified.
+ ForceNew: true,
+ },
+ "error_retry_duration": {
+ Type: schema.TypeInt,
+ Optional: true,
+ Default: 300,
+ ValidateFunc: validation.IntAtLeast(0),
+ // API returns this error with ModifyEndpoint:
+ // InvalidParameterCombinationException: Elasticsearch endpoint cant be modified.
+ ForceNew: true,
+ },
+ "full_load_error_percentage": {
+ Type: schema.TypeInt,
+ Optional: true,
+ Default: 10,
+ ValidateFunc: validation.IntBetween(0, 100),
+ // API returns this error with ModifyEndpoint:
+ // InvalidParameterCombinationException: Elasticsearch endpoint cant be modified.
+ ForceNew: true,
+ },
+ "service_access_role_arn": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
+ // API returns this error with ModifyEndpoint:
+ // InvalidParameterCombinationException: Elasticsearch endpoint cant be modified.
+ ForceNew: true,
+ },
+ },
+ },
+ },
"endpoint_arn": {
Type: schema.TypeString,
Computed: true,
@@ -47,10 +95,6 @@ func resourceAwsDmsEndpoint() *schema.Resource {
ForceNew: true,
ValidateFunc: validateDmsEndpointId,
},
- "service_access_role": {
- Type: schema.TypeString,
- Optional: true,
- },
"endpoint_type": {
Type: schema.TypeString,
Required: true,
@@ -69,6 +113,9 @@ func resourceAwsDmsEndpoint() *schema.Resource {
"db2",
"docdb",
"dynamodb",
+ "elasticsearch",
+ "kafka",
+ "kinesis",
"mariadb",
"mongodb",
"mysql",
@@ -85,6 +132,65 @@ func resourceAwsDmsEndpoint() *schema.Resource {
Computed: true,
Optional: true,
},
+ "kafka_settings": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ if old == "1" && new == "0" {
+ return true
+ }
+ return false
+ },
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "broker": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.NoZeroValues,
+ },
+ "topic": {
+ Type: schema.TypeString,
+ Optional: true,
+ Default: "kafka-default-topic",
+ },
+ },
+ },
+ },
+ "kinesis_settings": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ if old == "1" && new == "0" {
+ return true
+ }
+ return false
+ },
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "message_format": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ dms.MessageFormatValueJson,
+ dms.MessageFormatValueJsonUnformatted,
+ }, false),
+ Default: dms.MessageFormatValueJson,
+ },
+ "service_access_role_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validateArn,
+ },
+ "stream_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validateArn,
+ },
+ },
+ },
+ },
"kms_key_arn": {
Type: schema.TypeString,
Computed: true,
@@ -92,36 +198,6 @@ func resourceAwsDmsEndpoint() *schema.Resource {
ForceNew: true,
ValidateFunc: validateArn,
},
- "password": {
- Type: schema.TypeString,
- Optional: true,
- Sensitive: true,
- },
- "port": {
- Type: schema.TypeInt,
- Optional: true,
- },
- "server_name": {
- Type: schema.TypeString,
- Optional: true,
- },
- "ssl_mode": {
- Type: schema.TypeString,
- Computed: true,
- Optional: true,
- ValidateFunc: validation.StringInSlice([]string{
- dms.DmsSslModeValueNone,
- dms.DmsSslModeValueRequire,
- dms.DmsSslModeValueVerifyCa,
- dms.DmsSslModeValueVerifyFull,
- }, false),
- },
- "tags": tagsSchema(),
- "username": {
- Type: schema.TypeString,
- Optional: true,
- },
- // With default values as per https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html
"mongodb_settings": {
Type: schema.TypeList,
Optional: true,
@@ -167,6 +243,15 @@ func resourceAwsDmsEndpoint() *schema.Resource {
},
},
},
+ "password": {
+ Type: schema.TypeString,
+ Optional: true,
+ Sensitive: true,
+ },
+ "port": {
+ Type: schema.TypeInt,
+ Optional: true,
+ },
"s3_settings": {
Type: schema.TypeList,
Optional: true,
@@ -217,6 +302,30 @@ func resourceAwsDmsEndpoint() *schema.Resource {
},
},
},
+ "server_name": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "service_access_role": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "ssl_mode": {
+ Type: schema.TypeString,
+ Computed: true,
+ Optional: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ dms.DmsSslModeValueNone,
+ dms.DmsSslModeValueRequire,
+ dms.DmsSslModeValueVerifyCa,
+ dms.DmsSslModeValueVerifyFull,
+ }, false),
+ },
+ "tags": tagsSchema(),
+ "username": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
},
}
}
@@ -237,6 +346,24 @@ func resourceAwsDmsEndpointCreate(d *schema.ResourceData, meta interface{}) erro
request.DynamoDbSettings = &dms.DynamoDbSettings{
ServiceAccessRoleArn: aws.String(d.Get("service_access_role").(string)),
}
+ case "elasticsearch":
+ request.ElasticsearchSettings = &dms.ElasticsearchSettings{
+ ServiceAccessRoleArn: aws.String(d.Get("elasticsearch_settings.0.service_access_role_arn").(string)),
+ EndpointUri: aws.String(d.Get("elasticsearch_settings.0.endpoint_uri").(string)),
+ ErrorRetryDuration: aws.Int64(int64(d.Get("elasticsearch_settings.0.error_retry_duration").(int))),
+ FullLoadErrorPercentage: aws.Int64(int64(d.Get("elasticsearch_settings.0.full_load_error_percentage").(int))),
+ }
+ case "kafka":
+ request.KafkaSettings = &dms.KafkaSettings{
+ Broker: aws.String(d.Get("kafka_settings.0.broker").(string)),
+ Topic: aws.String(d.Get("kafka_settings.0.topic").(string)),
+ }
+ case "kinesis":
+ request.KinesisSettings = &dms.KinesisSettings{
+ MessageFormat: aws.String(d.Get("kinesis_settings.0.message_format").(string)),
+ ServiceAccessRoleArn: aws.String(d.Get("kinesis_settings.0.service_access_role_arn").(string)),
+ StreamArn: aws.String(d.Get("kinesis_settings.0.stream_arn").(string)),
+ }
case "mongodb":
request.MongoDbSettings = &dms.MongoDbSettings{
Username: aws.String(d.Get("username").(string)),
@@ -321,6 +448,7 @@ func resourceAwsDmsEndpointCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsDmsEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
response, err := conn.DescribeEndpoints(&dms.DescribeEndpointsInput{
Filters: []*dms.Filter{
@@ -350,7 +478,7 @@ func resourceAwsDmsEndpointRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for DMS Endpoint (%s): %s", d.Get("endpoint_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -419,6 +547,46 @@ func resourceAwsDmsEndpointUpdate(d *schema.ResourceData, meta interface{}) erro
}
hasChanges = true
}
+ case "elasticsearch":
+ if d.HasChanges(
+ "elasticsearch_settings.0.endpoint_uri",
+ "elasticsearch_settings.0.error_retry_duration",
+ "elasticsearch_settings.0.full_load_error_percentage",
+ "elasticsearch_settings.0.service_access_role_arn") {
+ request.ElasticsearchSettings = &dms.ElasticsearchSettings{
+ ServiceAccessRoleArn: aws.String(d.Get("elasticsearch_settings.0.service_access_role_arn").(string)),
+ EndpointUri: aws.String(d.Get("elasticsearch_settings.0.endpoint_uri").(string)),
+ ErrorRetryDuration: aws.Int64(int64(d.Get("elasticsearch_settings.0.error_retry_duration").(int))),
+ FullLoadErrorPercentage: aws.Int64(int64(d.Get("elasticsearch_settings.0.full_load_error_percentage").(int))),
+ }
+ request.EngineName = aws.String(d.Get("engine_name").(string))
+ hasChanges = true
+ }
+ case "kafka":
+ if d.HasChanges(
+ "kafka_settings.0.broker",
+ "kafka_settings.0.topic") {
+ request.KafkaSettings = &dms.KafkaSettings{
+ Broker: aws.String(d.Get("kafka_settings.0.broker").(string)),
+ Topic: aws.String(d.Get("kafka_settings.0.topic").(string)),
+ }
+ request.EngineName = aws.String(d.Get("engine_name").(string))
+ hasChanges = true
+ }
+ case "kinesis":
+ if d.HasChanges(
+ "kinesis_settings.0.service_access_role_arn",
+ "kinesis_settings.0.stream_arn") {
+ // Intentionally omitting MessageFormat, because it's rejected on ModifyEndpoint calls.
+ // "An error occurred (InvalidParameterValueException) when calling the ModifyEndpoint
+ // operation: Message format cannot be modified for kinesis endpoints."
+ request.KinesisSettings = &dms.KinesisSettings{
+ ServiceAccessRoleArn: aws.String(d.Get("kinesis_settings.0.service_access_role_arn").(string)),
+ StreamArn: aws.String(d.Get("kinesis_settings.0.stream_arn").(string)),
+ }
+ request.EngineName = aws.String(d.Get("engine_name").(string)) // Must be included (should be 'kinesis')
+ hasChanges = true
+ }
case "mongodb":
if d.HasChange("username") ||
d.HasChange("password") ||
@@ -548,6 +716,18 @@ func resourceAwsDmsEndpointSetState(d *schema.ResourceData, endpoint *dms.Endpoi
} else {
d.Set("service_access_role", "")
}
+ case "elasticsearch":
+ if err := d.Set("elasticsearch_settings", flattenDmsElasticsearchSettings(endpoint.ElasticsearchSettings)); err != nil {
+ return fmt.Errorf("Error setting elasticsearch for DMS: %s", err)
+ }
+ case "kafka":
+ if err := d.Set("kafka_settings", flattenDmsKafkaSettings(endpoint.KafkaSettings)); err != nil {
+ return fmt.Errorf("Error setting kafka_settings for DMS: %s", err)
+ }
+ case "kinesis":
+ if err := d.Set("kinesis_settings", flattenDmsKinesisSettings(endpoint.KinesisSettings)); err != nil {
+ return fmt.Errorf("Error setting kinesis_settings for DMS: %s", err)
+ }
case "mongodb":
if endpoint.MongoDbSettings != nil {
d.Set("username", endpoint.MongoDbSettings.Username)
@@ -581,6 +761,48 @@ func resourceAwsDmsEndpointSetState(d *schema.ResourceData, endpoint *dms.Endpoi
return nil
}
+func flattenDmsElasticsearchSettings(settings *dms.ElasticsearchSettings) []map[string]interface{} {
+ if settings == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "endpoint_uri": aws.StringValue(settings.EndpointUri),
+ "error_retry_duration": aws.Int64Value(settings.ErrorRetryDuration),
+ "full_load_error_percentage": aws.Int64Value(settings.FullLoadErrorPercentage),
+ "service_access_role_arn": aws.StringValue(settings.ServiceAccessRoleArn),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenDmsKafkaSettings(settings *dms.KafkaSettings) []map[string]interface{} {
+ if settings == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "broker": aws.StringValue(settings.Broker),
+ "topic": aws.StringValue(settings.Topic),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenDmsKinesisSettings(settings *dms.KinesisSettings) []map[string]interface{} {
+ if settings == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "message_format": aws.StringValue(settings.MessageFormat),
+ "service_access_role_arn": aws.StringValue(settings.ServiceAccessRoleArn),
+ "stream_arn": aws.StringValue(settings.StreamArn),
+ }
+
+ return []map[string]interface{}{m}
+}
+
func flattenDmsMongoDbSettings(settings *dms.MongoDbSettings) []map[string]interface{} {
if settings == nil {
return []map[string]interface{}{}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_event_subscription.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_event_subscription.go
new file mode 100644
index 00000000000..a64ae932aac
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_event_subscription.go
@@ -0,0 +1,284 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/arn"
+ dms "github.com/aws/aws-sdk-go/service/databasemigrationservice"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func resourceAwsDmsEventSubscription() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsDmsEventSubscriptionCreate,
+ Read: resourceAwsDmsEventSubscriptionRead,
+ Update: resourceAwsDmsEventSubscriptionUpdate,
+ Delete: resourceAwsDmsEventSubscriptionDelete,
+ Timeouts: &schema.ResourceTimeout{
+ Create: schema.DefaultTimeout(10 * time.Minute),
+ Delete: schema.DefaultTimeout(10 * time.Minute),
+ Update: schema.DefaultTimeout(10 * time.Minute),
+ },
+
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+ "enabled": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: true,
+ },
+ "event_categories": {
+ Type: schema.TypeSet,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ Required: true,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringLenBetween(1, 255),
+ },
+ "sns_topic_arn": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
+ },
+ "source_ids": {
+ Type: schema.TypeSet,
+ Elem: &schema.Schema{Type: schema.TypeString},
+ Set: schema.HashString,
+ ForceNew: true,
+ Optional: true,
+ },
+ "source_type": {
+ Type: schema.TypeString,
+ Optional: true,
+ // The API suppors modification but doing so loses all source_ids
+ ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ "replication-instance",
+ "replication-task",
+ }, false),
+ },
+ "tags": tagsSchema(),
+ },
+ }
+}
+
+func resourceAwsDmsEventSubscriptionCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).dmsconn
+
+ request := &dms.CreateEventSubscriptionInput{
+ Enabled: aws.Bool(d.Get("enabled").(bool)),
+ SnsTopicArn: aws.String(d.Get("sns_topic_arn").(string)),
+ SubscriptionName: aws.String(d.Get("name").(string)),
+ SourceType: aws.String(d.Get("source_type").(string)),
+ Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().DatabasemigrationserviceTags(),
+ }
+
+ if v, ok := d.GetOk("event_categories"); ok {
+ request.EventCategories = expandStringList(v.(*schema.Set).List())
+ }
+
+ if v, ok := d.GetOk("source_ids"); ok {
+ request.SourceIds = expandStringList(v.(*schema.Set).List())
+ }
+
+ _, err := conn.CreateEventSubscription(request)
+
+ if err != nil {
+ return fmt.Errorf("error creating DMS Event Subscription (%s): %w", d.Get("name").(string), err)
+ }
+
+ d.SetId(d.Get("name").(string))
+
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"creating", "modifying"},
+ Target: []string{"active"},
+ Refresh: resourceAwsDmsEventSubscriptionStateRefreshFunc(conn, d.Id()),
+ Timeout: d.Timeout(schema.TimeoutCreate),
+ MinTimeout: 10 * time.Second,
+ Delay: 10 * time.Second,
+ }
+
+ _, err = stateConf.WaitForState()
+ if err != nil {
+ return fmt.Errorf("error waiting for DMS Event Subscription (%s) creation: %w", d.Id(), err)
+ }
+
+ return resourceAwsDmsEventSubscriptionRead(d, meta)
+}
+
+func resourceAwsDmsEventSubscriptionUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).dmsconn
+
+ if d.HasChanges("enabled", "event_categories", "sns_topic_arn", "source_type") {
+ request := &dms.ModifyEventSubscriptionInput{
+ Enabled: aws.Bool(d.Get("enabled").(bool)),
+ SnsTopicArn: aws.String(d.Get("sns_topic_arn").(string)),
+ SubscriptionName: aws.String(d.Get("name").(string)),
+ SourceType: aws.String(d.Get("source_type").(string)),
+ }
+
+ if v, ok := d.GetOk("event_categories"); ok {
+ request.EventCategories = expandStringList(v.(*schema.Set).List())
+ }
+
+ _, err := conn.ModifyEventSubscription(request)
+
+ if err != nil {
+ return fmt.Errorf("error updating DMS Event Subscription (%s): %w", d.Id(), err)
+ }
+
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"modifying"},
+ Target: []string{"active"},
+ Refresh: resourceAwsDmsEventSubscriptionStateRefreshFunc(conn, d.Id()),
+ Timeout: d.Timeout(schema.TimeoutUpdate),
+ MinTimeout: 10 * time.Second,
+ Delay: 10 * time.Second,
+ }
+
+ _, err = stateConf.WaitForState()
+ if err != nil {
+ return fmt.Errorf("error waiting for DMS Event Subscription (%s) modification: %w", d.Id(), err)
+ }
+ }
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+
+ if err := keyvaluetags.DatabasemigrationserviceUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
+ return fmt.Errorf("error updating DMS Event Subscription (%s) tags: %s", d.Get("arn").(string), err)
+ }
+ }
+
+ return resourceAwsDmsEventSubscriptionRead(d, meta)
+}
+
+func resourceAwsDmsEventSubscriptionRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).dmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ request := &dms.DescribeEventSubscriptionsInput{
+ SubscriptionName: aws.String(d.Id()),
+ }
+
+ response, err := conn.DescribeEventSubscriptions(request)
+
+ if isAWSErr(err, dms.ErrCodeResourceNotFoundFault, "") {
+ log.Printf("[WARN] DMS event subscription (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("Error reading DMS event subscription: %s", err)
+ }
+
+ if response == nil || len(response.EventSubscriptionsList) == 0 || response.EventSubscriptionsList[0] == nil {
+ log.Printf("[WARN] DMS event subscription (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ subscription := response.EventSubscriptionsList[0]
+
+ arn := arn.ARN{
+ Partition: meta.(*AWSClient).partition,
+ Service: "dms",
+ Region: meta.(*AWSClient).region,
+ AccountID: meta.(*AWSClient).accountid,
+ Resource: fmt.Sprintf("es:%s", d.Id()),
+ }.String()
+ d.Set("arn", arn)
+
+ d.Set("enabled", subscription.Enabled)
+ d.Set("sns_topic_arn", subscription.SnsTopicArn)
+ d.Set("source_type", subscription.SourceType)
+ d.Set("name", d.Id())
+ d.Set("event_categories", flattenStringList(subscription.EventCategoriesList))
+ d.Set("source_ids", flattenStringList(subscription.SourceIdsList))
+
+ tags, err := keyvaluetags.DatabasemigrationserviceListTags(conn, arn)
+
+ if err != nil {
+ return fmt.Errorf("error listing tags for DMS Event Subscription (%s): %s", arn, err)
+ }
+
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsDmsEventSubscriptionDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).dmsconn
+
+ request := &dms.DeleteEventSubscriptionInput{
+ SubscriptionName: aws.String(d.Id()),
+ }
+
+ _, err := conn.DeleteEventSubscription(request)
+
+ if isAWSErr(err, dms.ErrCodeResourceNotFoundFault, "") {
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("error deleting DMS Event Subscription (%s): %w", d.Id(), err)
+ }
+
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"deleting"},
+ Target: []string{},
+ Refresh: resourceAwsDmsEventSubscriptionStateRefreshFunc(conn, d.Id()),
+ Timeout: d.Timeout(schema.TimeoutDelete),
+ MinTimeout: 10 * time.Second,
+ Delay: 10 * time.Second,
+ }
+
+ _, err = stateConf.WaitForState()
+ if err != nil {
+ return fmt.Errorf("error waiting for DMS Event Subscription (%s) deletion: %w", d.Id(), err)
+ }
+
+ return nil
+}
+
+func resourceAwsDmsEventSubscriptionStateRefreshFunc(conn *dms.DatabaseMigrationService, name string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ v, err := conn.DescribeEventSubscriptions(&dms.DescribeEventSubscriptionsInput{
+ SubscriptionName: aws.String(name),
+ })
+
+ if isAWSErr(err, dms.ErrCodeResourceNotFoundFault, "") {
+ return nil, "", nil
+ }
+
+ if err != nil {
+ return nil, "", err
+ }
+
+ if v == nil || len(v.EventSubscriptionsList) == 0 || v.EventSubscriptionsList[0] == nil {
+ return nil, "", nil
+ }
+
+ return v, aws.StringValue(v.EventSubscriptionsList[0].Status), nil
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_instance.go
index 2cf3d06a0e2..0ec11e7f246 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_instance.go
@@ -192,6 +192,7 @@ func resourceAwsDmsReplicationInstanceCreate(d *schema.ResourceData, meta interf
func resourceAwsDmsReplicationInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
response, err := conn.DescribeReplicationInstances(&dms.DescribeReplicationInstancesInput{
Filters: []*dms.Filter{
@@ -257,7 +258,7 @@ func resourceAwsDmsReplicationInstanceRead(d *schema.ResourceData, meta interfac
return fmt.Errorf("error listing tags for DMS Replication Instance (%s): %s", d.Get("replication_instance_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_subnet_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_subnet_group.go
index d30ad01ee52..268f277da3e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_subnet_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_subnet_group.go
@@ -75,6 +75,7 @@ func resourceAwsDmsReplicationSubnetGroupCreate(d *schema.ResourceData, meta int
func resourceAwsDmsReplicationSubnetGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
response, err := conn.DescribeReplicationSubnetGroups(&dms.DescribeReplicationSubnetGroupsInput{
Filters: []*dms.Filter{
@@ -114,7 +115,7 @@ func resourceAwsDmsReplicationSubnetGroupRead(d *schema.ResourceData, meta inter
return fmt.Errorf("error listing tags for DMS Replication Subnet Group (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_task.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_task.go
index b8ee831df9c..53cfa1dd1d6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_task.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dms_replication_task.go
@@ -60,7 +60,7 @@ func resourceAwsDmsReplicationTask() *schema.Resource {
"replication_task_settings": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
},
"source_endpoint_arn": {
@@ -72,7 +72,7 @@ func resourceAwsDmsReplicationTask() *schema.Resource {
"table_mappings": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
},
"tags": tagsSchema(),
@@ -141,6 +141,7 @@ func resourceAwsDmsReplicationTaskCreate(d *schema.ResourceData, meta interface{
func resourceAwsDmsReplicationTaskRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
response, err := conn.DescribeReplicationTasks(&dms.DescribeReplicationTasksInput{
Filters: []*dms.Filter{
@@ -170,7 +171,7 @@ func resourceAwsDmsReplicationTaskRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for DMS Replication Task (%s): %s", d.Get("replication_task_arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster.go
index 6a50c6e7f62..036a20292f2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster.go
@@ -160,7 +160,6 @@ func resourceAwsDocDBCluster() *schema.Resource {
"snapshot_identifier": {
Type: schema.TypeString,
Optional: true,
- Elem: &schema.Schema{Type: schema.TypeString},
},
"port": {
@@ -237,6 +236,11 @@ func resourceAwsDocDBCluster() *schema.Resource {
},
},
+ "deletion_protection": {
+ Type: schema.TypeBool,
+ Optional: true,
+ },
+
"tags": tagsSchema(),
},
}
@@ -279,6 +283,7 @@ func resourceAwsDocDBClusterCreate(d *schema.ResourceData, meta interface{}) err
DBClusterIdentifier: aws.String(identifier),
Engine: aws.String(d.Get("engine").(string)),
SnapshotIdentifier: aws.String(d.Get("snapshot_identifier").(string)),
+ DeletionProtection: aws.Bool(d.Get("deletion_protection").(bool)),
Tags: tags,
}
@@ -361,6 +366,7 @@ func resourceAwsDocDBClusterCreate(d *schema.ResourceData, meta interface{}) err
Engine: aws.String(d.Get("engine").(string)),
MasterUserPassword: aws.String(d.Get("master_password").(string)),
MasterUsername: aws.String(d.Get("master_username").(string)),
+ DeletionProtection: aws.Bool(d.Get("deletion_protection").(bool)),
Tags: tags,
}
@@ -478,6 +484,7 @@ func resourceAwsDocDBClusterCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsDocDBClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).docdbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &docdb.DescribeDBClustersInput{
DBClusterIdentifier: aws.String(d.Id()),
@@ -551,6 +558,7 @@ func resourceAwsDocDBClusterRead(d *schema.ResourceData, meta interface{}) error
d.Set("preferred_maintenance_window", dbc.PreferredMaintenanceWindow)
d.Set("reader_endpoint", dbc.ReaderEndpoint)
d.Set("storage_encrypted", dbc.StorageEncrypted)
+ d.Set("deletion_protection", dbc.DeletionProtection)
var vpcg []string
for _, g := range dbc.VpcSecurityGroups {
@@ -566,7 +574,7 @@ func resourceAwsDocDBClusterRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for DocumentDB Cluster (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -617,17 +625,20 @@ func resourceAwsDocDBClusterUpdate(d *schema.ResourceData, meta interface{}) err
}
if d.HasChange("db_cluster_parameter_group_name") {
- d.SetPartial("db_cluster_parameter_group_name")
req.DBClusterParameterGroupName = aws.String(d.Get("db_cluster_parameter_group_name").(string))
requestUpdate = true
}
if d.HasChange("enabled_cloudwatch_logs_exports") {
- d.SetPartial("enabled_cloudwatch_logs_exports")
req.CloudwatchLogsExportConfiguration = buildDocDBCloudwatchLogsExportConfiguration(d)
requestUpdate = true
}
+ if d.HasChange("deletion_protection") {
+ req.DeletionProtection = aws.Bool(d.Get("deletion_protection").(bool))
+ requestUpdate = true
+ }
+
if requestUpdate {
err := resource.Retry(5*time.Minute, func() *resource.RetryError {
_, err := conn.ModifyDBCluster(req)
@@ -669,7 +680,6 @@ func resourceAwsDocDBClusterUpdate(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error updating DocumentDB Cluster (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
return resourceAwsDocDBClusterRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_instance.go
index 8ddf4ac2b44..e71e44dceb3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_instance.go
@@ -248,7 +248,10 @@ func resourceAwsDocDBClusterInstanceCreate(d *schema.ResourceData, meta interfac
}
func resourceAwsDocDBClusterInstanceRead(d *schema.ResourceData, meta interface{}) error {
- db, err := resourceAwsDocDBInstanceRetrieve(d.Id(), meta.(*AWSClient).docdbconn)
+ conn := meta.(*AWSClient).docdbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ db, err := resourceAwsDocDBInstanceRetrieve(d.Id(), conn)
// Errors from this helper are always reportable
if err != nil {
return fmt.Errorf("Error on retrieving DocDB Cluster Instance (%s): %s", d.Id(), err)
@@ -261,7 +264,6 @@ func resourceAwsDocDBClusterInstanceRead(d *schema.ResourceData, meta interface{
}
// Retrieve DB Cluster information, to determine if this Instance is a writer
- conn := meta.(*AWSClient).docdbconn
resp, err := conn.DescribeDBClusters(&docdb.DescribeDBClustersInput{
DBClusterIdentifier: db.DBClusterIdentifier,
})
@@ -320,7 +322,7 @@ func resourceAwsDocDBClusterInstanceRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for DocumentDB Cluster Instance (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -342,25 +344,21 @@ func resourceAwsDocDBClusterInstanceUpdate(d *schema.ResourceData, meta interfac
}
if d.HasChange("preferred_maintenance_window") {
- d.SetPartial("preferred_maintenance_window")
req.PreferredMaintenanceWindow = aws.String(d.Get("preferred_maintenance_window").(string))
requestUpdate = true
}
if d.HasChange("auto_minor_version_upgrade") {
- d.SetPartial("auto_minor_version_upgrade")
req.AutoMinorVersionUpgrade = aws.Bool(d.Get("auto_minor_version_upgrade").(bool))
requestUpdate = true
}
if d.HasChange("promotion_tier") {
- d.SetPartial("promotion_tier")
req.PromotionTier = aws.Int64(int64(d.Get("promotion_tier").(int)))
requestUpdate = true
}
if d.HasChange("ca_cert_identifier") {
- d.SetPartial("ca_cert_identifier")
req.CACertificateIdentifier = aws.String(d.Get("ca_cert_identifier").(string))
requestUpdate = true
}
@@ -410,7 +408,6 @@ func resourceAwsDocDBClusterInstanceUpdate(d *schema.ResourceData, meta interfac
return fmt.Errorf("error updating DocumentDB Cluster Instance (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
return resourceAwsDocDBClusterInstanceRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_parameter_group.go
index 1cfc3153130..e4f402569ff 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_cluster_parameter_group.go
@@ -126,6 +126,7 @@ func resourceAwsDocDBClusterParameterGroupCreate(d *schema.ResourceData, meta in
func resourceAwsDocDBClusterParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).docdbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := &docdb.DescribeDBClusterParameterGroupsInput{
DBClusterParameterGroupName: aws.String(d.Id()),
@@ -172,7 +173,7 @@ func resourceAwsDocDBClusterParameterGroupRead(d *schema.ResourceData, meta inte
return fmt.Errorf("error listing tags for DocumentDB Cluster Parameter Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -182,8 +183,6 @@ func resourceAwsDocDBClusterParameterGroupRead(d *schema.ResourceData, meta inte
func resourceAwsDocDBClusterParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).docdbconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -227,7 +226,6 @@ func resourceAwsDocDBClusterParameterGroupUpdate(d *schema.ResourceData, meta in
return fmt.Errorf("Error modifying DocDB Cluster Parameter Group: %s", err)
}
}
- d.SetPartial("parameter")
}
}
@@ -237,12 +235,8 @@ func resourceAwsDocDBClusterParameterGroupUpdate(d *schema.ResourceData, meta in
if err := keyvaluetags.DocdbUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating DocumentDB Cluster Parameter Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsDocDBClusterParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_subnet_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_subnet_group.go
index 568013c5c40..a8d94ba4f1b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_subnet_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_docdb_subnet_group.go
@@ -99,6 +99,7 @@ func resourceAwsDocDBSubnetGroupCreate(d *schema.ResourceData, meta interface{})
func resourceAwsDocDBSubnetGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).docdbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := docdb.DescribeDBSubnetGroupsInput{
DBSubnetGroupName: aws.String(d.Id()),
@@ -141,7 +142,7 @@ func resourceAwsDocDBSubnetGroupRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error listing tags for DocumentDB Subnet Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -175,8 +176,6 @@ func resourceAwsDocDBSubnetGroupUpdate(d *schema.ResourceData, meta interface{})
if err := keyvaluetags.DocdbUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating DocumentDB Subnet Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
return resourceAwsDocDBSubnetGroupRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_connection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_connection.go
index 8ca031fa588..21d557406b4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_connection.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_connection.go
@@ -87,6 +87,7 @@ func resourceAwsDxConnectionCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsDxConnectionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeConnections(&directconnect.DescribeConnectionsInput{
ConnectionId: aws.String(d.Id()),
@@ -139,7 +140,7 @@ func resourceAwsDxConnectionRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Direct Connect connection (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_private_virtual_interface_accepter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_private_virtual_interface_accepter.go
index 42531d1d30c..2cd8915ce71 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_private_virtual_interface_accepter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_private_virtual_interface_accepter.go
@@ -100,6 +100,7 @@ func resourceAwsDxHostedPrivateVirtualInterfaceAccepterCreate(d *schema.Resource
func resourceAwsDxHostedPrivateVirtualInterfaceAccepterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -129,7 +130,7 @@ func resourceAwsDxHostedPrivateVirtualInterfaceAccepterRead(d *schema.ResourceDa
return fmt.Errorf("error listing tags for Direct Connect hosted private virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_public_virtual_interface_accepter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_public_virtual_interface_accepter.go
index bc106c0bb96..4d7d1e2a9e4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_public_virtual_interface_accepter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_public_virtual_interface_accepter.go
@@ -75,6 +75,7 @@ func resourceAwsDxHostedPublicVirtualInterfaceAccepterCreate(d *schema.ResourceD
func resourceAwsDxHostedPublicVirtualInterfaceAccepterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -103,7 +104,7 @@ func resourceAwsDxHostedPublicVirtualInterfaceAccepterRead(d *schema.ResourceDat
return fmt.Errorf("error listing tags for Direct Connect hosted public virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_transit_virtual_interface_accepter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_transit_virtual_interface_accepter.go
index cd118fb9451..0e7e13313f2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_transit_virtual_interface_accepter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_hosted_transit_virtual_interface_accepter.go
@@ -81,6 +81,7 @@ func resourceAwsDxHostedTransitVirtualInterfaceAccepterCreate(d *schema.Resource
func resourceAwsDxHostedTransitVirtualInterfaceAccepterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -108,7 +109,7 @@ func resourceAwsDxHostedTransitVirtualInterfaceAccepterRead(d *schema.ResourceDa
return fmt.Errorf("error listing tags for Direct Connect hosted transit virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_lag.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_lag.go
index 44acba3bd7f..28ae8174a3f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_lag.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_lag.go
@@ -106,6 +106,7 @@ func resourceAwsDxLagCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsDxLagRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeLags(&directconnect.DescribeLagsInput{
LagId: aws.String(d.Id()),
@@ -158,7 +159,7 @@ func resourceAwsDxLagRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for Direct Connect LAG (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_private_virtual_interface.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_private_virtual_interface.go
index 6dbc9bb2575..215fd778ee9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_private_virtual_interface.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_private_virtual_interface.go
@@ -174,6 +174,7 @@ func resourceAwsDxPrivateVirtualInterfaceCreate(d *schema.ResourceData, meta int
func resourceAwsDxPrivateVirtualInterfaceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -214,7 +215,7 @@ func resourceAwsDxPrivateVirtualInterfaceRead(d *schema.ResourceData, meta inter
return fmt.Errorf("error listing tags for Direct Connect private virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_public_virtual_interface.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_public_virtual_interface.go
index 0df67b4db8c..c90fc922745 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_public_virtual_interface.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_public_virtual_interface.go
@@ -148,6 +148,7 @@ func resourceAwsDxPublicVirtualInterfaceCreate(d *schema.ResourceData, meta inte
func resourceAwsDxPublicVirtualInterfaceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -187,7 +188,7 @@ func resourceAwsDxPublicVirtualInterfaceRead(d *schema.ResourceData, meta interf
return fmt.Errorf("error listing tags for Direct Connect public virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_transit_virtual_interface.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_transit_virtual_interface.go
index c28817d2b85..5cdce7774ff 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_transit_virtual_interface.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dx_transit_virtual_interface.go
@@ -155,6 +155,7 @@ func resourceAwsDxTransitVirtualInterfaceCreate(d *schema.ResourceData, meta int
func resourceAwsDxTransitVirtualInterfaceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vif, err := dxVirtualInterfaceRead(d.Id(), conn)
if err != nil {
@@ -194,7 +195,7 @@ func resourceAwsDxTransitVirtualInterfaceRead(d *schema.ResourceData, meta inter
return fmt.Errorf("error listing tags for Direct Connect transit virtual interface (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dynamodb_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dynamodb_table.go
index 83e71b6b9a3..8e52f9621ef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dynamodb_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_dynamodb_table.go
@@ -279,6 +279,18 @@ func resourceAwsDynamoDbTable() *schema.Resource {
},
},
},
+ "replica": {
+ Type: schema.TypeSet,
+ Optional: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "region_name": {
+ Type: schema.TypeString,
+ Required: true,
+ },
+ },
+ },
+ },
},
}
}
@@ -418,6 +430,12 @@ func resourceAwsDynamoDbTableCreate(d *schema.ResourceData, meta interface{}) er
}
}
+ if v := d.Get("replica").(*schema.Set); v.Len() > 0 {
+ if err := createDynamoDbReplicas(d.Id(), v.List(), d.Timeout(schema.TimeoutCreate), conn); err != nil {
+ return fmt.Errorf("error creating DynamoDB Table (%s) replicas: %s", d.Id(), err)
+ }
+ }
+
return resourceAwsDynamoDbTableRead(d, meta)
}
@@ -595,11 +613,41 @@ func resourceAwsDynamoDbTableUpdate(d *schema.ResourceData, meta interface{}) er
}
}
+ if d.HasChange("replica") {
+ if err := updateDynamoDbReplica(d, conn); err != nil {
+ return fmt.Errorf("error updating DynamoDB Table (%s) replica: %s", d.Id(), err)
+ }
+ }
+
return resourceAwsDynamoDbTableRead(d, meta)
}
+func updateDynamoDbReplica(d *schema.ResourceData, conn *dynamodb.DynamoDB) error {
+ oRaw, nRaw := d.GetChange("replica")
+ o := oRaw.(*schema.Set)
+ n := nRaw.(*schema.Set)
+
+ removed := o.Difference(n).List()
+ added := n.Difference(o).List()
+
+ if len(added) > 0 {
+ if err := createDynamoDbReplicas(d.Id(), added, d.Timeout(schema.TimeoutUpdate), conn); err != nil {
+ return err
+ }
+ }
+
+ if len(removed) > 0 {
+ if err := deleteDynamoDbReplicas(d.Id(), removed, d.Timeout(schema.TimeoutUpdate), conn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func resourceAwsDynamoDbTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).dynamodbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
result, err := conn.DescribeTable(&dynamodb.DescribeTableInput{
TableName: aws.String(d.Id()),
@@ -629,12 +677,15 @@ func resourceAwsDynamoDbTableRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error setting ttl: %s", err)
}
- tags, err := readDynamoDbTableTags(d.Get("arn").(string), conn)
- if err != nil {
- return err
+ tags, err := keyvaluetags.DynamodbListTags(conn, d.Get("arn").(string))
+
+ if err != nil && !isAWSErr(err, "UnknownOperationException", "Tagging is not currently supported in DynamoDB Local.") {
+ return fmt.Errorf("error listing tags for DynamoDB Table (%s): %s", d.Get("arn").(string), err)
}
- d.Set("tags", tags)
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
pitrOut, err := conn.DescribeContinuousBackups(&dynamodb.DescribeContinuousBackupsInput{
TableName: aws.String(d.Id()),
@@ -652,6 +703,12 @@ func resourceAwsDynamoDbTableDelete(d *schema.ResourceData, meta interface{}) er
log.Printf("[DEBUG] DynamoDB delete table: %s", d.Id())
+ if replicas := d.Get("replica").(*schema.Set).List(); len(replicas) > 0 {
+ if err := deleteDynamoDbReplicas(d.Id(), replicas, d.Timeout(schema.TimeoutDelete), conn); err != nil {
+ return fmt.Errorf("error deleting DynamoDB Table (%s) replicas: %s", d.Id(), err)
+ }
+ }
+
err := deleteAwsDynamoDbTable(d.Id(), conn)
if err != nil {
if isAWSErr(err, dynamodb.ErrCodeResourceNotFoundException, "Requested resource not found: Table: ") {
@@ -702,6 +759,76 @@ func deleteAwsDynamoDbTable(tableName string, conn *dynamodb.DynamoDB) error {
return err
}
+func deleteDynamoDbReplicas(tableName string, tfList []interface{}, timeout time.Duration, conn *dynamodb.DynamoDB) error {
+ var ops []*dynamodb.ReplicationGroupUpdate
+ var regionNames []string
+
+ for _, tfMapRaw := range tfList {
+ tfMap, ok := tfMapRaw.(map[string]interface{})
+
+ if !ok {
+ continue
+ }
+
+ var regionName string
+
+ if v, ok := tfMap["region_name"].(string); ok {
+ regionName = v
+ }
+
+ if regionName == "" {
+ continue
+ }
+
+ ops = append(ops, &dynamodb.ReplicationGroupUpdate{
+ Delete: &dynamodb.DeleteReplicationGroupMemberAction{
+ RegionName: aws.String(regionName),
+ },
+ })
+ regionNames = append(regionNames, regionName)
+ }
+
+ if len(ops) == 0 {
+ return nil
+ }
+
+ input := &dynamodb.UpdateTableInput{
+ TableName: aws.String(tableName),
+ ReplicaUpdates: ops,
+ }
+
+ err := resource.Retry(20*time.Minute, func() *resource.RetryError {
+ _, err := conn.UpdateTable(input)
+ if err != nil {
+ if isAWSErr(err, "ThrottlingException", "") {
+ return resource.RetryableError(err)
+ }
+ if isAWSErr(err, dynamodb.ErrCodeLimitExceededException, "can be created, updated, or deleted simultaneously") {
+ return resource.RetryableError(err)
+ }
+
+ return resource.NonRetryableError(err)
+ }
+ return nil
+ })
+
+ if isResourceTimeoutError(err) {
+ _, err = conn.UpdateTable(input)
+ }
+
+ if err != nil {
+ return fmt.Errorf("error deleting DynamoDB Table (%s) replicas: %s", tableName, err)
+ }
+
+ for _, regionName := range regionNames {
+ if err := waitForDynamoDbReplicaDeleteToBeCompleted(tableName, regionName, timeout, conn); err != nil {
+ return fmt.Errorf("error waiting for DynamoDB Table (%s) replica (%s) deletion: %s", tableName, regionName, err)
+ }
+ }
+
+ return nil
+}
+
func waitForDynamodbTableDeletion(conn *dynamodb.DynamoDB, tableName string, timeout time.Duration) error {
stateConf := &resource.StateChangeConf{
Pending: []string{
@@ -738,6 +865,157 @@ func waitForDynamodbTableDeletion(conn *dynamodb.DynamoDB, tableName string, tim
return err
}
+func waitForDynamoDbReplicaUpdateToBeCompleted(tableName string, region string, timeout time.Duration, conn *dynamodb.DynamoDB) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{
+ dynamodb.ReplicaStatusCreating,
+ dynamodb.ReplicaStatusUpdating,
+ dynamodb.ReplicaStatusDeleting,
+ },
+ Target: []string{
+ dynamodb.ReplicaStatusActive,
+ },
+ Timeout: timeout,
+ Refresh: func() (interface{}, string, error) {
+ result, err := conn.DescribeTable(&dynamodb.DescribeTableInput{
+ TableName: aws.String(tableName),
+ })
+ if err != nil {
+ return 42, "", err
+ }
+ log.Printf("[DEBUG] DynamoDB replicas: %s", result.Table.Replicas)
+
+ var targetReplica *dynamodb.ReplicaDescription
+
+ for _, replica := range result.Table.Replicas {
+ if aws.StringValue(replica.RegionName) == region {
+ targetReplica = replica
+ break
+ }
+ }
+
+ if targetReplica == nil {
+ return result, dynamodb.ReplicaStatusCreating, nil
+ }
+
+ return result, aws.StringValue(targetReplica.ReplicaStatus), nil
+ },
+ }
+ _, err := stateConf.WaitForState()
+
+ return err
+}
+
+func waitForDynamoDbReplicaDeleteToBeCompleted(tableName string, region string, timeout time.Duration, conn *dynamodb.DynamoDB) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{
+ dynamodb.ReplicaStatusCreating,
+ dynamodb.ReplicaStatusUpdating,
+ dynamodb.ReplicaStatusDeleting,
+ dynamodb.ReplicaStatusActive,
+ },
+ Target: []string{""},
+ Timeout: timeout,
+ Refresh: func() (interface{}, string, error) {
+ result, err := conn.DescribeTable(&dynamodb.DescribeTableInput{
+ TableName: aws.String(tableName),
+ })
+ if err != nil {
+ return 42, "", err
+ }
+
+ log.Printf("[DEBUG] all replicas for waiting: %s", result.Table.Replicas)
+ var targetReplica *dynamodb.ReplicaDescription
+
+ for _, replica := range result.Table.Replicas {
+ if aws.StringValue(replica.RegionName) == region {
+ targetReplica = replica
+ break
+ }
+ }
+
+ if targetReplica == nil {
+ return result, "", nil
+ }
+
+ return result, aws.StringValue(targetReplica.ReplicaStatus), nil
+ },
+ }
+ _, err := stateConf.WaitForState()
+
+ return err
+}
+
+func createDynamoDbReplicas(tableName string, tfList []interface{}, timeout time.Duration, conn *dynamodb.DynamoDB) error {
+ var ops []*dynamodb.ReplicationGroupUpdate
+ var regionNames []string
+
+ for _, tfMapRaw := range tfList {
+ tfMap, ok := tfMapRaw.(map[string]interface{})
+
+ if !ok {
+ continue
+ }
+
+ var regionName string
+
+ if v, ok := tfMap["region_name"].(string); ok {
+ regionName = v
+ }
+
+ if regionName == "" {
+ continue
+ }
+
+ ops = append(ops, &dynamodb.ReplicationGroupUpdate{
+ Create: &dynamodb.CreateReplicationGroupMemberAction{
+ RegionName: aws.String(regionName),
+ },
+ })
+ regionNames = append(regionNames, regionName)
+ }
+
+ if len(ops) == 0 {
+ return nil
+ }
+
+ input := &dynamodb.UpdateTableInput{
+ TableName: aws.String(tableName),
+ ReplicaUpdates: ops,
+ }
+
+ err := resource.Retry(20*time.Minute, func() *resource.RetryError {
+ _, err := conn.UpdateTable(input)
+ if err != nil {
+ if isAWSErr(err, "ThrottlingException", "") {
+ return resource.RetryableError(err)
+ }
+ if isAWSErr(err, dynamodb.ErrCodeLimitExceededException, "can be created, updated, or deleted simultaneously") {
+ return resource.RetryableError(err)
+ }
+
+ return resource.NonRetryableError(err)
+ }
+ return nil
+ })
+
+ if isResourceTimeoutError(err) {
+ _, err = conn.UpdateTable(input)
+ }
+
+ if err != nil {
+ return fmt.Errorf("error creating DynamoDB Table (%s) replicas: %s", tableName, err)
+ }
+
+ for _, regionName := range regionNames {
+ if err := waitForDynamoDbReplicaUpdateToBeCompleted(tableName, regionName, timeout, conn); err != nil {
+ return fmt.Errorf("error waiting for DynamoDB Table (%s) replica (%s) creation: %s", tableName, regionName, err)
+ }
+ }
+
+ return nil
+}
+
func updateDynamoDbTimeToLive(tableName string, ttlList []interface{}, conn *dynamodb.DynamoDB) error {
ttlMap := ttlList[0].(map[string]interface{})
@@ -799,23 +1077,6 @@ func updateDynamoDbPITR(d *schema.ResourceData, conn *dynamodb.DynamoDB) error {
return nil
}
-func readDynamoDbTableTags(arn string, conn *dynamodb.DynamoDB) (map[string]string, error) {
- output, err := conn.ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{
- ResourceArn: aws.String(arn),
- })
-
- // Do not fail if interfacing with dynamodb-local
- if err != nil && !isAWSErr(err, "UnknownOperationException", "Tagging is not currently supported in DynamoDB Local.") {
- return nil, fmt.Errorf("Error reading tags from dynamodb resource: %s", err)
- }
-
- result := keyvaluetags.DynamodbKeyValueTags(output.Tags).IgnoreAws().Map()
-
- // TODO Read NextToken if available
-
- return result, nil
-}
-
// Waiters
func waitForDynamoDbGSIToBeActive(tableName string, gsiName string, timeout time.Duration, conn *dynamodb.DynamoDB) error {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot.go
index 994db2d237d..b84b41f06b6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot.go
@@ -109,6 +109,7 @@ func resourceAwsEbsSnapshotCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsEbsSnapshotRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeSnapshotsInput{
SnapshotIds: []*string{aws.String(d.Id())},
@@ -139,7 +140,7 @@ func resourceAwsEbsSnapshotRead(d *schema.ResourceData, meta interface{}) error
d.Set("kms_key_id", snapshot.KmsKeyId)
d.Set("volume_size", snapshot.VolumeSize)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot_copy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot_copy.go
index ee63ddc1584..163cf18259f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot_copy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_snapshot_copy.go
@@ -105,6 +105,7 @@ func resourceAwsEbsSnapshotCopyCreate(d *schema.ResourceData, meta interface{})
func resourceAwsEbsSnapshotCopyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeSnapshotsInput{
SnapshotIds: []*string{aws.String(d.Id())},
@@ -131,7 +132,7 @@ func resourceAwsEbsSnapshotCopyRead(d *schema.ResourceData, meta interface{}) er
d.Set("kms_key_id", snapshot.KmsKeyId)
d.Set("volume_size", snapshot.VolumeSize)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(snapshot.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_volume.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_volume.go
index 89add9e1a8b..613f6cb0f07 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_volume.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ebs_volume.go
@@ -67,6 +67,12 @@ func resourceAwsEbsVolume() *schema.Resource {
Computed: true,
ForceNew: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validateArn,
+ },
"type": {
Type: schema.TypeString,
Optional: true,
@@ -96,6 +102,9 @@ func resourceAwsEbsVolumeCreate(d *schema.ResourceData, meta interface{}) error
if value, ok := d.GetOk("snapshot_id"); ok {
request.SnapshotId = aws.String(value.(string))
}
+ if value, ok := d.GetOk("outpost_arn"); ok {
+ request.OutpostArn = aws.String(value.(string))
+ }
// IOPs are only valid, and required for, storage type io1. The current minimu
// is 100. Instead of a hard validation we we only apply the IOPs to the
@@ -230,6 +239,7 @@ func volumeStateRefreshFunc(conn *ec2.EC2, volumeID string) resource.StateRefres
func resourceAwsEbsVolumeRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &ec2.DescribeVolumesInput{
VolumeIds: []*string{aws.String(d.Id())},
@@ -264,8 +274,9 @@ func resourceAwsEbsVolumeRead(d *schema.ResourceData, meta interface{}) error {
d.Set("kms_key_id", aws.StringValue(volume.KmsKeyId))
d.Set("size", aws.Int64Value(volume.Size))
d.Set("snapshot_id", aws.StringValue(volume.SnapshotId))
+ d.Set("outpost_arn", aws.StringValue(volume.OutpostArn))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(volume.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(volume.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_availability_zone_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_availability_zone_group.go
new file mode 100644
index 00000000000..afa320795ee
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_availability_zone_group.go
@@ -0,0 +1,188 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/ec2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsEc2AvailabilityZoneGroup() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsEc2AvailabilityZoneGroupCreate,
+ Read: resourceAwsEc2AvailabilityZoneGroupRead,
+ Update: resourceAwsEc2AvailabilityZoneGroupUpdate,
+ Delete: schema.Noop,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
+ d.Set("group_name", d.Id())
+
+ return []*schema.ResourceData{d}, nil
+ },
+ },
+
+ Schema: map[string]*schema.Schema{
+ "group_name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "opt_in_status": {
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.AvailabilityZoneOptInStatusOptedIn,
+ ec2.AvailabilityZoneOptInStatusNotOptedIn,
+ }, false),
+ },
+ },
+ }
+}
+
+func resourceAwsEc2AvailabilityZoneGroupCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ configurationOptInStatus := d.Get("opt_in_status").(string)
+
+ d.SetId(d.Get("group_name").(string))
+
+ if err := resourceAwsEc2AvailabilityZoneGroupRead(d, meta); err != nil {
+ return err
+ }
+
+ apiOptInStatus := d.Get("opt_in_status").(string)
+
+ if apiOptInStatus != configurationOptInStatus {
+ input := &ec2.ModifyAvailabilityZoneGroupInput{
+ GroupName: aws.String(d.Id()),
+ OptInStatus: aws.String(configurationOptInStatus),
+ }
+
+ if _, err := conn.ModifyAvailabilityZoneGroup(input); err != nil {
+ return fmt.Errorf("error modifying EC2 Availability Zone Group (%s): %w", d.Id(), err)
+ }
+
+ if err := waitForEc2AvailabilityZoneGroupOptInStatus(conn, d.Id(), configurationOptInStatus); err != nil {
+ return fmt.Errorf("error waiting for EC2 Availability Zone Group (%s) opt-in status update: %w", d.Id(), err)
+ }
+ }
+
+ return resourceAwsEc2AvailabilityZoneGroupRead(d, meta)
+}
+
+func resourceAwsEc2AvailabilityZoneGroupRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ availabilityZone, err := ec2DescribeAvailabilityZoneGroup(conn, d.Id())
+
+ if err != nil {
+ return fmt.Errorf("error describing EC2 Availability Zone Group (%s): %w", d.Id(), err)
+ }
+
+ if aws.StringValue(availabilityZone.OptInStatus) == ec2.AvailabilityZoneOptInStatusOptInNotRequired {
+ return fmt.Errorf("unnecessary handling of EC2 Availability Zone Group (%s), status: %s", d.Id(), ec2.AvailabilityZoneOptInStatusOptInNotRequired)
+ }
+
+ d.Set("group_name", availabilityZone.GroupName)
+ d.Set("opt_in_status", availabilityZone.OptInStatus)
+
+ return nil
+}
+
+func resourceAwsEc2AvailabilityZoneGroupUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+ optInStatus := d.Get("opt_in_status").(string)
+
+ input := &ec2.ModifyAvailabilityZoneGroupInput{
+ GroupName: aws.String(d.Id()),
+ OptInStatus: aws.String(optInStatus),
+ }
+
+ if _, err := conn.ModifyAvailabilityZoneGroup(input); err != nil {
+ return fmt.Errorf("error modifying EC2 Availability Zone Group (%s): %w", d.Id(), err)
+ }
+
+ if err := waitForEc2AvailabilityZoneGroupOptInStatus(conn, d.Id(), optInStatus); err != nil {
+ return fmt.Errorf("error waiting for EC2 Availability Zone Group (%s) opt-in status update: %w", d.Id(), err)
+ }
+
+ return resourceAwsEc2AvailabilityZoneGroupRead(d, meta)
+}
+
+func ec2DescribeAvailabilityZoneGroup(conn *ec2.EC2, groupName string) (*ec2.AvailabilityZone, error) {
+ input := &ec2.DescribeAvailabilityZonesInput{
+ AllAvailabilityZones: aws.Bool(true),
+ Filters: []*ec2.Filter{
+ {
+ Name: aws.String("group-name"),
+ Values: aws.StringSlice([]string{groupName}),
+ },
+ },
+ }
+
+ output, err := conn.DescribeAvailabilityZones(input)
+
+ if err != nil {
+ return nil, err
+ }
+
+ if output == nil || len(output.AvailabilityZones) == 0 {
+ return nil, nil
+ }
+
+ for _, availabilityZone := range output.AvailabilityZones {
+ if availabilityZone == nil {
+ continue
+ }
+
+ if aws.StringValue(availabilityZone.GroupName) == groupName {
+ return availabilityZone, nil
+ }
+ }
+
+ return nil, nil
+}
+
+func ec2AvailabilityZoneGroupOptInStatusRefreshFunc(conn *ec2.EC2, groupName string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ availabilityZone, err := ec2DescribeAvailabilityZoneGroup(conn, groupName)
+
+ if err != nil {
+ return nil, "", fmt.Errorf("error describing EC2 Availability Zone Group (%s): %w", groupName, err)
+ }
+
+ if availabilityZone == nil {
+ return nil, "", fmt.Errorf("error describing EC2 Availability Zone Group (%s): not found", groupName)
+ }
+
+ return availabilityZone, aws.StringValue(availabilityZone.OptInStatus), nil
+ }
+}
+
+func waitForEc2AvailabilityZoneGroupOptInStatus(conn *ec2.EC2, groupName string, optInStatus string) error {
+ pending := ec2.AvailabilityZoneOptInStatusNotOptedIn
+
+ if optInStatus == ec2.AvailabilityZoneOptInStatusNotOptedIn {
+ pending = ec2.AvailabilityZoneOptInStatusOptedIn
+ }
+
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{pending},
+ Target: []string{optInStatus},
+ Refresh: ec2AvailabilityZoneGroupOptInStatusRefreshFunc(conn, groupName),
+ Timeout: 10 * time.Minute,
+ Delay: 10 * time.Second,
+ MinTimeout: 2 * time.Second,
+ ContinuousTargetOccurence: 3,
+ }
+
+ log.Printf("[DEBUG] Waiting for EC2 Availability Zone Group (%s) opt-in status update", groupName)
+ _, err := stateConf.WaitForState()
+
+ return err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_capacity_reservation.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_capacity_reservation.go
index 973f3a4ddf2..19d2a30ee4a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_capacity_reservation.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_capacity_reservation.go
@@ -156,6 +156,7 @@ func resourceAwsEc2CapacityReservationCreate(d *schema.ResourceData, meta interf
func resourceAwsEc2CapacityReservationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeCapacityReservations(&ec2.DescribeCapacityReservationsInput{
CapacityReservationIds: []*string{aws.String(d.Id())},
@@ -197,7 +198,7 @@ func resourceAwsEc2CapacityReservationRead(d *schema.ResourceData, meta interfac
d.Set("instance_platform", reservation.InstancePlatform)
d.Set("instance_type", reservation.InstanceType)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(reservation.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(reservation.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_client_vpn_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_client_vpn_endpoint.go
index cb1e7cca2ef..dae8f29ffd3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_client_vpn_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_client_vpn_endpoint.go
@@ -58,7 +58,7 @@ func resourceAwsEc2ClientVpnEndpoint() *schema.Resource {
"authentication_options": {
Type: schema.TypeList,
Required: true,
- MaxItems: 1,
+ MaxItems: 2,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"type": {
@@ -137,26 +137,16 @@ func resourceAwsEc2ClientVpnEndpointCreate(d *schema.ResourceData, meta interfac
}
if v, ok := d.GetOk("authentication_options"); ok {
- authOptsSet := v.([]interface{})
- attrs := authOptsSet[0].(map[string]interface{})
-
- authOptsReq := &ec2.ClientVpnAuthenticationRequest{
- Type: aws.String(attrs["type"].(string)),
- }
+ authOptions := v.([]interface{})
+ authRequests := make([]*ec2.ClientVpnAuthenticationRequest, 0, len(authOptions))
- if attrs["type"].(string) == "certificate-authentication" {
- authOptsReq.MutualAuthentication = &ec2.CertificateAuthenticationRequest{
- ClientRootCertificateChainArn: aws.String(attrs["root_certificate_chain_arn"].(string)),
- }
- }
+ for _, authOpt := range authOptions {
+ auth := authOpt.(map[string]interface{})
- if attrs["type"].(string) == "directory-service-authentication" {
- authOptsReq.ActiveDirectory = &ec2.DirectoryServiceAuthenticationRequest{
- DirectoryId: aws.String(attrs["active_directory_id"].(string)),
- }
+ authReq := expandEc2ClientVpnAuthenticationRequest(auth)
+ authRequests = append(authRequests, authReq)
}
-
- req.AuthenticationOptions = []*ec2.ClientVpnAuthenticationRequest{authOptsReq}
+ req.AuthenticationOptions = authRequests
}
if v, ok := d.GetOk("connection_log_options"); ok {
@@ -191,6 +181,8 @@ func resourceAwsEc2ClientVpnEndpointCreate(d *schema.ResourceData, meta interfac
func resourceAwsEc2ClientVpnEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
var err error
result, err := conn.DescribeClientVpnEndpoints(&ec2.DescribeClientVpnEndpointsInput{
@@ -242,7 +234,7 @@ func resourceAwsEc2ClientVpnEndpointRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error setting connection_log_options: %s", err)
}
- err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(result.ClientVpnEndpoints[0].Tags).IgnoreAws().Map())
+ err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(result.ClientVpnEndpoints[0].Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
if err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -266,8 +258,6 @@ func resourceAwsEc2ClientVpnEndpointDelete(d *schema.ResourceData, meta interfac
func resourceAwsEc2ClientVpnEndpointUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
-
req := &ec2.ModifyClientVpnEndpointInput{
ClientVpnEndpointId: aws.String(d.Id()),
}
@@ -334,7 +324,6 @@ func resourceAwsEc2ClientVpnEndpointUpdate(d *schema.ResourceData, meta interfac
}
}
- d.Partial(false)
return resourceAwsEc2ClientVpnEndpointRead(d, meta)
}
@@ -351,13 +340,38 @@ func flattenConnLoggingConfig(lopts *ec2.ConnectionLogResponseOptions) []map[str
}
func flattenAuthOptsConfig(aopts []*ec2.ClientVpnAuthentication) []map[string]interface{} {
- m := make(map[string]interface{})
- if aopts[0].MutualAuthentication != nil {
- m["root_certificate_chain_arn"] = *aopts[0].MutualAuthentication.ClientRootCertificateChain
+ result := make([]map[string]interface{}, 0, len(aopts))
+ for _, aopt := range aopts {
+ r := map[string]interface{}{
+ "type": aws.StringValue(aopt.Type),
+ }
+ if aopt.MutualAuthentication != nil {
+ r["root_certificate_chain_arn"] = aws.StringValue(aopt.MutualAuthentication.ClientRootCertificateChain)
+ }
+ if aopt.ActiveDirectory != nil {
+ r["active_directory_id"] = aws.StringValue(aopt.ActiveDirectory.DirectoryId)
+ }
+ result = append([]map[string]interface{}{r}, result...)
}
- if aopts[0].ActiveDirectory != nil {
- m["active_directory_id"] = *aopts[0].ActiveDirectory.DirectoryId
+ return result
+}
+
+func expandEc2ClientVpnAuthenticationRequest(data map[string]interface{}) *ec2.ClientVpnAuthenticationRequest {
+ req := &ec2.ClientVpnAuthenticationRequest{
+ Type: aws.String(data["type"].(string)),
}
- m["type"] = *aopts[0].Type
- return []map[string]interface{}{m}
+
+ if data["type"].(string) == ec2.ClientVpnAuthenticationTypeCertificateAuthentication {
+ req.MutualAuthentication = &ec2.CertificateAuthenticationRequest{
+ ClientRootCertificateChainArn: aws.String(data["root_certificate_chain_arn"].(string)),
+ }
+ }
+
+ if data["type"].(string) == ec2.ClientVpnAuthenticationTypeDirectoryServiceAuthentication {
+ req.ActiveDirectory = &ec2.DirectoryServiceAuthenticationRequest{
+ DirectoryId: aws.String(data["active_directory_id"].(string)),
+ }
+ }
+
+ return req
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_fleet.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_fleet.go
index 5eaf702df93..6a94cca4a16 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_fleet.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_fleet.go
@@ -350,6 +350,7 @@ func resourceAwsEc2FleetCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsEc2FleetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeFleetsInput{
FleetIds: []*string{aws.String(d.Id())},
@@ -431,7 +432,7 @@ func resourceAwsEc2FleetRead(d *schema.ResourceData, meta interface{}) error {
d.Set("terminate_instances_with_expiration", fleet.TerminateInstancesWithExpiration)
d.Set("type", fleet.Type)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(fleet.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(fleet.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_filter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_filter.go
index ad1fc33333e..0a3809c8814 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_filter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_filter.go
@@ -115,6 +115,7 @@ func resourceAwsEc2TrafficMirrorFilterUpdate(d *schema.ResourceData, meta interf
func resourceAwsEc2TrafficMirrorFilterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ec2.DescribeTrafficMirrorFiltersInput{
TrafficMirrorFilterIds: aws.StringSlice([]string{d.Id()}),
@@ -141,7 +142,7 @@ func resourceAwsEc2TrafficMirrorFilterRead(d *schema.ResourceData, meta interfac
trafficMirrorFilter := out.TrafficMirrorFilters[0]
d.Set("description", trafficMirrorFilter.Description)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(trafficMirrorFilter.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(trafficMirrorFilter.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_session.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_session.go
index 7f11187998c..49970292c07 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_session.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_session.go
@@ -172,6 +172,7 @@ func resourceAwsEc2TrafficMirrorSessionUpdate(d *schema.ResourceData, meta inter
func resourceAwsEc2TrafficMirrorSessionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
sessionId := d.Id()
input := &ec2.DescribeTrafficMirrorSessionsInput{
@@ -207,7 +208,7 @@ func resourceAwsEc2TrafficMirrorSessionRead(d *schema.ResourceData, meta interfa
d.Set("packet_length", session.PacketLength)
d.Set("virtual_network_id", session.VirtualNetworkId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(session.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(session.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_target.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_target.go
index d76946afac1..feb367fb90a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_target.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_traffic_mirror_target.go
@@ -95,6 +95,7 @@ func resourceAwsEc2TrafficMirrorTargetUpdate(d *schema.ResourceData, meta interf
func resourceAwsEc2TrafficMirrorTargetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
targetId := d.Id()
input := &ec2.DescribeTrafficMirrorTargetsInput{
@@ -123,7 +124,7 @@ func resourceAwsEc2TrafficMirrorTargetRead(d *schema.ResourceData, meta interfac
d.Set("network_interface_id", target.NetworkInterfaceId)
d.Set("network_load_balancer_arn", target.NetworkLoadBalancerArn)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(target.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(target.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway.go
index d3d61582b0b..a9ef4791175 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway.go
@@ -145,6 +145,7 @@ func resourceAwsEc2TransitGatewayCreate(d *schema.ResourceData, meta interface{}
func resourceAwsEc2TransitGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
transitGateway, err := ec2DescribeTransitGateway(conn, d.Id())
@@ -185,7 +186,7 @@ func resourceAwsEc2TransitGatewayRead(d *schema.ResourceData, meta interface{})
d.Set("owner_id", transitGateway.OwnerId)
d.Set("propagation_default_route_table_id", transitGateway.Options.PropagationDefaultRouteTableId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGateway.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGateway.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -231,6 +232,10 @@ func resourceAwsEc2TransitGatewayDelete(d *schema.ResourceData, meta interface{}
return resource.RetryableError(err)
}
+ if isAWSErr(err, "IncorrectState", "has non-deleted Transit Gateway Cross Region Peering Attachments") {
+ return resource.RetryableError(err)
+ }
+
if err != nil {
return resource.NonRetryableError(err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_peering_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_peering_attachment.go
new file mode 100644
index 00000000000..fca4bf559f9
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_peering_attachment.go
@@ -0,0 +1,158 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/ec2"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+)
+
+func resourceAwsEc2TransitGatewayPeeringAttachment() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsEc2TransitGatewayPeeringAttachmentCreate,
+ Read: resourceAwsEc2TransitGatewayPeeringAttachmentRead,
+ Update: resourceAwsEc2TransitGatewayPeeringAttachmentUpdate,
+ Delete: resourceAwsEc2TransitGatewayPeeringAttachmentDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "peer_account_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ Computed: true,
+ ValidateFunc: validateAwsAccountId,
+ },
+ "peer_region": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "peer_transit_gateway_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "tags": tagsSchema(),
+ "transit_gateway_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ },
+ }
+}
+
+func resourceAwsEc2TransitGatewayPeeringAttachmentCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ peerAccountId := meta.(*AWSClient).accountid
+ if v, ok := d.GetOk("peer_account_id"); ok {
+ peerAccountId = v.(string)
+ }
+ input := &ec2.CreateTransitGatewayPeeringAttachmentInput{
+ PeerAccountId: aws.String(peerAccountId),
+ PeerRegion: aws.String(d.Get("peer_region").(string)),
+ PeerTransitGatewayId: aws.String(d.Get("peer_transit_gateway_id").(string)),
+ TagSpecifications: ec2TagSpecificationsFromMap(d.Get("tags").(map[string]interface{}), ec2.ResourceTypeTransitGatewayAttachment),
+ TransitGatewayId: aws.String(d.Get("transit_gateway_id").(string)),
+ }
+
+ log.Printf("[DEBUG] Creating EC2 Transit Gateway Peering Attachment: %s", input)
+ output, err := conn.CreateTransitGatewayPeeringAttachment(input)
+ if err != nil {
+ return fmt.Errorf("error creating EC2 Transit Gateway Peering Attachment: %s", err)
+ }
+
+ d.SetId(aws.StringValue(output.TransitGatewayPeeringAttachment.TransitGatewayAttachmentId))
+
+ if err := waitForEc2TransitGatewayPeeringAttachmentCreation(conn, d.Id()); err != nil {
+ return fmt.Errorf("error waiting for EC2 Transit Gateway Peering Attachment (%s) availability: %s", d.Id(), err)
+ }
+
+ return resourceAwsEc2TransitGatewayPeeringAttachmentRead(d, meta)
+}
+
+func resourceAwsEc2TransitGatewayPeeringAttachmentRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
+ transitGatewayPeeringAttachment, err := ec2DescribeTransitGatewayPeeringAttachment(conn, d.Id())
+
+ if isAWSErr(err, "InvalidTransitGatewayAttachmentID.NotFound", "") {
+ log.Printf("[WARN] EC2 Transit Gateway Peering Attachment (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("error reading EC2 Transit Gateway Peering Attachment: %s", err)
+ }
+
+ if transitGatewayPeeringAttachment == nil {
+ log.Printf("[WARN] EC2 Transit Gateway Peering Attachment (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ if aws.StringValue(transitGatewayPeeringAttachment.State) == ec2.TransitGatewayAttachmentStateDeleting || aws.StringValue(transitGatewayPeeringAttachment.State) == ec2.TransitGatewayAttachmentStateDeleted {
+ log.Printf("[WARN] EC2 Transit Gateway Peering Attachment (%s) in deleted state (%s), removing from state", d.Id(), aws.StringValue(transitGatewayPeeringAttachment.State))
+ d.SetId("")
+ return nil
+ }
+
+ d.Set("peer_account_id", transitGatewayPeeringAttachment.AccepterTgwInfo.OwnerId)
+ d.Set("peer_region", transitGatewayPeeringAttachment.AccepterTgwInfo.Region)
+ d.Set("peer_transit_gateway_id", transitGatewayPeeringAttachment.AccepterTgwInfo.TransitGatewayId)
+ d.Set("transit_gateway_id", transitGatewayPeeringAttachment.RequesterTgwInfo.TransitGatewayId)
+
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayPeeringAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ return nil
+}
+
+func resourceAwsEc2TransitGatewayPeeringAttachmentUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+
+ if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
+ return fmt.Errorf("error updating EC2 Transit Gateway Peering Attachment (%s) tags: %s", d.Id(), err)
+ }
+ }
+
+ return nil
+}
+
+func resourceAwsEc2TransitGatewayPeeringAttachmentDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ input := &ec2.DeleteTransitGatewayPeeringAttachmentInput{
+ TransitGatewayAttachmentId: aws.String(d.Id()),
+ }
+
+ log.Printf("[DEBUG] Deleting EC2 Transit Gateway Peering Attachment (%s): %s", d.Id(), input)
+ _, err := conn.DeleteTransitGatewayPeeringAttachment(input)
+
+ if isAWSErr(err, "InvalidTransitGatewayAttachmentID.NotFound", "") {
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("error deleting EC2 Transit Gateway Peering Attachment: %s", err)
+ }
+
+ if err := waitForEc2TransitGatewayPeeringAttachmentDeletion(conn, d.Id()); err != nil {
+ return fmt.Errorf("error waiting for EC2 Transit Gateway Peering Attachment (%s) deletion: %s", d.Id(), err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_route_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_route_table.go
index 5b20ae467c1..f19e19546ee 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_route_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_route_table.go
@@ -66,6 +66,7 @@ func resourceAwsEc2TransitGatewayRouteTableCreate(d *schema.ResourceData, meta i
func resourceAwsEc2TransitGatewayRouteTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
transitGatewayRouteTable, err := ec2DescribeTransitGatewayRouteTable(conn, d.Id())
@@ -94,7 +95,7 @@ func resourceAwsEc2TransitGatewayRouteTableRead(d *schema.ResourceData, meta int
d.Set("default_association_route_table", aws.BoolValue(transitGatewayRouteTable.DefaultAssociationRouteTable))
d.Set("default_propagation_route_table", aws.BoolValue(transitGatewayRouteTable.DefaultPropagationRouteTable))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayRouteTable.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayRouteTable.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment.go
index 29f41e961eb..0b241e7e2ee 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment.go
@@ -130,6 +130,7 @@ func resourceAwsEc2TransitGatewayVpcAttachmentCreate(d *schema.ResourceData, met
func resourceAwsEc2TransitGatewayVpcAttachmentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
transitGatewayVpcAttachment, err := ec2DescribeTransitGatewayVpcAttachment(conn, d.Id())
@@ -194,7 +195,7 @@ func resourceAwsEc2TransitGatewayVpcAttachmentRead(d *schema.ResourceData, meta
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment_accepter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment_accepter.go
index bb2fc407e65..c12bd7ad9b8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment_accepter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_transit_gateway_vpc_attachment_accepter.go
@@ -87,7 +87,7 @@ func resourceAwsEc2TransitGatewayVpcAttachmentAccepterCreate(d *schema.ResourceD
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error updating EC2 Transit Gateway VPC Attachment (%s) tags: %s", d.Id(), err)
}
}
@@ -114,6 +114,7 @@ func resourceAwsEc2TransitGatewayVpcAttachmentAccepterCreate(d *schema.ResourceD
func resourceAwsEc2TransitGatewayVpcAttachmentAccepterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
transitGatewayVpcAttachment, err := ec2DescribeTransitGatewayVpcAttachment(conn, d.Id())
@@ -172,7 +173,7 @@ func resourceAwsEc2TransitGatewayVpcAttachmentAccepterRead(d *schema.ResourceDat
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayVpcAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_lifecycle_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_lifecycle_policy.go
index 3ff36581c5c..643a5e15593 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_lifecycle_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_lifecycle_policy.go
@@ -27,7 +27,7 @@ func resourceAwsEcrLifecyclePolicy() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
},
"registry_id": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_repository.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_repository.go
index ac9ad614b6b..6c4a4a7a0e1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_repository.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecr_repository.go
@@ -110,6 +110,7 @@ func resourceAwsEcrRepositoryCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsEcrRepositoryRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecrconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading ECR repository %s", d.Id())
var out *ecr.DescribeRepositoriesOutput
@@ -162,7 +163,7 @@ func resourceAwsEcrRepositoryRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for ECR Repository (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_capacity_provider.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_capacity_provider.go
index 2907693e4a0..8d806d293d1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_capacity_provider.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_capacity_provider.go
@@ -132,6 +132,7 @@ func resourceAwsEcsCapacityProviderCreate(d *schema.ResourceData, meta interface
func resourceAwsEcsCapacityProviderRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ecs.DescribeCapacityProvidersInput{
CapacityProviders: []*string{aws.String(d.Id())},
@@ -161,7 +162,7 @@ func resourceAwsEcsCapacityProviderRead(d *schema.ResourceData, meta interface{}
d.Set("arn", provider.CapacityProviderArn)
d.Set("name", provider.Name)
- if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(provider.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(provider.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_cluster.go
index c8bd30dabdf..533914c6808 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_cluster.go
@@ -146,6 +146,7 @@ func resourceAwsEcsClusterCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsEcsClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &ecs.DescribeClustersInput{
Clusters: []*string{aws.String(d.Id())},
@@ -220,7 +221,7 @@ func resourceAwsEcsClusterRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error setting setting: %s", err)
}
- if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_service.go
index 1f8ab812de1..50f698a5970 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_service.go
@@ -553,6 +553,7 @@ func resourceAwsEcsServiceCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading ECS service %s", d.Id())
input := ecs.DescribeServicesInput{
@@ -685,7 +686,7 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Error setting service_registries for (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(service.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(service.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go
index 884716673ef..73b8bd7ee34 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go
@@ -288,6 +288,25 @@ func resourceAwsEcsTaskDefinition() *schema.Resource {
},
"tags": tagsSchema(),
+ "inference_accelerator": {
+ Type: schema.TypeSet,
+ Optional: true,
+ ForceNew: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "device_name": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ "device_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ },
+ },
+ },
+ },
},
}
}
@@ -356,6 +375,14 @@ func resourceAwsEcsTaskDefinitionCreate(d *schema.ResourceData, meta interface{}
input.Volumes = volumes
}
+ if v, ok := d.GetOk("inference_accelerator"); ok {
+ iAcc, err := expandEcsInferenceAccelerators(v.(*schema.Set).List())
+ if err != nil {
+ return err
+ }
+ input.InferenceAccelerators = iAcc
+ }
+
constraints := d.Get("placement_constraints").(*schema.Set).List()
if len(constraints) > 0 {
var pc []*ecs.TaskDefinitionPlacementConstraint
@@ -425,6 +452,7 @@ func resourceAwsEcsTaskDefinitionCreate(d *schema.ResourceData, meta interface{}
func resourceAwsEcsTaskDefinitionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ecsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading task definition %s", d.Id())
out, err := conn.DescribeTaskDefinition(&ecs.DescribeTaskDefinitionInput{
@@ -467,7 +495,7 @@ func resourceAwsEcsTaskDefinitionRead(d *schema.ResourceData, meta interface{})
d.Set("ipc_mode", taskDefinition.IpcMode)
d.Set("pid_mode", taskDefinition.PidMode)
- if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(out.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EcsKeyValueTags(out.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -475,6 +503,10 @@ func resourceAwsEcsTaskDefinitionRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error setting volume: %s", err)
}
+ if err := d.Set("inference_accelerator", flattenEcsInferenceAccelerators(taskDefinition.InferenceAccelerators)); err != nil {
+ return fmt.Errorf("error setting inference accelerators: %s", err)
+ }
+
if err := d.Set("placement_constraints", flattenPlacementConstraints(taskDefinition.PlacementConstraints)); err != nil {
log.Printf("[ERR] Error setting placement_constraints for (%s): %s", d.Id(), err)
}
@@ -562,3 +594,30 @@ func resourceAwsEcsTaskDefinitionVolumeHash(v interface{}) int {
buf.WriteString(fmt.Sprintf("%s-", m["host_path"].(string)))
return hashcode.String(buf.String())
}
+
+func flattenEcsInferenceAccelerators(list []*ecs.InferenceAccelerator) []map[string]interface{} {
+ result := make([]map[string]interface{}, 0, len(list))
+ for _, iAcc := range list {
+ l := map[string]interface{}{
+ "device_name": *iAcc.DeviceName,
+ "device_type": *iAcc.DeviceType,
+ }
+
+ result = append(result, l)
+ }
+ return result
+}
+
+func expandEcsInferenceAccelerators(configured []interface{}) ([]*ecs.InferenceAccelerator, error) {
+ iAccs := make([]*ecs.InferenceAccelerator, 0, len(configured))
+ for _, lRaw := range configured {
+ data := lRaw.(map[string]interface{})
+ l := &ecs.InferenceAccelerator{
+ DeviceName: aws.String(data["device_name"].(string)),
+ DeviceType: aws.String(data["device_type"].(string)),
+ }
+ iAccs = append(iAccs, l)
+ }
+
+ return iAccs, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_efs_file_system.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_efs_file_system.go
index 54e9e8b3130..edb5027f5ef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_efs_file_system.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_efs_file_system.go
@@ -103,7 +103,7 @@ func resourceAwsEfsFileSystem() *schema.Resource {
Schema: map[string]*schema.Schema{
"transition_to_ia": {
Type: schema.TypeString,
- Optional: true,
+ Required: true,
ValidateFunc: validation.StringInSlice([]string{
efs.TransitionToIARulesAfter7Days,
efs.TransitionToIARulesAfter14Days,
@@ -187,7 +187,7 @@ func resourceAwsEfsFileSystemCreate(d *schema.ResourceData, meta interface{}) er
if hasLifecyclePolicy {
_, err := conn.PutLifecycleConfiguration(&efs.PutLifecycleConfigurationInput{
FileSystemId: aws.String(d.Id()),
- LifecyclePolicies: resourceAwsEfsFileSystemLifecyclePolicy(d.Get("lifecycle_policy").([]interface{})),
+ LifecyclePolicies: expandEfsFileSystemLifecyclePolicies(d.Get("lifecycle_policy").([]interface{})),
})
if err != nil {
return fmt.Errorf("Error creating lifecycle policy for EFS file system %q: %s",
@@ -234,10 +234,19 @@ func resourceAwsEfsFileSystemUpdate(d *schema.ResourceData, meta interface{}) er
}
if d.HasChange("lifecycle_policy") {
- _, err := conn.PutLifecycleConfiguration(&efs.PutLifecycleConfigurationInput{
+ input := &efs.PutLifecycleConfigurationInput{
FileSystemId: aws.String(d.Id()),
- LifecyclePolicies: resourceAwsEfsFileSystemLifecyclePolicy(d.Get("lifecycle_policy").([]interface{})),
- })
+ LifecyclePolicies: expandEfsFileSystemLifecyclePolicies(d.Get("lifecycle_policy").([]interface{})),
+ }
+
+ // Prevent the following error during removal:
+ // InvalidParameter: 1 validation error(s) found.
+ // - missing required field, PutLifecycleConfigurationInput.LifecyclePolicies.
+ if input.LifecyclePolicies == nil {
+ input.LifecyclePolicies = []*efs.LifecyclePolicy{}
+ }
+
+ _, err := conn.PutLifecycleConfiguration(input)
if err != nil {
return fmt.Errorf("Error updating lifecycle policy for EFS file system %q: %s",
d.Id(), err.Error())
@@ -257,6 +266,7 @@ func resourceAwsEfsFileSystemUpdate(d *schema.ResourceData, meta interface{}) er
func resourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).efsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeFileSystems(&efs.DescribeFileSystemsInput{
FileSystemId: aws.String(d.Id()),
@@ -303,7 +313,7 @@ func resourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) erro
d.Set("provisioned_throughput_in_mibps", fs.ProvisionedThroughputInMibps)
d.Set("throughput_mode", fs.ThroughputMode)
- if err := d.Set("tags", keyvaluetags.EfsKeyValueTags(fs.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EfsKeyValueTags(fs.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -316,8 +326,9 @@ func resourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("Error describing lifecycle configuration for EFS file system (%s): %s",
aws.StringValue(fs.FileSystemId), err)
}
- if err := resourceAwsEfsFileSystemSetLifecyclePolicy(d, res.LifecyclePolicies); err != nil {
- return err
+
+ if err := d.Set("lifecycle_policy", flattenEfsFileSystemLifecyclePolicies(res.LifecyclePolicies)); err != nil {
+ return fmt.Errorf("error setting lifecycle_policy: %s", err)
}
return nil
@@ -402,36 +413,44 @@ func resourceEfsFileSystemCreateUpdateRefreshFunc(id string, conn *efs.EFS) reso
}
}
-func resourceAwsEfsFileSystemSetLifecyclePolicy(d *schema.ResourceData, lp []*efs.LifecyclePolicy) error {
- log.Printf("[DEBUG] lifecycle pols: %s %d", lp, len(lp))
- if len(lp) == 0 {
- d.Set("lifecycle_policy", nil)
- return nil
- }
- newLP := make([]*map[string]interface{}, len(lp))
-
- for i := 0; i < len(lp); i++ {
- config := lp[i]
- data := make(map[string]interface{})
- newLP[i] = &data
- if config.TransitionToIA != nil {
- data["transition_to_ia"] = *config.TransitionToIA
+func flattenEfsFileSystemLifecyclePolicies(apiObjects []*efs.LifecyclePolicy) []interface{} {
+ var tfList []interface{}
+
+ for _, apiObject := range apiObjects {
+ if apiObject == nil {
+ continue
}
- log.Printf("[DEBUG] lp: %s", data)
- }
- if err := d.Set("lifecycle_policy", newLP); err != nil {
- return fmt.Errorf("error setting lifecycle_policy: %s", err)
+ tfMap := make(map[string]interface{})
+
+ if apiObject.TransitionToIA != nil {
+ tfMap["transition_to_ia"] = aws.StringValue(apiObject.TransitionToIA)
+ }
+
+ tfList = append(tfList, tfMap)
}
- return nil
+
+ return tfList
}
-func resourceAwsEfsFileSystemLifecyclePolicy(lcPol []interface{}) []*efs.LifecyclePolicy {
- result := make([]*efs.LifecyclePolicy, len(lcPol))
+func expandEfsFileSystemLifecyclePolicies(tfList []interface{}) []*efs.LifecyclePolicy {
+ var apiObjects []*efs.LifecyclePolicy
+
+ for _, tfMapRaw := range tfList {
+ tfMap, ok := tfMapRaw.(map[string]interface{})
- for i := 0; i < len(lcPol); i++ {
- lp := lcPol[i].(map[string]interface{})
- result[i] = &efs.LifecyclePolicy{TransitionToIA: aws.String(lp["transition_to_ia"].(string))}
+ if !ok {
+ continue
+ }
+
+ apiObject := &efs.LifecyclePolicy{}
+
+ if v, ok := tfMap["transition_to_ia"].(string); ok && v != "" {
+ apiObject.TransitionToIA = aws.String(v)
+ }
+
+ apiObjects = append(apiObjects, apiObject)
}
- return result
+
+ return apiObjects
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_egress_only_internet_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_egress_only_internet_gateway.go
index a4e6b3184ef..291dacf4c28 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_egress_only_internet_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_egress_only_internet_gateway.go
@@ -9,12 +9,14 @@ import (
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
func resourceAwsEgressOnlyInternetGateway() *schema.Resource {
return &schema.Resource{
Create: resourceAwsEgressOnlyInternetGatewayCreate,
Read: resourceAwsEgressOnlyInternetGatewayRead,
+ Update: resourceAwsEgressOnlyInternetGatewayUpdate,
Delete: resourceAwsEgressOnlyInternetGatewayDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
@@ -26,6 +28,7 @@ func resourceAwsEgressOnlyInternetGateway() *schema.Resource {
Required: true,
ForceNew: true,
},
+ "tags": tagsSchema(),
},
}
}
@@ -42,11 +45,18 @@ func resourceAwsEgressOnlyInternetGatewayCreate(d *schema.ResourceData, meta int
d.SetId(aws.StringValue(resp.EgressOnlyInternetGateway.EgressOnlyInternetGatewayId))
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
+ }
+
return resourceAwsEgressOnlyInternetGatewayRead(d, meta)
}
func resourceAwsEgressOnlyInternetGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
var req = &ec2.DescribeEgressOnlyInternetGatewaysInput{
EgressOnlyInternetGatewayIds: []*string{aws.String(d.Id())},
@@ -85,6 +95,10 @@ func resourceAwsEgressOnlyInternetGatewayRead(d *schema.ResourceData, meta inter
d.Set("vpc_id", igw.Attachments[0].VpcId)
}
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(igw.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
return nil
}
@@ -99,6 +113,20 @@ func getEc2EgressOnlyInternetGateway(id string, resp *ec2.DescribeEgressOnlyInte
return nil
}
+func resourceAwsEgressOnlyInternetGatewayUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+
+ if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
+ return fmt.Errorf("error updating Egress Only Internet Gateway (%s) tags: %s", d.Id(), err)
+ }
+ }
+
+ return resourceAwsEgressOnlyInternetGatewayRead(d, meta)
+}
+
func resourceAwsEgressOnlyInternetGatewayDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eip.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eip.go
index 3efe2d4fe94..779d44617c3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eip.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eip.go
@@ -143,7 +143,7 @@ func resourceAwsEipCreate(d *schema.ResourceData, meta interface{}) error {
log.Printf("[INFO] EIP ID: %s (domain: %v)", d.Id(), *allocResp.Domain)
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(ec2conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(ec2conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
}
@@ -153,6 +153,7 @@ func resourceAwsEipCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsEipRead(d *schema.ResourceData, meta interface{}) error {
ec2conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
domain := resourceAwsEipDomain(d)
id := d.Id()
@@ -273,7 +274,7 @@ func resourceAwsEipRead(d *schema.ResourceData, meta interface{}) error {
d.SetId(*address.AllocationId)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(address.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(address.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -358,7 +359,7 @@ func resourceAwsEipUpdate(d *schema.ResourceData, meta interface{}) error {
}
}
- if d.HasChange("tags") {
+ if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(ec2conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating EIP (%s) tags: %s", d.Id(), err)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_cluster.go
index d9d71d4cbc6..f631489d408 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_cluster.go
@@ -282,6 +282,7 @@ func resourceAwsEksClusterCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsEksClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).eksconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &eks.DescribeClusterInput{
Name: aws.String(d.Id()),
@@ -328,7 +329,7 @@ func resourceAwsEksClusterRead(d *schema.ResourceData, meta interface{}) error {
d.Set("role_arn", cluster.RoleArn)
d.Set("status", cluster.Status)
- if err := d.Set("tags", keyvaluetags.EksKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EksKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_fargate_profile.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_fargate_profile.go
index 939dda3bc66..ef195e73cd1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_fargate_profile.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_fargate_profile.go
@@ -152,6 +152,7 @@ func resourceAwsEksFargateProfileCreate(d *schema.ResourceData, meta interface{}
func resourceAwsEksFargateProfileRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).eksconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
clusterName, fargateProfileName, err := resourceAwsEksFargateProfileParseId(d.Id())
if err != nil {
@@ -198,7 +199,7 @@ func resourceAwsEksFargateProfileRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error setting subnets: %s", err)
}
- if err := d.Set("tags", keyvaluetags.EksKeyValueTags(fargateProfile.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EksKeyValueTags(fargateProfile.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_node_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_node_group.go
index 6b298f05184..7c29f24f089 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_node_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_eks_node_group.go
@@ -255,6 +255,7 @@ func resourceAwsEksNodeGroupCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsEksNodeGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).eksconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
clusterName, nodeGroupName, err := resourceAwsEksNodeGroupParseId(d.Id())
if err != nil {
@@ -320,7 +321,7 @@ func resourceAwsEksNodeGroupRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error setting subnets: %s", err)
}
- if err := d.Set("tags", keyvaluetags.EksKeyValueTags(nodeGroup.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EksKeyValueTags(nodeGroup.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application.go
index a8566ab6582..6501ac55961 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application.go
@@ -211,6 +211,7 @@ func resourceAwsElasticBeanstalkApplicationAppversionLifecycleUpdate(beanstalkCo
func resourceAwsElasticBeanstalkApplicationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticbeanstalkconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
var app *elasticbeanstalk.ApplicationDescription
err := resource.Retry(30*time.Second, func() *resource.RetryError {
@@ -256,7 +257,7 @@ func resourceAwsElasticBeanstalkApplicationRead(d *schema.ResourceData, meta int
return fmt.Errorf("error listing tags for Elastic Beanstalk Application (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreElasticbeanstalk().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreElasticbeanstalk().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application_version.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application_version.go
index c269e3e5716..4fc8c9afff9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application_version.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_application_version.go
@@ -94,6 +94,7 @@ func resourceAwsElasticBeanstalkApplicationVersionCreate(d *schema.ResourceData,
func resourceAwsElasticBeanstalkApplicationVersionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticbeanstalkconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeApplicationVersions(&elasticbeanstalk.DescribeApplicationVersionsInput{
ApplicationName: aws.String(d.Get("application").(string)),
@@ -124,7 +125,7 @@ func resourceAwsElasticBeanstalkApplicationVersionRead(d *schema.ResourceData, m
return fmt.Errorf("error listing tags for Elastic Beanstalk Application version (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreElasticbeanstalk().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreElasticbeanstalk().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_environment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_environment.go
index 64daf5cf60b..f78928942e6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_environment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_beanstalk_environment.go
@@ -237,7 +237,7 @@ func resourceAwsElasticBeanstalkEnvironmentCreate(d *schema.ResourceData, meta i
if cnamePrefix != "" {
if tier != "WebServer" {
- return fmt.Errorf("Cannot set cname_prefix for tier: %s.", tier)
+ return fmt.Errorf("cannot set cname_prefix for tier: %s", tier)
}
createOpts.CNAMEPrefix = aws.String(cnamePrefix)
}
@@ -296,21 +296,9 @@ func resourceAwsElasticBeanstalkEnvironmentCreate(d *schema.ResourceData, meta i
log.Printf("[WARN] Error parsing poll_interval, using default backoff")
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{"Launching", "Updating"},
- Target: []string{"Ready"},
- Refresh: environmentStateRefreshFunc(conn, d.Id(), t),
- Timeout: waitForReadyTimeOut,
- Delay: 10 * time.Second,
- PollInterval: pollInterval,
- MinTimeout: 3 * time.Second,
- }
-
- _, err = stateConf.WaitForState()
+ err = waitForElasticBeanstalkEnvironmentReady(conn, d.Id(), waitForReadyTimeOut, pollInterval, t)
if err != nil {
- return fmt.Errorf(
- "Error waiting for Elastic Beanstalk Environment (%s) to become ready: %s",
- d.Id(), err)
+ return fmt.Errorf("Error waiting for Elastic Beanstalk Environment (%s) to become ready: %w", d.Id(), err)
}
envErrors, err := getBeanstalkEnvironmentErrors(conn, d.Id(), t)
@@ -327,12 +315,12 @@ func resourceAwsElasticBeanstalkEnvironmentCreate(d *schema.ResourceData, meta i
func resourceAwsElasticBeanstalkEnvironmentUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticbeanstalkconn
- envId := d.Id()
+ envID := d.Id()
var hasChange bool
updateOpts := elasticbeanstalk.UpdateEnvironmentInput{
- EnvironmentId: aws.String(envId),
+ EnvironmentId: aws.String(envID),
}
if d.HasChange("description") {
@@ -450,17 +438,7 @@ func resourceAwsElasticBeanstalkEnvironmentUpdate(d *schema.ResourceData, meta i
log.Printf("[WARN] Error parsing poll_interval, using default backoff")
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{"Launching", "Updating"},
- Target: []string{"Ready"},
- Refresh: environmentStateRefreshFunc(conn, d.Id(), t),
- Timeout: waitForReadyTimeOut,
- Delay: 10 * time.Second,
- PollInterval: pollInterval,
- MinTimeout: 3 * time.Second,
- }
-
- _, err = stateConf.WaitForState()
+ err = waitForElasticBeanstalkEnvironmentReady(conn, d.Id(), waitForReadyTimeOut, pollInterval, t)
if err != nil {
return fmt.Errorf(
"Error waiting for Elastic Beanstalk Environment (%s) to become ready: %s",
@@ -496,21 +474,9 @@ func resourceAwsElasticBeanstalkEnvironmentUpdate(d *schema.ResourceData, meta i
log.Printf("[WARN] Error parsing poll_interval, using default backoff")
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{"Launching", "Updating"},
- Target: []string{"Ready"},
- Refresh: environmentStateRefreshFunc(conn, d.Id(), t),
- Timeout: waitForReadyTimeOut,
- Delay: 10 * time.Second,
- PollInterval: pollInterval,
- MinTimeout: 3 * time.Second,
- }
-
- _, err = stateConf.WaitForState()
+ err = waitForElasticBeanstalkEnvironmentReady(conn, d.Id(), waitForReadyTimeOut, pollInterval, t)
if err != nil {
- return fmt.Errorf(
- "Error waiting for Elastic Beanstalk Environment (%s) to become ready: %s",
- d.Id(), err)
+ return fmt.Errorf("error waiting for Elastic Beanstalk Environment %q to become ready: %w", d.Id(), err)
}
envErrors, err := getBeanstalkEnvironmentErrors(conn, d.Id(), t)
@@ -527,13 +493,14 @@ func resourceAwsElasticBeanstalkEnvironmentUpdate(d *schema.ResourceData, meta i
func resourceAwsElasticBeanstalkEnvironmentRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticbeanstalkconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
- envId := d.Id()
+ envID := d.Id()
log.Printf("[DEBUG] Elastic Beanstalk environment read %s: id %s", d.Get("name").(string), d.Id())
resp, err := conn.DescribeEnvironments(&elasticbeanstalk.DescribeEnvironmentsInput{
- EnvironmentIds: []*string{aws.String(envId)},
+ EnvironmentIds: []*string{aws.String(envID)},
})
if err != nil {
@@ -559,7 +526,7 @@ func resourceAwsElasticBeanstalkEnvironmentRead(d *schema.ResourceData, meta int
}
resources, err := conn.DescribeEnvironmentResources(&elasticbeanstalk.DescribeEnvironmentResourcesInput{
- EnvironmentId: aws.String(envId),
+ EnvironmentId: aws.String(envID),
})
if err != nil {
@@ -650,7 +617,7 @@ func resourceAwsElasticBeanstalkEnvironmentRead(d *schema.ResourceData, meta int
return fmt.Errorf("error listing tags for Elastic Beanstalk environment (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreElasticbeanstalk().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreElasticbeanstalk().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -756,20 +723,6 @@ func resourceAwsElasticBeanstalkEnvironmentSettingsRead(d *schema.ResourceData,
func resourceAwsElasticBeanstalkEnvironmentDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticbeanstalkconn
- opts := elasticbeanstalk.TerminateEnvironmentInput{
- EnvironmentId: aws.String(d.Id()),
- TerminateResources: aws.Bool(true),
- }
-
- // Get the current time to filter getBeanstalkEnvironmentErrors messages
- t := time.Now()
- log.Printf("[DEBUG] Elastic Beanstalk Environment terminate opts: %s", opts)
- _, err := conn.TerminateEnvironment(&opts)
-
- if err != nil {
- return err
- }
-
waitForReadyTimeOut, err := time.ParseDuration(d.Get("wait_for_ready_timeout").(string))
if err != nil {
return err
@@ -780,11 +733,36 @@ func resourceAwsElasticBeanstalkEnvironmentDelete(d *schema.ResourceData, meta i
log.Printf("[WARN] Error parsing poll_interval, using default backoff")
}
+ // The Environment needs to be in a Ready state before it can be terminated
+ err = waitForElasticBeanstalkEnvironmentReadyIgnoreErrorEvents(conn, d.Id(), waitForReadyTimeOut, pollInterval)
+ if err != nil {
+ return fmt.Errorf("error waiting for Elastic Beanstalk Environment %q to be ready before terminating: %w", d.Id(), err)
+ }
+
+ return deleteElasticBeanstalkEnvironment(conn, d.Id(), waitForReadyTimeOut, pollInterval)
+}
+
+func deleteElasticBeanstalkEnvironment(conn *elasticbeanstalk.ElasticBeanstalk, id string, timeout, pollInterval time.Duration) error {
+ opts := elasticbeanstalk.TerminateEnvironmentInput{
+ EnvironmentId: aws.String(id),
+ TerminateResources: aws.Bool(true),
+ }
+ log.Printf("[DEBUG] Elastic Beanstalk Environment terminate opts: %s", opts)
+
+ _, err := conn.TerminateEnvironment(&opts)
+ if err != nil {
+ if isAWSErr(err, "InvalidConfiguration.NotFound", "") || isAWSErr(err, "ValidationError", "") {
+ log.Printf("[DEBUG] Elastic Beanstalk Environment %q not found", id)
+ return nil
+ }
+ return err
+ }
+
stateConf := &resource.StateChangeConf{
Pending: []string{"Terminating"},
Target: []string{"Terminated"},
- Refresh: environmentStateRefreshFunc(conn, d.Id(), t),
- Timeout: waitForReadyTimeOut,
+ Refresh: elasticBeanstalkEnvironmentIgnoreErrorEventsStateRefreshFunc(conn, id),
+ Timeout: timeout,
Delay: 10 * time.Second,
PollInterval: pollInterval,
MinTimeout: 3 * time.Second,
@@ -792,32 +770,52 @@ func resourceAwsElasticBeanstalkEnvironmentDelete(d *schema.ResourceData, meta i
_, err = stateConf.WaitForState()
if err != nil {
- return fmt.Errorf(
- "Error waiting for Elastic Beanstalk Environment (%s) to become terminated: %s",
- d.Id(), err)
+ return fmt.Errorf("error waiting for Elastic Beanstalk Environment %q to become terminated: %w", id, err)
}
- envErrors, err := getBeanstalkEnvironmentErrors(conn, d.Id(), t)
- if err != nil {
- return err
+ return nil
+}
+
+func waitForElasticBeanstalkEnvironmentReady(conn *elasticbeanstalk.ElasticBeanstalk, id string, timeout, pollInterval time.Duration, startTime time.Time) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"Launching", "Updating"},
+ Target: []string{"Ready"},
+ Refresh: elasticBeanstalkEnvironmentStateRefreshFunc(conn, id, startTime),
+ Timeout: timeout,
+ Delay: 10 * time.Second,
+ PollInterval: pollInterval,
+ MinTimeout: 3 * time.Second,
}
- if envErrors != nil {
- return envErrors
+
+ _, err := stateConf.WaitForState()
+ return err
+}
+
+func waitForElasticBeanstalkEnvironmentReadyIgnoreErrorEvents(conn *elasticbeanstalk.ElasticBeanstalk, id string, timeout, pollInterval time.Duration) error {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"Launching", "Updating"},
+ Target: []string{"Ready"},
+ Refresh: elasticBeanstalkEnvironmentIgnoreErrorEventsStateRefreshFunc(conn, id),
+ Timeout: timeout,
+ Delay: 10 * time.Second,
+ PollInterval: pollInterval,
+ MinTimeout: 3 * time.Second,
}
- return nil
+ _, err := stateConf.WaitForState()
+ return err
}
-// environmentStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch
+// elasticBeanstalkEnvironmentStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch
// the creation of the Beanstalk Environment
-func environmentStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, environmentId string, t time.Time) resource.StateRefreshFunc {
+func elasticBeanstalkEnvironmentStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, environmentID string, t time.Time) resource.StateRefreshFunc {
return func() (interface{}, string, error) {
resp, err := conn.DescribeEnvironments(&elasticbeanstalk.DescribeEnvironmentsInput{
- EnvironmentIds: []*string{aws.String(environmentId)},
+ EnvironmentIds: []*string{aws.String(environmentID)},
})
if err != nil {
log.Printf("[Err] Error waiting for Elastic Beanstalk Environment state: %s", err)
- return -1, "failed", fmt.Errorf("Error waiting for Elastic Beanstalk Environment state: %s", err)
+ return -1, "failed", fmt.Errorf("error waiting for Elastic Beanstalk Environment state: %w", err)
}
if resp == nil || len(resp.Environments) == 0 {
@@ -828,7 +826,7 @@ func environmentStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, enviro
var env *elasticbeanstalk.EnvironmentDescription
for _, e := range resp.Environments {
- if environmentId == *e.EnvironmentId {
+ if environmentID == aws.StringValue(e.EnvironmentId) {
env = e
}
}
@@ -837,7 +835,7 @@ func environmentStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, enviro
return -1, "failed", fmt.Errorf("Error finding Elastic Beanstalk Environment, environment not found")
}
- envErrors, err := getBeanstalkEnvironmentErrors(conn, environmentId, t)
+ envErrors, err := getBeanstalkEnvironmentErrors(conn, environmentID, t)
if err != nil {
return -1, "failed", err
}
@@ -845,7 +843,38 @@ func environmentStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, enviro
return -1, "failed", envErrors
}
- return env, *env.Status, nil
+ return env, aws.StringValue(env.Status), nil
+ }
+}
+
+func elasticBeanstalkEnvironmentIgnoreErrorEventsStateRefreshFunc(conn *elasticbeanstalk.ElasticBeanstalk, environmentID string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ resp, err := conn.DescribeEnvironments(&elasticbeanstalk.DescribeEnvironmentsInput{
+ EnvironmentIds: []*string{aws.String(environmentID)},
+ })
+ if err != nil {
+ log.Printf("[Err] Error waiting for Elastic Beanstalk Environment state: %s", err)
+ return -1, "failed", fmt.Errorf("error waiting for Elastic Beanstalk Environment state: %w", err)
+ }
+
+ if resp == nil || len(resp.Environments) == 0 {
+ // Sometimes AWS just has consistency issues and doesn't see
+ // our instance yet. Return an empty state.
+ return nil, "", nil
+ }
+
+ var env *elasticbeanstalk.EnvironmentDescription
+ for _, e := range resp.Environments {
+ if environmentID == aws.StringValue(e.EnvironmentId) {
+ env = e
+ }
+ }
+
+ if env == nil {
+ return -1, "failed", fmt.Errorf("Error finding Elastic Beanstalk Environment, environment not found")
+ }
+
+ return env, aws.StringValue(env.Status), nil
}
}
@@ -984,7 +1013,7 @@ func getBeanstalkEnvironmentErrors(conn *elasticbeanstalk.ElasticBeanstalk, envi
})
if err != nil {
- return nil, fmt.Errorf("Unable to get Elastic Beanstalk Evironment events: %s", err)
+ return nil, fmt.Errorf("unable to get Elastic Beanstalk Environment events: %w", err)
}
var events beanstalkEnvironmentErrors
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_pipeline.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_pipeline.go
index 69c22a2c1eb..edd1d5c63af 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_pipeline.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_pipeline.go
@@ -6,7 +6,6 @@ import (
"regexp"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/elastictranscoder"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -139,8 +138,9 @@ func resourceAwsElasticTranscoderPipeline() *schema.Resource {
},
"role": {
- Type: schema.TypeString,
- Required: true,
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
},
"thumbnail_config": {
@@ -191,18 +191,21 @@ func resourceAwsElasticTranscoderPipeline() *schema.Resource {
}
func resourceAwsElasticTranscoderPipelineCreate(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
req := &elastictranscoder.CreatePipelineInput{
- AwsKmsKeyArn: getStringPtr(d, "aws_kms_key_arn"),
+ AwsKmsKeyArn: aws.String(d.Get("aws_kms_key_arn").(string)),
ContentConfig: expandETPiplineOutputConfig(d, "content_config"),
InputBucket: aws.String(d.Get("input_bucket").(string)),
Notifications: expandETNotifications(d),
- OutputBucket: getStringPtr(d, "output_bucket"),
- Role: getStringPtr(d, "role"),
+ Role: aws.String(d.Get("role").(string)),
ThumbnailConfig: expandETPiplineOutputConfig(d, "thumbnail_config"),
}
+ if v, ok := d.GetOk("output_bucket"); ok && v.(string) != "" {
+ req.OutputBucket = aws.String(v.(string))
+ }
+
if name, ok := d.GetOk("name"); ok {
req.Name = aws.String(name.(string))
} else {
@@ -217,7 +220,7 @@ func resourceAwsElasticTranscoderPipelineCreate(d *schema.ResourceData, meta int
}
log.Printf("[DEBUG] Elastic Transcoder Pipeline create opts: %s", req)
- resp, err := elastictranscoderconn.CreatePipeline(req)
+ resp, err := conn.CreatePipeline(req)
if err != nil {
return fmt.Errorf("Error creating Elastic Transcoder Pipeline: %s", err)
}
@@ -276,13 +279,14 @@ func flattenETNotifications(n *elastictranscoder.Notifications) []map[string]int
return nil
}
- m := setMap(make(map[string]interface{}))
+ result := map[string]interface{}{
+ "completed": aws.StringValue(n.Completed),
+ "error": aws.StringValue(n.Error),
+ "progressing": aws.StringValue(n.Progressing),
+ "warning": aws.StringValue(n.Warning),
+ }
- m.SetString("completed", n.Completed)
- m.SetString("error", n.Error)
- m.SetString("progressing", n.Progressing)
- m.SetString("warning", n.Warning)
- return m.MapList()
+ return []map[string]interface{}{result}
}
func expandETPiplineOutputConfig(d *schema.ResourceData, key string) *elastictranscoder.PipelineOutputConfig {
@@ -299,8 +303,8 @@ func expandETPiplineOutputConfig(d *schema.ResourceData, key string) *elastictra
cc := s.List()[0].(map[string]interface{})
cfg := &elastictranscoder.PipelineOutputConfig{
- Bucket: getStringPtr(cc, "bucket"),
- StorageClass: getStringPtr(cc, "storage_class"),
+ Bucket: aws.String(cc["bucket"].(string)),
+ StorageClass: aws.String(cc["storage_class"].(string)),
}
switch key {
@@ -314,12 +318,16 @@ func expandETPiplineOutputConfig(d *schema.ResourceData, key string) *elastictra
}
func flattenETPipelineOutputConfig(cfg *elastictranscoder.PipelineOutputConfig) []map[string]interface{} {
- m := setMap(make(map[string]interface{}))
+ if cfg == nil {
+ return nil
+ }
- m.SetString("bucket", cfg.Bucket)
- m.SetString("storage_class", cfg.StorageClass)
+ result := map[string]interface{}{
+ "bucket": aws.StringValue(cfg.Bucket),
+ "storage_class": aws.StringValue(cfg.StorageClass),
+ }
- return m.MapList()
+ return []map[string]interface{}{result}
}
func expandETPermList(permissions *schema.Set) []*elastictranscoder.Permission {
@@ -334,8 +342,8 @@ func expandETPermList(permissions *schema.Set) []*elastictranscoder.Permission {
perm := &elastictranscoder.Permission{
Access: expandStringList(m["access"].([]interface{})),
- Grantee: getStringPtr(p, "grantee"),
- GranteeType: getStringPtr(p, "grantee_type"),
+ Grantee: aws.String(m["grantee"].(string)),
+ GranteeType: aws.String(m["grantee_type"].(string)),
}
perms = append(perms, perm)
@@ -347,25 +355,26 @@ func flattenETPermList(perms []*elastictranscoder.Permission) []map[string]inter
var set []map[string]interface{}
for _, p := range perms {
- m := setMap(make(map[string]interface{}))
- m.Set("access", flattenStringList(p.Access))
- m.SetString("grantee", p.Grantee)
- m.SetString("grantee_type", p.GranteeType)
+ result := map[string]interface{}{
+ "access": flattenStringList(p.Access),
+ "grantee": aws.StringValue(p.Grantee),
+ "grantee_type": aws.StringValue(p.GranteeType),
+ }
- set = append(set, m)
+ set = append(set, result)
}
return set
}
func resourceAwsElasticTranscoderPipelineUpdate(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
req := &elastictranscoder.UpdatePipelineInput{
Id: aws.String(d.Id()),
}
if d.HasChange("aws_kms_key_arn") {
- req.AwsKmsKeyArn = getStringPtr(d, "aws_kms_key_arn")
+ req.AwsKmsKeyArn = aws.String(d.Get("aws_kms_key_arn").(string))
}
if d.HasChange("content_config") {
@@ -373,11 +382,11 @@ func resourceAwsElasticTranscoderPipelineUpdate(d *schema.ResourceData, meta int
}
if d.HasChange("input_bucket") {
- req.InputBucket = getStringPtr(d, "input_bucket")
+ req.InputBucket = aws.String(d.Get("input_bucket").(string))
}
if d.HasChange("name") {
- req.Name = getStringPtr(d, "name")
+ req.Name = aws.String(d.Get("name").(string))
}
if d.HasChange("notifications") {
@@ -385,7 +394,7 @@ func resourceAwsElasticTranscoderPipelineUpdate(d *schema.ResourceData, meta int
}
if d.HasChange("role") {
- req.Role = getStringPtr(d, "role")
+ req.Role = aws.String(d.Get("role").(string))
}
if d.HasChange("thumbnail_config") {
@@ -393,7 +402,7 @@ func resourceAwsElasticTranscoderPipelineUpdate(d *schema.ResourceData, meta int
}
log.Printf("[DEBUG] Updating Elastic Transcoder Pipeline: %#v", req)
- output, err := elastictranscoderconn.UpdatePipeline(req)
+ output, err := conn.UpdatePipeline(req)
if err != nil {
return fmt.Errorf("Error updating Elastic Transcoder pipeline: %s", err)
}
@@ -406,14 +415,15 @@ func resourceAwsElasticTranscoderPipelineUpdate(d *schema.ResourceData, meta int
}
func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
- resp, err := elastictranscoderconn.ReadPipeline(&elastictranscoder.ReadPipelineInput{
+ resp, err := conn.ReadPipeline(&elastictranscoder.ReadPipelineInput{
Id: aws.String(d.Id()),
})
if err != nil {
- if err, ok := err.(awserr.Error); ok && err.Code() == "ResourceNotFoundException" {
+ if isAWSErr(err, elastictranscoder.ErrCodeResourceNotFoundException, "") {
+ log.Printf("[WARN] No such resource found for Elastic Transcoder Pipeline (%s)", d.Id())
d.SetId("")
return nil
}
@@ -478,10 +488,10 @@ func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta inter
}
func resourceAwsElasticTranscoderPipelineDelete(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
log.Printf("[DEBUG] Elastic Transcoder Delete Pipeline: %s", d.Id())
- _, err := elastictranscoderconn.DeletePipeline(&elastictranscoder.DeletePipelineInput{
+ _, err := conn.DeletePipeline(&elastictranscoder.DeletePipelineInput{
Id: aws.String(d.Id()),
})
if err != nil {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go
index 22f3c2ef02b..2273b12b2be 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go
@@ -5,7 +5,6 @@ import (
"log"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/elastictranscoder"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -320,12 +319,12 @@ func resourceAwsElasticTranscoderPreset() *schema.Resource {
}
func resourceAwsElasticTranscoderPresetCreate(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
req := &elastictranscoder.CreatePresetInput{
Audio: expandETAudioParams(d),
Container: aws.String(d.Get("container").(string)),
- Description: getStringPtr(d, "description"),
+ Description: aws.String(d.Get("description").(string)),
Thumbnails: expandETThumbnails(d),
Video: expandETVideoParams(d),
}
@@ -339,7 +338,7 @@ func resourceAwsElasticTranscoderPresetCreate(d *schema.ResourceData, meta inter
}
log.Printf("[DEBUG] Elastic Transcoder Preset create opts: %s", req)
- resp, err := elastictranscoderconn.CreatePreset(req)
+ resp, err := conn.CreatePreset(req)
if err != nil {
return fmt.Errorf("Error creating Elastic Transcoder Preset: %s", err)
}
@@ -366,16 +365,41 @@ func expandETThumbnails(d *schema.ResourceData) *elastictranscoder.Thumbnails {
}
t := s.List()[0].(map[string]interface{})
- return &elastictranscoder.Thumbnails{
- AspectRatio: getStringPtr(t, "aspect_ratio"),
- Format: getStringPtr(t, "format"),
- Interval: getStringPtr(t, "interval"),
- MaxHeight: getStringPtr(t, "max_height"),
- MaxWidth: getStringPtr(t, "max_width"),
- PaddingPolicy: getStringPtr(t, "padding_policy"),
- Resolution: getStringPtr(t, "resolution"),
- SizingPolicy: getStringPtr(t, "sizing_policy"),
+ thumbnails := &elastictranscoder.Thumbnails{}
+
+ if v, ok := t["aspect_ratio"]; ok && v.(string) != "" {
+ thumbnails.AspectRatio = aws.String(v.(string))
+ }
+
+ if v, ok := t["interval"]; ok && v.(string) != "" {
+ thumbnails.Interval = aws.String(v.(string))
+ }
+
+ if v, ok := t["format"]; ok && v.(string) != "" {
+ thumbnails.Format = aws.String(v.(string))
+ }
+
+ if v, ok := t["max_height"]; ok && v.(string) != "" {
+ thumbnails.MaxHeight = aws.String(v.(string))
+ }
+
+ if v, ok := t["max_width"]; ok && v.(string) != "" {
+ thumbnails.MaxWidth = aws.String(v.(string))
}
+
+ if v, ok := t["padding_policy"]; ok && v.(string) != "" {
+ thumbnails.PaddingPolicy = aws.String(v.(string))
+ }
+
+ if v, ok := t["resolution"]; ok && v.(string) != "" {
+ thumbnails.Resolution = aws.String(v.(string))
+ }
+
+ if v, ok := t["sizing_policy"]; ok && v.(string) != "" {
+ thumbnails.SizingPolicy = aws.String(v.(string))
+ }
+
+ return thumbnails
}
func expandETAudioParams(d *schema.ResourceData) *elastictranscoder.AudioParameters {
@@ -391,12 +415,12 @@ func expandETAudioParams(d *schema.ResourceData) *elastictranscoder.AudioParamet
audio := s.List()[0].(map[string]interface{})
return &elastictranscoder.AudioParameters{
- AudioPackingMode: getStringPtr(audio, "audio_packing_mode"),
- BitRate: getStringPtr(audio, "bit_rate"),
- Channels: getStringPtr(audio, "channels"),
- Codec: getStringPtr(audio, "codec"),
+ AudioPackingMode: aws.String(audio["audio_packing_mode"].(string)),
+ BitRate: aws.String(audio["bit_rate"].(string)),
+ Channels: aws.String(audio["channels"].(string)),
+ Codec: aws.String(audio["codec"].(string)),
CodecOptions: expandETAudioCodecOptions(d),
- SampleRate: getStringPtr(audio, "sample_rate"),
+ SampleRate: aws.String(audio["sample_rate"].(string)),
}
}
@@ -408,11 +432,22 @@ func expandETAudioCodecOptions(d *schema.ResourceData) *elastictranscoder.AudioC
codec := s.List()[0].(map[string]interface{})
- codecOpts := &elastictranscoder.AudioCodecOptions{
- BitDepth: getStringPtr(codec, "bit_depth"),
- BitOrder: getStringPtr(codec, "bit_order"),
- Profile: getStringPtr(codec, "profile"),
- Signed: getStringPtr(codec, "signed"),
+ codecOpts := &elastictranscoder.AudioCodecOptions{}
+
+ if v, ok := codec["signed"]; ok && v.(string) != "" {
+ codecOpts.Signed = aws.String(v.(string))
+ }
+
+ if v, ok := codec["profile"]; ok && v.(string) != "" {
+ codecOpts.Profile = aws.String(v.(string))
+ }
+
+ if v, ok := codec["bit_order"]; ok && v.(string) != "" {
+ codecOpts.BitOrder = aws.String(v.(string))
+ }
+
+ if v, ok := codec["bit_depth"]; ok && v.(string) != "" {
+ codecOpts.BitDepth = aws.String(v.(string))
}
return codecOpts
@@ -425,23 +460,76 @@ func expandETVideoParams(d *schema.ResourceData) *elastictranscoder.VideoParamet
}
p := s.List()[0].(map[string]interface{})
- return &elastictranscoder.VideoParameters{
- AspectRatio: getStringPtr(p, "aspect_ratio"),
- BitRate: getStringPtr(p, "bit_rate"),
- Codec: getStringPtr(p, "codec"),
- CodecOptions: stringMapToPointers(d.Get("video_codec_options").(map[string]interface{})),
- DisplayAspectRatio: getStringPtr(p, "display_aspect_ratio"),
- FixedGOP: getStringPtr(p, "fixed_gop"),
- FrameRate: getStringPtr(p, "frame_rate"),
- KeyframesMaxDist: getStringPtr(p, "keyframes_max_dist"),
- MaxFrameRate: getStringPtr(p, "max_frame_rate"),
- MaxHeight: getStringPtr(p, "max_height"),
- MaxWidth: getStringPtr(p, "max_width"),
- PaddingPolicy: getStringPtr(p, "padding_policy"),
- Resolution: getStringPtr(p, "resolution"),
- SizingPolicy: getStringPtr(p, "sizing_policy"),
- Watermarks: expandETVideoWatermarks(d),
+ etVideoParams := &elastictranscoder.VideoParameters{
+ Watermarks: expandETVideoWatermarks(d),
+ }
+
+ if v, ok := d.GetOk("video_codec_options"); ok {
+ codecOpts := make(map[string]string)
+ for k, va := range v.(map[string]interface{}) {
+ codecOpts[k] = va.(string)
+ }
+
+ etVideoParams.CodecOptions = aws.StringMap(codecOpts)
+ }
+
+ if v, ok := p["aspect_ratio"]; ok && v.(string) != "" {
+ etVideoParams.AspectRatio = aws.String(v.(string))
+ }
+
+ if v, ok := p["bit_rate"]; ok && v.(string) != "" {
+ etVideoParams.BitRate = aws.String(v.(string))
+ }
+
+ if v, ok := p["display_aspect_ratio"]; ok && v.(string) != "" {
+ etVideoParams.DisplayAspectRatio = aws.String(v.(string))
+ }
+
+ if v, ok := p["aspect_ratio"]; ok && v.(string) != "" {
+ etVideoParams.AspectRatio = aws.String(v.(string))
+ }
+
+ if v, ok := p["fixed_gop"]; ok && v.(string) != "" {
+ etVideoParams.FixedGOP = aws.String(v.(string))
+ }
+
+ if v, ok := p["frame_rate"]; ok && v.(string) != "" {
+ etVideoParams.FrameRate = aws.String(v.(string))
+ }
+
+ if v, ok := p["keyframes_max_dist"]; ok && v.(string) != "" {
+ etVideoParams.KeyframesMaxDist = aws.String(v.(string))
+ }
+
+ if v, ok := p["max_frame_rate"]; ok && v.(string) != "" {
+ etVideoParams.MaxFrameRate = aws.String(v.(string))
+ }
+
+ if v, ok := p["max_height"]; ok && v.(string) != "" {
+ etVideoParams.MaxHeight = aws.String(v.(string))
+ }
+
+ if v, ok := p["max_width"]; ok && v.(string) != "" {
+ etVideoParams.MaxWidth = aws.String(v.(string))
+ }
+
+ if v, ok := p["padding_policy"]; ok && v.(string) != "" {
+ etVideoParams.PaddingPolicy = aws.String(v.(string))
+ }
+
+ if v, ok := p["resolution"]; ok && v.(string) != "" {
+ etVideoParams.Resolution = aws.String(v.(string))
+ }
+
+ if v, ok := p["sizing_policy"]; ok && v.(string) != "" {
+ etVideoParams.SizingPolicy = aws.String(v.(string))
+ }
+
+ if v, ok := p["codec"]; ok && v.(string) != "" {
+ etVideoParams.Codec = aws.String(v.(string))
}
+
+ return etVideoParams
}
func expandETVideoWatermarks(d *schema.ResourceData) []*elastictranscoder.PresetWatermark {
@@ -452,17 +540,18 @@ func expandETVideoWatermarks(d *schema.ResourceData) []*elastictranscoder.Preset
var watermarks []*elastictranscoder.PresetWatermark
for _, w := range s.List() {
+ p := w.(map[string]interface{})
watermark := &elastictranscoder.PresetWatermark{
- HorizontalAlign: getStringPtr(w, "horizontal_align"),
- HorizontalOffset: getStringPtr(w, "horizontal_offset"),
- Id: getStringPtr(w, "id"),
- MaxHeight: getStringPtr(w, "max_height"),
- MaxWidth: getStringPtr(w, "max_width"),
- Opacity: getStringPtr(w, "opacity"),
- SizingPolicy: getStringPtr(w, "sizing_policy"),
- Target: getStringPtr(w, "target"),
- VerticalAlign: getStringPtr(w, "vertical_align"),
- VerticalOffset: getStringPtr(w, "vertical_offset"),
+ HorizontalAlign: aws.String(p["horizontal_align"].(string)),
+ HorizontalOffset: aws.String(p["horizontal_offset"].(string)),
+ Id: aws.String(p["id"].(string)),
+ MaxHeight: aws.String(p["max_height"].(string)),
+ MaxWidth: aws.String(p["max_width"].(string)),
+ Opacity: aws.String(p["opacity"].(string)),
+ SizingPolicy: aws.String(p["sizing_policy"].(string)),
+ Target: aws.String(p["target"].(string)),
+ VerticalAlign: aws.String(p["vertical_align"].(string)),
+ VerticalOffset: aws.String(p["vertical_offset"].(string)),
}
watermarks = append(watermarks, watermark)
}
@@ -471,14 +560,14 @@ func expandETVideoWatermarks(d *schema.ResourceData) []*elastictranscoder.Preset
}
func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
- resp, err := elastictranscoderconn.ReadPreset(&elastictranscoder.ReadPresetInput{
+ resp, err := conn.ReadPreset(&elastictranscoder.ReadPresetInput{
Id: aws.String(d.Id()),
})
if err != nil {
- if err, ok := err.(awserr.Error); ok && err.Code() == "ResourceNotFoundException" {
+ if isAWSErr(err, elastictranscoder.ErrCodeResourceNotFoundException, "") {
d.SetId("")
return nil
}
@@ -521,7 +610,7 @@ func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interfa
}
if preset.Video.CodecOptions != nil {
- d.Set("video_codec_options", flattenETVideoCodecOptions(preset.Video.CodecOptions))
+ d.Set("video_codec_options", aws.StringValueMap(preset.Video.CodecOptions))
}
if preset.Video.Watermarks != nil {
@@ -533,15 +622,19 @@ func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interfa
}
func flattenETAudioParameters(audio *elastictranscoder.AudioParameters) []map[string]interface{} {
- m := setMap(make(map[string]interface{}))
+ if audio == nil {
+ return nil
+ }
- m.SetString("audio_packing_mode", audio.AudioPackingMode)
- m.SetString("bit_rate", audio.BitRate)
- m.SetString("channels", audio.Channels)
- m.SetString("codec", audio.Codec)
- m.SetString("sample_rate", audio.SampleRate)
+ result := map[string]interface{}{
+ "audio_packing_mode": aws.StringValue(audio.AudioPackingMode),
+ "bit_rate": aws.StringValue(audio.BitRate),
+ "channels": aws.StringValue(audio.Channels),
+ "codec": aws.StringValue(audio.Codec),
+ "sample_rate": aws.StringValue(audio.SampleRate),
+ }
- return m.MapList()
+ return []map[string]interface{}{result}
}
func flattenETAudioCodecOptions(opts *elastictranscoder.AudioCodecOptions) []map[string]interface{} {
@@ -549,89 +642,87 @@ func flattenETAudioCodecOptions(opts *elastictranscoder.AudioCodecOptions) []map
return nil
}
- m := setMap(make(map[string]interface{}))
-
- m.SetString("bit_depth", opts.BitDepth)
- m.SetString("bit_order", opts.BitOrder)
- m.SetString("profile", opts.Profile)
- m.SetString("signed", opts.Signed)
+ result := map[string]interface{}{
+ "bit_depth": aws.StringValue(opts.BitDepth),
+ "bit_order": aws.StringValue(opts.BitOrder),
+ "profile": aws.StringValue(opts.Profile),
+ "signed": aws.StringValue(opts.Signed),
+ }
- return m.MapList()
+ return []map[string]interface{}{result}
}
func flattenETThumbnails(thumbs *elastictranscoder.Thumbnails) []map[string]interface{} {
- m := setMap(make(map[string]interface{}))
-
- m.SetString("aspect_ratio", thumbs.AspectRatio)
- m.SetString("format", thumbs.Format)
- m.SetString("interval", thumbs.Interval)
- m.SetString("max_height", thumbs.MaxHeight)
- m.SetString("max_width", thumbs.MaxWidth)
- m.SetString("padding_policy", thumbs.PaddingPolicy)
- m.SetString("resolution", thumbs.Resolution)
- m.SetString("sizing_policy", thumbs.SizingPolicy)
-
- return m.MapList()
-}
+ if thumbs == nil {
+ return nil
+ }
-func flattenETVideoParams(video *elastictranscoder.VideoParameters) []map[string]interface{} {
- m := setMap(make(map[string]interface{}))
-
- m.SetString("aspect_ratio", video.AspectRatio)
- m.SetString("bit_rate", video.BitRate)
- m.SetString("codec", video.Codec)
- m.SetString("display_aspect_ratio", video.DisplayAspectRatio)
- m.SetString("fixed_gop", video.FixedGOP)
- m.SetString("frame_rate", video.FrameRate)
- m.SetString("keyframes_max_dist", video.KeyframesMaxDist)
- m.SetString("max_frame_rate", video.MaxFrameRate)
- m.SetString("max_height", video.MaxHeight)
- m.SetString("max_width", video.MaxWidth)
- m.SetString("padding_policy", video.PaddingPolicy)
- m.SetString("resolution", video.Resolution)
- m.SetString("sizing_policy", video.SizingPolicy)
-
- return m.MapList()
+ result := map[string]interface{}{
+ "aspect_ratio": aws.StringValue(thumbs.AspectRatio),
+ "format": aws.StringValue(thumbs.Format),
+ "interval": aws.StringValue(thumbs.Interval),
+ "max_height": aws.StringValue(thumbs.MaxHeight),
+ "max_width": aws.StringValue(thumbs.MaxWidth),
+ "padding_policy": aws.StringValue(thumbs.PaddingPolicy),
+ "resolution": aws.StringValue(thumbs.Resolution),
+ "sizing_policy": aws.StringValue(thumbs.SizingPolicy),
+ }
+
+ return []map[string]interface{}{result}
}
-func flattenETVideoCodecOptions(opts map[string]*string) map[string]interface{} {
- codecOpts := setMap(make(map[string]interface{}))
+func flattenETVideoParams(video *elastictranscoder.VideoParameters) []map[string]interface{} {
+ if video == nil {
+ return nil
+ }
- for k, v := range opts {
- codecOpts.SetString(k, v)
+ result := map[string]interface{}{
+ "aspect_ratio": aws.StringValue(video.AspectRatio),
+ "bit_rate": aws.StringValue(video.BitRate),
+ "codec": aws.StringValue(video.Codec),
+ "display_aspect_ratio": aws.StringValue(video.DisplayAspectRatio),
+ "fixed_gop": aws.StringValue(video.FixedGOP),
+ "frame_rate": aws.StringValue(video.FrameRate),
+ "keyframes_max_dist": aws.StringValue(video.KeyframesMaxDist),
+ "max_frame_rate": aws.StringValue(video.MaxFrameRate),
+ "max_height": aws.StringValue(video.MaxHeight),
+ "max_width": aws.StringValue(video.MaxWidth),
+ "padding_policy": aws.StringValue(video.PaddingPolicy),
+ "resolution": aws.StringValue(video.Resolution),
+ "sizing_policy": aws.StringValue(video.SizingPolicy),
}
- return codecOpts.Map()
+ return []map[string]interface{}{result}
}
func flattenETWatermarks(watermarks []*elastictranscoder.PresetWatermark) []map[string]interface{} {
var watermarkSet []map[string]interface{}
for _, w := range watermarks {
- watermark := setMap(make(map[string]interface{}))
-
- watermark.SetString("horizontal_align", w.HorizontalAlign)
- watermark.SetString("horizontal_offset", w.HorizontalOffset)
- watermark.SetString("id", w.Id)
- watermark.SetString("max_height", w.MaxHeight)
- watermark.SetString("max_width", w.MaxWidth)
- watermark.SetString("opacity", w.Opacity)
- watermark.SetString("sizing_policy", w.SizingPolicy)
- watermark.SetString("target", w.Target)
- watermark.SetString("vertical_align", w.VerticalAlign)
- watermark.SetString("vertical_offset", w.VerticalOffset)
+ watermark := map[string]interface{}{
+ "horizontal_align": aws.StringValue(w.HorizontalAlign),
+ "horizontal_offset": aws.StringValue(w.HorizontalOffset),
+ "id": aws.StringValue(w.Id),
+ "max_height": aws.StringValue(w.MaxHeight),
+ "max_width": aws.StringValue(w.MaxWidth),
+ "opacity": aws.StringValue(w.Opacity),
+ "sizing_policy": aws.StringValue(w.SizingPolicy),
+ "target": aws.StringValue(w.Target),
+ "vertical_align": aws.StringValue(w.VerticalAlign),
+ "vertical_offset": aws.StringValue(w.VerticalOffset),
+ }
- watermarkSet = append(watermarkSet, watermark.Map())
+ watermarkSet = append(watermarkSet, watermark)
}
return watermarkSet
}
func resourceAwsElasticTranscoderPresetDelete(d *schema.ResourceData, meta interface{}) error {
- elastictranscoderconn := meta.(*AWSClient).elastictranscoderconn
+ conn := meta.(*AWSClient).elastictranscoderconn
log.Printf("[DEBUG] Elastic Transcoder Delete Preset: %s", d.Id())
- _, err := elastictranscoderconn.DeletePreset(&elastictranscoder.DeletePresetInput{
+ _, err := conn.DeletePreset(&elastictranscoder.DeletePresetInput{
Id: aws.String(d.Id()),
})
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_cluster.go
index 6cfd61fae80..957d3f674be 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_cluster.go
@@ -417,6 +417,8 @@ func resourceAwsElasticacheClusterCreate(d *schema.ResourceData, meta interface{
func resourceAwsElasticacheClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticacheconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &elasticache.DescribeCacheClustersInput{
CacheClusterId: aws.String(d.Id()),
ShowCacheNodeInfo: aws.Bool(true),
@@ -493,7 +495,7 @@ func resourceAwsElasticacheClusterRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Elasticache Cluster (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_parameter_group.go
index 5da7b75a078..eb288ef498f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticache_parameter_group.go
@@ -81,12 +81,6 @@ func resourceAwsElasticacheParameterGroupCreate(d *schema.ResourceData, meta int
return fmt.Errorf("Error creating Cache Parameter Group: %s", err)
}
- d.Partial(true)
- d.SetPartial("name")
- d.SetPartial("family")
- d.SetPartial("description")
- d.Partial(false)
-
d.SetId(*resp.CacheParameterGroup.CacheParameterGroupName)
log.Printf("[INFO] Cache Parameter Group ID: %s", d.Id())
@@ -133,8 +127,6 @@ func resourceAwsElasticacheParameterGroupRead(d *schema.ResourceData, meta inter
func resourceAwsElasticacheParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).elasticacheconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -306,12 +298,8 @@ func resourceAwsElasticacheParameterGroupUpdate(d *schema.ResourceData, meta int
return fmt.Errorf("Error modifying Cache Parameter Group: %s", err)
}
}
-
- d.SetPartial("parameter")
}
- d.Partial(false)
-
return resourceAwsElasticacheParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticsearch_domain.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticsearch_domain.go
index 169e6275dfd..d870352eeda 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticsearch_domain.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elasticsearch_domain.go
@@ -28,6 +28,10 @@ func resourceAwsElasticSearchDomain() *schema.Resource {
State: resourceAwsElasticSearchDomainImport,
},
+ Timeouts: &schema.ResourceTimeout{
+ Update: schema.DefaultTimeout(60 * time.Minute),
+ },
+
CustomizeDiff: customdiff.Sequence(
customdiff.ForceNewIf("elasticsearch_version", func(d *schema.ResourceDiff, meta interface{}) bool {
newVersion := d.Get("elasticsearch_version").(string)
@@ -58,7 +62,7 @@ func resourceAwsElasticSearchDomain() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
"advanced_options": {
@@ -579,6 +583,7 @@ func waitForElasticSearchDomainCreation(conn *elasticsearch.ElasticsearchService
func resourceAwsElasticSearchDomainRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).esconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
out, err := conn.DescribeElasticsearchDomain(&elasticsearch.DescribeElasticsearchDomainInput{
DomainName: aws.String(d.Get("domain_name").(string)),
@@ -687,7 +692,7 @@ func resourceAwsElasticSearchDomainRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for Elasticsearch Cluster (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -843,7 +848,7 @@ func resourceAwsElasticSearchDomainUpdate(d *schema.ResourceData, meta interface
return out, aws.StringValue(out.StepStatus), nil
},
- Timeout: 60 * time.Minute, // TODO: Make this configurable. Large ES domains may take a very long time to upgrade
+ Timeout: d.Timeout(schema.TimeoutUpdate),
MinTimeout: 10 * time.Second,
Delay: 30 * time.Second, // The upgrade status isn't instantly available for the current upgrade so will either be nil or reflect a previous upgrade
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elb.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elb.go
index 3b00f2c844e..1c0cf0649be 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elb.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elb.go
@@ -253,6 +253,7 @@ func resourceAwsElb() *schema.Resource {
func resourceAwsElbCreate(d *schema.ResourceData, meta interface{}) error {
elbconn := meta.(*AWSClient).elbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
// Expand the "listener" set to aws-sdk-go compat []*elb.Listener
listeners, err := expandListeners(d.Get("listener").(*schema.Set).List())
@@ -327,16 +328,7 @@ func resourceAwsElbCreate(d *schema.ResourceData, meta interface{}) error {
d.SetId(elbName)
log.Printf("[INFO] ELB ID: %s", d.Id())
- // Enable partial mode and record what we set
- d.Partial(true)
- d.SetPartial("name")
- d.SetPartial("internal")
- d.SetPartial("availability_zones")
- d.SetPartial("listener")
- d.SetPartial("security_groups")
- d.SetPartial("subnets")
-
- if err := d.Set("tags", keyvaluetags.ElbKeyValueTags(tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ElbKeyValueTags(tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -345,6 +337,8 @@ func resourceAwsElbCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
elbconn := meta.(*AWSClient).elbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
elbName := d.Id()
arn := arn.ARN{
@@ -375,11 +369,11 @@ func resourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Unable to find ELB: %#v", describeResp.LoadBalancerDescriptions)
}
- return flattenAwsELbResource(d, meta.(*AWSClient).ec2conn, elbconn, describeResp.LoadBalancerDescriptions[0])
+ return flattenAwsELbResource(d, meta.(*AWSClient).ec2conn, elbconn, describeResp.LoadBalancerDescriptions[0], ignoreTagsConfig)
}
// flattenAwsELbResource takes a *elbv2.LoadBalancer and populates all respective resource fields.
-func flattenAwsELbResource(d *schema.ResourceData, ec2conn *ec2.EC2, elbconn *elb.ELB, lb *elb.LoadBalancerDescription) error {
+func flattenAwsELbResource(d *schema.ResourceData, ec2conn *ec2.EC2, elbconn *elb.ELB, lb *elb.LoadBalancerDescription, ignoreTagsConfig *keyvaluetags.IgnoreConfig) error {
describeAttrsOpts := &elb.DescribeLoadBalancerAttributesInput{
LoadBalancerName: aws.String(d.Id()),
}
@@ -460,7 +454,7 @@ func flattenAwsELbResource(d *schema.ResourceData, ec2conn *ec2.EC2, elbconn *el
return fmt.Errorf("error listing tags for ELB (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -476,8 +470,6 @@ func flattenAwsELbResource(d *schema.ResourceData, ec2conn *ec2.EC2, elbconn *el
func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
elbconn := meta.(*AWSClient).elbconn
- d.Partial(true)
-
if d.HasChange("listener") {
o, n := d.GetChange("listener")
os := o.(*schema.Set)
@@ -541,8 +533,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Failure adding new or updated ELB listeners: %s", err)
}
}
-
- d.SetPartial("listener")
}
// If we currently have instances, or did have instances,
@@ -577,8 +567,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Failure deregistering instances from ELB: %s", err)
}
}
-
- d.SetPartial("instances")
}
if d.HasChange("cross_zone_load_balancing") || d.HasChange("idle_timeout") || d.HasChange("access_logs") {
@@ -615,10 +603,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Failure configuring ELB attributes: %s", err)
}
-
- d.SetPartial("cross_zone_load_balancing")
- d.SetPartial("idle_timeout")
- d.SetPartial("connection_draining_timeout")
}
// We have to do these changes separately from everything else since
@@ -643,8 +627,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Failure configuring ELB attributes: %s", err)
}
-
- d.SetPartial("connection_draining_timeout")
}
// Then we always set connection draining even if there is no change.
@@ -663,8 +645,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Failure configuring ELB attributes: %s", err)
}
-
- d.SetPartial("connection_draining")
}
if d.HasChange("health_check") {
@@ -685,7 +665,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Failure configuring health check for ELB: %s", err)
}
- d.SetPartial("health_check")
}
}
@@ -701,8 +680,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Failure applying security groups to ELB: %s", err)
}
-
- d.SetPartial("security_groups")
}
if d.HasChange("availability_zones") {
@@ -738,8 +715,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Failure disabling ELB availability zones: %s", err)
}
}
-
- d.SetPartial("availability_zones")
}
if d.HasChange("subnets") {
@@ -790,8 +765,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Failure adding ELB subnets: %s", err)
}
}
-
- d.SetPartial("subnets")
}
if d.HasChange("tags") {
@@ -802,13 +775,6 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
}
}
- //if err := setTagsELB(elbconn, d); err != nil {
- // return err
- //}
- //
- //d.SetPartial("tags")
- d.Partial(false)
-
return resourceAwsElbRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_cluster.go
index 3e4d689f79d..65b6c160c2f 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_cluster.go
@@ -111,7 +111,7 @@ func resourceAwsEMRCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
@@ -276,7 +276,7 @@ func resourceAwsEMRCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"bid_price": {
Type: schema.TypeString,
@@ -460,7 +460,7 @@ func resourceAwsEMRCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
jsonString, _ := structure.NormalizeJsonString(v)
return jsonString
@@ -492,7 +492,7 @@ func resourceAwsEMRCluster() *schema.Resource {
Set: resourceAwsEMRClusterInstanceGroupHash,
},
"bootstrap_action": {
- Type: schema.TypeSet,
+ Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Resource{
@@ -585,7 +585,7 @@ func resourceAwsEMRCluster() *schema.Resource {
Optional: true,
ForceNew: true,
ConflictsWith: []string{"configurations"},
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
@@ -723,7 +723,7 @@ func resourceAwsEMRClusterCreate(d *schema.ResourceData, meta interface{}) error
// DEPRECATED: Remove in a future major version
if v, ok := d.GetOk("master_instance_type"); ok {
masterInstanceGroupConfig := &emr.InstanceGroupConfig{
- InstanceRole: aws.String("MASTER"),
+ InstanceRole: aws.String(emr.InstanceRoleTypeMaster),
InstanceType: aws.String(v.(string)),
InstanceCount: aws.Int64(1),
}
@@ -744,7 +744,7 @@ func resourceAwsEMRClusterCreate(d *schema.ResourceData, meta interface{}) error
} else if coreInstanceCount > 0 && coreInstanceType != "" {
coreInstanceGroupConfig := &emr.InstanceGroupConfig{
InstanceCount: aws.Int64(int64(d.Get("core_instance_count").(int))),
- InstanceRole: aws.String("CORE"),
+ InstanceRole: aws.String(emr.InstanceRoleTypeCore),
InstanceType: aws.String(d.Get("core_instance_type").(string)),
}
instanceConfig.InstanceGroups = append(instanceConfig.InstanceGroups, coreInstanceGroupConfig)
@@ -860,7 +860,7 @@ func resourceAwsEMRClusterCreate(d *schema.ResourceData, meta interface{}) error
}
if v, ok := d.GetOk("bootstrap_action"); ok {
- bootstrapActions := v.(*schema.Set).List()
+ bootstrapActions := v.([]interface{})
params.BootstrapActions = expandBootstrapActions(bootstrapActions)
}
if v, ok := d.GetOk("step"); ok {
@@ -961,6 +961,7 @@ func resourceAwsEMRClusterCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsEMRClusterRead(d *schema.ResourceData, meta interface{}) error {
emrconn := meta.(*AWSClient).emrconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &emr.DescribeClusterInput{
ClusterId: aws.String(d.Id()),
@@ -1037,7 +1038,7 @@ func resourceAwsEMRClusterRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error setting master_instance_group: %s", err)
}
- if err := d.Set("tags", keyvaluetags.EmrKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.EmrKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error settings tags: %s", err)
}
@@ -1125,10 +1126,7 @@ func resourceAwsEMRClusterRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsEMRClusterUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).emrconn
- d.Partial(true)
-
if d.HasChange("core_instance_count") {
- d.SetPartial("core_instance_count")
log.Printf("[DEBUG] Modify EMR cluster")
groups, err := fetchAllEMRInstanceGroups(conn, d.Id())
if err != nil {
@@ -1182,7 +1180,6 @@ func resourceAwsEMRClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("visible_to_all_users") {
- d.SetPartial("visible_to_all_users")
_, errModify := conn.SetVisibleToAllUsers(&emr.SetVisibleToAllUsersInput{
JobFlowIds: []*string{aws.String(d.Id())},
VisibleToAllUsers: aws.Bool(d.Get("visible_to_all_users").(bool)),
@@ -1194,7 +1191,6 @@ func resourceAwsEMRClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("termination_protection") {
- d.SetPartial("termination_protection")
_, errModify := conn.SetTerminationProtection(&emr.SetTerminationProtectionInput{
JobFlowIds: []*string{aws.String(d.Id())},
TerminationProtected: aws.Bool(d.Get("termination_protection").(bool)),
@@ -1354,7 +1350,6 @@ func resourceAwsEMRClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("step_concurrency_level") {
- d.SetPartial("step_concurrency_level")
_, errModify := conn.ModifyCluster(&emr.ModifyClusterInput{
ClusterId: aws.String(d.Id()),
StepConcurrencyLevel: aws.Int64(int64(d.Get("step_concurrency_level").(int))),
@@ -1365,8 +1360,6 @@ func resourceAwsEMRClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
}
- d.Partial(false)
-
return resourceAwsEMRClusterRead(d, meta)
}
@@ -1425,9 +1418,14 @@ func resourceAwsEMRClusterDelete(d *schema.ResourceData, meta interface{}) error
}
func countEMRRemainingInstances(resp *emr.ListInstancesOutput, emrClusterId string) int {
+ if resp == nil {
+ log.Printf("[ERROR] response is nil")
+ return 0
+ }
+
instanceCount := len(resp.Instances)
- if resp == nil || instanceCount == 0 {
+ if instanceCount == 0 {
log.Printf("[DEBUG] No instances found for EMR Cluster (%s)", emrClusterId)
return 0
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_instance_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_instance_group.go
index 172c3fc2b4c..2e9a4c57dbd 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_instance_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_instance_group.go
@@ -44,7 +44,7 @@ func resourceAwsEMRInstanceGroup() *schema.Resource {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"bid_price": {
Type: schema.TypeString,
@@ -60,7 +60,7 @@ func resourceAwsEMRInstanceGroup() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: false,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_security_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_security_configuration.go
index a30d6f0247d..1783adbbadf 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_security_configuration.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_emr_security_configuration.go
@@ -41,7 +41,7 @@ func resourceAwsEMRSecurityConfiguration() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"creation_date": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_flow_log.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_flow_log.go
index 082e90db453..f3840964809 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_flow_log.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_flow_log.go
@@ -101,6 +101,15 @@ func resourceAwsFlowLog() *schema.Resource {
ForceNew: true,
Computed: true,
},
+
+ "max_aggregation_interval": {
+ Type: schema.TypeInt,
+ Optional: true,
+ ForceNew: true,
+ Default: 600,
+ ValidateFunc: validation.IntInSlice([]int{60, 600}),
+ },
+
"tags": tagsSchema(),
},
}
@@ -150,10 +159,15 @@ func resourceAwsLogFlowCreate(d *schema.ResourceData, meta interface{}) error {
if v, ok := d.GetOk("log_group_name"); ok && v != "" {
opts.LogGroupName = aws.String(v.(string))
}
+
if v, ok := d.GetOk("log_format"); ok && v != "" {
opts.LogFormat = aws.String(v.(string))
}
+ if v, ok := d.GetOk("max_aggregation_interval"); ok {
+ opts.MaxAggregationInterval = aws.Int64(int64(v.(int)))
+ }
+
if v, ok := d.GetOk("tags"); ok && len(v.(map[string]interface{})) > 0 {
opts.TagSpecifications = ec2TagSpecificationsFromMap(d.Get("tags").(map[string]interface{}), ec2.ResourceTypeVpcFlowLog)
}
@@ -180,6 +194,7 @@ func resourceAwsLogFlowCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsLogFlowRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
opts := &ec2.DescribeFlowLogsInput{
FlowLogIds: []*string{aws.String(d.Id())},
@@ -205,6 +220,7 @@ func resourceAwsLogFlowRead(d *schema.ResourceData, meta interface{}) error {
d.Set("log_group_name", fl.LogGroupName)
d.Set("iam_role_arn", fl.DeliverLogsPermissionArn)
d.Set("log_format", fl.LogFormat)
+ d.Set("max_aggregation_interval", fl.MaxAggregationInterval)
var resourceKey string
if strings.HasPrefix(*fl.ResourceId, "vpc-") {
resourceKey = "vpc_id"
@@ -217,7 +233,7 @@ func resourceAwsLogFlowRead(d *schema.ResourceData, meta interface{}) error {
d.Set(resourceKey, fl.ResourceId)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(fl.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(fl.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_lustre_file_system.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_lustre_file_system.go
index 319ba39ef77..7ab2b555628 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_lustre_file_system.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_lustre_file_system.go
@@ -213,6 +213,7 @@ func resourceAwsFsxLustreFileSystemUpdate(d *schema.ResourceData, meta interface
func resourceAwsFsxLustreFileSystemRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).fsxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
filesystem, err := describeFsxFileSystem(conn, d.Id())
@@ -262,7 +263,7 @@ func resourceAwsFsxLustreFileSystemRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- if err := d.Set("tags", keyvaluetags.FsxKeyValueTags(filesystem.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.FsxKeyValueTags(filesystem.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_windows_file_system.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_windows_file_system.go
index c55bdbe0ddd..c7d3c8485c9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_windows_file_system.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_fsx_windows_file_system.go
@@ -287,6 +287,7 @@ func resourceAwsFsxWindowsFileSystemUpdate(d *schema.ResourceData, meta interfac
func resourceAwsFsxWindowsFileSystemRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).fsxconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
filesystem, err := describeFsxFileSystem(conn, d.Id())
@@ -338,7 +339,7 @@ func resourceAwsFsxWindowsFileSystemRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error setting subnet_ids: %s", err)
}
- if err := d.Set("tags", keyvaluetags.FsxKeyValueTags(filesystem.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.FsxKeyValueTags(filesystem.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -410,7 +411,7 @@ func expandFsxSelfManagedActiveDirectoryConfigurationUpdate(l []interface{}) *fs
data := l[0].(map[string]interface{})
req := &fsx.SelfManagedActiveDirectoryConfigurationUpdates{
- DnsIps: expandStringList(data["dns_ips"].([]interface{})),
+ DnsIps: expandStringSet(data["dns_ips"].(*schema.Set)),
Password: aws.String(data["password"].(string)),
UserName: aws.String(data["username"].(string)),
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_alias.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_alias.go
index 7ce738eccc2..dad62576d20 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_alias.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_alias.go
@@ -92,6 +92,7 @@ func resourceAwsGameliftAliasCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsGameliftAliasRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).gameliftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Describing Gamelift Alias: %s", d.Id())
out, err := conn.DescribeAlias(&gamelift.DescribeAliasInput{
@@ -118,7 +119,7 @@ func resourceAwsGameliftAliasRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for Game Lift Alias (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_build.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_build.go
index 2a681e278b9..597f41252c9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_build.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_build.go
@@ -135,6 +135,7 @@ func resourceAwsGameliftBuildCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsGameliftBuildRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).gameliftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading Gamelift Build: %s", d.Id())
out, err := conn.DescribeBuild(&gamelift.DescribeBuildInput{
@@ -162,7 +163,7 @@ func resourceAwsGameliftBuildRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for Game Lift Build (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_fleet.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_fleet.go
index 65e8543e37f..15d55f6dbd5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_fleet.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_fleet.go
@@ -298,6 +298,7 @@ func resourceAwsGameliftFleetCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsGameliftFleetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).gameliftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Describing Gamelift Fleet: %s", d.Id())
out, err := conn.DescribeFleetAttributes(&gamelift.DescribeFleetAttributesInput{
@@ -340,7 +341,7 @@ func resourceAwsGameliftFleetRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for Game Lift Fleet (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_game_session_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_game_session_queue.go
index c761e5e4d35..ae617eedcbf 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_game_session_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_gamelift_game_session_queue.go
@@ -88,6 +88,8 @@ func resourceAwsGameliftGameSessionQueueCreate(d *schema.ResourceData, meta inte
func resourceAwsGameliftGameSessionQueueRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).gameliftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[INFO] Describing Gamelift Session Queues: %s", d.Id())
limit := int64(1)
out, err := conn.DescribeGameSessionQueues(&gamelift.DescribeGameSessionQueuesInput{
@@ -132,7 +134,7 @@ func resourceAwsGameliftGameSessionQueueRead(d *schema.ResourceData, meta interf
return fmt.Errorf("error listing tags for Game Lift Session Queue (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glacier_vault.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glacier_vault.go
index 840e22df449..d06eedc47bc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glacier_vault.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glacier_vault.go
@@ -58,7 +58,7 @@ func resourceAwsGlacierVault() *schema.Resource {
"access_policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
@@ -134,6 +134,7 @@ func resourceAwsGlacierVaultUpdate(d *schema.ResourceData, meta interface{}) err
func resourceAwsGlacierVaultRead(d *schema.ResourceData, meta interface{}) error {
glacierconn := meta.(*AWSClient).glacierconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &glacier.DescribeVaultInput{
VaultName: aws.String(d.Id()),
@@ -160,7 +161,7 @@ func resourceAwsGlacierVaultRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Glacier Vault (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_globalaccelerator_accelerator.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_globalaccelerator_accelerator.go
index 80907506078..e9bf76276f4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_globalaccelerator_accelerator.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_globalaccelerator_accelerator.go
@@ -147,6 +147,7 @@ func resourceAwsGlobalAcceleratorAcceleratorCreate(d *schema.ResourceData, meta
func resourceAwsGlobalAcceleratorAcceleratorRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).globalacceleratorconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
accelerator, err := resourceAwsGlobalAcceleratorAcceleratorRetrieve(conn, d.Id())
@@ -186,7 +187,7 @@ func resourceAwsGlobalAcceleratorAcceleratorRead(d *schema.ResourceData, meta in
return fmt.Errorf("error listing tags for Global Accelerator accelerator (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -262,8 +263,6 @@ func resourceAwsGlobalAcceleratorAcceleratorRetrieve(conn *globalaccelerator.Glo
func resourceAwsGlobalAcceleratorAcceleratorUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).globalacceleratorconn
- d.Partial(true)
-
if d.HasChange("name") || d.HasChange("ip_address_type") || d.HasChange("enabled") {
opts := &globalaccelerator.UpdateAcceleratorInput{
AcceleratorArn: aws.String(d.Id()),
@@ -282,10 +281,6 @@ func resourceAwsGlobalAcceleratorAcceleratorUpdate(d *schema.ResourceData, meta
return fmt.Errorf("Error updating Global Accelerator accelerator: %s", err)
}
- d.SetPartial("name")
- d.SetPartial("ip_address_type")
- d.SetPartial("enabled")
-
err = resourceAwsGlobalAcceleratorAcceleratorWaitForDeployedState(conn, d.Id())
if err != nil {
return err
@@ -298,10 +293,7 @@ func resourceAwsGlobalAcceleratorAcceleratorUpdate(d *schema.ResourceData, meta
if err != nil {
return err
}
-
}
-
- d.SetPartial("attributes")
}
if d.HasChange("tags") {
@@ -310,12 +302,8 @@ func resourceAwsGlobalAcceleratorAcceleratorUpdate(d *schema.ResourceData, meta
if err := keyvaluetags.GlobalacceleratorUpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating Global Accelerator accelerator (%s) tags: %s", d.Id(), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsGlobalAcceleratorAcceleratorRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_database.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_database.go
index 4ba7780a5c3..576af24b0ac 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_database.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_database.go
@@ -17,7 +17,6 @@ func resourceAwsGlueCatalogDatabase() *schema.Resource {
Read: resourceAwsGlueCatalogDatabaseRead,
Update: resourceAwsGlueCatalogDatabaseUpdate,
Delete: resourceAwsGlueCatalogDatabaseDelete,
- Exists: resourceAwsGlueCatalogDatabaseExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
@@ -175,28 +174,6 @@ func resourceAwsGlueCatalogDatabaseDelete(d *schema.ResourceData, meta interface
return nil
}
-func resourceAwsGlueCatalogDatabaseExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- glueconn := meta.(*AWSClient).glueconn
- catalogID, name, err := readAwsGlueCatalogID(d.Id())
- if err != nil {
- return false, err
- }
-
- input := &glue.GetDatabaseInput{
- CatalogId: aws.String(catalogID),
- Name: aws.String(name),
- }
-
- _, err = glueconn.GetDatabase(input)
- if err != nil {
- if isAWSErr(err, glue.ErrCodeEntityNotFoundException, "") {
- return false, nil
- }
- return false, err
- }
- return true, nil
-}
-
func readAwsGlueCatalogID(id string) (catalogID string, name string, err error) {
idParts := strings.Split(id, ":")
if len(idParts) != 2 {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_table.go
index 29e4841e2a6..5542adb7c6d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_catalog_table.go
@@ -388,7 +388,7 @@ func expandGlueTableInput(d *schema.ResourceData) *glue.TableInput {
}
func expandGlueStorageDescriptor(l []interface{}) *glue.StorageDescriptor {
- if len(l) == 0 {
+ if len(l) == 0 || l[0] == nil {
return nil
}
@@ -479,7 +479,7 @@ func expandGlueColumns(columns []interface{}) []*glue.Column {
}
func expandGlueSerDeInfo(l []interface{}) *glue.SerDeInfo {
- if len(l) == 0 {
+ if len(l) == 0 || l[0] == nil {
return nil
}
@@ -526,7 +526,7 @@ func expandGlueSortColumns(columns []interface{}) []*glue.Order {
}
func expandGlueSkewedInfo(l []interface{}) *glue.SkewedInfo {
- if len(l) == 0 {
+ if len(l) == 0 || l[0] == nil {
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_connection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_connection.go
index a6c378149b1..6fc70758f76 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_connection.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_connection.go
@@ -40,6 +40,7 @@ func resourceAwsGlueConnection() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{
glue.ConnectionTypeJdbc,
glue.ConnectionTypeSftp,
+ glue.ConnectionTypeMongodb,
}, false),
},
"description": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_crawler.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_crawler.go
index 8d7e16adc25..91cc18f06f3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_crawler.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_crawler.go
@@ -22,7 +22,6 @@ func resourceAwsGlueCrawler() *schema.Resource {
Read: resourceAwsGlueCrawlerRead,
Update: resourceAwsGlueCrawlerUpdate,
Delete: resourceAwsGlueCrawlerDelete,
- Exists: resourceAwsGlueCrawlerExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
@@ -186,7 +185,7 @@ func resourceAwsGlueCrawler() *schema.Resource {
json, _ := structure.NormalizeJsonString(v)
return json
},
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"security_configuration": {
Type: schema.TypeString,
@@ -508,6 +507,7 @@ func resourceAwsGlueCrawlerUpdate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsGlueCrawlerRead(d *schema.ResourceData, meta interface{}) error {
glueConn := meta.(*AWSClient).glueconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &glue.GetCrawlerInput{
Name: aws.String(d.Id()),
@@ -588,7 +588,7 @@ func resourceAwsGlueCrawlerRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Glue Crawler (%s): %s", crawlerARN, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -662,20 +662,3 @@ func resourceAwsGlueCrawlerDelete(d *schema.ResourceData, meta interface{}) erro
}
return nil
}
-
-func resourceAwsGlueCrawlerExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- glueConn := meta.(*AWSClient).glueconn
-
- input := &glue.GetCrawlerInput{
- Name: aws.String(d.Id()),
- }
-
- _, err := glueConn.GetCrawler(input)
- if err != nil {
- if isAWSErr(err, glue.ErrCodeEntityNotFoundException, "") {
- return false, nil
- }
- return false, err
- }
- return true, nil
-}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_job.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_job.go
index afa6e15aca3..9e5579a7d17 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_job.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_job.go
@@ -240,6 +240,7 @@ func resourceAwsGlueJobCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsGlueJobRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).glueconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &glue.GetJobInput{
JobName: aws.String(d.Id()),
@@ -300,7 +301,7 @@ func resourceAwsGlueJobRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for Glue Job (%s): %s", jobARN, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_security_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_security_configuration.go
index cb706cca063..495c8905f82 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_security_configuration.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_security_configuration.go
@@ -273,7 +273,9 @@ func expandGlueS3Encryption(m map[string]interface{}) *glue.S3Encryption {
}
if v, ok := m["kms_key_arn"]; ok {
- s3Encryption.KmsKeyArn = aws.String(v.(string))
+ if v.(string) != "" {
+ s3Encryption.KmsKeyArn = aws.String(v.(string))
+ }
}
return s3Encryption
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_trigger.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_trigger.go
index 3206dbee26b..7ddb8be631c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_trigger.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_glue_trigger.go
@@ -102,9 +102,8 @@ func resourceAwsGlueTrigger() *schema.Resource {
}, false),
},
"state": {
- Type: schema.TypeString,
- Optional: true,
- ConflictsWith: []string{"predicate.0.conditions.0.crawl_state"},
+ Type: schema.TypeString,
+ Optional: true,
ValidateFunc: validation.StringInSlice([]string{
glue.JobRunStateFailed,
glue.JobRunStateStopped,
@@ -113,9 +112,8 @@ func resourceAwsGlueTrigger() *schema.Resource {
}, false),
},
"crawl_state": {
- Type: schema.TypeString,
- Optional: true,
- ConflictsWith: []string{"predicate.0.conditions.0.state"},
+ Type: schema.TypeString,
+ Optional: true,
ValidateFunc: validation.StringInSlice([]string{
glue.CrawlStateRunning,
glue.CrawlStateSucceeded,
@@ -229,6 +227,7 @@ func resourceAwsGlueTriggerCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsGlueTriggerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).glueconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &glue.GetTriggerInput{
Name: aws.String(d.Id()),
@@ -290,7 +289,7 @@ func resourceAwsGlueTriggerRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Glue Trigger (%s): %s", triggerARN, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_detector.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_detector.go
index 2d7f87d109c..e93be68a335 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_detector.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_detector.go
@@ -6,7 +6,9 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/guardduty"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter"
)
func resourceAwsGuardDutyDetector() *schema.Resource {
@@ -106,14 +108,32 @@ func resourceAwsGuardDutyDetectorUpdate(d *schema.ResourceData, meta interface{}
func resourceAwsGuardDutyDetectorDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).guarddutyconn
- input := guardduty.DeleteDetectorInput{
+
+ input := &guardduty.DeleteDetectorInput{
DetectorId: aws.String(d.Id()),
}
- log.Printf("[DEBUG] Delete GuardDuty Detector: %s", input)
- _, err := conn.DeleteDetector(&input)
+ err := resource.Retry(waiter.MembershipPropagationTimeout, func() *resource.RetryError {
+ _, err := conn.DeleteDetector(input)
+
+ if isAWSErr(err, guardduty.ErrCodeBadRequestException, "cannot delete detector while it has invited or associated members") {
+ return resource.RetryableError(err)
+ }
+
+ if err != nil {
+ return resource.NonRetryableError(err)
+ }
+
+ return nil
+ })
+
+ if isResourceTimeoutError(err) {
+ _, err = conn.DeleteDetector(input)
+ }
+
if err != nil {
- return fmt.Errorf("Deleting GuardDuty Detector '%s' failed: %s", d.Id(), err.Error())
+ return fmt.Errorf("error deleting GuardDuty Detector (%s): %w", d.Id(), err)
}
+
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_admin_account.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_admin_account.go
new file mode 100644
index 00000000000..cb2f308a703
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_admin_account.go
@@ -0,0 +1,122 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/guardduty"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter"
+)
+
+func resourceAwsGuardDutyOrganizationAdminAccount() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsGuardDutyOrganizationAdminAccountCreate,
+ Read: resourceAwsGuardDutyOrganizationAdminAccountRead,
+ Delete: resourceAwsGuardDutyOrganizationAdminAccountDelete,
+
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "admin_account_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validateAwsAccountId,
+ },
+ },
+ }
+}
+
+func resourceAwsGuardDutyOrganizationAdminAccountCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).guarddutyconn
+
+ adminAccountID := d.Get("admin_account_id").(string)
+
+ input := &guardduty.EnableOrganizationAdminAccountInput{
+ AdminAccountId: aws.String(adminAccountID),
+ }
+
+ _, err := conn.EnableOrganizationAdminAccount(input)
+
+ if err != nil {
+ return fmt.Errorf("error enabling GuardDuty Organization Admin Account (%s): %w", adminAccountID, err)
+ }
+
+ d.SetId(adminAccountID)
+
+ if _, err := waiter.AdminAccountEnabled(conn, d.Id()); err != nil {
+ return fmt.Errorf("error waiting for GuardDuty Organization Admin Account (%s) to enable: %w", d.Id(), err)
+ }
+
+ return resourceAwsGuardDutyOrganizationAdminAccountRead(d, meta)
+}
+
+func resourceAwsGuardDutyOrganizationAdminAccountRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).guarddutyconn
+
+ adminAccount, err := getGuardDutyOrganizationAdminAccount(conn, d.Id())
+
+ if err != nil {
+ return fmt.Errorf("error reading GuardDuty Organization Admin Account (%s): %w", d.Id(), err)
+ }
+
+ if adminAccount == nil {
+ log.Printf("[WARN] GuardDuty Organization Admin Account (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ d.Set("admin_account_id", adminAccount.AdminAccountId)
+
+ return nil
+}
+
+func resourceAwsGuardDutyOrganizationAdminAccountDelete(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).guarddutyconn
+
+ input := &guardduty.DisableOrganizationAdminAccountInput{
+ AdminAccountId: aws.String(d.Id()),
+ }
+
+ _, err := conn.DisableOrganizationAdminAccount(input)
+
+ if err != nil {
+ return fmt.Errorf("error disabling GuardDuty Organization Admin Account (%s): %w", d.Id(), err)
+ }
+
+ if _, err := waiter.AdminAccountNotFound(conn, d.Id()); err != nil {
+ return fmt.Errorf("error waiting for GuardDuty Organization Admin Account (%s) to disable: %w", d.Id(), err)
+ }
+
+ return nil
+}
+
+func getGuardDutyOrganizationAdminAccount(conn *guardduty.GuardDuty, adminAccountID string) (*guardduty.AdminAccount, error) {
+ input := &guardduty.ListOrganizationAdminAccountsInput{}
+ var result *guardduty.AdminAccount
+
+ err := conn.ListOrganizationAdminAccountsPages(input, func(page *guardduty.ListOrganizationAdminAccountsOutput, lastPage bool) bool {
+ if page == nil {
+ return !lastPage
+ }
+
+ for _, adminAccount := range page.AdminAccounts {
+ if adminAccount == nil {
+ continue
+ }
+
+ if aws.StringValue(adminAccount.AdminAccountId) == adminAccountID {
+ result = adminAccount
+ return false
+ }
+ }
+
+ return !lastPage
+ })
+
+ return result, err
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_configuration.go
new file mode 100644
index 00000000000..33c9fea2818
--- /dev/null
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_guardduty_organization_configuration.go
@@ -0,0 +1,87 @@
+package aws
+
+import (
+ "fmt"
+ "log"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/guardduty"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+)
+
+func resourceAwsGuardDutyOrganizationConfiguration() *schema.Resource {
+ return &schema.Resource{
+ Create: resourceAwsGuardDutyOrganizationConfigurationUpdate,
+ Read: resourceAwsGuardDutyOrganizationConfigurationRead,
+ Update: resourceAwsGuardDutyOrganizationConfigurationUpdate,
+ Delete: schema.Noop,
+
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
+ Schema: map[string]*schema.Schema{
+ "auto_enable": {
+ Type: schema.TypeBool,
+ Required: true,
+ },
+ "detector_id": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ ValidateFunc: validation.NoZeroValues,
+ },
+ },
+ }
+}
+
+func resourceAwsGuardDutyOrganizationConfigurationUpdate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).guarddutyconn
+
+ detectorID := d.Get("detector_id").(string)
+
+ input := &guardduty.UpdateOrganizationConfigurationInput{
+ AutoEnable: aws.Bool(d.Get("auto_enable").(bool)),
+ DetectorId: aws.String(detectorID),
+ }
+
+ _, err := conn.UpdateOrganizationConfiguration(input)
+
+ if err != nil {
+ return fmt.Errorf("error updating GuardDuty Organization Configuration (%s): %w", detectorID, err)
+ }
+
+ d.SetId(detectorID)
+
+ return resourceAwsGuardDutyOrganizationConfigurationRead(d, meta)
+}
+
+func resourceAwsGuardDutyOrganizationConfigurationRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).guarddutyconn
+
+ input := &guardduty.DescribeOrganizationConfigurationInput{
+ DetectorId: aws.String(d.Id()),
+ }
+
+ output, err := conn.DescribeOrganizationConfiguration(input)
+
+ if isAWSErr(err, guardduty.ErrCodeBadRequestException, "The request is rejected because the input detectorId is not owned by the current account.") {
+ log.Printf("[WARN] GuardDuty Organization Configuration (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("error reading GuardDuty Organization Configuration (%s): %w", d.Id(), err)
+ }
+
+ if output == nil {
+ return fmt.Errorf("error reading GuardDuty Organization Configuration (%s): empty response", d.Id())
+ }
+
+ d.Set("detector_id", d.Id())
+ d.Set("auto_enable", output.AutoEnable)
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_instance_profile.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_instance_profile.go
index 1dbd2ebe371..af183db58f4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_instance_profile.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_instance_profile.go
@@ -197,8 +197,6 @@ func instanceProfileSetRoles(d *schema.ResourceData, iamconn *iam.IAM) error {
currentRoles := schema.CopySet(oldRoles)
- d.Partial(true)
-
for _, role := range oldRoles.Difference(newRoles).List() {
err := instanceProfileRemoveRole(iamconn, d.Id(), role.(string))
if err != nil {
@@ -206,7 +204,6 @@ func instanceProfileSetRoles(d *schema.ResourceData, iamconn *iam.IAM) error {
}
currentRoles.Remove(role)
d.Set("roles", currentRoles)
- d.SetPartial("roles")
}
for _, role := range newRoles.Difference(oldRoles).List() {
@@ -216,11 +213,8 @@ func instanceProfileSetRoles(d *schema.ResourceData, iamconn *iam.IAM) error {
}
currentRoles.Add(role)
d.Set("roles", currentRoles)
- d.SetPartial("roles")
}
- d.Partial(false)
-
return nil
}
@@ -246,8 +240,6 @@ func instanceProfileRemoveAllRoles(d *schema.ResourceData, iamconn *iam.IAM) err
func resourceAwsIamInstanceProfileUpdate(d *schema.ResourceData, meta interface{}) error {
iamconn := meta.(*AWSClient).iamconn
- d.Partial(true)
-
if d.HasChange("role") {
oldRole, newRole := d.GetChange("role")
@@ -264,16 +256,12 @@ func resourceAwsIamInstanceProfileUpdate(d *schema.ResourceData, meta interface{
return fmt.Errorf("Error adding role %s to IAM instance profile %s: %s", newRole.(string), d.Id(), err)
}
}
-
- d.SetPartial("role")
}
if d.HasChange("roles") {
return instanceProfileSetRoles(d, iamconn)
}
- d.Partial(false)
-
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_openid_connect_provider.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_openid_connect_provider.go
index 2f6f6523306..c146bf3ff16 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_openid_connect_provider.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_openid_connect_provider.go
@@ -2,9 +2,9 @@ package aws
import (
"fmt"
+ "log"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -16,7 +16,6 @@ func resourceAwsIamOpenIDConnectProvider() *schema.Resource {
Read: resourceAwsIamOpenIDConnectProviderRead,
Update: resourceAwsIamOpenIDConnectProviderUpdate,
Delete: resourceAwsIamOpenIDConnectProviderDelete,
- Exists: resourceAwsIamOpenIDConnectProviderExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
@@ -59,10 +58,10 @@ func resourceAwsIamOpenIDConnectProviderCreate(d *schema.ResourceData, meta inte
out, err := iamconn.CreateOpenIDConnectProvider(input)
if err != nil {
- return err
+ return fmt.Errorf("error creating IAM OIDC Provider: %w", err)
}
- d.SetId(*out.OpenIDConnectProviderArn)
+ d.SetId(aws.StringValue(out.OpenIDConnectProviderArn))
return resourceAwsIamOpenIDConnectProviderRead(d, meta)
}
@@ -74,8 +73,13 @@ func resourceAwsIamOpenIDConnectProviderRead(d *schema.ResourceData, meta interf
OpenIDConnectProviderArn: aws.String(d.Id()),
}
out, err := iamconn.GetOpenIDConnectProvider(input)
+ if isAWSErr(err, iam.ErrCodeNoSuchEntityException, "") {
+ log.Printf("[WARN] IAM OIDC Provider (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
if err != nil {
- return err
+ return fmt.Errorf("error reading IAM OIDC Provider (%s): %w", d.Id(), err)
}
d.Set("arn", d.Id())
@@ -97,7 +101,7 @@ func resourceAwsIamOpenIDConnectProviderUpdate(d *schema.ResourceData, meta inte
_, err := iamconn.UpdateOpenIDConnectProviderThumbprint(input)
if err != nil {
- return err
+ return fmt.Errorf("error updating IAM OIDC Provider (%s) thumbprint: %w", d.Id(), err)
}
}
@@ -111,30 +115,12 @@ func resourceAwsIamOpenIDConnectProviderDelete(d *schema.ResourceData, meta inte
OpenIDConnectProviderArn: aws.String(d.Id()),
}
_, err := iamconn.DeleteOpenIDConnectProvider(input)
-
- if err != nil {
- if err, ok := err.(awserr.Error); ok && err.Code() == "NoSuchEntity" {
- return nil
- }
- return fmt.Errorf("Error deleting platform application %s", err)
+ if isAWSErr(err, iam.ErrCodeNoSuchEntityException, "") {
+ return nil
}
-
- return nil
-}
-
-func resourceAwsIamOpenIDConnectProviderExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- iamconn := meta.(*AWSClient).iamconn
-
- input := &iam.GetOpenIDConnectProviderInput{
- OpenIDConnectProviderArn: aws.String(d.Id()),
- }
- _, err := iamconn.GetOpenIDConnectProvider(input)
if err != nil {
- if err, ok := err.(awserr.Error); ok && err.Code() == "NoSuchEntity" {
- return false, nil
- }
- return true, err
+ return fmt.Errorf("error deleting IAM OIDC Provider (%s): %w", d.Id(), err)
}
- return true, nil
+ return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_role.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_role.go
index 60f03f8dc02..38ea148435a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_role.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_role.go
@@ -101,7 +101,7 @@ func resourceAwsIamRole() *schema.Resource {
Type: schema.TypeString,
Required: true,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"force_detach_policies": {
@@ -190,6 +190,7 @@ func resourceAwsIamRoleCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsIamRoleRead(d *schema.ResourceData, meta interface{}) error {
iamconn := meta.(*AWSClient).iamconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &iam.GetRoleInput{
RoleName: aws.String(d.Id()),
@@ -226,7 +227,7 @@ func resourceAwsIamRoleRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("unique_id", role.RoleId)
- if err := d.Set("tags", keyvaluetags.IamKeyValueTags(role.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.IamKeyValueTags(role.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_user.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_user.go
index 79d0fede53b..1b2e099d54a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_user.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_iam_user.go
@@ -99,6 +99,7 @@ func resourceAwsIamUserCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsIamUserRead(d *schema.ResourceData, meta interface{}) error {
iamconn := meta.(*AWSClient).iamconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &iam.GetUserInput{
UserName: aws.String(d.Id()),
@@ -128,7 +129,7 @@ func resourceAwsIamUserRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("unique_id", output.User.UserId)
- if err := d.Set("tags", keyvaluetags.IamKeyValueTags(output.User.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.IamKeyValueTags(output.User.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -224,6 +225,10 @@ func resourceAwsIamUserDelete(d *schema.ResourceData, meta interface{}) error {
if err := deleteAwsIamUserLoginProfile(iamconn, d.Id()); err != nil {
return fmt.Errorf("error removing IAM User (%s) login profile: %s", d.Id(), err)
}
+
+ if err := deleteAwsIamUserSigningCertificates(iamconn, d.Id()); err != nil {
+ return fmt.Errorf("error removing IAM User (%s) signing certificate: %s", d.Id(), err)
+ }
}
deleteUserInput := &iam.DeleteUserInput{
@@ -436,3 +441,33 @@ func deleteAwsIamUserAccessKeys(svc *iam.IAM, username string) error {
return nil
}
+
+func deleteAwsIamUserSigningCertificates(svc *iam.IAM, userName string) error {
+ var certificateIDList []string
+
+ listInput := &iam.ListSigningCertificatesInput{
+ UserName: aws.String(userName),
+ }
+ err := svc.ListSigningCertificatesPages(listInput,
+ func(page *iam.ListSigningCertificatesOutput, lastPage bool) bool {
+ for _, c := range page.Certificates {
+ certificateIDList = append(certificateIDList, aws.StringValue(c.CertificateId))
+ }
+ return !lastPage
+ })
+ if err != nil {
+ return fmt.Errorf("Error removing signing certificates of user %s: %s", userName, err)
+ }
+
+ for _, c := range certificateIDList {
+ _, err := svc.DeleteSigningCertificate(&iam.DeleteSigningCertificateInput{
+ CertificateId: aws.String(c),
+ UserName: aws.String(userName),
+ })
+ if err != nil {
+ return fmt.Errorf("Error deleting signing certificate %s: %s", c, err)
+ }
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_assessment_template.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_assessment_template.go
index 9ee3f37bd4e..0acc5b589b9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_assessment_template.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_assessment_template.go
@@ -35,7 +35,6 @@ func resourceAWSInspectorAssessmentTemplate() *schema.Resource {
"arn": {
Type: schema.TypeString,
Computed: true,
- ForceNew: true,
},
"duration": {
Type: schema.TypeInt,
@@ -83,6 +82,7 @@ func resourceAwsInspectorAssessmentTemplateCreate(d *schema.ResourceData, meta i
func resourceAwsInspectorAssessmentTemplateRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).inspectorconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeAssessmentTemplates(&inspector.DescribeAssessmentTemplatesInput{
AssessmentTemplateArns: aws.StringSlice([]string{d.Id()}),
@@ -115,7 +115,7 @@ func resourceAwsInspectorAssessmentTemplateRead(d *schema.ResourceData, meta int
return fmt.Errorf("error listing tags for Inspector assessment template (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_resource_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_resource_group.go
index 37c6739fdab..47de0a45f2d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_resource_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_inspector_resource_group.go
@@ -76,6 +76,7 @@ func resourceAwsInspectorResourceGroupRead(d *schema.ResourceData, meta interfac
resourceGroup := resp.ResourceGroups[0]
d.Set("arn", resourceGroup.Arn)
+ //lintignore:AWSR002
if err := d.Set("tags", flattenInspectorResourceGroupTags(resourceGroup.Tags)); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_instance.go
index 529b6a37f82..3682993ac4d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_instance.go
@@ -185,6 +185,11 @@ func resourceAwsInstance() *schema.Resource {
Computed: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+
"network_interface_id": {
Type: schema.TypeString,
Computed: true,
@@ -443,7 +448,11 @@ func resourceAwsInstance() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: true,
- ForceNew: true,
+ },
+
+ "device_name": {
+ Type: schema.TypeString,
+ Computed: true,
},
"encrypted": {
@@ -464,7 +473,6 @@ func resourceAwsInstance() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Computed: true,
- ForceNew: true,
DiffSuppressFunc: iopsDiffSuppressFunc,
},
@@ -472,14 +480,12 @@ func resourceAwsInstance() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Computed: true,
- ForceNew: true,
},
"volume_type": {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ForceNew: true,
},
"volume_id": {
@@ -524,6 +530,35 @@ func resourceAwsInstance() *schema.Resource {
},
},
},
+
+ "metadata_options": {
+ Type: schema.TypeList,
+ Optional: true,
+ Computed: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "http_endpoint": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.StringInSlice([]string{ec2.InstanceMetadataEndpointStateEnabled, ec2.InstanceMetadataEndpointStateDisabled}, false),
+ },
+ "http_tokens": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.StringInSlice([]string{ec2.HttpTokensStateOptional, ec2.HttpTokensStateRequired}, false),
+ },
+ "http_put_response_hop_limit": {
+ Type: schema.TypeInt,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.IntBetween(1, 64),
+ },
+ },
+ },
+ },
},
}
}
@@ -572,6 +607,7 @@ func resourceAwsInstanceCreate(d *schema.ResourceData, meta interface{}) error {
CreditSpecification: instanceOpts.CreditSpecification,
CpuOptions: instanceOpts.CpuOptions,
HibernationOptions: instanceOpts.HibernationOptions,
+ MetadataOptions: instanceOpts.MetadataOptions,
TagSpecifications: tagSpecifications,
}
@@ -667,10 +703,9 @@ func resourceAwsInstanceCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
- resp, err := conn.DescribeInstances(&ec2.DescribeInstancesInput{
- InstanceIds: []*string{aws.String(d.Id())},
- })
+ instance, err := resourceAwsInstanceFindByID(conn, d.Id())
if err != nil {
// If the instance was not found, return nil so that we can show
// that the instance is gone.
@@ -684,13 +719,11 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
}
// If nothing was found, then return no state
- if len(resp.Reservations) == 0 {
+ if instance == nil {
d.SetId("")
return nil
}
- instance := resp.Reservations[0].Instances[0]
-
if instance.State != nil {
// If the instance is terminated, then it is gone
if *instance.State.Name == "terminated" {
@@ -723,6 +756,10 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("hibernation", instance.HibernationOptions.Configured)
}
+ if err := d.Set("metadata_options", flattenEc2InstanceMetadataOptions(instance.MetadataOptions)); err != nil {
+ return fmt.Errorf("error setting metadata_options: %s", err)
+ }
+
d.Set("ami", instance.ImageId)
d.Set("instance_type", instance.InstanceType)
d.Set("key_name", instance.KeyName)
@@ -730,6 +767,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("public_ip", instance.PublicIpAddress)
d.Set("private_dns", instance.PrivateDnsName)
d.Set("private_ip", instance.PrivateIpAddress)
+ d.Set("outpost_arn", instance.OutpostArn)
d.Set("iam_instance_profile", iamInstanceProfileArnToName(instance.IamInstanceProfile))
// Set configured Network Interface Device Index Slice
@@ -814,7 +852,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("monitoring", monitoringState == "enabled" || monitoringState == "pending")
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(instance.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(instance.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -915,16 +953,12 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
-
if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating tags: %s", err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("volume_tags") && !d.IsNewResource() {
@@ -940,8 +974,6 @@ func resourceAwsInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error updating volume_tags (%s): %s", volumeId, err)
}
}
-
- d.SetPartial("volume_tags")
}
if d.HasChange("iam_instance_profile") && !d.IsNewResource() {
@@ -1072,13 +1104,10 @@ func resourceAwsInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
// Thus, we need to actually modify the primary network interface for the new security groups, as the primary
// network interface is where we modify/create security group assignments during Create.
log.Printf("[INFO] Modifying `vpc_security_group_ids` on Instance %q", d.Id())
- instances, err := conn.DescribeInstances(&ec2.DescribeInstancesInput{
- InstanceIds: []*string{aws.String(d.Id())},
- })
+ instance, err := resourceAwsInstanceFindByID(conn, d.Id())
if err != nil {
- return err
+ return fmt.Errorf("error retrieving instance %q: %w", d.Id(), err)
}
- instance := instances.Reservations[0].Instances[0]
var primaryInterface ec2.InstanceNetworkInterface
for _, ni := range instance.NetworkInterfaces {
if *ni.Attachment.DeviceIndex == 0 {
@@ -1211,11 +1240,101 @@ func resourceAwsInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
}
}
+ if d.HasChange("metadata_options") && !d.IsNewResource() {
+ if v, ok := d.GetOk("metadata_options"); ok {
+ if mo, ok := v.([]interface{})[0].(map[string]interface{}); ok {
+ log.Printf("[DEBUG] Modifying metadata options for Instance (%s)", d.Id())
+ input := &ec2.ModifyInstanceMetadataOptionsInput{
+ InstanceId: aws.String(d.Id()),
+ HttpEndpoint: aws.String(mo["http_endpoint"].(string)),
+ }
+ if mo["http_endpoint"].(string) == ec2.InstanceMetadataEndpointStateEnabled {
+ // These parameters are not allowed unless HttpEndpoint is enabled
+ input.HttpTokens = aws.String(mo["http_tokens"].(string))
+ input.HttpPutResponseHopLimit = aws.Int64(int64(mo["http_put_response_hop_limit"].(int)))
+ }
+ _, err := conn.ModifyInstanceMetadataOptions(input)
+ if err != nil {
+ return fmt.Errorf("Error updating metadata options: %s", err)
+ }
+ }
+ }
+ }
+
+ if d.HasChange("root_block_device.0") && !d.IsNewResource() {
+ volumeID := d.Get("root_block_device.0.volume_id").(string)
+
+ input := ec2.ModifyVolumeInput{
+ VolumeId: aws.String(volumeID),
+ }
+ modifyVolume := false
+
+ if d.HasChange("root_block_device.0.volume_size") {
+ if v, ok := d.Get("root_block_device.0.volume_size").(int); ok && v != 0 {
+ modifyVolume = true
+ input.Size = aws.Int64(int64(v))
+ }
+ }
+ if d.HasChange("root_block_device.0.volume_type") {
+ if v, ok := d.Get("root_block_device.0.volume_type").(string); ok && v != "" {
+ modifyVolume = true
+ input.VolumeType = aws.String(v)
+ }
+ }
+ if d.HasChange("root_block_device.0.iops") {
+ if v, ok := d.Get("root_block_device.0.iops").(int); ok && v != 0 {
+ modifyVolume = true
+ input.Iops = aws.Int64(int64(v))
+ }
+ }
+ if modifyVolume {
+ _, err := conn.ModifyVolume(&input)
+ if err != nil {
+ return fmt.Errorf("error modifying EC2 Volume %q: %w", volumeID, err)
+ }
+
+ // The volume is useable once the state is "optimizing", but will not be at full performance.
+ // Optimization can take hours. e.g. a full 1 TiB drive takes approximately 6 hours to optimize,
+ // according to https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{"modifying"},
+ Target: []string{"completed", "optimizing"},
+ Refresh: VolumeStateRefreshFunc(conn, volumeID, "failed"),
+ Timeout: d.Timeout(schema.TimeoutUpdate),
+ Delay: 30 * time.Second,
+ MinTimeout: 30 * time.Second,
+ }
+
+ _, err = stateConf.WaitForState()
+ if err != nil {
+ return fmt.Errorf("error waiting for EC2 volume (%s) to be modified: %w", volumeID, err)
+ }
+ }
+
+ if d.HasChange("root_block_device.0.delete_on_termination") {
+ deviceName := d.Get("root_block_device.0.device_name").(string)
+ if v, ok := d.Get("root_block_device.0.delete_on_termination").(bool); ok {
+ _, err := conn.ModifyInstanceAttribute(&ec2.ModifyInstanceAttributeInput{
+ InstanceId: aws.String(d.Id()),
+ BlockDeviceMappings: []*ec2.InstanceBlockDeviceMappingSpecification{
+ {
+ DeviceName: aws.String(deviceName),
+ Ebs: &ec2.EbsInstanceBlockDeviceSpecification{
+ DeleteOnTermination: aws.Bool(v),
+ },
+ },
+ },
+ })
+ if err != nil {
+ return fmt.Errorf("error modifying delete on termination attribute for EC2 instance %q block device %q: %w", d.Id(), deviceName, err)
+ }
+ }
+ }
+ }
+
// TODO(mitchellh): wait for the attributes we modified to
// persist the change...
- d.Partial(false)
-
return resourceAwsInstanceRead(d, meta)
}
@@ -1235,35 +1354,57 @@ func resourceAwsInstanceDelete(d *schema.ResourceData, meta interface{}) error {
// an EC2 instance.
func InstanceStateRefreshFunc(conn *ec2.EC2, instanceID string, failStates []string) resource.StateRefreshFunc {
return func() (interface{}, string, error) {
- resp, err := conn.DescribeInstances(&ec2.DescribeInstancesInput{
- InstanceIds: []*string{aws.String(instanceID)},
- })
+ instance, err := resourceAwsInstanceFindByID(conn, instanceID)
if err != nil {
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidInstanceID.NotFound" {
- // Set this to nil as if we didn't find anything.
- resp = nil
- } else {
+ if !isAWSErr(err, "InvalidInstanceID.NotFound", "") {
log.Printf("Error on InstanceStateRefresh: %s", err)
return nil, "", err
}
}
- if resp == nil || len(resp.Reservations) == 0 || len(resp.Reservations[0].Instances) == 0 {
+ if instance == nil || instance.State == nil {
// Sometimes AWS just has consistency issues and doesn't see
// our instance yet. Return an empty state.
return nil, "", nil
}
- i := resp.Reservations[0].Instances[0]
- state := *i.State.Name
+ state := aws.StringValue(instance.State.Name)
for _, failState := range failStates {
if state == failState {
- return i, state, fmt.Errorf("Failed to reach target state. Reason: %s",
- stringifyStateReason(i.StateReason))
+ return instance, state, fmt.Errorf("Failed to reach target state. Reason: %s",
+ stringifyStateReason(instance.StateReason))
}
}
+ return instance, state, nil
+ }
+}
+
+// VolumeStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch
+// an EC2 root device volume.
+func VolumeStateRefreshFunc(conn *ec2.EC2, volumeID, failState string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ resp, err := conn.DescribeVolumesModifications(&ec2.DescribeVolumesModificationsInput{
+ VolumeIds: []*string{aws.String(volumeID)},
+ })
+ if err != nil {
+ if isAWSErr(err, "InvalidVolumeID.NotFound", "does not exist") {
+ return nil, "", nil
+ }
+ log.Printf("Error on VolumeStateRefresh: %s", err)
+ return nil, "", err
+ }
+ if resp == nil || len(resp.VolumesModifications) == 0 || resp.VolumesModifications[0] == nil {
+ return nil, "", nil
+ }
+
+ i := resp.VolumesModifications[0]
+ state := aws.StringValue(i.ModificationState)
+ if state == failState {
+ return i, state, fmt.Errorf("Failed to reach target state. Reason: %s", aws.StringValue(i.StatusMessage))
+ }
+
return i, state, nil
}
}
@@ -1377,35 +1518,35 @@ func readBlockDevicesFromInstance(instance *ec2.Instance, conn *ec2.EC2) (map[st
instanceBd := instanceBlockDevices[*vol.VolumeId]
bd := make(map[string]interface{})
- bd["volume_id"] = *vol.VolumeId
+ bd["volume_id"] = aws.StringValue(vol.VolumeId)
if instanceBd.Ebs != nil && instanceBd.Ebs.DeleteOnTermination != nil {
- bd["delete_on_termination"] = *instanceBd.Ebs.DeleteOnTermination
+ bd["delete_on_termination"] = aws.BoolValue(instanceBd.Ebs.DeleteOnTermination)
}
if vol.Size != nil {
- bd["volume_size"] = *vol.Size
+ bd["volume_size"] = aws.Int64Value(vol.Size)
}
if vol.VolumeType != nil {
- bd["volume_type"] = *vol.VolumeType
+ bd["volume_type"] = aws.StringValue(vol.VolumeType)
}
if vol.Iops != nil {
- bd["iops"] = *vol.Iops
+ bd["iops"] = aws.Int64Value(vol.Iops)
}
if vol.Encrypted != nil {
- bd["encrypted"] = *vol.Encrypted
+ bd["encrypted"] = aws.BoolValue(vol.Encrypted)
}
if vol.KmsKeyId != nil {
- bd["kms_key_id"] = *vol.KmsKeyId
+ bd["kms_key_id"] = aws.StringValue(vol.KmsKeyId)
+ }
+ if instanceBd.DeviceName != nil {
+ bd["device_name"] = aws.StringValue(instanceBd.DeviceName)
}
if blockDeviceIsRoot(instanceBd, instance) {
blockDevices["root"] = bd
} else {
- if instanceBd.DeviceName != nil {
- bd["device_name"] = *instanceBd.DeviceName
- }
if vol.SnapshotId != nil {
- bd["snapshot_id"] = *vol.SnapshotId
+ bd["snapshot_id"] = aws.StringValue(vol.SnapshotId)
}
blockDevices["ebs"] = append(blockDevices["ebs"].([]map[string]interface{}), bd)
@@ -1544,8 +1685,7 @@ func buildNetworkInterfaceOpts(d *schema.ResourceData, groups []*string, nInterf
return networkInterfaces
}
-func readBlockDeviceMappingsFromConfig(
- d *schema.ResourceData, conn *ec2.EC2) ([]*ec2.BlockDeviceMapping, error) {
+func readBlockDeviceMappingsFromConfig(d *schema.ResourceData, conn *ec2.EC2) ([]*ec2.BlockDeviceMapping, error) {
blockDevices := make([]*ec2.BlockDeviceMapping, 0)
if v, ok := d.GetOk("ebs_block_device"); ok {
@@ -1616,9 +1756,6 @@ func readBlockDeviceMappingsFromConfig(
if v, ok := d.GetOk("root_block_device"); ok {
vL := v.([]interface{})
- if len(vL) > 1 {
- return nil, errors.New("Cannot specify more than one root_block_device.")
- }
for _, v := range vL {
bd := v.(map[string]interface{})
ebs := &ec2.EbsBlockDevice{
@@ -1815,6 +1952,7 @@ type awsInstanceOpts struct {
CreditSpecification *ec2.CreditSpecificationRequest
CpuOptions *ec2.CpuOptionsRequest
HibernationOptions *ec2.HibernationOptionsRequest
+ MetadataOptions *ec2.InstanceMetadataOptionsRequest
}
func buildAwsInstanceOpts(
@@ -1827,6 +1965,7 @@ func buildAwsInstanceOpts(
EBSOptimized: aws.Bool(d.Get("ebs_optimized").(bool)),
ImageID: aws.String(d.Get("ami").(string)),
InstanceType: aws.String(instanceType),
+ MetadataOptions: expandEc2InstanceMetadataOptions(d.Get("metadata_options").([]interface{})),
}
// Set default cpu_credits as Unlimited for T3 instance type
@@ -2101,3 +2240,79 @@ func getCreditSpecifications(conn *ec2.EC2, instanceId string) ([]map[string]int
return creditSpecifications, nil
}
+
+func expandEc2InstanceMetadataOptions(l []interface{}) *ec2.InstanceMetadataOptionsRequest {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ opts := &ec2.InstanceMetadataOptionsRequest{
+ HttpEndpoint: aws.String(m["http_endpoint"].(string)),
+ }
+
+ if m["http_endpoint"].(string) == ec2.InstanceMetadataEndpointStateEnabled {
+ // These parameters are not allowed unless HttpEndpoint is enabled
+
+ if v, ok := m["http_tokens"].(string); ok && v != "" {
+ opts.HttpTokens = aws.String(v)
+ }
+
+ if v, ok := m["http_put_response_hop_limit"].(int); ok && v != 0 {
+ opts.HttpPutResponseHopLimit = aws.Int64(int64(v))
+ }
+ }
+
+ return opts
+}
+
+func flattenEc2InstanceMetadataOptions(opts *ec2.InstanceMetadataOptionsResponse) []interface{} {
+ if opts == nil {
+ return nil
+ }
+
+ m := map[string]interface{}{
+ "http_endpoint": aws.StringValue(opts.HttpEndpoint),
+ "http_put_response_hop_limit": aws.Int64Value(opts.HttpPutResponseHopLimit),
+ "http_tokens": aws.StringValue(opts.HttpTokens),
+ }
+
+ return []interface{}{m}
+}
+
+// resourceAwsInstanceFindByID returns the EC2 instance by ID
+// * If the instance is found, returns the instance and nil
+// * If no instance is found, returns nil and nil
+// * If an error occurs, returns nil and the error
+func resourceAwsInstanceFindByID(conn *ec2.EC2, id string) (*ec2.Instance, error) {
+ instances, err := resourceAwsInstanceFind(conn, &ec2.DescribeInstancesInput{
+ InstanceIds: aws.StringSlice([]string{id}),
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ if len(instances) == 0 {
+ return nil, nil
+ }
+
+ return instances[0], nil
+}
+
+// resourceAwsInstanceFind returns EC2 instances matching the input parameters
+// * If instances are found, returns a slice of instances and nil
+// * If no instances are found, returns an empty slice and nil
+// * If an error occurs, returns nil and the error
+func resourceAwsInstanceFind(conn *ec2.EC2, params *ec2.DescribeInstancesInput) ([]*ec2.Instance, error) {
+ resp, err := conn.DescribeInstances(params)
+ if err != nil {
+ return nil, err
+ }
+
+ if len(resp.Reservations) == 0 {
+ return []*ec2.Instance{}, nil
+ }
+
+ return resp.Reservations[0].Instances, nil
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_internet_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_internet_gateway.go
index 5b08a669957..2d5ff0f2ebe 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_internet_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_internet_gateway.go
@@ -75,7 +75,7 @@ func resourceAwsInternetGatewayCreate(d *schema.ResourceData, meta interface{})
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 Internet Gateway (%s) tags: %s", d.Id(), err)
}
}
@@ -91,6 +91,7 @@ func resourceAwsInternetGatewayCreate(d *schema.ResourceData, meta interface{})
func resourceAwsInternetGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
igRaw, _, err := IGStateRefreshFunc(conn, d.Id())()
if err != nil {
@@ -110,7 +111,7 @@ func resourceAwsInternetGatewayRead(d *schema.ResourceData, meta interface{}) er
d.Set("vpc_id", ig.Attachments[0].VpcId)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ig.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ig.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_key_pair.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_key_pair.go
index c8e9f1fbfc6..8ff134a3e8c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_key_pair.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_key_pair.go
@@ -4,14 +4,12 @@ import (
"fmt"
"strings"
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/ec2"
)
func resourceAwsKeyPair() *schema.Resource {
@@ -87,6 +85,7 @@ func resourceAwsKeyPairCreate(d *schema.ResourceData, meta interface{}) error {
req := &ec2.ImportKeyPairInput{
KeyName: aws.String(keyName),
PublicKeyMaterial: []byte(publicKey),
+ TagSpecifications: ec2TagSpecificationsFromMap(d.Get("tags").(map[string]interface{}), ec2.ResourceTypeKeyPair),
}
resp, err := conn.ImportKeyPair(req)
if err != nil {
@@ -95,41 +94,19 @@ func resourceAwsKeyPairCreate(d *schema.ResourceData, meta interface{}) error {
d.SetId(*resp.KeyName)
- if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- readReq := &ec2.DescribeKeyPairsInput{
- KeyNames: []*string{aws.String(d.Id())},
- }
- readResp, err := conn.DescribeKeyPairs(readReq)
- if err != nil {
- awsErr, ok := err.(awserr.Error)
- if ok && awsErr.Code() == "InvalidKeyPair.NotFound" {
- d.SetId("")
- return nil
- }
- return fmt.Errorf("Error retrieving KeyPair: %s", err)
- }
-
- for _, keyPair := range readResp.KeyPairs {
- if *keyPair.KeyName == d.Id() {
- if err := keyvaluetags.Ec2UpdateTags(conn, aws.StringValue(keyPair.KeyPairId), nil, v); err != nil {
- return fmt.Errorf("error adding tags: %s", err)
- }
- }
- }
-
- }
return resourceAwsKeyPairRead(d, meta)
}
func resourceAwsKeyPairRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &ec2.DescribeKeyPairsInput{
KeyNames: []*string{aws.String(d.Id())},
}
resp, err := conn.DescribeKeyPairs(req)
if err != nil {
- awsErr, ok := err.(awserr.Error)
- if ok && awsErr.Code() == "InvalidKeyPair.NotFound" {
+ if isAWSErr(err, "InvalidKeyPair.NotFound", "") {
d.SetId("")
return nil
}
@@ -141,7 +118,7 @@ func resourceAwsKeyPairRead(d *schema.ResourceData, meta interface{}) error {
d.Set("key_name", keyPair.KeyName)
d.Set("fingerprint", keyPair.KeyFingerprint)
d.Set("key_pair_id", keyPair.KeyPairId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(keyPair.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(keyPair.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_analytics_application.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_analytics_application.go
index d55dc37259a..95d3c6f425d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_analytics_application.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_analytics_application.go
@@ -631,6 +631,8 @@ func resourceAwsKinesisAnalyticsApplicationCreate(d *schema.ResourceData, meta i
func resourceAwsKinesisAnalyticsApplicationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kinesisanalyticsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
name := d.Get("name").(string)
describeOpts := &kinesisanalytics.DescribeApplicationInput{
@@ -678,7 +680,7 @@ func resourceAwsKinesisAnalyticsApplicationRead(d *schema.ResourceData, meta int
return fmt.Errorf("error listing tags for Kinesis Analytics Application (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go
index 74d24732cb0..09b4b2e6fd4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_firehose_delivery_stream.go
@@ -1728,7 +1728,7 @@ func expandFirehoseSchemaConfiguration(l []interface{}) *firehose.SchemaConfigur
func extractProcessingConfiguration(s3 map[string]interface{}) *firehose.ProcessingConfiguration {
config := s3["processing_configuration"].([]interface{})
- if len(config) == 0 {
+ if len(config) == 0 || config[0] == nil {
// It is possible to just pass nil here, but this seems to be the
// canonical form that AWS uses, and is less likely to produce diffs.
return &firehose.ProcessingConfiguration{
@@ -2356,6 +2356,7 @@ func resourceAwsKinesisFirehoseDeliveryStreamUpdate(d *schema.ResourceData, meta
func resourceAwsKinesisFirehoseDeliveryStreamRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).firehoseconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
sn := d.Get("name").(string)
resp, err := conn.DescribeDeliveryStream(&firehose.DescribeDeliveryStreamInput{
@@ -2383,7 +2384,7 @@ func resourceAwsKinesisFirehoseDeliveryStreamRead(d *schema.ResourceData, meta i
return fmt.Errorf("error listing tags for Kinesis Firehose Delivery Stream (%s): %s", sn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_stream.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_stream.go
index 297af3238cc..ba5c287cdfb 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_stream.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_stream.go
@@ -180,6 +180,8 @@ func resourceAwsKinesisStreamUpdate(d *schema.ResourceData, meta interface{}) er
func resourceAwsKinesisStreamRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kinesisconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
sn := d.Get("name").(string)
state, err := readKinesisStreamState(conn, sn)
@@ -212,7 +214,7 @@ func resourceAwsKinesisStreamRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for Kinesis Stream (%s): %s", sn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_video_stream.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_video_stream.go
index 33d41bdf752..ebf9642a783 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_video_stream.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kinesis_video_stream.go
@@ -137,6 +137,7 @@ func resourceAwsKinesisVideoStreamCreate(d *schema.ResourceData, meta interface{
func resourceAwsKinesisVideoStreamRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kinesisvideoconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
descOpts := &kinesisvideo.DescribeStreamInput{
StreamARN: aws.String(d.Id()),
@@ -169,7 +170,7 @@ func resourceAwsKinesisVideoStreamRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Kinesis Video Stream (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_external_key.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_external_key.go
index 981bfffd4b1..fd571b491a4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_external_key.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_external_key.go
@@ -17,6 +17,8 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/structure"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+ iamwaiter "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter"
)
func resourceAwsKmsExternalKey() *schema.Resource {
@@ -76,7 +78,7 @@ func resourceAwsKmsExternalKey() *schema.Resource {
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
ValidateFunc: validation.All(
validation.StringLenBetween(0, 32768),
- validation.ValidateJsonString,
+ validation.StringIsJSON,
),
},
"tags": tagsSchema(),
@@ -110,7 +112,7 @@ func resourceAwsKmsExternalKeyCreate(d *schema.ResourceData, meta interface{}) e
}
var output *kms.CreateKeyOutput
- err := resource.Retry(1*time.Minute, func() *resource.RetryError {
+ err := resource.Retry(iamwaiter.PropagationTimeout, func() *resource.RetryError {
var err error
output, err = conn.CreateKey(input)
@@ -158,6 +160,7 @@ func resourceAwsKmsExternalKeyCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsKmsExternalKeyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &kms.DescribeKeyInput{
KeyId: aws.String(d.Id()),
@@ -241,7 +244,7 @@ func resourceAwsKmsExternalKeyRead(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error listing tags for KMS Key (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -332,11 +335,17 @@ func resourceAwsKmsExternalKeyDelete(d *schema.ResourceData, meta interface{}) e
}
if err != nil {
- return fmt.Errorf("error scheduling KMS External Key (%s) deletion: %s", d.Id(), err)
+ return fmt.Errorf("error scheduling deletion for KMS Key (%s): %w", d.Id(), err)
+ }
+
+ _, err = waiter.KeyStatePendingDeletion(conn, d.Id())
+
+ if isAWSErr(err, kms.ErrCodeNotFoundException, "") {
+ return nil
}
- if err := waitForKmsKeyScheduleDeletion(conn, d.Id()); err != nil {
- return fmt.Errorf("error waiting for KMS External Key (%s) deletion scheduling: %s", d.Id(), err)
+ if err != nil {
+ return fmt.Errorf("error waiting for KMS Key (%s) to schedule deletion: %w", d.Id(), err)
}
return nil
@@ -440,39 +449,3 @@ func importKmsExternalKeyMaterial(conn *kms.KMS, keyID, keyMaterialBase64, valid
return nil
}
-
-func waitForKmsKeyScheduleDeletion(conn *kms.KMS, keyID string) error {
- // Wait for propagation since KMS is eventually consistent
- input := &kms.DescribeKeyInput{
- KeyId: aws.String(keyID),
- }
-
- wait := resource.StateChangeConf{
- Pending: []string{kms.KeyStateDisabled, kms.KeyStateEnabled},
- Target: []string{kms.KeyStatePendingDeletion},
- Timeout: 20 * time.Minute,
- MinTimeout: 2 * time.Second,
- ContinuousTargetOccurence: 10,
- Refresh: func() (interface{}, string, error) {
- output, err := conn.DescribeKey(input)
-
- if isAWSErr(err, kms.ErrCodeNotFoundException, "") {
- return 42, kms.KeyStatePendingDeletion, nil
- }
-
- if err != nil {
- return nil, kms.KeyStateUnavailable, err
- }
-
- if output == nil || output.KeyMetadata == nil {
- return 42, kms.KeyStatePendingDeletion, nil
- }
-
- return output, aws.StringValue(output.KeyMetadata.KeyState), nil
- },
- }
-
- _, err := wait.WaitForState()
-
- return err
-}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_grant.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_grant.go
index f66ea30e65b..b1cda29b6d4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_grant.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_grant.go
@@ -23,7 +23,19 @@ func resourceAwsKmsGrant() *schema.Resource {
Create: resourceAwsKmsGrantCreate,
Read: resourceAwsKmsGrantRead,
Delete: resourceAwsKmsGrantDelete,
- Exists: resourceAwsKmsGrantExists,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ keyId, grantId, err := decodeKmsGrantId(d.Id())
+ if err != nil {
+ return nil, err
+ }
+ d.Set("key_id", keyId)
+ d.Set("grant_id", grantId)
+ d.SetId(fmt.Sprintf("%s:%s", keyId, grantId))
+
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"name": {
@@ -196,6 +208,11 @@ func resourceAwsKmsGrantRead(d *schema.ResourceData, meta interface{}) error {
grant, err := findKmsGrantByIdWithRetry(conn, keyId, grantId)
if err != nil {
+ if isResourceNotFoundError(err) {
+ log.Printf("[WARN] %s KMS grant id not found for key id %s, removing from state file", grantId, keyId)
+ d.SetId("")
+ return nil
+ }
return err
}
@@ -281,27 +298,6 @@ func resourceAwsKmsGrantDelete(d *schema.ResourceData, meta interface{}) error {
return err
}
-func resourceAwsKmsGrantExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).kmsconn
-
- keyId, grantId, err := decodeKmsGrantId(d.Id())
- if err != nil {
- return false, err
- }
-
- log.Printf("[DEBUG] Looking for Grant: %s", grantId)
- grant, err := findKmsGrantByIdWithRetry(conn, keyId, grantId)
-
- if err != nil {
- return true, err
- }
- if grant != nil {
- return true, err
- }
-
- return false, nil
-}
-
func getKmsGrantById(grants []*kms.GrantListEntry, grantIdentifier string) *kms.GrantListEntry {
for _, grant := range grants {
if *grant.GrantId == grantIdentifier {
@@ -533,16 +529,16 @@ func flattenKmsGrantConstraints(constraint *kms.GrantConstraints) *schema.Set {
func decodeKmsGrantId(id string) (string, string, error) {
if strings.HasPrefix(id, "arn:aws") {
- arn_parts := strings.Split(id, "/")
- if len(arn_parts) != 2 {
+ arnParts := strings.Split(id, "/")
+ if len(arnParts) != 2 {
return "", "", fmt.Errorf("unexpected format of ARN (%q), expected KeyID:GrantID", id)
}
- arn_prefix := arn_parts[0]
- parts := strings.Split(arn_parts[1], ":")
+ arnPrefix := arnParts[0]
+ parts := strings.Split(arnParts[1], ":")
if len(parts) != 2 {
return "", "", fmt.Errorf("unexpected format of ID (%q), expected KeyID:GrantID", id)
}
- return fmt.Sprintf("%s/%s", arn_prefix, parts[0]), parts[1], nil
+ return fmt.Sprintf("%s/%s", arnPrefix, parts[0]), parts[1], nil
} else {
parts := strings.Split(id, ":")
if len(parts) != 2 {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_key.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_key.go
index 13f1d664000..38d89ba8f05 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_key.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_kms_key.go
@@ -13,6 +13,8 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/structure"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
+ iamwaiter "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter"
)
func resourceAwsKmsKey() *schema.Resource {
@@ -21,7 +23,6 @@ func resourceAwsKmsKey() *schema.Resource {
Read: resourceAwsKmsKeyRead,
Update: resourceAwsKmsKeyUpdate,
Delete: resourceAwsKmsKeyDelete,
- Exists: resourceAwsKmsKeyExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
@@ -71,7 +72,7 @@ func resourceAwsKmsKey() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
"is_enabled": {
@@ -117,7 +118,7 @@ func resourceAwsKmsKeyCreate(d *schema.ResourceData, meta interface{}) error {
// The KMS service's awareness of principals is limited by "eventual consistency".
// They acknowledge this here:
// http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html
- err := resource.Retry(30*time.Second, func() *resource.RetryError {
+ err := resource.Retry(iamwaiter.PropagationTimeout, func() *resource.RetryError {
var err error
resp, err = conn.CreateKey(req)
if isAWSErr(err, kms.ErrCodeMalformedPolicyDocumentException, "") {
@@ -135,11 +136,24 @@ func resourceAwsKmsKeyCreate(d *schema.ResourceData, meta interface{}) error {
d.SetId(aws.StringValue(resp.KeyMetadata.KeyId))
d.Set("key_id", resp.KeyMetadata.KeyId)
- return resourceAwsKmsKeyUpdate(d, meta)
+ if enableKeyRotation := d.Get("enable_key_rotation").(bool); enableKeyRotation {
+ if err := updateKmsKeyRotationStatus(conn, d); err != nil {
+ return err
+ }
+ }
+
+ if enabled := d.Get("is_enabled").(bool); !enabled {
+ if err := updateKmsKeyStatus(conn, d.Id(), enabled); err != nil {
+ return err
+ }
+ }
+
+ return resourceAwsKmsKeyRead(d, meta)
}
func resourceAwsKmsKeyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kmsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &kms.DescribeKeyInput{
KeyId: aws.String(d.Id()),
@@ -202,12 +216,31 @@ func resourceAwsKmsKeyRead(d *schema.ResourceData, meta interface{}) error {
krs, _ := out.(*kms.GetKeyRotationStatusOutput)
d.Set("enable_key_rotation", krs.KeyRotationEnabled)
- tags, err := keyvaluetags.KmsListTags(conn, d.Id())
+ var tags keyvaluetags.KeyValueTags
+ err = resource.Retry(2*time.Minute, func() *resource.RetryError {
+ var err error
+ tags, err = keyvaluetags.KmsListTags(conn, d.Id())
+
+ if d.IsNewResource() && isAWSErr(err, kms.ErrCodeNotFoundException, "") {
+ return resource.RetryableError(err)
+ }
+
+ if err != nil {
+ return resource.NonRetryableError(err)
+ }
+
+ return nil
+ })
+
+ if isResourceTimeoutError(err) {
+ tags, err = keyvaluetags.KmsListTags(conn, d.Id())
+ }
+
if err != nil {
return fmt.Errorf("error listing tags for KMS Key (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -217,8 +250,7 @@ func resourceAwsKmsKeyRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsKmsKeyUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kmsconn
- // We expect new keys to be enabled already
- if d.HasChange("is_enabled") && d.Get("is_enabled").(bool) && !d.IsNewResource() {
+ if d.HasChange("is_enabled") && d.Get("is_enabled").(bool) {
// Enable before any attributes will be modified
if err := updateKmsKeyStatus(conn, d.Id(), d.Get("is_enabled").(bool)); err != nil {
return err
@@ -271,9 +303,8 @@ func resourceAwsKmsKeyDescriptionUpdate(conn *kms.KMS, d *schema.ResourceData) e
Description: aws.String(description),
KeyId: aws.String(keyId),
}
- _, err := retryOnAwsCode("NotFoundException", func() (interface{}, error) {
- return conn.UpdateKeyDescription(req)
- })
+ _, err := conn.UpdateKeyDescription(req)
+
return err
}
@@ -291,9 +322,8 @@ func resourceAwsKmsKeyPolicyUpdate(conn *kms.KMS, d *schema.ResourceData) error
Policy: aws.String(policy),
PolicyName: aws.String("default"),
}
- _, err = retryOnAwsCode("NotFoundException", func() (interface{}, error) {
- return conn.PutKeyPolicy(req)
- })
+ _, err = conn.PutKeyPolicy(req)
+
return err
}
@@ -433,30 +463,6 @@ func handleKeyRotation(conn *kms.KMS, shouldEnableRotation bool, keyId *string)
return err
}
-func resourceAwsKmsKeyExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).kmsconn
-
- req := &kms.DescribeKeyInput{
- KeyId: aws.String(d.Id()),
- }
- resp, err := conn.DescribeKey(req)
- if err != nil {
- if awsErr, ok := err.(awserr.Error); ok {
- if awsErr.Code() == "NotFoundException" {
- return false, nil
- }
- }
- return false, err
- }
- metadata := resp.KeyMetadata
-
- if *metadata.KeyState == "PendingDeletion" {
- return false, nil
- }
-
- return true, nil
-}
-
func resourceAwsKmsKeyDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kmsconn
keyId := d.Get("key_id").(string)
@@ -468,39 +474,24 @@ func resourceAwsKmsKeyDelete(d *schema.ResourceData, meta interface{}) error {
req.PendingWindowInDays = aws.Int64(int64(v.(int)))
}
_, err := conn.ScheduleKeyDeletion(req)
- if err != nil {
- return err
+
+ if isAWSErr(err, kms.ErrCodeNotFoundException, "") {
+ return nil
}
- // Wait for propagation since KMS is eventually consistent
- wait := resource.StateChangeConf{
- Pending: []string{kms.KeyStateEnabled, kms.KeyStateDisabled},
- Target: []string{kms.KeyStatePendingDeletion},
- Timeout: 20 * time.Minute,
- MinTimeout: 2 * time.Second,
- ContinuousTargetOccurence: 10,
- Refresh: func() (interface{}, string, error) {
- log.Printf("[DEBUG] Checking if KMS key %s state is PendingDeletion", keyId)
- resp, err := conn.DescribeKey(&kms.DescribeKeyInput{
- KeyId: aws.String(keyId),
- })
- if err != nil {
- return resp, "Failed", err
- }
+ if err != nil {
+ return fmt.Errorf("error scheduling deletion for KMS Key (%s): %w", d.Id(), err)
+ }
- metadata := *resp.KeyMetadata
- log.Printf("[DEBUG] KMS key %s state is %s, retrying", keyId, *metadata.KeyState)
+ _, err = waiter.KeyStatePendingDeletion(conn, d.Id())
- return resp, *metadata.KeyState, nil
- },
+ if isAWSErr(err, kms.ErrCodeNotFoundException, "") {
+ return nil
}
- _, err = wait.WaitForState()
if err != nil {
- return fmt.Errorf("Failed deactivating KMS key %s: %s", keyId, err)
+ return fmt.Errorf("error waiting for KMS Key (%s) to schedule deletion: %w", d.Id(), err)
}
- log.Printf("[DEBUG] KMS Key %s deactivated.", keyId)
-
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_alias.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_alias.go
index 40ce9ebd5ef..50ec672a2c6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_alias.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_alias.go
@@ -30,6 +30,13 @@ func resourceAwsLambdaAlias() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ // Using function name or ARN should not be shown as a diff.
+ // Try to convert the old and new values from ARN to function name
+ oldFunctionName, oldFunctionNameErr := getFunctionNameFromLambdaArn(old)
+ newFunctionName, newFunctionNameErr := getFunctionNameFromLambdaArn(new)
+ return (oldFunctionName == new && oldFunctionNameErr == nil) || (newFunctionName == old && newFunctionNameErr == nil)
+ },
},
"function_version": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_function.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_function.go
index 020f1d7440f..cca57540a8b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_function.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lambda_function.go
@@ -27,6 +27,7 @@ var validLambdaRuntimes = []string{
lambda.RuntimeDotnetcore10,
lambda.RuntimeDotnetcore20,
lambda.RuntimeDotnetcore21,
+ lambda.RuntimeDotnetcore31,
lambda.RuntimeGo1X,
lambda.RuntimeJava8,
lambda.RuntimeJava11,
@@ -491,6 +492,7 @@ func resourceAwsLambdaFunctionCreate(d *schema.ResourceData, meta interface{}) e
// GetFunction in the API / SDK
func resourceAwsLambdaFunctionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).lambdaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &lambda.GetFunctionInput{
FunctionName: aws.String(d.Get("function_name").(string)),
@@ -523,7 +525,7 @@ func resourceAwsLambdaFunctionRead(d *schema.ResourceData, meta interface{}) err
// Tagging operations are permitted on Lambda functions only.
// Tags on aliases and versions are not supported.
if !qualifierExistance {
- if err := d.Set("tags", keyvaluetags.LambdaKeyValueTags(getFunctionOutput.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.LambdaKeyValueTags(getFunctionOutput.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
}
@@ -671,8 +673,6 @@ func needsFunctionCodeUpdate(d resourceDiffer) bool {
func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).lambdaconn
- d.Partial(true)
-
arn := d.Get("arn").(string)
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -837,12 +837,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e
if err := waitForLambdaFunctionUpdate(conn, d.Id(), d.Timeout(schema.TimeoutUpdate)); err != nil {
return fmt.Errorf("error waiting for Lambda Function (%s) update: %s", d.Id(), err)
}
-
- d.SetPartial("description")
- d.SetPartial("handler")
- d.SetPartial("memory_size")
- d.SetPartial("role")
- d.SetPartial("timeout")
}
codeUpdate := needsFunctionCodeUpdate(d)
@@ -880,12 +874,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e
if err != nil {
return fmt.Errorf("Error modifying Lambda Function Code %s: %s", d.Id(), err)
}
-
- d.SetPartial("filename")
- d.SetPartial("source_code_hash")
- d.SetPartial("s3_bucket")
- d.SetPartial("s3_key")
- d.SetPartial("s3_object_version")
}
if d.HasChange("reserved_concurrent_executions") {
@@ -928,8 +916,6 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e
}
}
- d.Partial(false)
-
return resourceAwsLambdaFunctionRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go
index 457d2b4a396..244f660bd8e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go
@@ -355,6 +355,35 @@ func resourceAwsLaunchTemplate() *schema.Resource {
},
},
+ "metadata_options": {
+ Type: schema.TypeList,
+ Optional: true,
+ Computed: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "http_endpoint": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.StringInSlice([]string{ec2.LaunchTemplateInstanceMetadataEndpointStateEnabled, ec2.LaunchTemplateInstanceMetadataEndpointStateDisabled}, false),
+ },
+ "http_tokens": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.StringInSlice([]string{ec2.LaunchTemplateHttpTokensStateOptional, ec2.LaunchTemplateHttpTokensStateRequired}, false),
+ },
+ "http_put_response_hop_limit": {
+ Type: schema.TypeInt,
+ Optional: true,
+ Computed: true,
+ ValidateFunc: validation.IntBetween(1, 64),
+ },
+ },
+ },
+ },
+
"monitoring": {
Type: schema.TypeList,
Optional: true,
@@ -513,6 +542,19 @@ func resourceAwsLaunchTemplate() *schema.Resource {
},
"tags": tagsSchema(),
+ "hibernation_options": {
+ Type: schema.TypeList,
+ Optional: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "configured": {
+ Type: schema.TypeBool,
+ Required: true,
+ },
+ },
+ },
+ },
},
CustomizeDiff: customdiff.Sequence(
@@ -575,6 +617,7 @@ func resourceAwsLaunchTemplateCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading launch template %s", d.Id())
@@ -615,7 +658,7 @@ func resourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) err
d.Set("name", lt.LaunchTemplateName)
d.Set("latest_version", lt.LatestVersionNumber)
d.Set("default_version", lt.DefaultVersionNumber)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(lt.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(lt.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -697,6 +740,10 @@ func resourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error setting license_specification: %s", err)
}
+ if err := d.Set("metadata_options", flattenLaunchTemplateInstanceMetadataOptions(ltData.MetadataOptions)); err != nil {
+ return fmt.Errorf("error setting metadata_options: %s", err)
+ }
+
if err := d.Set("monitoring", getMonitoring(ltData.Monitoring)); err != nil {
return fmt.Errorf("error setting monitoring: %s", err)
}
@@ -709,6 +756,10 @@ func resourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error setting placement: %s", err)
}
+ if err := d.Set("hibernation_options", flattenLaunchTemplateHibernationOptions(ltData.HibernationOptions)); err != nil {
+ return fmt.Errorf("error setting hibernation_options: %s", err)
+ }
+
if err := d.Set("tag_specifications", getTagSpecifications(ltData.TagSpecifications)); err != nil {
return fmt.Errorf("error setting tag_specifications: %s", err)
}
@@ -939,6 +990,46 @@ func getLicenseSpecifications(licenseSpecifications []*ec2.LaunchTemplateLicense
return s
}
+func expandLaunchTemplateInstanceMetadataOptions(l []interface{}) *ec2.LaunchTemplateInstanceMetadataOptionsRequest {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ opts := &ec2.LaunchTemplateInstanceMetadataOptionsRequest{
+ HttpEndpoint: aws.String(m["http_endpoint"].(string)),
+ }
+
+ if m["http_endpoint"].(string) == ec2.LaunchTemplateInstanceMetadataEndpointStateEnabled {
+ // These parameters are not allowed unless HttpEndpoint is enabled
+
+ if v, ok := m["http_tokens"].(string); ok && v != "" {
+ opts.HttpTokens = aws.String(v)
+ }
+
+ if v, ok := m["http_put_response_hop_limit"].(int); ok && v != 0 {
+ opts.HttpPutResponseHopLimit = aws.Int64(int64(v))
+ }
+ }
+
+ return opts
+}
+
+func flattenLaunchTemplateInstanceMetadataOptions(opts *ec2.LaunchTemplateInstanceMetadataOptions) []interface{} {
+ if opts == nil {
+ return nil
+ }
+
+ m := map[string]interface{}{
+ "http_endpoint": aws.StringValue(opts.HttpEndpoint),
+ "http_put_response_hop_limit": aws.Int64Value(opts.HttpPutResponseHopLimit),
+ "http_tokens": aws.StringValue(opts.HttpTokens),
+ }
+
+ return []interface{}{m}
+}
+
func getMonitoring(m *ec2.LaunchTemplatesMonitoring) []interface{} {
s := []interface{}{}
if m != nil {
@@ -1025,6 +1116,31 @@ func getPlacement(p *ec2.LaunchTemplatePlacement) []interface{} {
return s
}
+func expandLaunchTemplateHibernationOptions(l []interface{}) *ec2.LaunchTemplateHibernationOptionsRequest {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ opts := &ec2.LaunchTemplateHibernationOptionsRequest{
+ Configured: aws.Bool(m["configured"].(bool)),
+ }
+
+ return opts
+}
+
+func flattenLaunchTemplateHibernationOptions(m *ec2.LaunchTemplateHibernationOptions) []interface{} {
+ s := []interface{}{}
+ if m != nil {
+ mo := map[string]interface{}{
+ "configured": aws.BoolValue(m.Configured),
+ }
+ s = append(s, mo)
+ }
+ return s
+}
+
func getTagSpecifications(t []*ec2.LaunchTemplateTagSpecification) []interface{} {
s := []interface{}{}
for _, v := range t {
@@ -1174,6 +1290,10 @@ func buildLaunchTemplateData(d *schema.ResourceData) (*ec2.RequestLaunchTemplate
opts.LicenseSpecifications = licenseSpecifications
}
+ if v, ok := d.GetOk("metadata_options"); ok {
+ opts.MetadataOptions = expandLaunchTemplateInstanceMetadataOptions(v.([]interface{}))
+ }
+
if v, ok := d.GetOk("monitoring"); ok {
m := v.([]interface{})
if len(m) > 0 && m[0] != nil {
@@ -1211,6 +1331,10 @@ func buildLaunchTemplateData(d *schema.ResourceData) (*ec2.RequestLaunchTemplate
}
}
+ if v, ok := d.GetOk("hibernation_options"); ok {
+ opts.HibernationOptions = expandLaunchTemplateHibernationOptions(v.([]interface{}))
+ }
+
if v, ok := d.GetOk("tag_specifications"); ok {
var tagSpecifications []*ec2.LaunchTemplateTagSpecificationRequest
t := v.([]interface{})
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb.go
index 3a7a3294322..1b1abe80443 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb.go
@@ -713,6 +713,7 @@ func lbSuffixFromARN(arn *string) string {
// flattenAwsLbResource takes a *elbv2.LoadBalancer and populates all respective resource fields.
func flattenAwsLbResource(d *schema.ResourceData, meta interface{}, lb *elbv2.LoadBalancer) error {
elbconn := meta.(*AWSClient).elbv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
d.Set("arn", lb.LoadBalancerArn)
d.Set("arn_suffix", lbSuffixFromARN(lb.LoadBalancerArn))
@@ -739,7 +740,7 @@ func flattenAwsLbResource(d *schema.ResourceData, meta interface{}, lb *elbv2.Lo
return fmt.Errorf("error listing tags for (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener.go
index 5f4b6f380ba..81976c0e739 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener.go
@@ -496,15 +496,15 @@ func resourceAwsLbListenerCreate(d *schema.ResourceData, meta interface{}) error
})
if isResourceTimeoutError(err) {
- _, err = elbconn.CreateListener(params)
+ resp, err = elbconn.CreateListener(params)
}
if err != nil {
- return fmt.Errorf("Error creating LB Listener: %s", err)
+ return fmt.Errorf("error creating ELBv2 Listener: %s", err)
}
- if len(resp.Listeners) == 0 {
- return errors.New("Error creating LB Listener: no listeners returned in response")
+ if resp == nil || len(resp.Listeners) == 0 {
+ return fmt.Errorf("error creating ELBv2 Listener: no listeners returned in response")
}
d.SetId(*resp.Listeners[0].ListenerArn)
@@ -533,7 +533,7 @@ func resourceAwsLbListenerRead(d *schema.ResourceData, meta interface{}) error {
})
if isResourceTimeoutError(err) {
- _, err = elbconn.DescribeListeners(request)
+ resp, err = elbconn.DescribeListeners(request)
}
if isAWSErr(err, elbv2.ErrCodeListenerNotFoundException, "") {
@@ -543,14 +543,25 @@ func resourceAwsLbListenerRead(d *schema.ResourceData, meta interface{}) error {
}
if err != nil {
- return fmt.Errorf("Error retrieving Listener: %s", err)
+ return fmt.Errorf("error describing ELBv2 Listener (%s): %s", d.Id(), err)
}
- if len(resp.Listeners) != 1 {
- return fmt.Errorf("Error retrieving Listener %q", d.Id())
+ if resp == nil {
+ return fmt.Errorf("error describing ELBv2 Listener (%s): empty response", d.Id())
}
- listener := resp.Listeners[0]
+ var listener *elbv2.Listener
+
+ for _, l := range resp.Listeners {
+ if aws.StringValue(l.ListenerArn) == d.Id() {
+ listener = l
+ break
+ }
+ }
+
+ if listener == nil {
+ return fmt.Errorf("error describing ELBv2 Listener (%s): not found in response", d.Id())
+ }
d.Set("arn", listener.ListenerArn)
d.Set("load_balancer_arn", listener.LoadBalancerArn)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener_rule.go
index 3b7c9c8adc1..ab72c11dc20 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_listener_rule.go
@@ -928,8 +928,6 @@ func resourceAwsLbListenerRuleRead(d *schema.ResourceData, meta interface{}) err
func resourceAwsLbListenerRuleUpdate(d *schema.ResourceData, meta interface{}) error {
elbconn := meta.(*AWSClient).elbv2conn
- d.Partial(true)
-
if d.HasChange("priority") {
params := &elbv2.SetRulePrioritiesInput{
RulePriorities: []*elbv2.RulePriorityPair{
@@ -944,8 +942,6 @@ func resourceAwsLbListenerRuleUpdate(d *schema.ResourceData, meta interface{}) e
if err != nil {
return err
}
-
- d.SetPartial("priority")
}
requestUpdate := false
@@ -1080,7 +1076,6 @@ func resourceAwsLbListenerRuleUpdate(d *schema.ResourceData, meta interface{}) e
params.Actions[i] = action
}
requestUpdate = true
- d.SetPartial("action")
}
if d.HasChange("condition") {
@@ -1090,7 +1085,6 @@ func resourceAwsLbListenerRuleUpdate(d *schema.ResourceData, meta interface{}) e
return err
}
requestUpdate = true
- d.SetPartial("condition")
}
if requestUpdate {
@@ -1104,8 +1098,6 @@ func resourceAwsLbListenerRuleUpdate(d *schema.ResourceData, meta interface{}) e
}
}
- d.Partial(false)
-
return resourceAwsLbListenerRuleRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_target_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_target_group.go
index b26c8e7ea5c..7f116eb9790 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_target_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lb_target_group.go
@@ -567,6 +567,7 @@ func lbTargetGroupSuffixFromARN(arn *string) string {
// flattenAwsLbTargetGroupResource takes a *elbv2.TargetGroup and populates all respective resource fields.
func flattenAwsLbTargetGroupResource(d *schema.ResourceData, meta interface{}, targetGroup *elbv2.TargetGroup) error {
elbconn := meta.(*AWSClient).elbv2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
d.Set("arn", targetGroup.TargetGroupArn)
d.Set("arn_suffix", lbTargetGroupSuffixFromARN(targetGroup.TargetGroupArn))
@@ -656,7 +657,7 @@ func flattenAwsLbTargetGroupResource(d *schema.ResourceData, meta interface{}, t
return fmt.Errorf("error listing tags for LB Target Group (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -755,16 +756,24 @@ func resourceAwsLbTargetGroupCustomizeDiff(diff *schema.ResourceDiff, v interfac
if protocol == elbv2.ProtocolEnumTcp {
if diff.HasChange("health_check.0.interval") {
- old, new := diff.GetChange("health_check.0.interval")
- return fmt.Errorf("Health check interval cannot be updated from %d to %d for TCP based Target Group %s,"+
- " use 'terraform taint' to recreate the resource if you wish",
- old, new, diff.Id())
+ if err := diff.ForceNew("health_check.0.interval"); err != nil {
+ return err
+ }
+ }
+ // The health_check configuration block protocol argument has Default: HTTP, however the block
+ // itself is Computed: true. When not configured, a TLS (Network LB) Target Group will default
+ // to health check protocol TLS. We do not want to trigger recreation in this scenario.
+ // ResourceDiff will show 0 changed keys for the configuration block, which we can use to ensure
+ // there was an actual change to trigger the ForceNew.
+ if diff.HasChange("health_check.0.protocol") && len(diff.GetChangedKeysPrefix("health_check.0")) != 0 {
+ if err := diff.ForceNew("health_check.0.protocol"); err != nil {
+ return err
+ }
}
if diff.HasChange("health_check.0.timeout") {
- old, new := diff.GetChange("health_check.0.timeout")
- return fmt.Errorf("Health check timeout cannot be updated from %d to %d for TCP based Target Group %s,"+
- " use 'terraform taint' to recreate the resource if you wish",
- old, new, diff.Id())
+ if err := diff.ForceNew("health_check.0.timeout"); err != nil {
+ return err
+ }
}
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_licensemanager_license_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_licensemanager_license_configuration.go
index 6e94dda4d9f..a87fd26aa49 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_licensemanager_license_configuration.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_licensemanager_license_configuration.go
@@ -105,6 +105,7 @@ func resourceAwsLicenseManagerLicenseConfigurationCreate(d *schema.ResourceData,
func resourceAwsLicenseManagerLicenseConfigurationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).licensemanagerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.GetLicenseConfiguration(&licensemanager.GetLicenseConfigurationInput{
LicenseConfigurationArn: aws.String(d.Id()),
@@ -128,7 +129,7 @@ func resourceAwsLicenseManagerLicenseConfigurationRead(d *schema.ResourceData, m
}
d.Set("name", resp.Name)
- if err := d.Set("tags", keyvaluetags.LicensemanagerKeyValueTags(resp.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.LicensemanagerKeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -138,20 +139,14 @@ func resourceAwsLicenseManagerLicenseConfigurationRead(d *schema.ResourceData, m
func resourceAwsLicenseManagerLicenseConfigurationUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).licensemanagerconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
if err := keyvaluetags.LicensemanagerUpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating License Manager License Configuration (%s) tags: %s", d.Id(), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
opts := &licensemanager.UpdateLicenseConfigurationInput{
LicenseConfigurationArn: aws.String(d.Id()),
Name: aws.String(d.Get("name").(string)),
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lightsail_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lightsail_instance.go
index cbdab50b97b..46c482d4fe1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lightsail_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_lightsail_instance.go
@@ -172,6 +172,8 @@ func resourceAwsLightsailInstanceCreate(d *schema.ResourceData, meta interface{}
func resourceAwsLightsailInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).lightsailconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
resp, err := conn.GetInstance(&lightsail.GetInstanceInput{
InstanceName: aws.String(d.Id()),
})
@@ -213,7 +215,7 @@ func resourceAwsLightsailInstanceRead(d *schema.ResourceData, meta interface{})
d.Set("private_ip_address", i.PrivateIpAddress)
d.Set("public_ip_address", i.PublicIpAddress)
- if err := d.Set("tags", keyvaluetags.LightsailKeyValueTags(i.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.LightsailKeyValueTags(i.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_convert_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_convert_queue.go
index b37bb18fc85..b1c6b541910 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_convert_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_convert_queue.go
@@ -129,6 +129,8 @@ func resourceAwsMediaConvertQueueRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Error getting Media Convert Account Client: %s", err)
}
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
getOpts := &mediaconvert.GetQueueInput{
Name: aws.String(d.Id()),
}
@@ -159,7 +161,7 @@ func resourceAwsMediaConvertQueueRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Media Convert Queue (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_package_channel.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_package_channel.go
index ddf15202c49..1e211e12f25 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_package_channel.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_package_channel.go
@@ -96,6 +96,7 @@ func resourceAwsMediaPackageChannelCreate(d *schema.ResourceData, meta interface
func resourceAwsMediaPackageChannelRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).mediapackageconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &mediapackage.DescribeChannelInput{
Id: aws.String(d.Id()),
@@ -112,7 +113,7 @@ func resourceAwsMediaPackageChannelRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error setting hls_ingest: %s", err)
}
- if err := d.Set("tags", keyvaluetags.MediapackageKeyValueTags(resp.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.MediapackageKeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_store_container.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_store_container.go
index e25fae91700..fc1e1c85eb3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_store_container.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_media_store_container.go
@@ -80,6 +80,7 @@ func resourceAwsMediaStoreContainerCreate(d *schema.ResourceData, meta interface
func resourceAwsMediaStoreContainerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).mediastoreconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &mediastore.DescribeContainerInput{
ContainerName: aws.String(d.Id()),
@@ -105,7 +106,7 @@ func resourceAwsMediaStoreContainerRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for media store container (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_broker.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_broker.go
index 00ef70f6f4f..8a47b3f7164 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_broker.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_broker.go
@@ -12,6 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/mitchellh/copystructure"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
@@ -22,6 +23,9 @@ func resourceAwsMqBroker() *schema.Resource {
Read: resourceAwsMqBrokerRead,
Update: resourceAwsMqBrokerUpdate,
Delete: resourceAwsMqBrokerDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
Schema: map[string]*schema.Schema{
"apply_immediately": {
@@ -63,8 +67,12 @@ func resourceAwsMqBroker() *schema.Resource {
"deployment_mode": {
Type: schema.TypeString,
Optional: true,
- Default: "SINGLE_INSTANCE",
+ Default: mq.DeploymentModeSingleInstance,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ mq.DeploymentModeSingleInstance,
+ mq.DeploymentModeActiveStandbyMultiAz,
+ }, true),
},
"encryption_options": {
Type: schema.TypeList,
@@ -94,6 +102,9 @@ func resourceAwsMqBroker() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ mq.EngineTypeActivemq,
+ }, true),
},
"engine_version": {
Type: schema.TypeString,
@@ -142,6 +153,15 @@ func resourceAwsMqBroker() *schema.Resource {
"day_of_week": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ mq.DayOfWeekSunday,
+ mq.DayOfWeekMonday,
+ mq.DayOfWeekTuesday,
+ mq.DayOfWeekWednesday,
+ mq.DayOfWeekThursday,
+ mq.DayOfWeekFriday,
+ mq.DayOfWeekSaturday,
+ }, true),
},
"time_of_day": {
Type: schema.TypeString,
@@ -185,7 +205,11 @@ func resourceAwsMqBroker() *schema.Resource {
},
"groups": {
Type: schema.TypeSet,
- Elem: &schema.Schema{Type: schema.TypeString},
+ MaxItems: 20,
+ Elem: &schema.Schema{
+ Type: schema.TypeString,
+ ValidateFunc: validation.StringLenBetween(2, 100),
+ },
Set: schema.HashString,
Optional: true,
},
@@ -196,8 +220,9 @@ func resourceAwsMqBroker() *schema.Resource {
ValidateFunc: validateMqBrokerPassword,
},
"username": {
- Type: schema.TypeString,
- Required: true,
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.StringLenBetween(2, 100),
},
},
},
@@ -304,19 +329,20 @@ func resourceAwsMqBrokerCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsMqBrokerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).mqconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading MQ Broker: %s", d.Id())
out, err := conn.DescribeBroker(&mq.DescribeBrokerInput{
BrokerId: aws.String(d.Id()),
})
if err != nil {
- if isAWSErr(err, "NotFoundException", "") {
+ if isAWSErr(err, mq.ErrCodeNotFoundException, "") {
log.Printf("[WARN] MQ Broker %q not found, removing from state", d.Id())
d.SetId("")
return nil
}
// API docs say a 404 can also return a 403
- if isAWSErr(err, "ForbiddenException", "Forbidden") {
+ if isAWSErr(err, mq.ErrCodeForbiddenException, "Forbidden") {
log.Printf("[WARN] MQ Broker %q not found, removing from state", d.Id())
d.SetId("")
return nil
@@ -376,11 +402,7 @@ func resourceAwsMqBrokerRead(d *schema.ResourceData, meta interface{}) error {
return err
}
- tags, err := keyvaluetags.MqListTags(conn, aws.StringValue(out.BrokerArn))
- if err != nil {
- return fmt.Errorf("error listing tags for MQ Broker (%s): %s", d.Id(), err)
- }
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.MqKeyValueTags(out.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_configuration.go
index 08afb2ec5bb..884cef2e971 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_configuration.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_mq_configuration.go
@@ -8,6 +8,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/mq"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
@@ -53,6 +54,9 @@ func resourceAwsMqConfiguration() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ mq.EngineTypeActivemq,
+ }, true),
},
"engine_version": {
Type: schema.TypeString,
@@ -100,13 +104,14 @@ func resourceAwsMqConfigurationCreate(d *schema.ResourceData, meta interface{})
func resourceAwsMqConfigurationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).mqconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading MQ Configuration %s", d.Id())
out, err := conn.DescribeConfiguration(&mq.DescribeConfigurationInput{
ConfigurationId: aws.String(d.Id()),
})
if err != nil {
- if isAWSErr(err, "NotFoundException", "") {
+ if isAWSErr(err, mq.ErrCodeNotFoundException, "") {
log.Printf("[WARN] MQ Configuration %q not found, removing from state", d.Id())
d.SetId("")
return nil
@@ -136,11 +141,7 @@ func resourceAwsMqConfigurationRead(d *schema.ResourceData, meta interface{}) er
d.Set("data", string(b))
- tags, err := keyvaluetags.MqListTags(conn, aws.StringValue(out.Arn))
- if err != nil {
- return fmt.Errorf("error listing tags for MQ Configuration (%s): %s", d.Id(), err)
- }
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.MqKeyValueTags(out.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_msk_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_msk_cluster.go
index 74ffbf6b31f..0330e580126 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_msk_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_msk_cluster.go
@@ -252,6 +252,83 @@ func resourceAwsMskCluster() *schema.Resource {
},
},
},
+ "logging_info": {
+ Type: schema.TypeList,
+ Optional: true,
+ DiffSuppressFunc: suppressMissingOptionalConfigurationBlock,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "broker_logs": {
+ Type: schema.TypeList,
+ Required: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "cloudwatch_logs": {
+ Type: schema.TypeList,
+ Optional: true,
+ DiffSuppressFunc: suppressMissingOptionalConfigurationBlock,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "enabled": {
+ Type: schema.TypeBool,
+ Required: true,
+ },
+ "log_group": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "firehose": {
+ Type: schema.TypeList,
+ Optional: true,
+ DiffSuppressFunc: suppressMissingOptionalConfigurationBlock,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "enabled": {
+ Type: schema.TypeBool,
+ Required: true,
+ },
+ "delivery_stream": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ },
+ },
+ },
+ "s3": {
+ Type: schema.TypeList,
+ Optional: true,
+ DiffSuppressFunc: suppressMissingOptionalConfigurationBlock,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "enabled": {
+ Type: schema.TypeBool,
+ Required: true,
+ },
+ "bucket": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ "prefix": {
+ Type: schema.TypeString,
+ Optional: true,
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+ },
"tags": tagsSchema(),
"zookeeper_connect_string": {
Type: schema.TypeString,
@@ -274,6 +351,7 @@ func resourceAwsMskClusterCreate(d *schema.ResourceData, meta interface{}) error
KafkaVersion: aws.String(d.Get("kafka_version").(string)),
NumberOfBrokerNodes: aws.Int64(int64(d.Get("number_of_broker_nodes").(int))),
OpenMonitoring: expandMskOpenMonitoring(d.Get("open_monitoring").([]interface{})),
+ LoggingInfo: expandMskLoggingInfo(d.Get("logging_info").([]interface{})),
Tags: keyvaluetags.New(d.Get("tags").(map[string]interface{})).IgnoreAws().KafkaTags(),
}
@@ -335,6 +413,7 @@ func waitForMskClusterCreation(conn *kafka.Kafka, arn string) error {
func resourceAwsMskClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kafkaconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
out, err := conn.DescribeCluster(&kafka.DescribeClusterInput{
ClusterArn: aws.String(d.Id()),
@@ -385,7 +464,7 @@ func resourceAwsMskClusterRead(d *schema.ResourceData, meta interface{}) error {
d.Set("kafka_version", aws.StringValue(cluster.CurrentBrokerSoftwareInfo.KafkaVersion))
d.Set("number_of_broker_nodes", aws.Int64Value(cluster.NumberOfBrokerNodes))
- if err := d.Set("tags", keyvaluetags.KafkaKeyValueTags(cluster.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.KafkaKeyValueTags(cluster.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -393,6 +472,10 @@ func resourceAwsMskClusterRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error setting open_monitoring: %s", err)
}
+ if err := d.Set("logging_info", flattenMskLoggingInfo(cluster.LoggingInfo)); err != nil {
+ return fmt.Errorf("error setting logging_info: %s", err)
+ }
+
d.Set("zookeeper_connect_string", aws.StringValue(cluster.ZookeeperConnectString))
return nil
@@ -454,12 +537,13 @@ func resourceAwsMskClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
}
- if d.HasChange("enhanced_monitoring") || d.HasChange("open_monitoring") {
+ if d.HasChange("enhanced_monitoring") || d.HasChange("open_monitoring") || d.HasChange("logging_info") {
input := &kafka.UpdateMonitoringInput{
ClusterArn: aws.String(d.Id()),
CurrentVersion: aws.String(d.Get("current_version").(string)),
EnhancedMonitoring: aws.String(d.Get("enhanced_monitoring").(string)),
OpenMonitoring: expandMskOpenMonitoring(d.Get("open_monitoring").([]interface{})),
+ LoggingInfo: expandMskLoggingInfo(d.Get("logging_info").([]interface{})),
}
output, err := conn.UpdateMonitoring(input)
@@ -672,6 +756,82 @@ func expandMskOpenMonitoringPrometheusNodeExporter(l []interface{}) *kafka.NodeE
return nodeExporter
}
+func expandMskLoggingInfo(l []interface{}) *kafka.LoggingInfo {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ loggingInfo := &kafka.LoggingInfo{
+ BrokerLogs: expandMskLoggingInfoBrokerLogs(m["broker_logs"].([]interface{})),
+ }
+
+ return loggingInfo
+}
+
+func expandMskLoggingInfoBrokerLogs(l []interface{}) *kafka.BrokerLogs {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ brokerLogs := &kafka.BrokerLogs{
+ CloudWatchLogs: expandMskLoggingInfoBrokerLogsCloudWatchLogs(m["cloudwatch_logs"].([]interface{})),
+ Firehose: expandMskLoggingInfoBrokerLogsFirehose(m["firehose"].([]interface{})),
+ S3: expandMskLoggingInfoBrokerLogsS3(m["s3"].([]interface{})),
+ }
+
+ return brokerLogs
+}
+
+func expandMskLoggingInfoBrokerLogsCloudWatchLogs(l []interface{}) *kafka.CloudWatchLogs {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ cloudWatchLogs := &kafka.CloudWatchLogs{
+ Enabled: aws.Bool(m["enabled"].(bool)),
+ LogGroup: aws.String(m["log_group"].(string)),
+ }
+
+ return cloudWatchLogs
+}
+
+func expandMskLoggingInfoBrokerLogsFirehose(l []interface{}) *kafka.Firehose {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ firehose := &kafka.Firehose{
+ Enabled: aws.Bool(m["enabled"].(bool)),
+ DeliveryStream: aws.String(m["delivery_stream"].(string)),
+ }
+
+ return firehose
+}
+
+func expandMskLoggingInfoBrokerLogsS3(l []interface{}) *kafka.S3 {
+ if len(l) == 0 || l[0] == nil {
+ return nil
+ }
+
+ m := l[0].(map[string]interface{})
+
+ s3 := &kafka.S3{
+ Enabled: aws.Bool(m["enabled"].(bool)),
+ Bucket: aws.String(m["bucket"].(string)),
+ Prefix: aws.String(m["prefix"].(string)),
+ }
+
+ return s3
+}
+
func flattenMskBrokerNodeGroupInfo(b *kafka.BrokerNodeGroupInfo) []map[string]interface{} {
if b == nil {
@@ -804,6 +964,72 @@ func flattenMskOpenMonitoringPrometheusNodeExporter(e *kafka.NodeExporter) []map
return []map[string]interface{}{m}
}
+func flattenMskLoggingInfo(e *kafka.LoggingInfo) []map[string]interface{} {
+ if e == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "broker_logs": flattenMskLoggingInfoBrokerLogs(e.BrokerLogs),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenMskLoggingInfoBrokerLogs(e *kafka.BrokerLogs) []map[string]interface{} {
+ if e == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "cloudwatch_logs": flattenMskLoggingInfoBrokerLogsCloudWatchLogs(e.CloudWatchLogs),
+ "firehose": flattenMskLoggingInfoBrokerLogsFirehose(e.Firehose),
+ "s3": flattenMskLoggingInfoBrokerLogsS3(e.S3),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenMskLoggingInfoBrokerLogsCloudWatchLogs(e *kafka.CloudWatchLogs) []map[string]interface{} {
+ if e == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "enabled": aws.BoolValue(e.Enabled),
+ "log_group": aws.StringValue(e.LogGroup),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenMskLoggingInfoBrokerLogsFirehose(e *kafka.Firehose) []map[string]interface{} {
+ if e == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "enabled": aws.BoolValue(e.Enabled),
+ "delivery_stream": aws.StringValue(e.DeliveryStream),
+ }
+
+ return []map[string]interface{}{m}
+}
+
+func flattenMskLoggingInfoBrokerLogsS3(e *kafka.S3) []map[string]interface{} {
+ if e == nil {
+ return []map[string]interface{}{}
+ }
+
+ m := map[string]interface{}{
+ "enabled": aws.BoolValue(e.Enabled),
+ "bucket": aws.StringValue(e.Bucket),
+ "prefix": aws.StringValue(e.Prefix),
+ }
+
+ return []map[string]interface{}{m}
+}
+
func resourceAwsMskClusterDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).kafkaconn
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_nat_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_nat_gateway.go
index 815370d0855..9639fcf3f62 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_nat_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_nat_gateway.go
@@ -96,6 +96,7 @@ func resourceAwsNatGatewayCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsNatGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
// Refresh the NAT Gateway state
ngRaw, state, err := NGStateRefreshFunc(conn, d.Id())()
@@ -126,7 +127,7 @@ func resourceAwsNatGatewayRead(d *schema.ResourceData, meta interface{}) error {
d.Set("private_ip", address.PrivateIp)
d.Set("public_ip", address.PublicIp)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ng.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(ng.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster.go
index 4283fe4e548..9b26405ab12 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster.go
@@ -244,7 +244,6 @@ func resourceAwsNeptuneCluster() *schema.Resource {
"snapshot_identifier": {
Type: schema.TypeString,
Optional: true,
- Elem: &schema.Schema{Type: schema.TypeString},
},
"tags": tagsSchema(),
@@ -469,6 +468,7 @@ func resourceAwsNeptuneClusterRead(d *schema.ResourceData, meta interface{}) err
func flattenAwsNeptuneClusterResource(d *schema.ResourceData, meta interface{}, dbc *neptune.DBCluster) error {
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
if err := d.Set("availability_zones", aws.StringValueSlice(dbc.AvailabilityZones)); err != nil {
return fmt.Errorf("Error saving AvailabilityZones to state for Neptune Cluster (%s): %s", d.Id(), err)
@@ -532,7 +532,7 @@ func flattenAwsNeptuneClusterResource(d *schema.ResourceData, meta interface{},
return fmt.Errorf("error listing tags for Neptune Cluster (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -594,7 +594,6 @@ func resourceAwsNeptuneClusterUpdate(d *schema.ResourceData, meta interface{}) e
}
if d.HasChange("neptune_cluster_parameter_group_name") {
- d.SetPartial("neptune_cluster_parameter_group_name")
req.DBClusterParameterGroupName = aws.String(d.Get("neptune_cluster_parameter_group_name").(string))
requestUpdate = true
}
@@ -681,7 +680,6 @@ func resourceAwsNeptuneClusterUpdate(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error updating Neptune Cluster (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
return resourceAwsNeptuneClusterRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_instance.go
index 0db3d20cc49..87d7738974a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_instance.go
@@ -292,6 +292,8 @@ func resourceAwsNeptuneClusterInstanceRead(d *schema.ResourceData, meta interfac
}
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
resp, err := conn.DescribeDBClusters(&neptune.DescribeDBClustersInput{
DBClusterIdentifier: db.DBClusterIdentifier,
})
@@ -354,7 +356,7 @@ func resourceAwsNeptuneClusterInstanceRead(d *schema.ResourceData, meta interfac
return fmt.Errorf("error listing tags for Neptune Cluster Instance (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -381,25 +383,21 @@ func resourceAwsNeptuneClusterInstanceUpdate(d *schema.ResourceData, meta interf
}
if d.HasChange("preferred_backup_window") {
- d.SetPartial("preferred_backup_window")
req.PreferredBackupWindow = aws.String(d.Get("preferred_backup_window").(string))
requestUpdate = true
}
if d.HasChange("preferred_maintenance_window") {
- d.SetPartial("preferred_maintenance_window")
req.PreferredMaintenanceWindow = aws.String(d.Get("preferred_maintenance_window").(string))
requestUpdate = true
}
if d.HasChange("auto_minor_version_upgrade") {
- d.SetPartial("auto_minor_version_upgrade")
req.AutoMinorVersionUpgrade = aws.Bool(d.Get("auto_minor_version_upgrade").(bool))
requestUpdate = true
}
if d.HasChange("promotion_tier") {
- d.SetPartial("promotion_tier")
req.PromotionTier = aws.Int64(int64(d.Get("promotion_tier").(int)))
requestUpdate = true
}
@@ -447,8 +445,6 @@ func resourceAwsNeptuneClusterInstanceUpdate(d *schema.ResourceData, meta interf
if err := keyvaluetags.NeptuneUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Neptune Cluster Instance (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
return resourceAwsNeptuneClusterInstanceRead(d, meta)
@@ -493,6 +489,7 @@ var resourceAwsNeptuneClusterInstanceCreateUpdatePendingStates = []string{
"renaming",
"starting",
"upgrading",
+ "configuring-log-exports",
}
var resourceAwsNeptuneClusterInstanceDeletePendingStates = []string{
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_parameter_group.go
index bc03251088e..c027983a818 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_cluster_parameter_group.go
@@ -123,6 +123,7 @@ func resourceAwsNeptuneClusterParameterGroupCreate(d *schema.ResourceData, meta
func resourceAwsNeptuneClusterParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := neptune.DescribeDBClusterParameterGroupsInput{
DBClusterParameterGroupName: aws.String(d.Id()),
@@ -172,7 +173,7 @@ func resourceAwsNeptuneClusterParameterGroupRead(d *schema.ResourceData, meta in
return fmt.Errorf("error listing tags for Neptune Cluster Parameter Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -182,8 +183,6 @@ func resourceAwsNeptuneClusterParameterGroupRead(d *schema.ResourceData, meta in
func resourceAwsNeptuneClusterParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -223,7 +222,6 @@ func resourceAwsNeptuneClusterParameterGroupUpdate(d *schema.ResourceData, meta
return fmt.Errorf("Error modifying Neptune Cluster Parameter Group: %s", err)
}
}
- d.SetPartial("parameter")
}
}
@@ -233,12 +231,8 @@ func resourceAwsNeptuneClusterParameterGroupUpdate(d *schema.ResourceData, meta
if err := keyvaluetags.NeptuneUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Neptune Cluster Parameter Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsNeptuneClusterParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_event_subscription.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_event_subscription.go
index 2a1723acfd5..3e9250922fa 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_event_subscription.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_event_subscription.go
@@ -156,6 +156,7 @@ func resourceAwsNeptuneEventSubscriptionCreate(d *schema.ResourceData, meta inte
func resourceAwsNeptuneEventSubscriptionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
sub, err := resourceAwsNeptuneEventSubscriptionRetrieve(d.Id(), conn)
if err != nil {
@@ -196,7 +197,7 @@ func resourceAwsNeptuneEventSubscriptionRead(d *schema.ResourceData, meta interf
return fmt.Errorf("error listing tags for Neptune Event Subscription (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -206,7 +207,6 @@ func resourceAwsNeptuneEventSubscriptionRead(d *schema.ResourceData, meta interf
func resourceAwsNeptuneEventSubscriptionUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
- d.Partial(true)
requestUpdate := false
req := &neptune.ModifyEventSubscriptionInput{
@@ -262,10 +262,6 @@ func resourceAwsNeptuneEventSubscriptionUpdate(d *schema.ResourceData, meta inte
if err != nil {
return err
}
- d.SetPartial("event_categories")
- d.SetPartial("enabled")
- d.SetPartial("sns_topic_arn")
- d.SetPartial("source_type")
}
if d.HasChange("tags") {
@@ -274,8 +270,6 @@ func resourceAwsNeptuneEventSubscriptionUpdate(d *schema.ResourceData, meta inte
if err := keyvaluetags.NeptuneUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Neptune Cluster Event Subscription (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("source_ids") {
@@ -317,11 +311,8 @@ func resourceAwsNeptuneEventSubscriptionUpdate(d *schema.ResourceData, meta inte
}
}
}
- d.SetPartial("source_ids")
}
- d.Partial(false)
-
return resourceAwsNeptuneEventSubscriptionRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_parameter_group.go
index 3274658a3bf..b3c057c7c92 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_parameter_group.go
@@ -97,12 +97,6 @@ func resourceAwsNeptuneParameterGroupCreate(d *schema.ResourceData, meta interfa
return fmt.Errorf("Error creating Neptune Parameter Group: %s", err)
}
- d.Partial(true)
- d.SetPartial("name")
- d.SetPartial("family")
- d.SetPartial("description")
- d.Partial(false)
-
d.SetId(*resp.DBParameterGroup.DBParameterGroupName)
d.Set("arn", resp.DBParameterGroup.DBParameterGroupArn)
log.Printf("[INFO] Neptune Parameter Group ID: %s", d.Id())
@@ -112,6 +106,7 @@ func resourceAwsNeptuneParameterGroupCreate(d *schema.ResourceData, meta interfa
func resourceAwsNeptuneParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := neptune.DescribeDBParameterGroupsInput{
DBParameterGroupName: aws.String(d.Id()),
@@ -168,7 +163,7 @@ func resourceAwsNeptuneParameterGroupRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error listing tags for Neptune Parameter Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -178,8 +173,6 @@ func resourceAwsNeptuneParameterGroupRead(d *schema.ResourceData, meta interface
func resourceAwsNeptuneParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -255,8 +248,6 @@ func resourceAwsNeptuneParameterGroupUpdate(d *schema.ResourceData, meta interfa
return fmt.Errorf("Error modifying Neptune Parameter Group: %s", err)
}
}
-
- d.SetPartial("parameter")
}
if !d.IsNewResource() && d.HasChange("tags") {
@@ -265,12 +256,8 @@ func resourceAwsNeptuneParameterGroupUpdate(d *schema.ResourceData, meta interfa
if err := keyvaluetags.NeptuneUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Neptune Parameter Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsNeptuneParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_subnet_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_subnet_group.go
index 9f0d19dde5c..e547dbedddc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_subnet_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_neptune_subnet_group.go
@@ -102,6 +102,7 @@ func resourceAwsNeptuneSubnetGroupCreate(d *schema.ResourceData, meta interface{
func resourceAwsNeptuneSubnetGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).neptuneconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := neptune.DescribeDBSubnetGroupsInput{
DBSubnetGroupName: aws.String(d.Id()),
@@ -153,7 +154,7 @@ func resourceAwsNeptuneSubnetGroupRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Neptune Subnet Group (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -191,8 +192,6 @@ func resourceAwsNeptuneSubnetGroupUpdate(d *schema.ResourceData, meta interface{
if err := keyvaluetags.NeptuneUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Neptune Subnet Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
return resourceAwsNeptuneSubnetGroupRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl.go
index 6b2ee541a76..aed8ea1ed99 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl.go
@@ -175,7 +175,12 @@ func resourceAwsNetworkAclCreate(d *schema.ResourceData, meta interface{}) error
// Get the ID and store it
networkAcl := resp.NetworkAcl
d.SetId(*networkAcl.NetworkAclId)
- log.Printf("[INFO] Network Acl ID: %s", *networkAcl.NetworkAclId)
+
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding EC2 VPN Gateway (%s) tags: %s", d.Id(), err)
+ }
+ }
// Update rules and subnet association once acl is created
return resourceAwsNetworkAclUpdate(d, meta)
@@ -183,6 +188,7 @@ func resourceAwsNetworkAclCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsNetworkAclRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeNetworkAcls(&ec2.DescribeNetworkAclsInput{
NetworkAclIds: []*string{aws.String(d.Id())},
@@ -224,7 +230,7 @@ func resourceAwsNetworkAclRead(d *schema.ResourceData, meta interface{}) error {
d.Set("vpc_id", networkAcl.VpcId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(networkAcl.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(networkAcl.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -251,7 +257,6 @@ func resourceAwsNetworkAclRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsNetworkAclUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
if d.HasChange("ingress") {
err := updateNetworkAclEntries(d, "ingress", conn)
@@ -327,7 +332,7 @@ func resourceAwsNetworkAclUpdate(d *schema.ResourceData, meta interface{}) error
}
- if d.HasChange("tags") {
+ if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
@@ -335,7 +340,6 @@ func resourceAwsNetworkAclUpdate(d *schema.ResourceData, meta interface{}) error
}
}
- d.Partial(false)
return resourceAwsNetworkAclRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl_rule.go
index ae3a52a8e16..c8adab7a897 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_acl_rule.go
@@ -5,6 +5,7 @@ import (
"fmt"
"log"
"strconv"
+ "strings"
"time"
"github.com/aws/aws-sdk-go/aws"
@@ -19,6 +20,30 @@ func resourceAwsNetworkAclRule() *schema.Resource {
Create: resourceAwsNetworkAclRuleCreate,
Read: resourceAwsNetworkAclRuleRead,
Delete: resourceAwsNetworkAclRuleDelete,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ idParts := strings.Split(d.Id(), ":")
+ if len(idParts) != 4 || idParts[0] == "" || idParts[1] == "" || idParts[2] == "" || idParts[3] == "" {
+ return nil, fmt.Errorf("unexpected format of ID (%q), expected NETWORK_ACL_ID:RULE_NUMBER:PROTOCOL:EGRESS", d.Id())
+ }
+ networkAclID := idParts[0]
+ ruleNumber, err := strconv.Atoi(idParts[1])
+ if err != nil {
+ return nil, err
+ }
+ protocol := idParts[2]
+ egress, err := strconv.ParseBool(idParts[3])
+ if err != nil {
+ return nil, err
+ }
+
+ d.Set("network_acl_id", networkAclID)
+ d.Set("rule_number", ruleNumber)
+ d.Set("egress", egress)
+ d.SetId(networkAclIdRuleNumberEgressHash(networkAclID, ruleNumber, egress, protocol))
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"network_acl_id": {
@@ -210,8 +235,8 @@ func resourceAwsNetworkAclRuleRead(d *schema.ResourceData, meta interface{}) err
d.Set("ipv6_cidr_block", resp.Ipv6CidrBlock)
d.Set("egress", resp.Egress)
if resp.IcmpTypeCode != nil {
- d.Set("icmp_code", resp.IcmpTypeCode.Code)
- d.Set("icmp_type", resp.IcmpTypeCode.Type)
+ d.Set("icmp_code", strconv.FormatInt(aws.Int64Value(resp.IcmpTypeCode.Code), 10))
+ d.Set("icmp_type", strconv.FormatInt(aws.Int64Value(resp.IcmpTypeCode.Type), 10))
}
if resp.PortRange != nil {
d.Set("from_port", resp.PortRange.From)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_interface.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_interface.go
index b568909a978..00ae2408bee 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_interface.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_network_interface.go
@@ -79,6 +79,11 @@ func resourceAwsNetworkInterface() *schema.Resource {
Default: true,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
+
"description": {
Type: schema.TypeString,
Optional: true,
@@ -145,13 +150,20 @@ func resourceAwsNetworkInterfaceCreate(d *schema.ResourceData, meta interface{})
}
d.SetId(*resp.NetworkInterface.NetworkInterfaceId)
- log.Printf("[INFO] ENI ID: %s", d.Id())
+
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
+ }
+
return resourceAwsNetworkInterfaceUpdate(d, meta)
}
func resourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) error {
-
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
describe_network_interfaces_request := &ec2.DescribeNetworkInterfacesInput{
NetworkInterfaceIds: []*string{aws.String(d.Id())},
}
@@ -186,6 +198,7 @@ func resourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) e
d.Set("private_dns_name", eni.PrivateDnsName)
d.Set("mac_address", eni.MacAddress)
d.Set("private_ip", eni.PrivateIpAddress)
+ d.Set("outpost_arn", eni.OutpostArn)
if err := d.Set("private_ips", flattenNetworkInterfacesPrivateIPAddresses(eni.PrivateIpAddresses)); err != nil {
return fmt.Errorf("error setting private_ips: %s", err)
@@ -200,7 +213,7 @@ func resourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) e
d.Set("source_dest_check", eni.SourceDestCheck)
d.Set("subnet_id", eni.SubnetId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eni.TagSet).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(eni.TagSet).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -261,7 +274,6 @@ func resourceAwsNetworkInterfaceDetach(oa *schema.Set, meta interface{}, eniId s
func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
if d.HasChange("attachment") {
oa, na := d.GetChange("attachment")
@@ -285,8 +297,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Error attaching ENI: %s", attach_err)
}
}
-
- d.SetPartial("attachment")
}
if d.HasChange("private_ips") {
@@ -326,8 +336,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Failure to assign Private IPs: %s", err)
}
}
-
- d.SetPartial("private_ips")
}
// ModifyNetworkInterfaceAttribute needs to be called after creating an ENI
@@ -342,8 +350,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("Failure updating ENI: %s", err)
}
-
- d.SetPartial("source_dest_check")
}
if d.HasChange("private_ips_count") && !d.IsNewResource() {
@@ -384,8 +390,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
return fmt.Errorf("Failure to unassign Private IPs: %s", err)
}
}
-
- d.SetPartial("private_ips_count")
}
}
@@ -399,8 +403,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("Failure updating ENI: %s", err)
}
-
- d.SetPartial("security_groups")
}
if d.HasChange("description") {
@@ -413,11 +415,9 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("Failure updating ENI: %s", err)
}
-
- d.SetPartial("description")
}
- if d.HasChange("tags") {
+ if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
@@ -425,8 +425,6 @@ func resourceAwsNetworkInterfaceUpdate(d *schema.ResourceData, meta interface{})
}
}
- d.Partial(false)
-
return resourceAwsNetworkInterfaceRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_rds_db_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_rds_db_instance.go
index 14ca6aebd3a..028f0c45bee 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_rds_db_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_rds_db_instance.go
@@ -43,21 +43,16 @@ func resourceAwsOpsworksRdsDbInstance() *schema.Resource {
func resourceAwsOpsworksRdsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
- d.Partial(true)
-
- d.SetPartial("rds_db_instance_arn")
req := &opsworks.UpdateRdsDbInstanceInput{
RdsDbInstanceArn: aws.String(d.Get("rds_db_instance_arn").(string)),
}
requestUpdate := false
if d.HasChange("db_user") {
- d.SetPartial("db_user")
req.DbUser = aws.String(d.Get("db_user").(string))
requestUpdate = true
}
if d.HasChange("db_password") {
- d.SetPartial("db_password")
req.DbPassword = aws.String(d.Get("db_password").(string))
requestUpdate = true
}
@@ -71,8 +66,6 @@ func resourceAwsOpsworksRdsDbInstanceUpdate(d *schema.ResourceData, meta interfa
}
}
- d.Partial(false)
-
return resourceAwsOpsworksRdsDbInstanceRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_stack.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_stack.go
index e373a0c294a..6b1a1b30796 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_stack.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_stack.go
@@ -270,6 +270,8 @@ func resourceAwsOpsworksSetStackCustomCookbooksSource(d *schema.ResourceData, v
func resourceAwsOpsworksStackRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient).opsworksconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
var conErr error
if v := d.Get("stack_endpoint").(string); v != "" {
client, conErr = opsworksConnForRegion(v, meta)
@@ -374,7 +376,7 @@ func resourceAwsOpsworksStackRead(d *schema.ResourceData, meta interface{}) erro
return fmt.Errorf("error listing tags for Opsworks stack (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_account.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_account.go
index 952ef540be4..1d6c543e596 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_account.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_account.go
@@ -175,6 +175,8 @@ func resourceAwsOrganizationsAccountCreate(d *schema.ResourceData, meta interfac
func resourceAwsOrganizationsAccountRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).organizationsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
describeOpts := &organizations.DescribeAccountInput{
AccountId: aws.String(d.Id()),
}
@@ -216,7 +218,7 @@ func resourceAwsOrganizationsAccountRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for AWS Organizations Account (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_policy.go
index 739a7448a7a..0bd1bb7415a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_organizations_policy.go
@@ -31,7 +31,7 @@ func resourceAwsOrganizationsPolicy() *schema.Resource {
Type: schema.TypeString,
Required: true,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
},
"description": {
Type: schema.TypeString,
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_pinpoint_app.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_pinpoint_app.go
index 17bbf4a5355..a22085d0a4c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_pinpoint_app.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_pinpoint_app.go
@@ -225,6 +225,7 @@ func resourceAwsPinpointAppUpdate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsPinpointAppRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).pinpointconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading Pinpoint App Attributes for %s", d.Id())
@@ -275,7 +276,7 @@ func resourceAwsPinpointAppRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for PinPoint Application (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_placement_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_placement_group.go
index a2cd4874ed1..b7fe7931232 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_placement_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_placement_group.go
@@ -6,7 +6,6 @@ import (
"time"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
@@ -54,8 +53,9 @@ func resourceAwsPlacementGroupCreate(d *schema.ResourceData, meta interface{}) e
name := d.Get("name").(string)
input := ec2.CreatePlacementGroupInput{
- GroupName: aws.String(name),
- Strategy: aws.String(d.Get("strategy").(string)),
+ GroupName: aws.String(name),
+ Strategy: aws.String(d.Get("strategy").(string)),
+ TagSpecifications: ec2TagSpecificationsFromMap(d.Get("tags").(map[string]interface{}), ec2.ResourceTypePlacementGroup),
}
log.Printf("[DEBUG] Creating EC2 Placement group: %s", input)
_, err := conn.CreatePlacementGroup(&input)
@@ -100,25 +100,13 @@ func resourceAwsPlacementGroupCreate(d *schema.ResourceData, meta interface{}) e
d.SetId(name)
- if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- input := ec2.DescribePlacementGroupsInput{
- GroupNames: []*string{aws.String(d.Id())},
- }
- out, err := conn.DescribePlacementGroups(&input)
- if err != nil {
- return err
- }
- pg := out.PlacementGroups[0]
- if err := keyvaluetags.Ec2UpdateTags(conn, aws.StringValue(pg.GroupId), nil, v); err != nil {
- return fmt.Errorf("error adding tags: %s", err)
- }
- }
-
return resourceAwsPlacementGroupRead(d, meta)
}
func resourceAwsPlacementGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
input := ec2.DescribePlacementGroupsInput{
GroupNames: []*string{aws.String(d.Id())},
}
@@ -139,7 +127,7 @@ func resourceAwsPlacementGroupRead(d *schema.ResourceData, meta interface{}) err
d.Set("name", pg.GroupName)
d.Set("strategy", pg.Strategy)
d.Set("placement_group_id", pg.GroupId)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(pg.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(pg.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -183,11 +171,10 @@ func resourceAwsPlacementGroupDelete(d *schema.ResourceData, meta interface{}) e
})
if err != nil {
- awsErr := err.(awserr.Error)
- if awsErr.Code() == "InvalidPlacementGroup.Unknown" {
- return out, "deleted", nil
+ if isAWSErr(err, "InvalidPlacementGroup.Unknown", "") {
+ return out, ec2.PlacementGroupStateDeleted, nil
}
- return out, "", awsErr
+ return out, "", err
}
if len(out.PlacementGroups) == 0 {
@@ -195,7 +182,7 @@ func resourceAwsPlacementGroupDelete(d *schema.ResourceData, meta interface{}) e
}
pg := out.PlacementGroups[0]
- if *pg.State == "available" {
+ if *pg.State == ec2.PlacementGroupStateAvailable {
log.Printf("[DEBUG] Accepted status when deleting EC2 Placement group: %q %v", d.Id(), *pg.State)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_proxy_protocol_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_proxy_protocol_policy.go
index 18c85f00627..94cf95823e0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_proxy_protocol_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_proxy_protocol_policy.go
@@ -59,10 +59,7 @@ func resourceAwsProxyProtocolPolicyCreate(d *schema.ResourceData, meta interface
*input.PolicyName, err)
}
- // Assign the policy name for use later
- d.Partial(true)
d.SetId(fmt.Sprintf("%s:%s", *elbname, *input.PolicyName))
- d.SetPartial("load_balancer")
log.Printf("[INFO] ELB PolicyName: %s", *input.PolicyName)
return resourceAwsProxyProtocolPolicyUpdate(d, meta)
@@ -119,7 +116,6 @@ func resourceAwsProxyProtocolPolicyUpdate(d *schema.ResourceData, meta interface
backends := flattenBackendPolicies(resp.LoadBalancerDescriptions[0].BackendServerDescriptions)
policyName := resourceAwsProxyProtocolPolicyParseId(d.Id())
- d.Partial(true)
if d.HasChange("instance_ports") {
o, n := d.GetChange("instance_ports")
os := o.(*schema.Set)
@@ -147,8 +143,6 @@ func resourceAwsProxyProtocolPolicyUpdate(d *schema.ResourceData, meta interface
return fmt.Errorf("Error setting policy for backend: %s", err)
}
}
-
- d.SetPartial("instance_ports")
}
return resourceAwsProxyProtocolPolicyRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_qldb_ledger.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_qldb_ledger.go
index 0ae4325454e..442b226e5ad 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_qldb_ledger.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_qldb_ledger.go
@@ -106,6 +106,7 @@ func resourceAwsQLDBLedgerCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsQLDBLedgerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).qldbconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
// Refresh the QLDB state
input := &qldb.DescribeLedgerInput{
@@ -145,7 +146,7 @@ func resourceAwsQLDBLedgerRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Error listing tags for QLDB Ledger: %s", err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -155,9 +156,6 @@ func resourceAwsQLDBLedgerRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsQLDBLedgerUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).qldbconn
- // Turn on partial mode
- d.Partial(true)
-
if d.HasChange("deletion_protection") {
val := d.Get("deletion_protection").(bool)
modifyOpts := &qldb.UpdateLedgerInput{
@@ -171,8 +169,6 @@ func resourceAwsQLDBLedgerUpdate(d *schema.ResourceData, meta interface{}) error
return err
}
-
- d.SetPartial("deletion_protection")
}
if d.HasChange("tags") {
@@ -182,7 +178,6 @@ func resourceAwsQLDBLedgerUpdate(d *schema.ResourceData, meta interface{}) error
}
}
- d.Partial(false)
return resourceAwsQLDBLedgerRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ram_resource_share.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ram_resource_share.go
index 2d649fb0d08..09443ae58b7 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ram_resource_share.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ram_resource_share.go
@@ -87,6 +87,7 @@ func resourceAwsRamResourceShareCreate(d *schema.ResourceData, meta interface{})
func resourceAwsRamResourceShareRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ramconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &ram.GetResourceSharesInput{
ResourceShareArns: []*string{aws.String(d.Id())},
@@ -121,7 +122,7 @@ func resourceAwsRamResourceShareRead(d *schema.ResourceData, meta interface{}) e
d.Set("name", resourceShare.Name)
d.Set("allow_external_principals", resourceShare.AllowExternalPrincipals)
- if err := d.Set("tags", keyvaluetags.RamKeyValueTags(resourceShare.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RamKeyValueTags(resourceShare.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster.go
index ad12871a893..05dbbe43f0a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster.go
@@ -299,7 +299,6 @@ func resourceAwsRDSCluster() *schema.Resource {
"snapshot_identifier": {
Type: schema.TypeString,
Optional: true,
- Elem: &schema.Schema{Type: schema.TypeString},
},
"port": {
@@ -928,6 +927,7 @@ func resourceAwsRDSClusterCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsRDSClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &rds.DescribeDBClustersInput{
DBClusterIdentifier: aws.String(d.Id()),
@@ -1042,17 +1042,19 @@ func resourceAwsRDSClusterRead(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("error listing tags for RDS Cluster (%s): %s", aws.StringValue(dbc.DBClusterArn), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
// Fetch and save Global Cluster if engine mode global
d.Set("global_cluster_identifier", "")
- if aws.StringValue(dbc.EngineMode) == "global" {
+ if aws.StringValue(dbc.EngineMode) == "global" || aws.StringValue(dbc.EngineMode) == "provisioned" {
globalCluster, err := rdsDescribeGlobalClusterFromDbClusterARN(conn, aws.StringValue(dbc.DBClusterArn))
- if err != nil {
+ // Ignore the following API error for regions/partitions that do not support RDS Global Clusters:
+ // InvalidParameterValue: Access Denied to API Version: APIGlobalDatabases
+ if err != nil && !isAWSErr(err, "InvalidParameterValue", "Access Denied to API Version: APIGlobalDatabases") {
return fmt.Errorf("error reading RDS Global Cluster information for DB Cluster (%s): %s", d.Id(), err)
}
@@ -1118,7 +1120,6 @@ func resourceAwsRDSClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("db_cluster_parameter_group_name") {
- d.SetPartial("db_cluster_parameter_group_name")
req.DBClusterParameterGroupName = aws.String(d.Get("db_cluster_parameter_group_name").(string))
requestUpdate = true
}
@@ -1134,19 +1135,16 @@ func resourceAwsRDSClusterUpdate(d *schema.ResourceData, meta interface{}) error
}
if d.HasChange("enabled_cloudwatch_logs_exports") {
- d.SetPartial("enabled_cloudwatch_logs_exports")
req.CloudwatchLogsExportConfiguration = buildCloudwatchLogsExportConfiguration(d)
requestUpdate = true
}
if d.HasChange("scaling_configuration") {
- d.SetPartial("scaling_configuration")
req.ScalingConfiguration = expandRdsClusterScalingConfiguration(d.Get("scaling_configuration").([]interface{}), d.Get("engine_mode").(string))
requestUpdate = true
}
if d.HasChange("enable_http_endpoint") {
- d.SetPartial("enable_http_endpoint")
req.EnableHttpEndpoint = aws.Bool(d.Get("enable_http_endpoint").(bool))
requestUpdate = true
}
@@ -1242,8 +1240,6 @@ func resourceAwsRDSClusterUpdate(d *schema.ResourceData, meta interface{}) error
if err := keyvaluetags.RdsUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating tags: %s", err)
- } else {
- d.SetPartial("tags")
}
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_endpoint.go
index 844ca91d958..f5f2c073cd6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_endpoint.go
@@ -114,6 +114,7 @@ func resourceAwsRDSClusterEndpointCreate(d *schema.ResourceData, meta interface{
func resourceAwsRDSClusterEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &rds.DescribeDBClusterEndpointsInput{
DBClusterEndpointIdentifier: aws.String(d.Id()),
@@ -164,7 +165,7 @@ func resourceAwsRDSClusterEndpointRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for RDS Cluster Endpoint (%s): %s", *arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_instance.go
index f3b1fb06788..f8ee14d79c6 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_instance.go
@@ -398,6 +398,8 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{})
// Retrieve DB Cluster information, to determine if this Instance is a writer
conn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
resp, err := conn.DescribeDBClusters(&rds.DescribeDBClustersInput{
DBClusterIdentifier: db.DBClusterIdentifier,
})
@@ -463,7 +465,7 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("error listing tags for RDS Cluster Instance (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -490,17 +492,14 @@ func resourceAwsRDSClusterInstanceUpdate(d *schema.ResourceData, meta interface{
}
if d.HasChange("monitoring_role_arn") {
- d.SetPartial("monitoring_role_arn")
req.MonitoringRoleArn = aws.String(d.Get("monitoring_role_arn").(string))
requestUpdate = true
}
if d.HasChange("performance_insights_enabled") || d.HasChange("performance_insights_kms_key_id") {
- d.SetPartial("performance_insights_enabled")
req.EnablePerformanceInsights = aws.Bool(d.Get("performance_insights_enabled").(bool))
if v, ok := d.GetOk("performance_insights_kms_key_id"); ok {
- d.SetPartial("performance_insights_kms_key_id")
req.PerformanceInsightsKMSKeyId = aws.String(v.(string))
}
@@ -508,49 +507,41 @@ func resourceAwsRDSClusterInstanceUpdate(d *schema.ResourceData, meta interface{
}
if d.HasChange("preferred_backup_window") {
- d.SetPartial("preferred_backup_window")
req.PreferredBackupWindow = aws.String(d.Get("preferred_backup_window").(string))
requestUpdate = true
}
if d.HasChange("preferred_maintenance_window") {
- d.SetPartial("preferred_maintenance_window")
req.PreferredMaintenanceWindow = aws.String(d.Get("preferred_maintenance_window").(string))
requestUpdate = true
}
if d.HasChange("monitoring_interval") {
- d.SetPartial("monitoring_interval")
req.MonitoringInterval = aws.Int64(int64(d.Get("monitoring_interval").(int)))
requestUpdate = true
}
if d.HasChange("auto_minor_version_upgrade") {
- d.SetPartial("auto_minor_version_upgrade")
req.AutoMinorVersionUpgrade = aws.Bool(d.Get("auto_minor_version_upgrade").(bool))
requestUpdate = true
}
if d.HasChange("copy_tags_to_snapshot") {
- d.SetPartial("copy_tags_to_snapshot")
req.CopyTagsToSnapshot = aws.Bool(d.Get("copy_tags_to_snapshot").(bool))
requestUpdate = true
}
if d.HasChange("promotion_tier") {
- d.SetPartial("promotion_tier")
req.PromotionTier = aws.Int64(int64(d.Get("promotion_tier").(int)))
requestUpdate = true
}
if d.HasChange("publicly_accessible") {
- d.SetPartial("publicly_accessible")
req.PubliclyAccessible = aws.Bool(d.Get("publicly_accessible").(bool))
requestUpdate = true
}
if d.HasChange("ca_cert_identifier") {
- d.SetPartial("ca_cert_identifier")
req.CACertificateIdentifier = aws.String(d.Get("ca_cert_identifier").(string))
requestUpdate = true
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_parameter_group.go
index 221cf09c53c..ee38be2dc36 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_cluster_parameter_group.go
@@ -123,6 +123,7 @@ func resourceAwsRDSClusterParameterGroupCreate(d *schema.ResourceData, meta inte
func resourceAwsRDSClusterParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := rds.DescribeDBClusterParameterGroupsInput{
DBClusterParameterGroupName: aws.String(d.Id()),
@@ -172,7 +173,7 @@ func resourceAwsRDSClusterParameterGroupRead(d *schema.ResourceData, meta interf
log.Printf("[DEBUG] Error retrieving tags for ARN: %s", arn)
}
- if err := d.Set("tags", keyvaluetags.RdsKeyValueTags(resp.TagList).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RdsKeyValueTags(resp.TagList).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -182,8 +183,6 @@ func resourceAwsRDSClusterParameterGroupRead(d *schema.ResourceData, meta interf
func resourceAwsRDSClusterParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
rdsconn := meta.(*AWSClient).rdsconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -271,11 +270,8 @@ func resourceAwsRDSClusterParameterGroupUpdate(d *schema.ResourceData, meta inte
if err := keyvaluetags.RdsUpdateTags(rdsconn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating RDS Cluster Parameter Group (%s) tags: %s", d.Id(), err)
}
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsRDSClusterParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_global_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_global_cluster.go
index 92f2117dafe..92d1734d182 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_global_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_rds_global_cluster.go
@@ -45,6 +45,7 @@ func resourceAwsRDSGlobalCluster() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{
"aurora",
"aurora-mysql",
+ "aurora-postgresql",
}, false),
},
"engine_version": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_cluster.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_cluster.go
index 95051bd3f59..5631585f565 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_cluster.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_cluster.go
@@ -520,6 +520,7 @@ func resourceAwsRedshiftClusterCreate(d *schema.ResourceData, meta interface{})
func resourceAwsRedshiftClusterRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[INFO] Reading Redshift Cluster Information: %s", d.Id())
resp, err := conn.DescribeClusters(&redshift.DescribeClustersInput{
@@ -616,7 +617,7 @@ func resourceAwsRedshiftClusterRead(d *schema.ResourceData, meta interface{}) er
d.Set("cluster_public_key", rsc.ClusterPublicKey)
d.Set("cluster_revision_number", rsc.ClusterRevisionNumber)
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(rsc.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(rsc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -641,7 +642,6 @@ func resourceAwsRedshiftClusterRead(d *schema.ResourceData, meta interface{}) er
func resourceAwsRedshiftClusterUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -649,8 +649,6 @@ func resourceAwsRedshiftClusterUpdate(d *schema.ResourceData, meta interface{})
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Cluster (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
requestUpdate := false
@@ -770,8 +768,6 @@ func resourceAwsRedshiftClusterUpdate(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("Error modifying Redshift Cluster IAM Roles (%s): %s", d.Id(), err)
}
-
- d.SetPartial("iam_roles")
}
if requestUpdate || d.HasChange("iam_roles") {
@@ -825,8 +821,6 @@ func resourceAwsRedshiftClusterUpdate(d *schema.ResourceData, meta interface{})
}
}
- d.Partial(false)
-
return resourceAwsRedshiftClusterRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_event_subscription.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_event_subscription.go
index 1b8c8f88427..24e7a9eee10 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_event_subscription.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_event_subscription.go
@@ -108,6 +108,7 @@ func resourceAwsRedshiftEventSubscriptionCreate(d *schema.ResourceData, meta int
func resourceAwsRedshiftEventSubscriptionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
arn := arn.ARN{
Partition: meta.(*AWSClient).partition,
@@ -156,7 +157,7 @@ func resourceAwsRedshiftEventSubscriptionRead(d *schema.ResourceData, meta inter
if err := d.Set("customer_aws_id", sub.CustomerAwsId); err != nil {
return err
}
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(sub.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(sub.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -188,8 +189,6 @@ func resourceAwsRedshiftEventSubscriptionRetrieve(name string, conn *redshift.Re
func resourceAwsRedshiftEventSubscriptionUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
-
req := &redshift.ModifyEventSubscriptionInput{
SubscriptionName: aws.String(d.Id()),
SnsTopicArn: aws.String(d.Get("sns_topic_arn").(string)),
@@ -212,12 +211,8 @@ func resourceAwsRedshiftEventSubscriptionUpdate(d *schema.ResourceData, meta int
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Event Subscription (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_parameter_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_parameter_group.go
index 8f417c9a16a..00637057547 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_parameter_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_parameter_group.go
@@ -115,6 +115,7 @@ func resourceAwsRedshiftParameterGroupCreate(d *schema.ResourceData, meta interf
func resourceAwsRedshiftParameterGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := redshift.DescribeClusterParameterGroupsInput{
ParameterGroupName: aws.String(d.Id()),
@@ -144,7 +145,7 @@ func resourceAwsRedshiftParameterGroupRead(d *schema.ResourceData, meta interfac
d.Set("name", describeResp.ParameterGroups[0].ParameterGroupName)
d.Set("family", describeResp.ParameterGroups[0].ParameterGroupFamily)
d.Set("description", describeResp.ParameterGroups[0].Description)
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(describeResp.ParameterGroups[0].Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(describeResp.ParameterGroups[0].Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -165,8 +166,6 @@ func resourceAwsRedshiftParameterGroupRead(d *schema.ResourceData, meta interfac
func resourceAwsRedshiftParameterGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
-
if d.HasChange("parameter") {
o, n := d.GetChange("parameter")
if o == nil {
@@ -197,7 +196,6 @@ func resourceAwsRedshiftParameterGroupUpdate(d *schema.ResourceData, meta interf
return fmt.Errorf("Error modifying Redshift Parameter Group: %s", err)
}
}
- d.SetPartial("parameter")
}
if d.HasChange("tags") {
@@ -206,11 +204,8 @@ func resourceAwsRedshiftParameterGroupUpdate(d *schema.ResourceData, meta interf
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Parameter Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
return resourceAwsRedshiftParameterGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_copy_grant.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_copy_grant.go
index 56121723e0d..2f6296a6c3a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_copy_grant.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_copy_grant.go
@@ -15,13 +15,14 @@ import (
func resourceAwsRedshiftSnapshotCopyGrant() *schema.Resource {
return &schema.Resource{
- // There is no API for updating/modifying grants, hence no Update
- // Instead changes to most fields will force a new resource
Create: resourceAwsRedshiftSnapshotCopyGrantCreate,
Read: resourceAwsRedshiftSnapshotCopyGrantRead,
Update: resourceAwsRedshiftSnapshotCopyGrantUpdate,
Delete: resourceAwsRedshiftSnapshotCopyGrantDelete,
- Exists: resourceAwsRedshiftSnapshotCopyGrantExists,
+
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
Schema: map[string]*schema.Schema{
"arn": {
@@ -73,26 +74,47 @@ func resourceAwsRedshiftSnapshotCopyGrantCreate(d *schema.ResourceData, meta int
log.Printf("[DEBUG] Created new Redshift SnapshotCopyGrant: %s", *out.SnapshotCopyGrant.SnapshotCopyGrantName)
d.SetId(grantName)
+ err = resource.Retry(3*time.Minute, func() *resource.RetryError {
+ var err error
+ var grant *redshift.SnapshotCopyGrant
+ grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName)
+ if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") || grant == nil {
+ return resource.RetryableError(err)
+ }
+ if err != nil {
+ return resource.NonRetryableError(err)
+ }
+
+ return nil
+ })
+ if isResourceTimeoutError(err) {
+ _, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName)
+ if err != nil {
+ return err
+ }
+ }
+
return resourceAwsRedshiftSnapshotCopyGrantRead(d, meta)
}
func resourceAwsRedshiftSnapshotCopyGrantRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
grantName := d.Id()
log.Printf("[DEBUG] Looking for grant: %s", grantName)
- grant, err := findAwsRedshiftSnapshotCopyGrantWithRetry(conn, grantName)
- if err != nil {
- return err
- }
-
- if grant == nil {
- log.Printf("[WARN] %s Redshift snapshot copy grant not found, removing from state file", grantName)
+ grant, err := findAwsRedshiftSnapshotCopyGrant(conn, grantName)
+ if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") || grant == nil {
+ log.Printf("[WARN] snapshot copy grant (%s) not found, removing from state", grantName)
d.SetId("")
return nil
}
+ if err != nil {
+ return err
+ }
+
arn := arn.ARN{
Partition: meta.(*AWSClient).partition,
Service: "redshift",
@@ -105,7 +127,7 @@ func resourceAwsRedshiftSnapshotCopyGrantRead(d *schema.ResourceData, meta inter
d.Set("kms_key_id", grant.KmsKeyId)
d.Set("snapshot_copy_grant_name", grant.SnapshotCopyGrantName)
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(grant.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(grant.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -115,20 +137,14 @@ func resourceAwsRedshiftSnapshotCopyGrantRead(d *schema.ResourceData, meta inter
func resourceAwsRedshiftSnapshotCopyGrantUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Snapshot Copy Grant (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsRedshiftSnapshotCopyGrantRead(d, meta)
}
@@ -157,91 +173,25 @@ func resourceAwsRedshiftSnapshotCopyGrantDelete(d *schema.ResourceData, meta int
return err
}
-func resourceAwsRedshiftSnapshotCopyGrantExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).redshiftconn
-
- grantName := d.Id()
-
- log.Printf("[DEBUG] Looking for Grant: %s", grantName)
- grant, err := findAwsRedshiftSnapshotCopyGrantWithRetry(conn, grantName)
-
- if err != nil {
- return false, err
- }
- if grant != nil {
- return true, err
- }
-
- return false, nil
-}
-
-func getAwsRedshiftSnapshotCopyGrant(grants []*redshift.SnapshotCopyGrant, grantName string) *redshift.SnapshotCopyGrant {
- for _, grant := range grants {
- if *grant.SnapshotCopyGrantName == grantName {
- return grant
- }
- }
-
- return nil
-}
-
-/*
-In the functions below it is not possible to use retryOnAwsCodes function, as there
-is no get grant call, so an error has to be created if the grant is or isn't returned
-by the describe grants call when expected.
-*/
-
-// NB: This function only retries the grant not being returned and some edge cases, while AWS Errors
-// are handled by the findAwsRedshiftSnapshotCopyGrant function
-func findAwsRedshiftSnapshotCopyGrantWithRetry(conn *redshift.Redshift, grantName string) (*redshift.SnapshotCopyGrant, error) {
- var grant *redshift.SnapshotCopyGrant
- err := resource.Retry(3*time.Minute, func() *resource.RetryError {
- var err error
- grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName, nil)
-
- if err != nil {
- if serr, ok := err.(*resource.NotFoundError); ok {
- // Force a retry if the grant should exist
- return resource.RetryableError(serr)
- }
-
- return resource.NonRetryableError(err)
- }
-
- return nil
- })
- if isResourceTimeoutError(err) {
- grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName, nil)
- }
- if err != nil {
- return nil, fmt.Errorf("Error finding snapshot copy grant: %s", err)
- }
- return grant, nil
-}
-
// Used by the tests as well
func waitForAwsRedshiftSnapshotCopyGrantToBeDeleted(conn *redshift.Redshift, grantName string) error {
- var grant *redshift.SnapshotCopyGrant
err := resource.Retry(3*time.Minute, func() *resource.RetryError {
var err error
- grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName, nil)
- if err != nil {
- if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") {
- return nil
- }
+ var grant *redshift.SnapshotCopyGrant
+ grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName)
+ if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") || grant == nil {
+ return nil
}
-
- if grant != nil {
- // Force a retry if the grant still exists
- return resource.RetryableError(
- fmt.Errorf("[DEBUG] Grant still exists while expected to be deleted: %s", *grant.SnapshotCopyGrantName))
+ if err != nil {
+ return resource.NonRetryableError(err)
}
- return resource.NonRetryableError(err)
+ return resource.RetryableError(fmt.Errorf("[DEBUG] Grant still exists while expected to be deleted: %s", grantName))
})
if isResourceTimeoutError(err) {
- grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName, nil)
- if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") {
+ var grant *redshift.SnapshotCopyGrant
+ grant, err = findAwsRedshiftSnapshotCopyGrant(conn, grantName)
+ if isAWSErr(err, redshift.ErrCodeSnapshotCopyGrantNotFoundFault, "") || grant == nil {
return nil
}
}
@@ -251,20 +201,10 @@ func waitForAwsRedshiftSnapshotCopyGrantToBeDeleted(conn *redshift.Redshift, gra
return nil
}
-// The DescribeSnapshotCopyGrants API defaults to listing only 100 grants
-// Use a marker to iterate over all grants in "pages"
-// NB: This function only retries on AWS Errors
-func findAwsRedshiftSnapshotCopyGrant(conn *redshift.Redshift, grantName string, marker *string) (*redshift.SnapshotCopyGrant, error) {
+func findAwsRedshiftSnapshotCopyGrant(conn *redshift.Redshift, grantName string) (*redshift.SnapshotCopyGrant, error) {
input := redshift.DescribeSnapshotCopyGrantsInput{
- MaxRecords: aws.Int64(int64(100)),
- }
-
- // marker and grant name are mutually exclusive
- if marker != nil {
- input.Marker = marker
- } else {
- input.SnapshotCopyGrantName = aws.String(grantName)
+ SnapshotCopyGrantName: aws.String(grantName),
}
out, err := conn.DescribeSnapshotCopyGrants(&input)
@@ -273,16 +213,9 @@ func findAwsRedshiftSnapshotCopyGrant(conn *redshift.Redshift, grantName string,
return nil, err
}
- grant := getAwsRedshiftSnapshotCopyGrant(out.SnapshotCopyGrants, grantName)
- if grant != nil {
- return grant, nil
- } else if out.Marker != nil {
- log.Printf("[DEBUG] Snapshot copy grant not found but marker returned, getting next page via marker: %s", aws.StringValue(out.Marker))
- return findAwsRedshiftSnapshotCopyGrant(conn, grantName, out.Marker)
+ if out == nil || len(out.SnapshotCopyGrants) == 0 {
+ return nil, nil
}
- return nil, &resource.NotFoundError{
- Message: fmt.Sprintf("[DEBUG] Grant %s not found", grantName),
- LastRequest: input,
- }
+ return out.SnapshotCopyGrants[0], nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_schedule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_schedule.go
index 05e83931209..97aaad450bc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_schedule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_snapshot_schedule.go
@@ -97,6 +97,7 @@ func resourceAwsRedshiftSnapshotScheduleCreate(d *schema.ResourceData, meta inte
func resourceAwsRedshiftSnapshotScheduleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
descOpts := &redshift.DescribeSnapshotSchedulesInput{
ScheduleIdentifier: aws.String(d.Id()),
@@ -120,7 +121,7 @@ func resourceAwsRedshiftSnapshotScheduleRead(d *schema.ResourceData, meta interf
return fmt.Errorf("Error setting definitions: %s", err)
}
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(snapshotSchedule.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(snapshotSchedule.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -139,7 +140,6 @@ func resourceAwsRedshiftSnapshotScheduleRead(d *schema.ResourceData, meta interf
func resourceAwsRedshiftSnapshotScheduleUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -147,8 +147,6 @@ func resourceAwsRedshiftSnapshotScheduleUpdate(d *schema.ResourceData, meta inte
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Snapshot Schedule (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("definitions") {
@@ -165,7 +163,6 @@ func resourceAwsRedshiftSnapshotScheduleUpdate(d *schema.ResourceData, meta inte
if err != nil {
return fmt.Errorf("Error modifying Redshift Snapshot Schedule %s: %s", d.Id(), err)
}
- d.SetPartial("definitions")
}
return resourceAwsRedshiftSnapshotScheduleRead(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_subnet_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_subnet_group.go
index bb51c7d9816..91b59ef199b 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_subnet_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_redshift_subnet_group.go
@@ -83,6 +83,7 @@ func resourceAwsRedshiftSubnetGroupCreate(d *schema.ResourceData, meta interface
func resourceAwsRedshiftSubnetGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeOpts := redshift.DescribeClusterSubnetGroupsInput{
ClusterSubnetGroupName: aws.String(d.Id()),
@@ -105,7 +106,7 @@ func resourceAwsRedshiftSubnetGroupRead(d *schema.ResourceData, meta interface{}
d.Set("name", d.Id())
d.Set("description", describeResp.ClusterSubnetGroups[0].Description)
d.Set("subnet_ids", subnetIdsToSlice(describeResp.ClusterSubnetGroups[0].Subnets))
- if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(describeResp.ClusterSubnetGroups[0].Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.RedshiftKeyValueTags(describeResp.ClusterSubnetGroups[0].Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -124,7 +125,6 @@ func resourceAwsRedshiftSubnetGroupRead(d *schema.ResourceData, meta interface{}
func resourceAwsRedshiftSubnetGroupUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).redshiftconn
- d.Partial(true)
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -132,8 +132,6 @@ func resourceAwsRedshiftSubnetGroupUpdate(d *schema.ResourceData, meta interface
if err := keyvaluetags.RedshiftUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Redshift Subnet Group (%s) tags: %s", d.Get("arn").(string), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("subnet_ids") || d.HasChange("description") {
@@ -159,8 +157,6 @@ func resourceAwsRedshiftSubnetGroupUpdate(d *schema.ResourceData, meta interface
}
}
- d.Partial(false)
-
return resourceAwsRedshiftSubnetGroupRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_resourcegroups_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_resourcegroups_group.go
index 30ce602419e..f5da289eb1e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_resourcegroups_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_resourcegroups_group.go
@@ -98,6 +98,7 @@ func resourceAwsResourceGroupsGroupCreate(d *schema.ResourceData, meta interface
func resourceAwsResourceGroupsGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).resourcegroupsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
g, err := conn.GetGroup(&resourcegroups.GetGroupInput{
GroupName: aws.String(d.Id()),
@@ -137,7 +138,7 @@ func resourceAwsResourceGroupsGroupRead(d *schema.ResourceData, meta interface{}
if err != nil {
return fmt.Errorf("error listing tags for resource (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route.go
index 891c5c2e5c2..c4cb8ac4369 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route.go
@@ -8,11 +8,11 @@ import (
"time"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)
// How long to sleep if a limit-exceeded event happens
@@ -27,7 +27,6 @@ func resourceAwsRoute() *schema.Resource {
Read: resourceAwsRouteRead,
Update: resourceAwsRouteUpdate,
Delete: resourceAwsRouteDelete,
- Exists: resourceAwsRouteExists,
Importer: &schema.ResourceImporter{
State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
idParts := strings.Split(d.Id(), "_")
@@ -54,14 +53,19 @@ func resourceAwsRoute() *schema.Resource {
Schema: map[string]*schema.Schema{
"destination_cidr_block": {
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validation.IsCIDR,
},
"destination_ipv6_cidr_block": {
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validation.IsCIDR,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ return isIpv6CidrsEquals(old, new)
+ },
},
"destination_prefix_list_id": {
@@ -281,6 +285,10 @@ func resourceAwsRouteCreate(d *schema.ResourceData, meta interface{}) error {
if v, ok := d.GetOk("destination_cidr_block"); ok {
err = resource.Retry(d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {
route, err = resourceAwsRouteFindRoute(conn, d.Get("route_table_id").(string), v.(string), "")
+ if err == nil && route != nil {
+ return nil
+ }
+
return resource.RetryableError(err)
})
if isResourceTimeoutError(err) {
@@ -289,11 +297,18 @@ func resourceAwsRouteCreate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Error finding route after creating it: %s", err)
}
+ if route == nil {
+ return fmt.Errorf("Unable to find matching route for Route Table (%s) and destination CIDR block (%s).", d.Get("route_table_id").(string), v)
+ }
}
if v, ok := d.GetOk("destination_ipv6_cidr_block"); ok {
err = resource.Retry(d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {
route, err = resourceAwsRouteFindRoute(conn, d.Get("route_table_id").(string), "", v.(string))
+ if err == nil && route != nil {
+ return nil
+ }
+
return resource.RetryableError(err)
})
if isResourceTimeoutError(err) {
@@ -302,10 +317,14 @@ func resourceAwsRouteCreate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("Error finding route after creating it: %s", err)
}
+ if route == nil {
+ return fmt.Errorf("Unable to find matching route for Route Table (%s) and destination IPv6 CIDR block (%s).", d.Get("route_table_id").(string), v)
+ }
}
d.SetId(resourceAwsRouteID(d, route))
resourceAwsRouteSetResourceData(d, route)
+
return nil
}
@@ -317,16 +336,23 @@ func resourceAwsRouteRead(d *schema.ResourceData, meta interface{}) error {
destinationIpv6CidrBlock := d.Get("destination_ipv6_cidr_block").(string)
route, err := resourceAwsRouteFindRoute(conn, routeTableId, destinationCidrBlock, destinationIpv6CidrBlock)
+ if isAWSErr(err, "InvalidRouteTableID.NotFound", "") {
+ log.Printf("[WARN] Route Table (%s) not found, removing from state", routeTableId)
+ d.SetId("")
+ return nil
+ }
if err != nil {
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidRouteTableID.NotFound" {
- log.Printf("[WARN] Route Table %q could not be found. Removing Route from state.",
- routeTableId)
- d.SetId("")
- return nil
- }
return err
}
+
+ if route == nil {
+ log.Printf("[WARN] Matching route not found, removing from state")
+ d.SetId("")
+ return nil
+ }
+
resourceAwsRouteSetResourceData(d, route)
+
return nil
}
@@ -449,17 +475,18 @@ func resourceAwsRouteDelete(d *schema.ResourceData, meta interface{}) error {
}
log.Printf("[DEBUG] Route delete opts: %s", deleteOpts)
- var resp *ec2.DeleteRouteOutput
err := resource.Retry(d.Timeout(schema.TimeoutDelete), func() *resource.RetryError {
log.Printf("[DEBUG] Trying to delete route with opts %s", deleteOpts)
var err error
- resp, err = conn.DeleteRoute(deleteOpts)
- log.Printf("[DEBUG] Route delete result: %s", resp)
-
+ _, err = conn.DeleteRoute(deleteOpts)
if err == nil {
return nil
}
+ if isAWSErr(err, "InvalidRoute.NotFound", "") {
+ return nil
+ }
+
if isAWSErr(err, "InvalidParameterException", "") {
return resource.RetryableError(err)
}
@@ -467,7 +494,10 @@ func resourceAwsRouteDelete(d *schema.ResourceData, meta interface{}) error {
return resource.NonRetryableError(err)
})
if isResourceTimeoutError(err) {
- resp, err = conn.DeleteRoute(deleteOpts)
+ _, err = conn.DeleteRoute(deleteOpts)
+ }
+ if isAWSErr(err, "InvalidRoute.NotFound", "") {
+ return nil
}
if err != nil {
return fmt.Errorf("Error deleting route: %s", err)
@@ -475,48 +505,6 @@ func resourceAwsRouteDelete(d *schema.ResourceData, meta interface{}) error {
return nil
}
-func resourceAwsRouteExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).ec2conn
- routeTableId := d.Get("route_table_id").(string)
-
- findOpts := &ec2.DescribeRouteTablesInput{
- RouteTableIds: []*string{&routeTableId},
- }
-
- res, err := conn.DescribeRouteTables(findOpts)
- if err != nil {
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidRouteTableID.NotFound" {
- log.Printf("[WARN] Route Table %q could not be found.", routeTableId)
- return false, nil
- }
- return false, fmt.Errorf("Error while checking if route exists: %s", err)
- }
-
- if len(res.RouteTables) < 1 || res.RouteTables[0] == nil {
- log.Printf("[WARN] Route Table %q is gone, or route does not exist.",
- routeTableId)
- return false, nil
- }
-
- if v, ok := d.GetOk("destination_cidr_block"); ok {
- for _, route := range (*res.RouteTables[0]).Routes {
- if route.DestinationCidrBlock != nil && *route.DestinationCidrBlock == v.(string) {
- return true, nil
- }
- }
- }
-
- if v, ok := d.GetOk("destination_ipv6_cidr_block"); ok {
- for _, route := range (*res.RouteTables[0]).Routes {
- if route.DestinationIpv6CidrBlock != nil && *route.DestinationIpv6CidrBlock == v.(string) {
- return true, nil
- }
- }
- }
-
- return false, nil
-}
-
// Helper: Create an ID for a route
func resourceAwsRouteID(d *schema.ResourceData, r *ec2.Route) string {
@@ -527,7 +515,8 @@ func resourceAwsRouteID(d *schema.ResourceData, r *ec2.Route) string {
return fmt.Sprintf("r-%s%d", d.Get("route_table_id").(string), hashcode.String(*r.DestinationCidrBlock))
}
-// Helper: retrieve a route
+// resourceAwsRouteFindRoute returns any route whose destination is the specified IPv4 or IPv6 CIDR block.
+// Returns nil if the route table exists but no matching destination is found.
func resourceAwsRouteFindRoute(conn *ec2.EC2, rtbid string, cidr string, ipv6cidr string) (*ec2.Route, error) {
routeTableID := rtbid
@@ -541,8 +530,7 @@ func resourceAwsRouteFindRoute(conn *ec2.EC2, rtbid string, cidr string, ipv6cid
}
if len(resp.RouteTables) < 1 || resp.RouteTables[0] == nil {
- return nil, fmt.Errorf("Route Table %q is gone, or route does not exist.",
- routeTableID)
+ return nil, nil
}
if cidr != "" {
@@ -552,22 +540,18 @@ func resourceAwsRouteFindRoute(conn *ec2.EC2, rtbid string, cidr string, ipv6cid
}
}
- return nil, fmt.Errorf("Unable to find matching route for Route Table (%s) "+
- "and destination CIDR block (%s).", rtbid, cidr)
+ return nil, nil
}
if ipv6cidr != "" {
for _, route := range (*resp.RouteTables[0]).Routes {
- if route.DestinationIpv6CidrBlock != nil && *route.DestinationIpv6CidrBlock == ipv6cidr {
+ if route.DestinationIpv6CidrBlock != nil && isIpv6CidrsEquals(aws.StringValue(route.DestinationIpv6CidrBlock), ipv6cidr) {
return route, nil
}
}
- return nil, fmt.Errorf("Unable to find matching route for Route Table (%s) "+
- "and destination IPv6 CIDR block (%s).", rtbid, ipv6cidr)
+ return nil, nil
}
- return nil, fmt.Errorf("When trying to find a matching route for Route Table %q "+
- "you need to specify a CIDR block of IPv6 CIDR Block", rtbid)
-
+ return nil, nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_health_check.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_health_check.go
index 3cf19ab7aaf..e3ed4e8aedd 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_health_check.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_health_check.go
@@ -3,6 +3,7 @@ package aws
import (
"fmt"
"log"
+ "net"
"strings"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
@@ -57,6 +58,9 @@ func resourceAwsRoute53HealthCheck() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
+ DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
+ return net.ParseIP(old).Equal(net.ParseIP(new))
+ },
},
"fqdn": {
Type: schema.TypeString,
@@ -114,11 +118,22 @@ func resourceAwsRoute53HealthCheck() *schema.Resource {
"insufficient_data_health_status": {
Type: schema.TypeString,
Optional: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ route53.InsufficientDataHealthStatusHealthy,
+ route53.InsufficientDataHealthStatusLastKnownStatus,
+ route53.InsufficientDataHealthStatusUnhealthy,
+ }, true),
},
"reference_name": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
+ // The max length of the reference name is 64 characters for the API.
+ // Terraform appends a 37-character unique ID to the provided
+ // reference_name. This limits the length of the resource argument to 27.
+ //
+ // Example generated suffix: -terraform-20190122200019880700000001
+ ValidateFunc: validation.StringLenBetween(0, (64 - resource.UniqueIDSuffixLength - 11)),
},
"enable_sni": {
Type: schema.TypeBool,
@@ -322,6 +337,7 @@ func resourceAwsRoute53HealthCheckCreate(d *schema.ResourceData, meta interface{
func resourceAwsRoute53HealthCheckRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).r53conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
read, err := conn.GetHealthCheck(&route53.GetHealthCheckInput{HealthCheckId: aws.String(d.Id())})
if err != nil {
@@ -370,7 +386,7 @@ func resourceAwsRoute53HealthCheckRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Route53 Health Check (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_endpoint.go
index 964debf93b4..95d6a86e5a8 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_endpoint.go
@@ -139,6 +139,7 @@ func resourceAwsRoute53ResolverEndpointCreate(d *schema.ResourceData, meta inter
func resourceAwsRoute53ResolverEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).route53resolverconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
epRaw, state, err := route53ResolverEndpointRefresh(conn, d.Id())()
if err != nil {
@@ -186,7 +187,7 @@ func resourceAwsRoute53ResolverEndpointRead(d *schema.ResourceData, meta interfa
return fmt.Errorf("error listing tags for Route53 Resolver endpoint (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -196,7 +197,6 @@ func resourceAwsRoute53ResolverEndpointRead(d *schema.ResourceData, meta interfa
func resourceAwsRoute53ResolverEndpointUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).route53resolverconn
- d.Partial(true)
if d.HasChange("name") {
req := &route53resolver.UpdateResolverEndpointInput{
ResolverEndpointId: aws.String(d.Id()),
@@ -215,8 +215,6 @@ func resourceAwsRoute53ResolverEndpointUpdate(d *schema.ResourceData, meta inter
if err != nil {
return err
}
-
- d.SetPartial("name")
}
if d.HasChange("ip_address") {
@@ -260,8 +258,6 @@ func resourceAwsRoute53ResolverEndpointUpdate(d *schema.ResourceData, meta inter
return err
}
}
-
- d.SetPartial("ip_address")
}
if d.HasChange("tags") {
@@ -269,10 +265,8 @@ func resourceAwsRoute53ResolverEndpointUpdate(d *schema.ResourceData, meta inter
if err := keyvaluetags.Route53resolverUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Route53 Resolver endpoint (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
- d.Partial(false)
return resourceAwsRoute53ResolverEndpointRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_rule.go
index ca185e04851..0627220c3de 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_resolver_rule.go
@@ -149,6 +149,7 @@ func resourceAwsRoute53ResolverRuleCreate(d *schema.ResourceData, meta interface
func resourceAwsRoute53ResolverRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).route53resolverconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
ruleRaw, state, err := route53ResolverRuleRefresh(conn, d.Id())()
if err != nil {
@@ -178,7 +179,7 @@ func resourceAwsRoute53ResolverRuleRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags for Route53 Resolver rule (%s): %s", d.Get("arn").(string), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -188,7 +189,6 @@ func resourceAwsRoute53ResolverRuleRead(d *schema.ResourceData, meta interface{}
func resourceAwsRoute53ResolverRuleUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).route53resolverconn
- d.Partial(true)
if d.HasChange("name") || d.HasChange("resolver_endpoint_id") || d.HasChange("target_ip") {
req := &route53resolver.UpdateResolverRuleInput{
ResolverRuleId: aws.String(d.Id()),
@@ -216,10 +216,6 @@ func resourceAwsRoute53ResolverRuleUpdate(d *schema.ResourceData, meta interface
if err != nil {
return err
}
-
- d.SetPartial("name")
- d.SetPartial("resolver_endpoint_id")
- d.SetPartial("target_ip")
}
if d.HasChange("tags") {
@@ -227,10 +223,8 @@ func resourceAwsRoute53ResolverRuleUpdate(d *schema.ResourceData, meta interface
if err := keyvaluetags.Route53resolverUpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("error updating Route53 Resolver rule (%s) tags: %s", d.Get("arn").(string), err)
}
- d.SetPartial("tags")
}
- d.Partial(false)
return resourceAwsRoute53ResolverRuleRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_zone.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_zone.go
index 83ab57f67eb..e12c609f489 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_zone.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route53_zone.go
@@ -142,8 +142,10 @@ func resourceAwsRoute53ZoneCreate(d *schema.ResourceData, meta interface{}) erro
d.SetId(cleanZoneID(aws.StringValue(output.HostedZone.Id)))
- if err := route53WaitForChangeSynchronization(conn, cleanChangeID(aws.StringValue(output.ChangeInfo.Id))); err != nil {
- return fmt.Errorf("error waiting for Route53 Hosted Zone (%s) creation: %s", d.Id(), err)
+ if output.ChangeInfo != nil {
+ if err := route53WaitForChangeSynchronization(conn, cleanChangeID(aws.StringValue(output.ChangeInfo.Id))); err != nil {
+ return fmt.Errorf("error waiting for Route53 Hosted Zone (%s) creation: %s", d.Id(), err)
+ }
}
if err := keyvaluetags.Route53UpdateTags(conn, d.Id(), route53.TagResourceTypeHostedzone, map[string]interface{}{}, d.Get("tags").(map[string]interface{})); err != nil {
@@ -166,6 +168,7 @@ func resourceAwsRoute53ZoneCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).r53conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &route53.GetHostedZoneInput{
Id: aws.String(d.Id()),
@@ -231,7 +234,7 @@ func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for Route53 Hosted Zone (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -242,8 +245,6 @@ func resourceAwsRoute53ZoneUpdate(d *schema.ResourceData, meta interface{}) erro
conn := meta.(*AWSClient).r53conn
region := meta.(*AWSClient).region
- d.Partial(true)
-
if d.HasChange("comment") {
input := route53.UpdateHostedZoneCommentInput{
Id: aws.String(d.Id()),
@@ -255,8 +256,6 @@ func resourceAwsRoute53ZoneUpdate(d *schema.ResourceData, meta interface{}) erro
if err != nil {
return fmt.Errorf("error updating Route53 Hosted Zone (%s) comment: %s", d.Id(), err)
}
-
- d.SetPartial("comment")
}
if d.HasChange("tags") {
@@ -298,12 +297,8 @@ func resourceAwsRoute53ZoneUpdate(d *schema.ResourceData, meta interface{}) erro
return err
}
}
-
- d.SetPartial("vpc")
}
- d.Partial(false)
-
return resourceAwsRoute53ZoneRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route_table.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route_table.go
index ecbf03b29ce..9ec855178cc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route_table.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route_table.go
@@ -7,11 +7,11 @@ import (
"time"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
@@ -50,13 +50,15 @@ func resourceAwsRouteTable() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"cidr_block": {
- Type: schema.TypeString,
- Optional: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.IsCIDR,
},
"ipv6_cidr_block": {
- Type: schema.TypeString,
- Optional: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ValidateFunc: validation.IsCIDR,
},
"egress_only_gateway_id": {
@@ -142,11 +144,18 @@ func resourceAwsRouteTableCreate(d *schema.ResourceData, meta interface{}) error
d.Id(), err)
}
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
+ }
+
return resourceAwsRouteTableUpdate(d, meta)
}
func resourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
rtRaw, _, err := resourceAwsRouteTableStateRefreshFunc(conn, d.Id())()
if err != nil {
@@ -175,7 +184,7 @@ func resourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
continue
}
- if r.Origin != nil && *r.Origin == "EnableVgwRoutePropagation" {
+ if r.Origin != nil && *r.Origin == ec2.RouteOriginEnableVgwRoutePropagation {
continue
}
@@ -219,7 +228,7 @@ func resourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("route", route)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(rt.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(rt.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -277,8 +286,7 @@ func resourceAwsRouteTableUpdate(d *schema.ResourceData, meta interface{}) error
// If we get a Gateway.NotAttached, it is usually some
// eventually consistency stuff. So we have to just wait a
// bit...
- ec2err, ok := err.(awserr.Error)
- if ok && ec2err.Code() == "Gateway.NotAttached" {
+ if isAWSErr(err, "Gateway.NotAttached", "") {
time.Sleep(20 * time.Second)
continue
}
@@ -405,7 +413,7 @@ func resourceAwsRouteTableUpdate(d *schema.ResourceData, meta interface{}) error
}
}
- if d.HasChange("tags") {
+ if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
@@ -440,7 +448,7 @@ func resourceAwsRouteTableDelete(d *schema.ResourceData, meta interface{}) error
// First check if the association ID is not found. If this
// is the case, then it was already disassociated somehow,
// and that is okay.
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidAssociationID.NotFound" {
+ if isAWSErr(err, "InvalidAssociationID.NotFound", "") {
err = nil
}
}
@@ -455,8 +463,7 @@ func resourceAwsRouteTableDelete(d *schema.ResourceData, meta interface{}) error
RouteTableId: aws.String(d.Id()),
})
if err != nil {
- ec2err, ok := err.(awserr.Error)
- if ok && ec2err.Code() == "InvalidRouteTableID.NotFound" {
+ if isAWSErr(err, "InvalidRouteTableID.NotFound", "") {
return nil
}
@@ -541,7 +548,7 @@ func resourceAwsRouteTableStateRefreshFunc(conn *ec2.EC2, id string) resource.St
RouteTableIds: []*string{aws.String(id)},
})
if err != nil {
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidRouteTableID.NotFound" {
+ if isAWSErr(err, "InvalidRouteTableID.NotFound", "") {
resp = nil
} else {
log.Printf("Error on RouteTableStateRefresh: %s", err)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go
index 11b8bf09623..8d95bb5dd55 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go
@@ -121,7 +121,7 @@ func resourceAwsS3Bucket() *schema.Resource {
"policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
@@ -187,7 +187,7 @@ func resourceAwsS3Bucket() *schema.Resource {
"routing_rules": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
@@ -823,6 +823,7 @@ func resourceAwsS3BucketUpdate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsS3BucketRead(d *schema.ResourceData, meta interface{}) error {
s3conn := meta.(*AWSClient).s3conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &s3.HeadBucketInput{
Bucket: aws.String(d.Id()),
@@ -1340,7 +1341,7 @@ func resourceAwsS3BucketRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for S3 Bucket (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.(keyvaluetags.KeyValueTags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.(keyvaluetags.KeyValueTags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -2482,7 +2483,12 @@ func validateS3BucketName(value string, region string) error {
func grantHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
+
if v, ok := m["id"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
}
@@ -2500,7 +2506,12 @@ func grantHash(v interface{}) int {
func expirationHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
+
if v, ok := m["date"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
}
@@ -2515,7 +2526,12 @@ func expirationHash(v interface{}) int {
func transitionHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
+
if v, ok := m["date"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
}
@@ -2530,7 +2546,11 @@ func transitionHash(v interface{}) int {
func rulesHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
if v, ok := m["id"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
@@ -2558,7 +2578,12 @@ func rulesHash(v interface{}) int {
func replicationRuleFilterHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
+
if v, ok := m["prefix"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
}
@@ -2570,7 +2595,11 @@ func replicationRuleFilterHash(v interface{}) int {
func destinationHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
if v, ok := m["bucket"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
@@ -2591,12 +2620,12 @@ func destinationHash(v interface{}) int {
}
func accessControlTranslationHash(v interface{}) int {
- // v is nil if empty access_control_translation is given.
- if v == nil {
+ var buf bytes.Buffer
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
return 0
}
- var buf bytes.Buffer
- m := v.(map[string]interface{})
if v, ok := m["owner"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
@@ -2605,12 +2634,12 @@ func accessControlTranslationHash(v interface{}) int {
}
func sourceSelectionCriteriaHash(v interface{}) int {
- // v is nil if empty source_selection_criteria is given.
- if v == nil {
+ var buf bytes.Buffer
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
return 0
}
- var buf bytes.Buffer
- m := v.(map[string]interface{})
if v, ok := m["sse_kms_encrypted_objects"].(*schema.Set); ok && v.Len() > 0 {
buf.WriteString(fmt.Sprintf("%d-", sourceSseKmsObjectsHash(v.List()[0])))
@@ -2620,7 +2649,11 @@ func sourceSelectionCriteriaHash(v interface{}) int {
func sourceSseKmsObjectsHash(v interface{}) int {
var buf bytes.Buffer
- m := v.(map[string]interface{})
+ m, ok := v.(map[string]interface{})
+
+ if !ok {
+ return 0
+ }
if v, ok := m["enabled"]; ok {
buf.WriteString(fmt.Sprintf("%t-", v.(bool)))
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_object.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_object.go
index 9b8ba0e7dc7..fadd327d328 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_object.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_object.go
@@ -315,6 +315,7 @@ func resourceAwsS3BucketObjectCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) error {
s3conn := meta.(*AWSClient).s3conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
bucket := d.Get("bucket").(string)
key := d.Get("key").(string)
@@ -394,7 +395,7 @@ func resourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error listing tags for S3 Bucket (%s) Object (%s): %s", bucket, key, err)
}
- if err := d.Set("tags", tags.(keyvaluetags.KeyValueTags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.(keyvaluetags.KeyValueTags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_policy.go
index bc651406f3d..89e7bd9dfe4 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket_policy.go
@@ -33,7 +33,7 @@ func resourceAwsS3BucketPolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint.go
index b48c215a47b..26e8f5ce751 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint.go
@@ -86,6 +86,7 @@ func resourceAwsSagemakerEndpointCreate(d *schema.ResourceData, meta interface{}
func resourceAwsSagemakerEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeInput := &sagemaker.DescribeEndpointInput{
EndpointName: aws.String(d.Id()),
@@ -122,7 +123,7 @@ func resourceAwsSagemakerEndpointRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Sagemaker Endpoint (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -132,8 +133,6 @@ func resourceAwsSagemakerEndpointRead(d *schema.ResourceData, meta interface{})
func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -141,7 +140,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error updating Sagemaker Endpoint (%s) tags: %s", d.Id(), err)
}
}
- d.SetPartial("tags")
if d.HasChange("endpoint_config_name") {
modifyOpts := &sagemaker.UpdateEndpointInput{
@@ -153,7 +151,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{}
if _, err := conn.UpdateEndpoint(modifyOpts); err != nil {
return fmt.Errorf("error updating SageMaker Endpoint (%s): %s", d.Id(), err)
}
- d.SetPartial("endpoint_config_name")
describeInput := &sagemaker.DescribeEndpointInput{
EndpointName: aws.String(d.Id()),
@@ -165,8 +162,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{}
}
}
- d.Partial(false)
-
return resourceAwsSagemakerEndpointRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint_configuration.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint_configuration.go
index 0d5b6668248..d42d83b791d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint_configuration.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_endpoint_configuration.go
@@ -131,6 +131,7 @@ func resourceAwsSagemakerEndpointConfigurationCreate(d *schema.ResourceData, met
func resourceAwsSagemakerEndpointConfigurationRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &sagemaker.DescribeEndpointConfigInput{
EndpointConfigName: aws.String(d.Id()),
@@ -164,7 +165,7 @@ func resourceAwsSagemakerEndpointConfigurationRead(d *schema.ResourceData, meta
return fmt.Errorf("error listing tags for Sagemaker Endpoint Configuration (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_model.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_model.go
index ba977fa3aa2..7edd9ad9a91 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_model.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_model.go
@@ -216,6 +216,7 @@ func expandSageMakerVpcConfigRequest(l []interface{}) *sagemaker.VpcConfig {
func resourceAwsSagemakerModelRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
request := &sagemaker.DescribeModelInput{
ModelName: aws.String(d.Id()),
@@ -258,7 +259,7 @@ func resourceAwsSagemakerModelRead(d *schema.ResourceData, meta interface{}) err
return fmt.Errorf("error listing tags for Sagemaker Model (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -281,8 +282,6 @@ func flattenSageMakerVpcConfigResponse(vpcConfig *sagemaker.VpcConfig) []map[str
func resourceAwsSagemakerModelUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -291,8 +290,6 @@ func resourceAwsSagemakerModelUpdate(d *schema.ResourceData, meta interface{}) e
}
}
- d.Partial(false)
-
return resourceAwsSagemakerModelRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_notebook_instance.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_notebook_instance.go
index 5ce1d792a64..41219975cea 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_notebook_instance.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sagemaker_notebook_instance.go
@@ -151,6 +151,7 @@ func resourceAwsSagemakerNotebookInstanceCreate(d *schema.ResourceData, meta int
func resourceAwsSagemakerNotebookInstanceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
describeNotebookInput := &sagemaker.DescribeNotebookInstanceInput{
NotebookInstanceName: aws.String(d.Id()),
@@ -204,7 +205,7 @@ func resourceAwsSagemakerNotebookInstanceRead(d *schema.ResourceData, meta inter
return fmt.Errorf("error listing tags for Sagemaker Notebook Instance (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -214,8 +215,6 @@ func resourceAwsSagemakerNotebookInstanceRead(d *schema.ResourceData, meta inter
func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sagemakerconn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
@@ -223,7 +222,6 @@ func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta int
return fmt.Errorf("error updating Sagemaker Notebook Instance (%s) tags: %s", d.Id(), err)
}
}
- d.SetPartial("tags")
hasChanged := false
// Update
@@ -325,8 +323,6 @@ func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta int
}
}
- d.Partial(false)
-
return resourceAwsSagemakerNotebookInstanceRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_secretsmanager_secret.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_secretsmanager_secret.go
index 7395059f16e..90c3dca11ea 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_secretsmanager_secret.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_secretsmanager_secret.go
@@ -56,7 +56,7 @@ func resourceAwsSecretsManagerSecret() *schema.Resource {
"policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
"recovery_window_in_days": {
@@ -198,6 +198,7 @@ func resourceAwsSecretsManagerSecretCreate(d *schema.ResourceData, meta interfac
func resourceAwsSecretsManagerSecretRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).secretsmanagerconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &secretsmanager.DescribeSecretInput{
SecretId: aws.String(d.Id()),
@@ -248,7 +249,7 @@ func resourceAwsSecretsManagerSecretRead(d *schema.ResourceData, meta interface{
d.Set("rotation_rules", []interface{}{})
}
- if err := d.Set("tags", keyvaluetags.SecretsmanagerKeyValueTags(output.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.SecretsmanagerKeyValueTags(output.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group.go
index 17ebc66565f..60bcfa41a90 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group.go
@@ -270,7 +270,7 @@ func resourceAwsSecurityGroupCreate(d *schema.ResourceData, meta interface{}) er
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 Security Group (%s) tags: %s", d.Id(), err)
}
}
@@ -338,6 +338,7 @@ func resourceAwsSecurityGroupCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsSecurityGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
var sgRaw interface{}
var err error
@@ -392,7 +393,7 @@ func resourceAwsSecurityGroupRead(d *schema.ResourceData, meta interface{}) erro
log.Printf("[WARN] Error setting Egress rule set for (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(sg.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(sg.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_http_namespace.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_http_namespace.go
index c83dcdb0398..29b0e6f4bea 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_http_namespace.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_http_namespace.go
@@ -2,12 +2,12 @@ package aws
import (
"fmt"
- "time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/servicediscovery"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter"
)
func resourceAwsServiceDiscoveryHttpNamespace() *schema.Resource {
@@ -54,24 +54,34 @@ func resourceAwsServiceDiscoveryHttpNamespaceCreate(d *schema.ResourceData, meta
input.Description = aws.String(v.(string))
}
- resp, err := conn.CreateHttpNamespace(input)
+ output, err := conn.CreateHttpNamespace(input)
+
if err != nil {
- return fmt.Errorf("error creating Service Discovery HTTP Namespace (%s): %s", name, err)
+ return fmt.Errorf("error creating Service Discovery HTTP Namespace (%s): %w", name, err)
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if output == nil || output.OperationId == nil {
+ return fmt.Errorf("error creating Service Discovery HTTP Namespace (%s): creation response missing Operation ID", name)
}
- opresp, err := stateConf.WaitForState()
+ operationOutput, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId))
+
if err != nil {
- return fmt.Errorf("error waiting for Service Discovery HTTP Namespace (%s) creation: %s", name, err)
+ return fmt.Errorf("error waiting for Service Discovery HTTP Namespace (%s) creation: %w", name, err)
}
- d.SetId(*opresp.(*servicediscovery.GetOperationOutput).Operation.Targets["NAMESPACE"])
+ if operationOutput == nil || operationOutput.Operation == nil {
+ return fmt.Errorf("error creating Service Discovery HTTP Namespace (%s): operation response missing Operation information", name)
+ }
+
+ namespaceID, ok := operationOutput.Operation.Targets[servicediscovery.OperationTargetTypeNamespace]
+
+ if !ok {
+ return fmt.Errorf("error creating Service Discovery HTTP Namespace (%s): operation response missing Namespace ID", name)
+ }
+
+ d.SetId(aws.StringValue(namespaceID))
+
return resourceAwsServiceDiscoveryHttpNamespaceRead(d, meta)
}
@@ -105,25 +115,20 @@ func resourceAwsServiceDiscoveryHttpNamespaceDelete(d *schema.ResourceData, meta
Id: aws.String(d.Id()),
}
- resp, err := conn.DeleteNamespace(input)
- if err != nil {
- if isAWSErr(err, servicediscovery.ErrCodeNamespaceNotFound, "") {
- d.SetId("")
- return nil
- }
- return fmt.Errorf("error deleting Service Discovery HTTP Namespace (%s): %s", d.Id(), err)
- }
+ output, err := conn.DeleteNamespace(input)
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if isAWSErr(err, servicediscovery.ErrCodeNamespaceNotFound, "") {
+ return nil
}
- _, err = stateConf.WaitForState()
if err != nil {
- return fmt.Errorf("error waiting for Service Discovery HTTP Namespace (%s) deletion: %s", d.Id(), err)
+ return fmt.Errorf("error deleting Service Discovery HTTP Namespace (%s): %w", d.Id(), err)
+ }
+
+ if output != nil && output.OperationId != nil {
+ if _, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId)); err != nil {
+ return fmt.Errorf("error waiting for Service Discovery HTTP Namespace (%s) deletion: %w", d.Id(), err)
+ }
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_private_dns_namespace.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_private_dns_namespace.go
index 52da5e4907b..c04567287ab 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_private_dns_namespace.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_private_dns_namespace.go
@@ -1,12 +1,14 @@
package aws
import (
- "time"
+ "fmt"
+ "strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/servicediscovery"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter"
)
func resourceAwsServiceDiscoveryPrivateDnsNamespace() *schema.Resource {
@@ -14,6 +16,17 @@ func resourceAwsServiceDiscoveryPrivateDnsNamespace() *schema.Resource {
Create: resourceAwsServiceDiscoveryPrivateDnsNamespaceCreate,
Read: resourceAwsServiceDiscoveryPrivateDnsNamespaceRead,
Delete: resourceAwsServiceDiscoveryPrivateDnsNamespaceDelete,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ idParts := strings.Split(d.Id(), ":")
+ if len(idParts) != 2 || idParts[0] == "" || idParts[1] == "" {
+ return nil, fmt.Errorf("Unexpected format of ID (%q), expected NAMESPACE_ID:VPC_ID", d.Id())
+ }
+ d.SetId(idParts[0])
+ d.Set("vpc", idParts[1])
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"name": {
@@ -65,24 +78,34 @@ func resourceAwsServiceDiscoveryPrivateDnsNamespaceCreate(d *schema.ResourceData
input.Description = aws.String(v.(string))
}
- resp, err := conn.CreatePrivateDnsNamespace(input)
+ output, err := conn.CreatePrivateDnsNamespace(input)
+
if err != nil {
- return err
+ return fmt.Errorf("error creating Service Discovery Private DNS Namespace (%s): %w", name, err)
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if output == nil || output.OperationId == nil {
+ return fmt.Errorf("error creating Service Discovery Private DNS Namespace (%s): creation response missing Operation ID", name)
}
- opresp, err := stateConf.WaitForState()
+ operationOutput, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId))
+
if err != nil {
- return err
+ return fmt.Errorf("error waiting for Service Discovery Private DNS Namespace (%s) creation: %w", name, err)
+ }
+
+ if operationOutput == nil || operationOutput.Operation == nil {
+ return fmt.Errorf("error creating Service Discovery Private DNS Namespace (%s): operation response missing Operation information", name)
}
- d.SetId(*opresp.(*servicediscovery.GetOperationOutput).Operation.Targets["NAMESPACE"])
+ namespaceID, ok := operationOutput.Operation.Targets[servicediscovery.OperationTargetTypeNamespace]
+
+ if !ok {
+ return fmt.Errorf("error creating Service Discovery Private DNS Namespace (%s): operation response missing Namespace ID", name)
+ }
+
+ d.SetId(aws.StringValue(namespaceID))
+
return resourceAwsServiceDiscoveryPrivateDnsNamespaceRead(d, meta)
}
@@ -104,6 +127,7 @@ func resourceAwsServiceDiscoveryPrivateDnsNamespaceRead(d *schema.ResourceData,
d.Set("description", resp.Namespace.Description)
d.Set("arn", resp.Namespace.Arn)
+ d.Set("name", resp.Namespace.Name)
if resp.Namespace.Properties != nil {
d.Set("hosted_zone", resp.Namespace.Properties.DnsProperties.HostedZoneId)
}
@@ -117,18 +141,17 @@ func resourceAwsServiceDiscoveryPrivateDnsNamespaceDelete(d *schema.ResourceData
Id: aws.String(d.Id()),
}
- resp, err := conn.DeleteNamespace(input)
+ output, err := conn.DeleteNamespace(input)
+
if err != nil {
- return err
+ return fmt.Errorf("error deleting Service Discovery Private DNS Namespace (%s): %w", d.Id(), err)
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if output != nil && output.OperationId != nil {
+ if _, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId)); err != nil {
+ return fmt.Errorf("error waiting for Service Discovery Private DNS Namespace (%s) deletion: %w", d.Id(), err)
+ }
}
- _, err = stateConf.WaitForState()
- return err
+ return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_public_dns_namespace.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_public_dns_namespace.go
index 7aa649ed036..7536c3b73b1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_public_dns_namespace.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_public_dns_namespace.go
@@ -2,12 +2,12 @@ package aws
import (
"fmt"
- "time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/servicediscovery"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter"
)
func resourceAwsServiceDiscoveryPublicDnsNamespace() *schema.Resource {
@@ -64,24 +64,34 @@ func resourceAwsServiceDiscoveryPublicDnsNamespaceCreate(d *schema.ResourceData,
input.Description = aws.String(v.(string))
}
- resp, err := conn.CreatePublicDnsNamespace(input)
+ output, err := conn.CreatePublicDnsNamespace(input)
+
if err != nil {
- return err
+ return fmt.Errorf("error creating Service Discovery Public DNS Namespace (%s): %w", name, err)
}
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if output == nil || output.OperationId == nil {
+ return fmt.Errorf("error creating Service Discovery Public DNS Namespace (%s): creation response missing Operation ID", name)
}
- opresp, err := stateConf.WaitForState()
+ operationOutput, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId))
+
if err != nil {
- return err
+ return fmt.Errorf("error waiting for Service Discovery Public DNS Namespace (%s) creation: %w", name, err)
+ }
+
+ if operationOutput == nil || operationOutput.Operation == nil {
+ return fmt.Errorf("error creating Service Discovery Public DNS Namespace (%s): operation response missing Operation information", name)
}
- d.SetId(*opresp.(*servicediscovery.GetOperationOutput).Operation.Targets["NAMESPACE"])
+ namespaceID, ok := operationOutput.Operation.Targets[servicediscovery.OperationTargetTypeNamespace]
+
+ if !ok {
+ return fmt.Errorf("error creating Service Discovery Public DNS Namespace (%s): operation response missing Namespace ID", name)
+ }
+
+ d.SetId(aws.StringValue(namespaceID))
+
return resourceAwsServiceDiscoveryPublicDnsNamespaceRead(d, meta)
}
@@ -117,42 +127,17 @@ func resourceAwsServiceDiscoveryPublicDnsNamespaceDelete(d *schema.ResourceData,
Id: aws.String(d.Id()),
}
- resp, err := conn.DeleteNamespace(input)
- if err != nil {
- return err
- }
+ output, err := conn.DeleteNamespace(input)
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
+ if err != nil {
+ return fmt.Errorf("error deleting Service Discovery Public DNS Namespace (%s): %w", d.Id(), err)
}
- _, err = stateConf.WaitForState()
- return err
-}
-
-func servicediscoveryOperationRefreshStatusFunc(conn *servicediscovery.ServiceDiscovery, oid string) resource.StateRefreshFunc {
- return func() (interface{}, string, error) {
- input := &servicediscovery.GetOperationInput{
- OperationId: aws.String(oid),
- }
- resp, err := conn.GetOperation(input)
-
- if err != nil {
- return nil, servicediscovery.OperationStatusFail, err
+ if output != nil && output.OperationId != nil {
+ if _, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId)); err != nil {
+ return fmt.Errorf("error waiting for Service Discovery Public DNS Namespace (%s) deletion: %w", d.Id(), err)
}
-
- // Error messages can also be contained in the response with FAIL status
- // "ErrorCode":"CANNOT_CREATE_HOSTED_ZONE",
- // "ErrorMessage":"The VPC that you chose, vpc-xxx in region xxx, is already associated with another private hosted zone that has an overlapping name space, xxx.. (Service: AmazonRoute53; Status Code: 400; Error Code: ConflictingDomainExists; Request ID: xxx)"
- // "Status":"FAIL",
-
- if aws.StringValue(resp.Operation.Status) == servicediscovery.OperationStatusFail {
- return resp, servicediscovery.OperationStatusFail, fmt.Errorf("%s: %s", aws.StringValue(resp.Operation.ErrorCode), aws.StringValue(resp.Operation.ErrorMessage))
- }
-
- return resp, aws.StringValue(resp.Operation.Status), nil
}
+
+ return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_service.go
index 70812c95a09..a898663dbcd 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_service_discovery_service.go
@@ -1,14 +1,14 @@
package aws
import (
+ "fmt"
"log"
- "time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/servicediscovery"
- "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter"
)
func resourceAwsServiceDiscoveryService() *schema.Resource {
@@ -225,23 +225,16 @@ func resourceAwsServiceDiscoveryServiceUpdate(d *schema.ResourceData, meta inter
input.Service = sc
- resp, err := conn.UpdateService(input)
- if err != nil {
- return err
- }
+ output, err := conn.UpdateService(input)
- stateConf := &resource.StateChangeConf{
- Pending: []string{servicediscovery.OperationStatusSubmitted, servicediscovery.OperationStatusPending},
- Target: []string{servicediscovery.OperationStatusSuccess},
- Refresh: servicediscoveryOperationRefreshStatusFunc(conn, *resp.OperationId),
- Timeout: 5 * time.Minute,
- Delay: 10 * time.Second,
- MinTimeout: 3 * time.Second,
+ if err != nil {
+ return fmt.Errorf("error updating Service Discovery Service (%s): %w", d.Id(), err)
}
- _, err = stateConf.WaitForState()
- if err != nil {
- return err
+ if output != nil && output.OperationId != nil {
+ if _, err := waiter.OperationSuccess(conn, aws.StringValue(output.OperationId)); err != nil {
+ return fmt.Errorf("error waiting for Service Discovery Service (%s) update: %w", d.Id(), err)
+ }
}
return resourceAwsServiceDiscoveryServiceRead(d, meta)
@@ -255,7 +248,16 @@ func resourceAwsServiceDiscoveryServiceDelete(d *schema.ResourceData, meta inter
}
_, err := conn.DeleteService(input)
- return err
+
+ if isAWSErr(err, servicediscovery.ErrCodeServiceNotFound, "") {
+ return nil
+ }
+
+ if err != nil {
+ return fmt.Errorf("error deleting Service Discovery Service (%s): %w", d.Id(), err)
+ }
+
+ return nil
}
func expandServiceDiscoveryDnsConfig(configured map[string]interface{}) *servicediscovery.DnsConfig {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_servicecatalog_portfolio.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_servicecatalog_portfolio.go
index 95e34a8edd5..71348415293 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_servicecatalog_portfolio.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_servicecatalog_portfolio.go
@@ -89,6 +89,8 @@ func resourceAwsServiceCatalogPortfolioCreate(d *schema.ResourceData, meta inter
func resourceAwsServiceCatalogPortfolioRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).scconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
input := servicecatalog.DescribePortfolioInput{
AcceptLanguage: aws.String("en"),
}
@@ -113,7 +115,7 @@ func resourceAwsServiceCatalogPortfolioRead(d *schema.ResourceData, meta interfa
d.Set("name", portfolioDetail.DisplayName)
d.Set("provider_name", portfolioDetail.ProviderName)
- if err := d.Set("tags", keyvaluetags.ServicecatalogKeyValueTags(resp.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.ServicecatalogKeyValueTags(resp.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ses_identity_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ses_identity_policy.go
index fc16d8a56d7..68262c941c0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ses_identity_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ses_identity_policy.go
@@ -40,7 +40,7 @@ func resourceAwsSesIdentityPolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_activity.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_activity.go
index fb0fba84afc..765dc1ddcad 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_activity.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_activity.go
@@ -74,6 +74,8 @@ func resourceAwsSfnActivityUpdate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsSfnActivityRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sfnconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading Step Function Activity: %s", d.Id())
sm, err := conn.DescribeActivity(&sfn.DescribeActivityInput{
@@ -99,7 +101,7 @@ func resourceAwsSfnActivityRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for SFN Activity (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_state_machine.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_state_machine.go
index d095d50b73f..71f9e9fd109 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_state_machine.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sfn_state_machine.go
@@ -103,6 +103,8 @@ func resourceAwsSfnStateMachineCreate(d *schema.ResourceData, meta interface{})
func resourceAwsSfnStateMachineRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).sfnconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
log.Printf("[DEBUG] Reading Step Function State Machine: %s", d.Id())
sm, err := conn.DescribeStateMachine(&sfn.DescribeStateMachineInput{
@@ -134,7 +136,7 @@ func resourceAwsSfnStateMachineRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error listing tags for SFN State Machine (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_snapshot_create_volume_permission.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_snapshot_create_volume_permission.go
index 6b937e1dc68..32c333b8945 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_snapshot_create_volume_permission.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_snapshot_create_volume_permission.go
@@ -2,6 +2,7 @@ package aws
import (
"fmt"
+ "log"
"strings"
"time"
@@ -13,7 +14,6 @@ import (
func resourceAwsSnapshotCreateVolumePermission() *schema.Resource {
return &schema.Resource{
- Exists: resourceAwsSnapshotCreateVolumePermissionExists,
Create: resourceAwsSnapshotCreateVolumePermissionCreate,
Read: resourceAwsSnapshotCreateVolumePermissionRead,
Delete: resourceAwsSnapshotCreateVolumePermissionDelete,
@@ -33,16 +33,6 @@ func resourceAwsSnapshotCreateVolumePermission() *schema.Resource {
}
}
-func resourceAwsSnapshotCreateVolumePermissionExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- conn := meta.(*AWSClient).ec2conn
-
- snapshotID, accountID, err := resourceAwsSnapshotCreateVolumePermissionParseID(d.Id())
- if err != nil {
- return false, err
- }
- return hasCreateVolumePermission(conn, snapshotID, accountID)
-}
-
func resourceAwsSnapshotCreateVolumePermissionCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
@@ -83,6 +73,23 @@ func resourceAwsSnapshotCreateVolumePermissionCreate(d *schema.ResourceData, met
}
func resourceAwsSnapshotCreateVolumePermissionRead(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
+ snapshotID, accountID, err := resourceAwsSnapshotCreateVolumePermissionParseID(d.Id())
+ if err != nil {
+ return err
+ }
+
+ exists, err := hasCreateVolumePermission(conn, snapshotID, accountID)
+ if err != nil {
+ return err
+ }
+ if !exists {
+ log.Printf("[WARN] snapshot createVolumePermission (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
+
return nil
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic.go
index 271aafad90b..0a9f320b380 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic.go
@@ -67,7 +67,7 @@ func resourceAwsSnsTopic() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
@@ -78,7 +78,7 @@ func resourceAwsSnsTopic() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: false,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
@@ -214,6 +214,7 @@ func resourceAwsSnsTopicUpdate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsSnsTopicRead(d *schema.ResourceData, meta interface{}) error {
snsconn := meta.(*AWSClient).snsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading SNS Topic Attributes for %s", d.Id())
attributeOutput, err := snsconn.GetTopicAttributes(&sns.GetTopicAttributesInput{
@@ -257,7 +258,7 @@ func resourceAwsSnsTopicRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for resource (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_policy.go
index 9d8d915b222..200a45ce7ed 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_policy.go
@@ -33,7 +33,7 @@ func resourceAwsSnsTopicPolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_subscription.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_subscription.go
index 9c422dddb5a..2f665448675 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_subscription.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sns_topic_subscription.go
@@ -71,7 +71,7 @@ func resourceAwsSnsTopicSubscription() *schema.Resource {
"delivery_policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentSnsTopicSubscriptionDeliveryPolicy,
},
"raw_message_delivery": {
@@ -86,7 +86,7 @@ func resourceAwsSnsTopicSubscription() *schema.Resource {
"filter_policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentJsonDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_fleet_request.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_fleet_request.go
index ecc4d447852..6566271e1f9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_fleet_request.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_fleet_request.go
@@ -8,7 +8,6 @@ import (
"time"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
@@ -23,7 +22,12 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Read: resourceAwsSpotFleetRequestRead,
Delete: resourceAwsSpotFleetRequestDelete,
Update: resourceAwsSpotFleetRequestUpdate,
-
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ d.Set("instance_pools_to_use_count", 1)
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(5 * time.Minute),
@@ -55,7 +59,7 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
// http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetLaunchSpecification.html
"launch_specification": {
Type: schema.TypeSet,
- Required: true,
+ Optional: true,
ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
@@ -123,6 +127,13 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.VolumeTypeStandard,
+ ec2.VolumeTypeIo1,
+ ec2.VolumeTypeGp2,
+ ec2.VolumeTypeSc1,
+ ec2.VolumeTypeSt1,
+ }, false),
},
},
},
@@ -195,6 +206,13 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.VolumeTypeStandard,
+ ec2.VolumeTypeIo1,
+ ec2.VolumeTypeGp2,
+ ec2.VolumeTypeSc1,
+ ec2.VolumeTypeSt1,
+ }, false),
},
},
},
@@ -211,9 +229,10 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Optional: true,
},
"iam_instance_profile_arn": {
- Type: schema.TypeString,
- ForceNew: true,
- Optional: true,
+ Type: schema.TypeString,
+ ForceNew: true,
+ Optional: true,
+ ValidateFunc: validateArn,
},
"ami": {
Type: schema.TypeString,
@@ -247,6 +266,11 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.TenancyDefault,
+ ec2.TenancyDedicated,
+ ec2.TenancyHost,
+ }, false),
},
"spot_price": {
Type: schema.TypeString,
@@ -290,9 +314,92 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
},
},
},
- Set: hashLaunchSpecification,
+ Set: hashLaunchSpecification,
+ ExactlyOneOf: []string{"launch_specification", "launch_template_config"},
+ },
+ "launch_template_config": {
+ Type: schema.TypeSet,
+ Optional: true,
+ ForceNew: true,
+ ExactlyOneOf: []string{"launch_specification", "launch_template_config"},
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "launch_template_specification": {
+ Type: schema.TypeList,
+ Required: true,
+ MaxItems: 1,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "id": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validateLaunchTemplateId,
+ },
+ "name": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validateLaunchTemplateName,
+ },
+ "version": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validation.StringLenBetween(1, 255),
+ },
+ },
+ },
+ },
+ "overrides": {
+ Type: schema.TypeSet,
+ Optional: true,
+ ForceNew: true,
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "availability_zone": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ },
+ "instance_type": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ },
+ "spot_price": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ForceNew: true,
+ },
+ "subnet_id": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
+ ForceNew: true,
+ },
+ "weighted_capacity": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ Computed: true,
+ ForceNew: true,
+ },
+ "priority": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ Computed: true,
+ ForceNew: true,
+ },
+ },
+ },
+ Set: hashLaunchTemplateOverrides,
+ },
+ },
+ },
},
- // Everything on a spot fleet is ForceNew except target_capacity
+ // Everything on a spot fleet is ForceNew except target_capacity and excess_capacity_termination_policy,
+ // see https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#ModifySpotFleetRequestInput
"target_capacity": {
Type: schema.TypeInt,
Required: true,
@@ -301,8 +408,13 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
"allocation_strategy": {
Type: schema.TypeString,
Optional: true,
- Default: "lowestPrice",
+ Default: ec2.AllocationStrategyLowestPrice,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.AllocationStrategyLowestPrice,
+ ec2.AllocationStrategyDiversified,
+ ec2.AllocationStrategyCapacityOptimized,
+ }, false),
},
"instance_pools_to_use_count": {
Type: schema.TypeInt,
@@ -324,8 +436,13 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
"instance_interruption_behaviour": {
Type: schema.TypeString,
Optional: true,
- Default: "terminate",
+ Default: ec2.InstanceInterruptionBehaviorTerminate,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ec2.InstanceInterruptionBehaviorTerminate,
+ ec2.InstanceInterruptionBehaviorStop,
+ ec2.InstanceInterruptionBehaviorHibernate,
+ }, false),
},
"spot_price": {
Type: schema.TypeString,
@@ -357,6 +474,7 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{
ec2.FleetTypeMaintain,
ec2.FleetTypeRequest,
+ ec2.FleetTypeInstant,
}, false),
},
"spot_request_state": {
@@ -380,9 +498,13 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
- Elem: &schema.Schema{Type: schema.TypeString},
- Set: schema.HashString,
+ Elem: &schema.Schema{
+ Type: schema.TypeString,
+ ValidateFunc: validateArn,
+ },
+ Set: schema.HashString,
},
+ "tags": tagsSchema(),
},
}
}
@@ -468,7 +590,7 @@ func buildSpotFleetLaunchSpecification(d map[string]interface{}, meta interface{
tags := keyvaluetags.New(m).IgnoreAws().Ec2Tags()
spec := &ec2.SpotFleetTagSpecification{
- ResourceType: aws.String("instance"),
+ ResourceType: aws.String(ec2.ResourceTypeInstance),
Tags: tags,
}
@@ -627,12 +749,12 @@ func readSpotFleetBlockDeviceMappingsFromConfig(
func buildAwsSpotFleetLaunchSpecifications(
d *schema.ResourceData, meta interface{}) ([]*ec2.SpotFleetLaunchSpecification, error) {
- user_specs := d.Get("launch_specification").(*schema.Set).List()
- specs := make([]*ec2.SpotFleetLaunchSpecification, len(user_specs))
- for i, user_spec := range user_specs {
- user_spec_map := user_spec.(map[string]interface{})
+ userSpecs := d.Get("launch_specification").(*schema.Set).List()
+ specs := make([]*ec2.SpotFleetLaunchSpecification, len(userSpecs))
+ for i, userSpec := range userSpecs {
+ userSpecMap := userSpec.(map[string]interface{})
// panic: interface conversion: interface {} is map[string]interface {}, not *schema.ResourceData
- opts, err := buildSpotFleetLaunchSpecification(user_spec_map, meta)
+ opts, err := buildSpotFleetLaunchSpecification(userSpecMap, meta)
if err != nil {
return nil, err
}
@@ -642,25 +764,116 @@ func buildAwsSpotFleetLaunchSpecifications(
return specs, nil
}
+func buildLaunchTemplateConfigs(d *schema.ResourceData) ([]*ec2.LaunchTemplateConfig, error) {
+ launchTemplateConfigs := d.Get("launch_template_config").(*schema.Set)
+ configs := make([]*ec2.LaunchTemplateConfig, 0)
+
+ for _, launchTemplateConfig := range launchTemplateConfigs.List() {
+
+ ltc := &ec2.LaunchTemplateConfig{}
+
+ ltcMap := launchTemplateConfig.(map[string]interface{})
+
+ //launch template spec
+ if v, ok := ltcMap["launch_template_specification"]; ok {
+ vL := v.([]interface{})
+ lts := vL[0].(map[string]interface{})
+
+ flts := &ec2.FleetLaunchTemplateSpecification{}
+
+ if v, ok := lts["id"].(string); ok && v != "" {
+ flts.LaunchTemplateId = aws.String(v)
+ }
+
+ if v, ok := lts["name"].(string); ok && v != "" {
+ flts.LaunchTemplateName = aws.String(v)
+ }
+
+ if v, ok := lts["version"].(string); ok && v != "" {
+ flts.Version = aws.String(v)
+ }
+
+ ltc.LaunchTemplateSpecification = flts
+
+ }
+
+ if v, ok := ltcMap["overrides"]; ok && v.(*schema.Set).Len() > 0 {
+ vL := v.(*schema.Set).List()
+ overrides := make([]*ec2.LaunchTemplateOverrides, 0)
+
+ for _, v := range vL {
+ ors := v.(map[string]interface{})
+ lto := &ec2.LaunchTemplateOverrides{}
+
+ if v, ok := ors["availability_zone"].(string); ok && v != "" {
+ lto.AvailabilityZone = aws.String(v)
+ }
+
+ if v, ok := ors["instance_type"].(string); ok && v != "" {
+ lto.InstanceType = aws.String(v)
+ }
+
+ if v, ok := ors["spot_price"].(string); ok && v != "" {
+ lto.SpotPrice = aws.String(v)
+ }
+
+ if v, ok := ors["subnet_id"].(string); ok && v != "" {
+ lto.SubnetId = aws.String(v)
+ }
+
+ if v, ok := ors["weighted_capacity"].(float64); ok && v > 0 {
+ lto.WeightedCapacity = aws.Float64(v)
+ }
+
+ if v, ok := ors["priority"].(float64); ok {
+ lto.Priority = aws.Float64(v)
+ }
+
+ overrides = append(overrides, lto)
+ }
+
+ ltc.Overrides = overrides
+ }
+
+ configs = append(configs, ltc)
+ }
+
+ return configs, nil
+}
+
func resourceAwsSpotFleetRequestCreate(d *schema.ResourceData, meta interface{}) error {
// http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html
conn := meta.(*AWSClient).ec2conn
- launch_specs, err := buildAwsSpotFleetLaunchSpecifications(d, meta)
- if err != nil {
- return err
- }
+ _, launchSpecificationOk := d.GetOk("launch_specification")
+ _, launchTemplateConfigsOk := d.GetOk("launch_template_config")
// http://docs.aws.amazon.com/sdk-for-go/api/service/ec2.html#type-SpotFleetRequestConfigData
spotFleetConfig := &ec2.SpotFleetRequestConfigData{
IamFleetRole: aws.String(d.Get("iam_fleet_role").(string)),
- LaunchSpecifications: launch_specs,
TargetCapacity: aws.Int64(int64(d.Get("target_capacity").(int))),
ClientToken: aws.String(resource.UniqueId()),
TerminateInstancesWithExpiration: aws.Bool(d.Get("terminate_instances_with_expiration").(bool)),
ReplaceUnhealthyInstances: aws.Bool(d.Get("replace_unhealthy_instances").(bool)),
InstanceInterruptionBehavior: aws.String(d.Get("instance_interruption_behaviour").(string)),
Type: aws.String(d.Get("fleet_type").(string)),
+ TagSpecifications: ec2TagSpecificationsFromMap(d.Get("tags").(map[string]interface{}), ec2.ResourceTypeSpotFleetRequest),
+ }
+
+ if launchSpecificationOk {
+ launchSpecs, err := buildAwsSpotFleetLaunchSpecifications(d, meta)
+ if err != nil {
+ return err
+ }
+ spotFleetConfig.LaunchSpecifications = launchSpecs
+ }
+
+ if launchTemplateConfigsOk {
+ launchTemplates, err := buildLaunchTemplateConfigs(d)
+ if err != nil {
+ return err
+ }
+ spotFleetConfig.LaunchTemplateConfigs = launchTemplates
}
if v, ok := d.GetOk("excess_capacity_termination_policy"); ok {
@@ -682,22 +895,22 @@ func resourceAwsSpotFleetRequestCreate(d *schema.ResourceData, meta interface{})
}
if v, ok := d.GetOk("valid_from"); ok {
- valid_from, err := time.Parse(time.RFC3339, v.(string))
+ validFrom, err := time.Parse(time.RFC3339, v.(string))
if err != nil {
return err
}
- spotFleetConfig.ValidFrom = aws.Time(valid_from)
+ spotFleetConfig.ValidFrom = aws.Time(validFrom)
}
if v, ok := d.GetOk("valid_until"); ok {
- valid_until, err := time.Parse(time.RFC3339, v.(string))
+ validUntil, err := time.Parse(time.RFC3339, v.(string))
if err != nil {
return err
}
- spotFleetConfig.ValidUntil = aws.Time(valid_until)
+ spotFleetConfig.ValidUntil = aws.Time(validUntil)
} else {
- valid_until := time.Now().Add(24 * time.Hour)
- spotFleetConfig.ValidUntil = aws.Time(valid_until)
+ validUntil := time.Now().Add(24 * time.Hour)
+ spotFleetConfig.ValidUntil = aws.Time(validUntil)
}
if v, ok := d.GetOk("load_balancers"); ok && v.(*schema.Set).Len() > 0 {
@@ -741,9 +954,13 @@ func resourceAwsSpotFleetRequestCreate(d *schema.ResourceData, meta interface{})
// Since IAM is eventually consistent, we retry creation as a newly created role may not
// take effect immediately, resulting in an InvalidSpotFleetRequestConfig error
var resp *ec2.RequestSpotFleetOutput
- err = resource.Retry(10*time.Minute, func() *resource.RetryError {
+ err := resource.Retry(10*time.Minute, func() *resource.RetryError {
+ var err error
resp, err = conn.RequestSpotFleet(spotFleetOpts)
+ if isAWSErr(err, "InvalidSpotFleetRequestConfig", "Duplicate: Parameter combination") {
+ return resource.NonRetryableError(fmt.Errorf("Error creating Spot fleet request: %s", err))
+ }
if isAWSErr(err, "InvalidSpotFleetRequestConfig", "") {
return resource.RetryableError(fmt.Errorf("Error creating Spot fleet request, retrying: %s", err))
}
@@ -766,10 +983,10 @@ func resourceAwsSpotFleetRequestCreate(d *schema.ResourceData, meta interface{})
log.Printf("[INFO] Spot Fleet Request ID: %s", d.Id())
log.Println("[INFO] Waiting for Spot Fleet Request to be active")
stateConf := &resource.StateChangeConf{
- Pending: []string{"submitted"},
- Target: []string{"active"},
+ Pending: []string{ec2.BatchStateSubmitted},
+ Target: []string{ec2.BatchStateActive},
Refresh: resourceAwsSpotFleetRequestStateRefreshFunc(d, meta),
- Timeout: 10 * time.Minute,
+ Timeout: d.Timeout(schema.TimeoutCreate), //10 * time.Minute,
MinTimeout: 10 * time.Second,
Delay: 30 * time.Second,
}
@@ -782,8 +999,8 @@ func resourceAwsSpotFleetRequestCreate(d *schema.ResourceData, meta interface{})
if d.Get("wait_for_fulfillment").(bool) {
log.Println("[INFO] Waiting for Spot Fleet Request to be fulfilled")
spotStateConf := &resource.StateChangeConf{
- Pending: []string{"pending_fulfillment"},
- Target: []string{"fulfilled"},
+ Pending: []string{ec2.ActivityStatusPendingFulfillment},
+ Target: []string{ec2.ActivityStatusFulfilled},
Refresh: resourceAwsSpotFleetRequestFulfillmentRefreshFunc(d.Id(), meta.(*AWSClient).ec2conn),
Timeout: d.Timeout(schema.TimeoutCreate),
Delay: 10 * time.Second,
@@ -856,7 +1073,7 @@ func resourceAwsSpotFleetRequestFulfillmentRefreshFunc(id string, conn *ec2.EC2)
// Query "information" events (e.g. launchSpecUnusable b/c low bid price)
out, err := conn.DescribeSpotFleetRequestHistory(&ec2.DescribeSpotFleetRequestHistoryInput{
- EventType: aws.String("information"),
+ EventType: aws.String(ec2.EventTypeInformation),
SpotFleetRequestId: aws.String(id),
StartTime: cfg.CreateTime,
})
@@ -891,6 +1108,7 @@ func resourceAwsSpotFleetRequestFulfillmentRefreshFunc(id string, conn *ec2.EC2)
func resourceAwsSpotFleetRequestRead(d *schema.ResourceData, meta interface{}) error {
// http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotFleetRequests.html
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeSpotFleetRequestsInput{
SpotFleetRequestIds: []*string{aws.String(d.Id())},
@@ -900,8 +1118,7 @@ func resourceAwsSpotFleetRequestRead(d *schema.ResourceData, meta interface{}) e
if err != nil {
// If the spot request was not found, return nil so that we can show
// that it is gone.
- ec2err, ok := err.(awserr.Error)
- if ok && ec2err.Code() == "InvalidSpotFleetRequestId.NotFound" {
+ if isAWSErr(err, "InvalidSpotFleetRequestId.NotFound", "") {
d.SetId("")
return nil
}
@@ -914,9 +1131,9 @@ func resourceAwsSpotFleetRequestRead(d *schema.ResourceData, meta interface{}) e
// if the request is cancelled, then it is gone
cancelledStates := map[string]bool{
- "cancelled": true,
- "cancelled_running": true,
- "cancelled_terminating": true,
+ ec2.BatchStateCancelled: true,
+ ec2.BatchStateCancelledRunning: true,
+ ec2.BatchStateCancelledTerminating: true,
}
if _, ok := cancelledStates[*sfr.SpotFleetRequestState]; ok {
d.SetId("")
@@ -981,10 +1198,72 @@ func resourceAwsSpotFleetRequestRead(d *schema.ResourceData, meta interface{}) e
d.Set("instance_interruption_behaviour", config.InstanceInterruptionBehavior)
d.Set("fleet_type", config.Type)
d.Set("launch_specification", launchSpec)
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(sfr.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
+ return fmt.Errorf("error setting tags: %s", err)
+ }
+
+ if len(config.LaunchTemplateConfigs) > 0 {
+ if err := d.Set("launch_template_config", flattenFleetLaunchTemplateConfig(config.LaunchTemplateConfigs)); err != nil {
+ return fmt.Errorf("error setting launch_template_config: %s", err)
+ }
+ }
+
+ if config.LoadBalancersConfig != nil {
+ lbConf := config.LoadBalancersConfig
+
+ if lbConf.ClassicLoadBalancersConfig != nil {
+ flatLbs := make([]*string, 0)
+ for _, lb := range lbConf.ClassicLoadBalancersConfig.ClassicLoadBalancers {
+ flatLbs = append(flatLbs, lb.Name)
+ }
+ if err := d.Set("load_balancers", flattenStringSet(flatLbs)); err != nil {
+ return fmt.Errorf("error setting load_balancers: %s", err)
+ }
+ }
+
+ if lbConf.TargetGroupsConfig != nil {
+ flatTgs := make([]*string, 0)
+ for _, tg := range lbConf.TargetGroupsConfig.TargetGroups {
+ flatTgs = append(flatTgs, tg.Arn)
+ }
+ if err := d.Set("target_group_arns", flattenStringSet(flatTgs)); err != nil {
+ return fmt.Errorf("error setting target_group_arns: %s", err)
+ }
+ }
+ }
return nil
}
+func flattenSpotFleetRequestLaunchTemplateOverrides(override *ec2.LaunchTemplateOverrides) map[string]interface{} {
+ m := make(map[string]interface{})
+
+ if override.AvailabilityZone != nil {
+ m["availability_zone"] = aws.StringValue(override.AvailabilityZone)
+ }
+ if override.InstanceType != nil {
+ m["instance_type"] = aws.StringValue(override.InstanceType)
+ }
+
+ if override.SpotPrice != nil {
+ m["spot_price"] = aws.StringValue(override.SpotPrice)
+ }
+
+ if override.SubnetId != nil {
+ m["subnet_id"] = aws.StringValue(override.SubnetId)
+ }
+
+ if override.WeightedCapacity != nil {
+ m["weighted_capacity"] = aws.Float64Value(override.WeightedCapacity)
+ }
+
+ if override.Priority != nil {
+ m["priority"] = aws.Float64Value(override.Priority)
+ }
+
+ return m
+}
+
func launchSpecsToSet(launchSpecs []*ec2.SpotFleetLaunchSpecification, conn *ec2.EC2) (*schema.Set, error) {
specSet := &schema.Set{F: hashLaunchSpecification}
for _, spec := range launchSpecs {
@@ -1197,25 +1476,42 @@ func resourceAwsSpotFleetRequestUpdate(d *schema.ResourceData, meta interface{})
// http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifySpotFleetRequest.html
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
-
req := &ec2.ModifySpotFleetRequestInput{
SpotFleetRequestId: aws.String(d.Id()),
}
- if val, ok := d.GetOk("target_capacity"); ok {
- req.TargetCapacity = aws.Int64(int64(val.(int)))
+ updateFlag := false
+
+ if d.HasChange("target_capacity") {
+ if val, ok := d.GetOk("target_capacity"); ok {
+ req.TargetCapacity = aws.Int64(int64(val.(int)))
+ }
+
+ updateFlag = true
}
- if val, ok := d.GetOk("excess_capacity_termination_policy"); ok {
- req.ExcessCapacityTerminationPolicy = aws.String(val.(string))
+ if d.HasChange("excess_capacity_termination_policy") {
+ if val, ok := d.GetOk("excess_capacity_termination_policy"); ok {
+ req.ExcessCapacityTerminationPolicy = aws.String(val.(string))
+ }
+
+ updateFlag = true
}
- if _, err := conn.ModifySpotFleetRequest(req); err != nil {
- return fmt.Errorf("error updating spot request (%s): %s", d.Id(), err)
+ if updateFlag {
+ if _, err := conn.ModifySpotFleetRequest(req); err != nil {
+ return fmt.Errorf("error updating spot request (%s): %s", d.Id(), err)
+ }
}
- return nil
+ if d.HasChange("tags") {
+ o, n := d.GetChange("tags")
+ if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
+ return fmt.Errorf("error updating tags: %s", err)
+ }
+ }
+
+ return resourceAwsSpotFleetRequestRead(d, meta)
}
func resourceAwsSpotFleetRequestDelete(d *schema.ResourceData, meta interface{}) error {
@@ -1320,6 +1616,31 @@ func hashLaunchSpecification(v interface{}) int {
return hashcode.String(buf.String())
}
+func hashLaunchTemplateOverrides(v interface{}) int {
+ var buf bytes.Buffer
+ m := v.(map[string]interface{})
+ if m["availability_zone"] != nil {
+ buf.WriteString(fmt.Sprintf("%s-", m["availability_zone"].(string)))
+ }
+ if m["subnet_id"] != nil {
+ buf.WriteString(fmt.Sprintf("%s-", m["subnet_id"].(string)))
+ }
+ if m["spot_price"] != nil {
+ buf.WriteString(fmt.Sprintf("%s-", m["spot_price"].(string)))
+ }
+ if m["instance_type"] != nil {
+ buf.WriteString(fmt.Sprintf("%s-", m["instance_type"].(string)))
+ }
+ if m["weighted_capacity"] != nil {
+ buf.WriteString(fmt.Sprintf("%f-", m["weighted_capacity"].(float64)))
+ }
+ if m["priority"] != nil {
+ buf.WriteString(fmt.Sprintf("%f-", m["priority"].(float64)))
+ }
+
+ return hashcode.String(buf.String())
+}
+
func hashEbsBlockDevice(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
@@ -1331,3 +1652,56 @@ func hashEbsBlockDevice(v interface{}) int {
}
return hashcode.String(buf.String())
}
+
+func flattenFleetLaunchTemplateConfig(ltcs []*ec2.LaunchTemplateConfig) []map[string]interface{} {
+ result := make([]map[string]interface{}, 0)
+
+ for _, ltc := range ltcs {
+ ltcRes := map[string]interface{}{}
+
+ if ltc.LaunchTemplateSpecification != nil {
+ ltcRes["launch_template_specification"] = flattenFleetLaunchTemplateSpecification(ltc.LaunchTemplateSpecification)
+ }
+
+ if ltc.Overrides != nil {
+ ltcRes["overrides"] = flattenLaunchTemplateOverrides(ltc.Overrides)
+ }
+
+ result = append(result, ltcRes)
+ }
+
+ return result
+}
+
+func flattenFleetLaunchTemplateSpecification(flt *ec2.FleetLaunchTemplateSpecification) []map[string]interface{} {
+ attrs := map[string]interface{}{}
+ result := make([]map[string]interface{}, 0)
+
+ // unlike autoscaling.LaunchTemplateConfiguration, FleetLaunchTemplateSpecs only return what was set
+ if flt.LaunchTemplateId != nil {
+ attrs["id"] = aws.StringValue(flt.LaunchTemplateId)
+ }
+
+ if flt.LaunchTemplateName != nil {
+ attrs["name"] = aws.StringValue(flt.LaunchTemplateName)
+ }
+
+ // version is returned only if it was previously set
+ if flt.Version != nil {
+ attrs["version"] = aws.StringValue(flt.Version)
+ } else {
+ attrs["version"] = nil
+ }
+
+ result = append(result, attrs)
+
+ return result
+}
+
+func flattenLaunchTemplateOverrides(overrides []*ec2.LaunchTemplateOverrides) *schema.Set {
+ overrideSet := &schema.Set{F: hashLaunchTemplateOverrides}
+ for _, override := range overrides {
+ overrideSet.Add(flattenSpotFleetRequestLaunchTemplateOverrides(override))
+ }
+ return overrideSet
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_instance_request.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_instance_request.go
index c44c872e4b9..04c623975f2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_instance_request.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_spot_instance_request.go
@@ -228,7 +228,7 @@ func resourceAwsSpotInstanceRequestCreate(d *schema.ResourceData, meta interface
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 Spot Instance Request (%s) tags: %s", d.Id(), err)
}
}
@@ -239,6 +239,7 @@ func resourceAwsSpotInstanceRequestCreate(d *schema.ResourceData, meta interface
// Update spot state, etc
func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
req := &ec2.DescribeSpotInstanceRequestsInput{
SpotInstanceRequestIds: []*string{aws.String(d.Id())},
@@ -285,7 +286,7 @@ func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{}
d.Set("launch_group", request.LaunchGroup)
d.Set("block_duration_minutes", request.BlockDurationMinutes)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(request.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(request.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -299,13 +300,11 @@ func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{}
func readInstance(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- resp, err := conn.DescribeInstances(&ec2.DescribeInstancesInput{
- InstanceIds: []*string{aws.String(d.Get("spot_instance_id").(string))},
- })
+ instance, err := resourceAwsInstanceFindByID(conn, d.Get("spot_instance_id").(string))
if err != nil {
// If the instance was not found, return nil so that we can show
// that the instance is gone.
- if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "InvalidInstanceID.NotFound" {
+ if isAWSErr(err, "InvalidInstanceID.NotFound", "") {
return fmt.Errorf("no instance found")
}
@@ -314,12 +313,10 @@ func readInstance(d *schema.ResourceData, meta interface{}) error {
}
// If nothing was found, then return no state
- if len(resp.Reservations) == 0 {
+ if instance == nil {
return fmt.Errorf("no instances found")
}
- instance := resp.Reservations[0].Instances[0]
-
// Set these fields for connection information
if instance != nil {
d.Set("public_dns", instance.PublicDnsName)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue.go
index 6d55747ec19..c192b2778d3 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue.go
@@ -91,13 +91,13 @@ func resourceAwsSqsQueue() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
"redrive_policy": {
Type: schema.TypeString,
Optional: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
@@ -277,6 +277,7 @@ func resourceAwsSqsQueueUpdate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsSqsQueueRead(d *schema.ResourceData, meta interface{}) error {
sqsconn := meta.(*AWSClient).sqsconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
attributeOutput, err := sqsconn.GetQueueAttributes(&sqs.GetQueueAttributesInput{
QueueUrl: aws.String(d.Id()),
@@ -426,7 +427,7 @@ func resourceAwsSqsQueueRead(d *schema.ResourceData, meta interface{}) error {
}
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue_policy.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue_policy.go
index 20fd51da67a..3c7e3c56f4e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue_policy.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_sqs_queue_policy.go
@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
- "github.com/jen20/awspolicyequivalence"
+ awspolicy "github.com/jen20/awspolicyequivalence"
)
func resourceAwsSqsQueuePolicy() *schema.Resource {
@@ -35,7 +35,7 @@ func resourceAwsSqsQueuePolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_activation.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_activation.go
index 25126692bad..b6d8a7115d0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_activation.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_activation.go
@@ -18,6 +18,9 @@ func resourceAwsSsmActivation() *schema.Resource {
Create: resourceAwsSsmActivationCreate,
Read: resourceAwsSsmActivationRead,
Delete: resourceAwsSsmActivationDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
Schema: map[string]*schema.Schema{
"name": {
@@ -130,6 +133,7 @@ func resourceAwsSsmActivationCreate(d *schema.ResourceData, meta interface{}) er
func resourceAwsSsmActivationRead(d *schema.ResourceData, meta interface{}) error {
ssmconn := meta.(*AWSClient).ssmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading SSM Activation: %s", d.Id())
@@ -164,7 +168,7 @@ func resourceAwsSsmActivationRead(d *schema.ResourceData, meta interface{}) erro
d.Set("iam_role", activation.IamRole)
d.Set("registration_limit", activation.RegistrationLimit)
d.Set("registration_count", activation.RegistrationsCount)
- if err := d.Set("tags", keyvaluetags.SsmKeyValueTags(activation.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.SsmKeyValueTags(activation.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_document.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_document.go
index 45daf1a294f..6aec1ce3783 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_document.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_document.go
@@ -229,6 +229,7 @@ func resourceAwsSsmDocumentCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsSsmDocumentRead(d *schema.ResourceData, meta interface{}) error {
ssmconn := meta.(*AWSClient).ssmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading SSM Document: %s", d.Id())
@@ -330,7 +331,7 @@ func resourceAwsSsmDocumentRead(d *schema.ResourceData, meta interface{}) error
return err
}
- if err := d.Set("tags", keyvaluetags.SsmKeyValueTags(doc.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.SsmKeyValueTags(doc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window.go
index e099e44afea..de5fed8b04c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window.go
@@ -185,6 +185,7 @@ func resourceAwsSsmMaintenanceWindowUpdate(d *schema.ResourceData, meta interfac
func resourceAwsSsmMaintenanceWindowRead(d *schema.ResourceData, meta interface{}) error {
ssmconn := meta.(*AWSClient).ssmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &ssm.GetMaintenanceWindowInput{
WindowId: aws.String(d.Id()),
@@ -217,7 +218,7 @@ func resourceAwsSsmMaintenanceWindowRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("error listing tags for SSM Maintenance Window (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window_target.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window_target.go
index cbd30d779e9..d33e718d440 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window_target.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_maintenance_window_target.go
@@ -2,13 +2,13 @@ package aws
import (
"fmt"
- "log"
- "regexp"
-
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
+ "log"
+ "regexp"
+ "strings"
)
func resourceAwsSsmMaintenanceWindowTarget() *schema.Resource {
@@ -17,6 +17,17 @@ func resourceAwsSsmMaintenanceWindowTarget() *schema.Resource {
Read: resourceAwsSsmMaintenanceWindowTargetRead,
Update: resourceAwsSsmMaintenanceWindowTargetUpdate,
Delete: resourceAwsSsmMaintenanceWindowTargetDelete,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ idParts := strings.Split(d.Id(), "/")
+ if len(idParts) != 2 || idParts[0] == "" || idParts[1] == "" {
+ return nil, fmt.Errorf("Unexpected format of ID (%q), expected WINDOW_ID/WINDOW_TARGET_ID", d.Id())
+ }
+ d.Set("window_id", idParts[0])
+ d.SetId(idParts[1])
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"window_id": {
@@ -29,6 +40,10 @@ func resourceAwsSsmMaintenanceWindowTarget() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ ssm.MaintenanceWindowResourceTypeInstance,
+ ssm.MaintenanceWindowResourceTypeResourceGroup,
+ }, true),
},
"targets": {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_parameter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_parameter.go
index 43d87163157..71332e8625d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_parameter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_parameter.go
@@ -20,7 +20,6 @@ func resourceAwsSsmParameter() *schema.Resource {
Read: resourceAwsSsmParameterRead,
Update: resourceAwsSsmParameterPut,
Delete: resourceAwsSsmParameterDelete,
- Exists: resourceAwsSmmParameterExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
@@ -93,24 +92,9 @@ func resourceAwsSsmParameter() *schema.Resource {
}
}
-func resourceAwsSmmParameterExists(d *schema.ResourceData, meta interface{}) (bool, error) {
- ssmconn := meta.(*AWSClient).ssmconn
- _, err := ssmconn.GetParameter(&ssm.GetParameterInput{
- Name: aws.String(d.Id()),
- WithDecryption: aws.Bool(false),
- })
- if err != nil {
- if isAWSErr(err, ssm.ErrCodeParameterNotFound, "") {
- return false, nil
- }
- return false, err
- }
-
- return true, nil
-}
-
func resourceAwsSsmParameterRead(d *schema.ResourceData, meta interface{}) error {
ssmconn := meta.(*AWSClient).ssmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
log.Printf("[DEBUG] Reading SSM Parameter: %s", d.Id())
@@ -118,8 +102,13 @@ func resourceAwsSsmParameterRead(d *schema.ResourceData, meta interface{}) error
Name: aws.String(d.Id()),
WithDecryption: aws.Bool(true),
})
+ if isAWSErr(err, ssm.ErrCodeParameterNotFound, "") {
+ log.Printf("[WARN] SSM Parameter (%s) not found, removing from state", d.Id())
+ d.SetId("")
+ return nil
+ }
if err != nil {
- return fmt.Errorf("error getting SSM parameter: %s", err)
+ return fmt.Errorf("error reading SSM Parameter (%s): %w", d.Id(), err)
}
param := resp.Parameter
@@ -164,7 +153,7 @@ func resourceAwsSsmParameterRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("error listing tags for SSM Maintenance Window (%s): %s", name, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_patch_baseline.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_patch_baseline.go
index d1853aa69d7..aaeac579163 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_patch_baseline.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ssm_patch_baseline.go
@@ -247,6 +247,7 @@ func resourceAwsSsmPatchBaselineUpdate(d *schema.ResourceData, meta interface{})
}
func resourceAwsSsmPatchBaselineRead(d *schema.ResourceData, meta interface{}) error {
ssmconn := meta.(*AWSClient).ssmconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &ssm.GetPatchBaselineInput{
BaselineId: aws.String(d.Id()),
@@ -283,7 +284,7 @@ func resourceAwsSsmPatchBaselineRead(d *schema.ResourceData, meta interface{}) e
return fmt.Errorf("error listing tags for SSM Patch Baseline (%s): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_cached_iscsi_volume.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_cached_iscsi_volume.go
index 23905e78c55..88177a88e83 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_cached_iscsi_volume.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_cached_iscsi_volume.go
@@ -137,6 +137,7 @@ func resourceAwsStorageGatewayCachedIscsiVolumeUpdate(d *schema.ResourceData, me
func resourceAwsStorageGatewayCachedIscsiVolumeRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).storagegatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &storagegateway.DescribeCachediSCSIVolumesInput{
VolumeARNs: []*string{aws.String(d.Id())},
@@ -173,7 +174,7 @@ func resourceAwsStorageGatewayCachedIscsiVolumeRead(d *schema.ResourceData, meta
if err != nil {
return fmt.Errorf("error listing tags for resource (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_gateway.go
index 6389fc922d3..5c660ab9530 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_gateway.go
@@ -16,6 +16,10 @@ import (
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
+const (
+ StorageGatewayGatewayConnected = "GatewayConnected"
+)
+
func resourceAwsStorageGatewayGateway() *schema.Resource {
return &schema.Resource{
Create: resourceAwsStorageGatewayGatewayCreate,
@@ -46,6 +50,11 @@ func resourceAwsStorageGatewayGateway() *schema.Resource {
ForceNew: true,
ConflictsWith: []string{"gateway_ip_address"},
},
+ "gateway_vpc_endpoint": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ },
"gateway_id": {
Type: schema.TypeString,
Computed: true,
@@ -154,6 +163,10 @@ func resourceAwsStorageGatewayGatewayCreate(d *schema.ResourceData, meta interfa
}
requestURL := fmt.Sprintf("http://%s/?activationRegion=%s", gatewayIpAddress, region)
+ if v, ok := d.GetOk("gateway_vpc_endpoint"); ok {
+ requestURL = fmt.Sprintf("%s&vpcEndpoint=%s", requestURL, v.(string))
+ }
+
log.Printf("[DEBUG] Creating HTTP request: %s", requestURL)
request, err := http.NewRequest("GET", requestURL, nil)
if err != nil {
@@ -164,14 +177,25 @@ func resourceAwsStorageGatewayGatewayCreate(d *schema.ResourceData, meta interfa
err = resource.Retry(d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {
log.Printf("[DEBUG] Making HTTP request: %s", request.URL.String())
response, err = client.Do(request)
+
if err != nil {
if err, ok := err.(net.Error); ok {
errMessage := fmt.Errorf("error making HTTP request: %s", err)
log.Printf("[DEBUG] retryable %s", errMessage)
return resource.RetryableError(errMessage)
}
+
return resource.NonRetryableError(fmt.Errorf("error making HTTP request: %s", err))
}
+
+ for _, retryableStatusCode := range []int{504} {
+ if response.StatusCode == retryableStatusCode {
+ errMessage := fmt.Errorf("status code in HTTP response: %d", response.StatusCode)
+ log.Printf("[DEBUG] retryable %s", errMessage)
+ return resource.RetryableError(errMessage)
+ }
+ }
+
return nil
})
if isResourceTimeoutError(err) {
@@ -222,28 +246,7 @@ func resourceAwsStorageGatewayGatewayCreate(d *schema.ResourceData, meta interfa
d.SetId(aws.StringValue(output.GatewayARN))
- // Gateway activations can take a few minutes
- gwInput := &storagegateway.DescribeGatewayInformationInput{
- GatewayARN: aws.String(d.Id()),
- }
- err = resource.Retry(d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {
- _, err := conn.DescribeGatewayInformation(gwInput)
- if err != nil {
- if isAWSErr(err, storagegateway.ErrorCodeGatewayNotConnected, "") {
- return resource.RetryableError(err)
- }
- if isAWSErr(err, storagegateway.ErrCodeInvalidGatewayRequestException, "") {
- return resource.RetryableError(err)
- }
- return resource.NonRetryableError(err)
- }
-
- return nil
- })
- if isResourceTimeoutError(err) {
- _, err = conn.DescribeGatewayInformation(gwInput)
- }
- if err != nil {
+ if _, err := WaitForStorageGatewayGatewayConnected(conn, d.Id(), d.Timeout(schema.TimeoutCreate)); err != nil {
return fmt.Errorf("error waiting for Storage Gateway Gateway activation: %s", err)
}
@@ -295,13 +298,16 @@ func resourceAwsStorageGatewayGatewayCreate(d *schema.ResourceData, meta interfa
func resourceAwsStorageGatewayGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).storagegatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &storagegateway.DescribeGatewayInformationInput{
GatewayARN: aws.String(d.Id()),
}
log.Printf("[DEBUG] Reading Storage Gateway Gateway: %s", input)
+
output, err := conn.DescribeGatewayInformation(input)
+
if err != nil {
if isAWSErrStorageGatewayGatewayNotFound(err) {
log.Printf("[WARN] Storage Gateway Gateway %q not found - removing from state", d.Id())
@@ -311,7 +317,7 @@ func resourceAwsStorageGatewayGatewayRead(d *schema.ResourceData, meta interface
return fmt.Errorf("error reading Storage Gateway Gateway: %s", err)
}
- if err := d.Set("tags", keyvaluetags.StoragegatewayKeyValueTags(output.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.StoragegatewayKeyValueTags(output.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -344,6 +350,7 @@ func resourceAwsStorageGatewayGatewayRead(d *schema.ResourceData, meta interface
d.Set("gateway_name", output.GatewayName)
d.Set("gateway_timezone", output.GatewayTimezone)
d.Set("gateway_type", output.GatewayType)
+ d.Set("gateway_vpc_endpoint", output.VPCEndpoint)
// The Storage Gateway API currently provides no way to read this value
// We allow Terraform to passthrough the configuration value into the state
@@ -482,3 +489,43 @@ func isAWSErrStorageGatewayGatewayNotFound(err error) bool {
}
return false
}
+
+func StorageGatewayGatewayConnectedStatus(conn *storagegateway.StorageGateway, gatewayARN string) resource.StateRefreshFunc {
+ return func() (interface{}, string, error) {
+ input := &storagegateway.DescribeGatewayInformationInput{
+ GatewayARN: aws.String(gatewayARN),
+ }
+
+ output, err := conn.DescribeGatewayInformation(input)
+
+ if isAWSErr(err, storagegateway.ErrCodeInvalidGatewayRequestException, "The specified gateway is not connected") {
+ return output, storagegateway.ErrorCodeGatewayNotConnected, nil
+ }
+
+ if err != nil {
+ return output, "", err
+ }
+
+ return output, StorageGatewayGatewayConnected, nil
+ }
+}
+
+func WaitForStorageGatewayGatewayConnected(conn *storagegateway.StorageGateway, gatewayARN string, timeout time.Duration) (*storagegateway.DescribeGatewayInformationOutput, error) {
+ stateConf := &resource.StateChangeConf{
+ Pending: []string{storagegateway.ErrorCodeGatewayNotConnected},
+ Target: []string{StorageGatewayGatewayConnected},
+ Refresh: StorageGatewayGatewayConnectedStatus(conn, gatewayARN),
+ Timeout: timeout,
+ MinTimeout: 10 * time.Second,
+ ContinuousTargetOccurence: 6, // Gateway activations can take a few seconds and can trigger a reboot of the Gateway
+ }
+
+ outputRaw, err := stateConf.WaitForState()
+
+ switch output := outputRaw.(type) {
+ case *storagegateway.DescribeGatewayInformationOutput:
+ return output, err
+ default:
+ return nil, err
+ }
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_nfs_file_share.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_nfs_file_share.go
index 289b1c2bd1d..397837c357c 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_nfs_file_share.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_nfs_file_share.go
@@ -126,6 +126,10 @@ func resourceAwsStorageGatewayNfsFileShare() *schema.Resource {
storagegateway.ObjectACLPublicReadWrite,
}, false),
},
+ "path": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"read_only": {
Type: schema.TypeBool,
Optional: true,
@@ -207,6 +211,7 @@ func resourceAwsStorageGatewayNfsFileShareCreate(d *schema.ResourceData, meta in
func resourceAwsStorageGatewayNfsFileShareRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).storagegatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &storagegateway.DescribeNFSFileSharesInput{
FileShareARNList: []*string{aws.String(d.Id())},
@@ -261,7 +266,7 @@ func resourceAwsStorageGatewayNfsFileShareRead(d *schema.ResourceData, meta inte
if err != nil {
return fmt.Errorf("error listing tags for resource (%s): %s", *arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_smb_file_share.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_smb_file_share.go
index d4512b156fc..21c5fb89c06 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_smb_file_share.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_storagegateway_smb_file_share.go
@@ -103,6 +103,10 @@ func resourceAwsStorageGatewaySmbFileShare() *schema.Resource {
storagegateway.ObjectACLPublicReadWrite,
}, false),
},
+ "path": {
+ Type: schema.TypeString,
+ Computed: true,
+ },
"read_only": {
Type: schema.TypeBool,
Optional: true,
@@ -179,6 +183,7 @@ func resourceAwsStorageGatewaySmbFileShareCreate(d *schema.ResourceData, meta in
func resourceAwsStorageGatewaySmbFileShareRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).storagegatewayconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &storagegateway.DescribeSMBFileSharesInput{
FileShareARNList: []*string{aws.String(d.Id())},
@@ -232,7 +237,7 @@ func resourceAwsStorageGatewaySmbFileShareRead(d *schema.ResourceData, meta inte
if err != nil {
return fmt.Errorf("error listing tags for resource (%s): %s", *arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_subnet.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_subnet.go
index 4615e89eee2..52ee954b1ef 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_subnet.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_subnet.go
@@ -72,6 +72,13 @@ func resourceAwsSubnet() *schema.Resource {
Default: false,
},
+ "outpost_arn": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ ValidateFunc: validateArn,
+ },
+
"assign_ipv6_address_on_creation": {
Type: schema.TypeBool,
Optional: true,
@@ -112,6 +119,10 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error {
createOpts.Ipv6CidrBlock = aws.String(v.(string))
}
+ if v, ok := d.GetOk("outpost_arn"); ok {
+ createOpts.OutpostArn = aws.String(v.(string))
+ }
+
var err error
resp, err := conn.CreateSubnet(createOpts)
@@ -142,30 +153,9 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error {
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- // Handle EC2 eventual consistency on creation
- err := resource.Retry(5*time.Minute, func() *resource.RetryError {
- err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v)
-
- if isAWSErr(err, "InvalidSubnetID.NotFound", "") {
- return resource.RetryableError(err)
- }
-
- if err != nil {
- return resource.NonRetryableError(err)
- }
-
- return nil
- })
-
- if isResourceTimeoutError(err) {
- err = keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v)
- }
-
- if err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
-
- d.SetPartial("tags")
}
// You cannot modify multiple subnet attributes in the same request.
@@ -182,8 +172,6 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifySubnetAttribute(input); err != nil {
return fmt.Errorf("error enabling EC2 Subnet (%s) assign IPv6 address on creation: %s", d.Id(), err)
}
-
- d.SetPartial("assign_ipv6_address_on_creation")
}
if d.Get("map_public_ip_on_launch").(bool) {
@@ -197,19 +185,14 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifySubnetAttribute(input); err != nil {
return fmt.Errorf("error enabling EC2 Subnet (%s) map public IP on launch: %s", d.Id(), err)
}
-
- d.SetPartial("map_public_ip_on_launch")
}
- d.Partial(false)
-
return resourceAwsSubnetRead(d, meta)
}
func resourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- ignoreTags := meta.(*AWSClient).ignoreTags
- ignoreTagPrefixes := meta.(*AWSClient).ignoreTagPrefixes
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeSubnets(&ec2.DescribeSubnetsInput{
SubnetIds: []*string{aws.String(d.Id())},
@@ -235,6 +218,7 @@ func resourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
d.Set("cidr_block", subnet.CidrBlock)
d.Set("map_public_ip_on_launch", subnet.MapPublicIpOnLaunch)
d.Set("assign_ipv6_address_on_creation", subnet.AssignIpv6AddressOnCreation)
+ d.Set("outpost_arn", subnet.OutpostArn)
// Make sure those values are set, if an IPv6 block exists it'll be set in the loop
d.Set("ipv6_cidr_block_association_id", "")
@@ -250,7 +234,7 @@ func resourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
d.Set("arn", subnet.SubnetArn)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().IgnorePrefixes(ignoreTagPrefixes).Ignore(ignoreTags).Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(subnet.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -262,16 +246,12 @@ func resourceAwsSubnetRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsSubnetUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
-
if d.HasChange("tags") {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating EC2 Subnet (%s) tags: %s", d.Id(), err)
}
-
- d.SetPartial("tags")
}
if d.HasChange("map_public_ip_on_launch") {
@@ -288,8 +268,6 @@ func resourceAwsSubnetUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return err
- } else {
- d.SetPartial("map_public_ip_on_launch")
}
}
@@ -357,8 +335,6 @@ func resourceAwsSubnetUpdate(d *schema.ResourceData, meta interface{}) error {
"Error waiting for IPv6 CIDR (%s) to become associated: %s",
d.Id(), err)
}
-
- d.SetPartial("ipv6_cidr_block")
}
if d.HasChange("assign_ipv6_address_on_creation") {
@@ -375,13 +351,9 @@ func resourceAwsSubnetUpdate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return err
- } else {
- d.SetPartial("assign_ipv6_address_on_creation")
}
}
- d.Partial(false)
-
return resourceAwsSubnetRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_swf_domain.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_swf_domain.go
index 8e35b96af8b..f380a1ab7ae 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_swf_domain.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_swf_domain.go
@@ -98,6 +98,7 @@ func resourceAwsSwfDomainCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsSwfDomainRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).swfconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
input := &swf.DescribeDomainInput{
Name: aws.String(d.Id()),
@@ -126,7 +127,7 @@ func resourceAwsSwfDomainRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for SWF Domain (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_server.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_server.go
index 36a5e87b90f..dca3640015e 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_server.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_server.go
@@ -176,6 +176,7 @@ func resourceAwsTransferServerCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsTransferServerRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).transferconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
descOpts := &transfer.DescribeServerInput{
ServerId: aws.String(d.Id()),
@@ -209,7 +210,7 @@ func resourceAwsTransferServerRead(d *schema.ResourceData, meta interface{}) err
d.Set("logging_role", resp.Server.LoggingRole)
d.Set("host_key_fingerprint", resp.Server.HostKeyFingerprint)
- if err := d.Set("tags", keyvaluetags.TransferKeyValueTags(resp.Server.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.TransferKeyValueTags(resp.Server.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("Error setting tags: %s", err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_user.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_user.go
index 4747829b4e1..bff0e39b125 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_user.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_transfer_user.go
@@ -106,6 +106,8 @@ func resourceAwsTransferUserCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsTransferUserRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).transferconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
serverID, userName, err := decodeTransferUserId(d.Id())
if err != nil {
return fmt.Errorf("error parsing Transfer User ID: %s", err)
@@ -135,7 +137,7 @@ func resourceAwsTransferUserRead(d *schema.ResourceData, meta interface{}) error
d.Set("policy", resp.User.Policy)
d.Set("role", resp.User.Role)
- if err := d.Set("tags", keyvaluetags.TransferKeyValueTags(resp.User.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.TransferKeyValueTags(resp.User.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("Error setting tags: %s", err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_volume_attachment.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_volume_attachment.go
index b39720d3ba1..228b97e0d15 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_volume_attachment.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_volume_attachment.go
@@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"log"
+ "strings"
"time"
"github.com/aws/aws-sdk-go/aws"
@@ -20,6 +21,22 @@ func resourceAwsVolumeAttachment() *schema.Resource {
Read: resourceAwsVolumeAttachmentRead,
Update: resourceAwsVolumeAttachmentUpdate,
Delete: resourceAwsVolumeAttachmentDelete,
+ Importer: &schema.ResourceImporter{
+ State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
+ idParts := strings.Split(d.Id(), ":")
+ if len(idParts) != 3 || idParts[0] == "" || idParts[1] == "" || idParts[2] == "" {
+ return nil, fmt.Errorf("Unexpected format of ID (%q), expected DEVICE_NAME:VOLUME_ID:INSTANCE_ID", d.Id())
+ }
+ deviceName := idParts[0]
+ volumeID := idParts[1]
+ instanceID := idParts[2]
+ d.Set("device_name", deviceName)
+ d.Set("volume_id", volumeID)
+ d.Set("instance_id", instanceID)
+ d.SetId(volumeAttachmentID(deviceName, volumeID, instanceID))
+ return []*schema.ResourceData{d}, nil
+ },
+ },
Schema: map[string]*schema.Schema{
"device_name": {
@@ -245,8 +262,8 @@ func resourceAwsVolumeAttachmentDelete(d *schema.ResourceData, meta interface{})
_, err = stateConf.WaitForState()
if err != nil {
return fmt.Errorf(
- "Error waiting for Volume (%s) to detach from Instance: %s",
- vID, iID)
+ "Error waiting for Volume (%s) to detach from Instance (%s): %s",
+ vID, iID, err)
}
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc.go
index 82de72328d0..9be453d4e61 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc.go
@@ -145,10 +145,6 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
d.SetId(*vpc.VpcId)
log.Printf("[INFO] VPC ID: %s", d.Id())
- // Set partial mode and say that we setup the cidr block
- d.Partial(true)
- d.SetPartial("cidr_block")
-
// Wait for the VPC to become available
log.Printf(
"[DEBUG] Waiting for VPC (%s) to become available",
@@ -186,8 +182,6 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifyVpcAttribute(input); err != nil {
return fmt.Errorf("error enabling VPC (%s) DNS hostnames: %s", d.Id(), err)
}
-
- d.SetPartial("enable_dns_hostnames")
}
// By default, only the enableDnsSupport attribute is set to true in a VPC created any other way.
@@ -204,8 +198,6 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifyVpcAttribute(input); err != nil {
return fmt.Errorf("error disabling VPC (%s) DNS support: %s", d.Id(), err)
}
-
- d.SetPartial("enable_dns_support")
}
if d.Get("enable_classiclink").(bool) {
@@ -216,8 +208,6 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.EnableVpcClassicLink(input); err != nil {
return fmt.Errorf("error enabling VPC (%s) ClassicLink: %s", d.Id(), err)
}
-
- d.SetPartial("enable_classiclink")
}
if d.Get("enable_classiclink_dns_support").(bool) {
@@ -228,46 +218,20 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.EnableVpcClassicLinkDnsSupport(input); err != nil {
return fmt.Errorf("error enabling VPC (%s) ClassicLink DNS support: %s", d.Id(), err)
}
-
- d.SetPartial("enable_classiclink_dns_support")
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- // Handle EC2 eventual consistency on creation
- err := resource.Retry(5*time.Minute, func() *resource.RetryError {
- err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v)
-
- if isAWSErr(err, "InvalidVpcID.NotFound", "") {
- return resource.RetryableError(err)
- }
-
- if err != nil {
- return resource.NonRetryableError(err)
- }
-
- return nil
- })
-
- if isResourceTimeoutError(err) {
- err = keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v)
- }
-
- if err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding tags: %s", err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
-
return resourceAwsVpcRead(d, meta)
}
func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- ignoreTags := meta.(*AWSClient).ignoreTags
- ignoreTagPrefixes := meta.(*AWSClient).ignoreTagPrefixes
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
// Refresh the VPC state
vpcRaw, _, err := VPCStateRefreshFunc(conn, d.Id())()
@@ -296,7 +260,7 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
}.String()
d.Set("arn", arn)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpc.Tags).IgnoreAws().IgnorePrefixes(ignoreTagPrefixes).Ignore(ignoreTags).Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -399,8 +363,6 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- // Turn on partial mode
- d.Partial(true)
vpcid := d.Id()
if d.HasChange("enable_dns_hostnames") {
val := d.Get("enable_dns_hostnames").(bool)
@@ -417,8 +379,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifyVpcAttribute(modifyOpts); err != nil {
return err
}
-
- d.SetPartial("enable_dns_hostnames")
}
_, hasEnableDnsSupportOption := d.GetOk("enable_dns_support")
@@ -438,8 +398,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifyVpcAttribute(modifyOpts); err != nil {
return err
}
-
- d.SetPartial("enable_dns_support")
}
if d.HasChange("enable_classiclink") {
@@ -465,8 +423,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
return err
}
}
-
- d.SetPartial("enable_classiclink")
}
if d.HasChange("enable_classiclink_dns_support") {
@@ -492,8 +448,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
return err
}
}
-
- d.SetPartial("enable_classiclink_dns_support")
}
if d.HasChange("assign_generated_ipv6_cidr_block") {
@@ -533,8 +487,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error waiting for EC2 VPC (%s) IPv6 CIDR to become disassociated: %s", d.Id(), err)
}
}
-
- d.SetPartial("assign_generated_ipv6_cidr_block")
}
if d.HasChange("instance_tenancy") {
@@ -548,8 +500,6 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
if _, err := conn.ModifyVpcTenancy(modifyOpts); err != nil {
return err
}
-
- d.SetPartial("instance_tenancy")
}
if d.HasChange("tags") {
@@ -558,11 +508,8 @@ func resourceAwsVpcUpdate(d *schema.ResourceData, meta interface{}) error {
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating tags: %s", err)
}
-
- d.SetPartial("tags")
}
- d.Partial(false)
return resourceAwsVpcRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_dhcp_options.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_dhcp_options.go
index f00956c95d1..4ee2d078c28 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_dhcp_options.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_dhcp_options.go
@@ -138,7 +138,7 @@ func resourceAwsVpcDhcpOptionsCreate(d *schema.ResourceData, meta interface{}) e
}
if v, ok := d.GetOk("tags"); ok {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v.(map[string]interface{})); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v.(map[string]interface{})); err != nil {
return fmt.Errorf("error updating tags: %s", err)
}
}
@@ -148,6 +148,8 @@ func resourceAwsVpcDhcpOptionsCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
req := &ec2.DescribeDhcpOptionsInput{
DhcpOptionsIds: []*string{
aws.String(d.Id()),
@@ -169,7 +171,7 @@ func resourceAwsVpcDhcpOptionsRead(d *schema.ResourceData, meta interface{}) err
}
opts := resp.DhcpOptions[0]
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(opts.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(opts.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
d.Set("owner_id", opts.OwnerId)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint.go
index c9623b13be4..f58966f47ff 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint.go
@@ -65,7 +65,7 @@ func resourceAwsVpcEndpoint() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
- ValidateFunc: validation.ValidateJsonString,
+ ValidateFunc: validation.StringIsJSON,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
@@ -193,6 +193,7 @@ func resourceAwsVpcEndpointCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
vpceRaw, state, err := vpcEndpointStateRefresh(conn, d.Id())()
if err != nil && state != "failed" {
@@ -276,7 +277,7 @@ func resourceAwsVpcEndpointRead(d *schema.ResourceData, meta interface{}) error
d.Set("vpc_endpoint_type", vpceType)
}
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpce.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpce.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint_service.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint_service.go
index 823ed654216..bf7521ede16 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint_service.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_endpoint_service.go
@@ -119,6 +119,7 @@ func resourceAwsVpcEndpointServiceCreate(d *schema.ResourceData, meta interface{
func resourceAwsVpcEndpointServiceRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
svcCfgRaw, state, err := vpcEndpointServiceStateRefresh(conn, d.Id())()
if err != nil && state != ec2.ServiceStateFailed {
@@ -155,7 +156,7 @@ func resourceAwsVpcEndpointServiceRead(d *schema.ResourceData, meta interface{})
d.Set("service_name", svcCfg.ServiceName)
d.Set("service_type", svcCfg.ServiceType[0].ServiceType)
d.Set("state", svcCfg.ServiceState)
- err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(svcCfg.Tags).IgnoreAws().Map())
+ err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(svcCfg.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
if err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
@@ -178,7 +179,6 @@ func resourceAwsVpcEndpointServiceRead(d *schema.ResourceData, meta interface{})
func resourceAwsVpcEndpointServiceUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- d.Partial(true)
svcId := d.Id()
modifyCfgReq := &ec2.ModifyVpcEndpointServiceConfigurationInput{
@@ -201,8 +201,6 @@ func resourceAwsVpcEndpointServiceUpdate(d *schema.ResourceData, meta interface{
if err := vpcEndpointServiceWaitUntilAvailable(d, conn); err != nil {
return err
}
-
- d.SetPartial("network_load_balancer_arns")
}
modifyPermReq := &ec2.ModifyVpcEndpointServicePermissionsInput{
@@ -214,8 +212,6 @@ func resourceAwsVpcEndpointServiceUpdate(d *schema.ResourceData, meta interface{
if _, err := conn.ModifyVpcEndpointServicePermissions(modifyPermReq); err != nil {
return fmt.Errorf("Error modifying VPC Endpoint Service permissions: %s", err.Error())
}
-
- d.SetPartial("allowed_principals")
}
if d.HasChange("tags") {
@@ -226,7 +222,6 @@ func resourceAwsVpcEndpointServiceUpdate(d *schema.ResourceData, meta interface{
}
}
- d.Partial(false)
return resourceAwsVpcEndpointServiceRead(d, meta)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection.go
index d0de5abcd90..8d5a5c431de 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection.go
@@ -104,11 +104,18 @@ func resourceAwsVPCPeeringCreate(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Error waiting for VPC Peering Connection to become available: %s", err)
}
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
+ }
+
return resourceAwsVPCPeeringUpdate(d, meta)
}
func resourceAwsVPCPeeringRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*AWSClient)
+ ignoreTagsConfig := client.IgnoreTagsConfig
pcRaw, statusCode, err := vpcPeeringConnectionRefreshState(client.ec2conn, d.Id())()
// Allow a failed VPC Peering Connection to fallthrough,
@@ -162,7 +169,7 @@ func resourceAwsVPCPeeringRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Error setting VPC Peering Connection requester information: %s", err)
}
- err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(pc.Tags).IgnoreAws().Map())
+ err = d.Set("tags", keyvaluetags.Ec2KeyValueTags(pc.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())
if err != nil {
return fmt.Errorf("Error setting VPC Peering Connection tags: %s", err)
}
@@ -203,7 +210,7 @@ func resourceAwsVpcPeeringConnectionModifyOptions(d *schema.ResourceData, meta i
func resourceAwsVPCPeeringUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
- if d.HasChange("tags") {
+ if d.HasChange("tags") && !d.IsNewResource() {
o, n := d.GetChange("tags")
if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), o, n); err != nil {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection_accepter.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection_accepter.go
index 9ee605d2f00..b466ab0c789 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection_accepter.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpc_peering_connection_accepter.go
@@ -4,7 +4,9 @@ import (
"fmt"
"log"
+ "github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
)
func resourceAwsVpcPeeringConnectionAccepter() *schema.Resource {
@@ -59,14 +61,34 @@ func resourceAwsVpcPeeringConnectionAccepter() *schema.Resource {
}
func resourceAwsVPCPeeringAccepterCreate(d *schema.ResourceData, meta interface{}) error {
+ conn := meta.(*AWSClient).ec2conn
+
id := d.Get("vpc_peering_connection_id").(string)
- d.SetId(id)
- if err := resourceAwsVPCPeeringRead(d, meta); err != nil {
- return err
+ _, statusCode, err := vpcPeeringConnectionRefreshState(conn, id)()
+
+ if err != nil && statusCode != ec2.VpcPeeringConnectionStateReasonCodeFailed {
+ return fmt.Errorf("error reading VPC Peering Connection (%s): %s", id, err)
+ }
+
+ status := map[string]bool{
+ ec2.VpcPeeringConnectionStateReasonCodeDeleted: true,
+ ec2.VpcPeeringConnectionStateReasonCodeDeleting: true,
+ ec2.VpcPeeringConnectionStateReasonCodeExpired: true,
+ ec2.VpcPeeringConnectionStateReasonCodeFailed: true,
+ ec2.VpcPeeringConnectionStateReasonCodeRejected: true,
+ "": true, // AWS consistency issue, see vpcPeeringConnectionRefreshState
}
- if d.Id() == "" {
- return fmt.Errorf("VPC Peering Connection %q not found", id)
+ if _, ok := status[statusCode]; ok {
+ return fmt.Errorf("VPC Peering Connection (%s) in unexpected status for acceptance: %s", id, statusCode)
+ }
+
+ d.SetId(id)
+
+ if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
+ return fmt.Errorf("error adding tags: %s", err)
+ }
}
return resourceAwsVPCPeeringUpdate(d, meta)
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_connection.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_connection.go
index 61ffbc3d65a..6f347dcd598 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_connection.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_connection.go
@@ -323,7 +323,7 @@ func resourceAwsVpnConnectionCreate(d *schema.ResourceData, meta interface{}) er
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 VPN Connection (%s) tags: %s", d.Id(), err)
}
}
@@ -358,6 +358,7 @@ func vpnConnectionRefreshFunc(conn *ec2.EC2, connectionId string) resource.State
func resourceAwsVpnConnectionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeVpnConnections(&ec2.DescribeVpnConnectionsInput{
VpnConnectionIds: []*string{aws.String(d.Id())},
@@ -432,7 +433,7 @@ func resourceAwsVpnConnectionRead(d *schema.ResourceData, meta interface{}) erro
d.Set("transit_gateway_id", vpnConnection.TransitGatewayId)
d.Set("type", vpnConnection.Type)
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpnConnection.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpnConnection.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_gateway.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_gateway.go
index 4d5d2069c7e..9fe22725bae 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_gateway.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_vpn_gateway.go
@@ -81,7 +81,7 @@ func resourceAwsVpnGatewayCreate(d *schema.ResourceData, meta interface{}) error
}
if v := d.Get("tags").(map[string]interface{}); len(v) > 0 {
- if err := keyvaluetags.Ec2UpdateTags(conn, d.Id(), nil, v); err != nil {
+ if err := keyvaluetags.Ec2CreateTags(conn, d.Id(), v); err != nil {
return fmt.Errorf("error adding EC2 VPN Gateway (%s) tags: %s", d.Id(), err)
}
}
@@ -91,6 +91,7 @@ func resourceAwsVpnGatewayCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsVpnGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeVpnGateways(&ec2.DescribeVpnGatewaysInput{
VpnGatewayIds: []*string{aws.String(d.Id())},
@@ -125,7 +126,7 @@ func resourceAwsVpnGatewayRead(d *schema.ResourceData, meta interface{}) error {
}
d.Set("amazon_side_asn", strconv.FormatInt(aws.Int64Value(vpnGateway.AmazonSideAsn), 10))
- if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpnGateway.Tags).IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(vpnGateway.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_ipset.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_ipset.go
index 7eef07fe965..19b90da7296 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_ipset.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_ipset.go
@@ -6,9 +6,9 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/arn"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/waf"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)
// WAF requires UpdateIPSet operations be split into batches of 1000 Updates
@@ -42,10 +42,15 @@ func resourceAwsWafIPSet() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.IPSetDescriptorTypeIpv4,
+ waf.IPSetDescriptorTypeIpv6,
+ }, false),
},
"value": {
- Type: schema.TypeString,
- Required: true,
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validation.IsCIDR,
},
},
},
@@ -70,7 +75,16 @@ func resourceAwsWafIPSetCreate(d *schema.ResourceData, meta interface{}) error {
}
resp := out.(*waf.CreateIPSetOutput)
d.SetId(*resp.IPSet.IPSetId)
- return resourceAwsWafIPSetUpdate(d, meta)
+
+ if v, ok := d.GetOk("ip_set_descriptors"); ok && v.(*schema.Set).Len() > 0 {
+
+ err := updateWafIpSetDescriptors(d.Id(), nil, v.(*schema.Set).List(), conn)
+ if err != nil {
+ return fmt.Errorf("Error Setting IP Descriptors: %s", err)
+ }
+ }
+
+ return resourceAwsWafIPSetRead(d, meta)
}
func resourceAwsWafIPSetRead(d *schema.ResourceData, meta interface{}) error {
@@ -82,7 +96,7 @@ func resourceAwsWafIPSetRead(d *schema.ResourceData, meta interface{}) error {
resp, err := conn.GetIPSet(params)
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "WAFNonexistentItemException" {
+ if isAWSErr(err, waf.ErrCodeNonexistentItemException, "") {
log.Printf("[WARN] WAF IPSet (%s) not found, removing from state", d.Id())
d.SetId("")
return nil
@@ -95,8 +109,8 @@ func resourceAwsWafIPSetRead(d *schema.ResourceData, meta interface{}) error {
for _, descriptor := range resp.IPSet.IPSetDescriptors {
d := map[string]interface{}{
- "type": *descriptor.Type,
- "value": *descriptor.Value,
+ "type": aws.StringValue(descriptor.Type),
+ "value": aws.StringValue(descriptor.Value),
}
descriptors = append(descriptors, d)
}
@@ -138,8 +152,7 @@ func resourceAwsWafIPSetDelete(d *schema.ResourceData, meta interface{}) error {
oldDescriptors := d.Get("ip_set_descriptors").(*schema.Set).List()
if len(oldDescriptors) > 0 {
- noDescriptors := []interface{}{}
- err := updateWafIpSetDescriptors(d.Id(), oldDescriptors, noDescriptors, conn)
+ err := updateWafIpSetDescriptors(d.Id(), oldDescriptors, nil, conn)
if err != nil {
return fmt.Errorf("Error Deleting IPSetDescriptors: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rate_based_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rate_based_rule.go
index 1f52bf092aa..6b2cbabd8fc 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rate_based_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rate_based_rule.go
@@ -115,6 +115,7 @@ func resourceAwsWafRateBasedRuleCreate(d *schema.ResourceData, meta interface{})
func resourceAwsWafRateBasedRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRateBasedRuleInput{
RuleId: aws.String(d.Id()),
@@ -154,7 +155,7 @@ func resourceAwsWafRateBasedRuleRead(d *schema.ResourceData, meta interface{}) e
if err != nil {
return fmt.Errorf("Failed to get WAF Rated Based Rule parameter tags for %s: %s", d.Get("name"), err)
}
- if err := d.Set("tags", tagList.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tagList.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule.go
index 82d8821da02..59b133c14f1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule.go
@@ -104,6 +104,7 @@ func resourceAwsWafRuleCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsWafRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRuleInput{
RuleId: aws.String(d.Id()),
@@ -145,7 +146,7 @@ func resourceAwsWafRuleRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("error listing tags for WAF Rule (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule_group.go
index 3b2ac9aebde..7bf3ed6429a 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_rule_group.go
@@ -115,6 +115,7 @@ func resourceAwsWafRuleGroupCreate(d *schema.ResourceData, meta interface{}) err
func resourceAwsWafRuleGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRuleGroupInput{
RuleGroupId: aws.String(d.Id()),
@@ -150,7 +151,7 @@ func resourceAwsWafRuleGroupRead(d *schema.ResourceData, meta interface{}) error
if err != nil {
return fmt.Errorf("error listing tags for WAF Rule Group (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_sql_injection_match_set.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_sql_injection_match_set.go
index 33268c98f5e..66aa8e399e0 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_sql_injection_match_set.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_sql_injection_match_set.go
@@ -5,7 +5,6 @@ import (
"log"
"github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/waf"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
@@ -16,6 +15,9 @@ func resourceAwsWafSqlInjectionMatchSet() *schema.Resource {
Read: resourceAwsWafSqlInjectionMatchSetRead,
Update: resourceAwsWafSqlInjectionMatchSetUpdate,
Delete: resourceAwsWafSqlInjectionMatchSetDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
Schema: map[string]*schema.Schema{
"name": {
@@ -88,7 +90,7 @@ func resourceAwsWafSqlInjectionMatchSetRead(d *schema.ResourceData, meta interfa
resp, err := conn.GetSqlInjectionMatchSet(params)
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "WAFNonexistentItemException" {
+ if isAWSErr(err, waf.ErrCodeNonexistentItemException, "") {
log.Printf("[WARN] WAF IPSet (%s) not found, removing from state", d.Id())
d.SetId("")
return nil
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_web_acl.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_web_acl.go
index 0e9df3bd4b6..aca664f62b9 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_web_acl.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_web_acl.go
@@ -212,6 +212,8 @@ func resourceAwsWafWebAclCreate(d *schema.ResourceData, meta interface{}) error
func resourceAwsWafWebAclRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &waf.GetWebACLInput{
WebACLId: aws.String(d.Id()),
}
@@ -246,7 +248,7 @@ func resourceAwsWafWebAclRead(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return fmt.Errorf("error listing tags for WAF ACL (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_xss_match_set.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_xss_match_set.go
index da671ca09b2..bd14289fef5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_xss_match_set.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_waf_xss_match_set.go
@@ -6,9 +6,9 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/arn"
- "github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/waf"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)
func resourceAwsWafXssMatchSet() *schema.Resource {
@@ -37,7 +37,7 @@ func resourceAwsWafXssMatchSet() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"field_to_match": {
- Type: schema.TypeSet,
+ Type: schema.TypeList,
Required: true,
MaxItems: 1,
Elem: &schema.Resource{
@@ -49,6 +49,15 @@ func resourceAwsWafXssMatchSet() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.MatchFieldTypeUri,
+ waf.MatchFieldTypeSingleQueryArg,
+ waf.MatchFieldTypeQueryString,
+ waf.MatchFieldTypeMethod,
+ waf.MatchFieldTypeHeader,
+ waf.MatchFieldTypeBody,
+ waf.MatchFieldTypeAllQueryArgs,
+ }, false),
},
},
},
@@ -56,6 +65,14 @@ func resourceAwsWafXssMatchSet() *schema.Resource {
"text_transformation": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.TextTransformationUrlDecode,
+ waf.TextTransformationNone,
+ waf.TextTransformationHtmlEntityDecode,
+ waf.TextTransformationCompressWhiteSpace,
+ waf.TextTransformationCmdLine,
+ waf.TextTransformationLowercase,
+ }, false),
},
},
},
@@ -79,26 +96,32 @@ func resourceAwsWafXssMatchSetCreate(d *schema.ResourceData, meta interface{}) e
return conn.CreateXssMatchSet(params)
})
if err != nil {
- return fmt.Errorf("Error creating XssMatchSet: %s", err)
+ return fmt.Errorf("Error creating WAF XSS Match Set: %s", err)
}
resp := out.(*waf.CreateXssMatchSetOutput)
d.SetId(*resp.XssMatchSet.XssMatchSetId)
- return resourceAwsWafXssMatchSetUpdate(d, meta)
+ if v, ok := d.GetOk("xss_match_tuples"); ok && v.(*schema.Set).Len() > 0 {
+ err := updateXssMatchSetResource(d.Id(), nil, v.(*schema.Set).List(), conn)
+ if err != nil {
+ return fmt.Errorf("Error setting WAF XSS Match Set tuples: %s", err)
+ }
+ }
+ return resourceAwsWafXssMatchSetRead(d, meta)
}
func resourceAwsWafXssMatchSetRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafconn
- log.Printf("[INFO] Reading XssMatchSet: %s", d.Get("name").(string))
+ log.Printf("[INFO] Reading WAF XSS Match Set: %s", d.Get("name").(string))
params := &waf.GetXssMatchSetInput{
XssMatchSetId: aws.String(d.Id()),
}
resp, err := conn.GetXssMatchSet(params)
if err != nil {
- if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == waf.ErrCodeNonexistentItemException {
- log.Printf("[WARN] WAF IPSet (%s) not found, removing from state", d.Id())
+ if isAWSErr(err, waf.ErrCodeNonexistentItemException, "") {
+ log.Printf("[WARN] WAF XSS Match Set (%s) not found, removing from state", d.Id())
d.SetId("")
return nil
}
@@ -129,7 +152,7 @@ func resourceAwsWafXssMatchSetUpdate(d *schema.ResourceData, meta interface{}) e
err := updateXssMatchSetResource(d.Id(), oldT, newT, conn)
if err != nil {
- return fmt.Errorf("Error updating XssMatchSet: %s", err)
+ return fmt.Errorf("Error updating WAF XSS Match Set: %s", err)
}
}
@@ -141,10 +164,9 @@ func resourceAwsWafXssMatchSetDelete(d *schema.ResourceData, meta interface{}) e
oldTuples := d.Get("xss_match_tuples").(*schema.Set).List()
if len(oldTuples) > 0 {
- noTuples := []interface{}{}
- err := updateXssMatchSetResource(d.Id(), oldTuples, noTuples, conn)
+ err := updateXssMatchSetResource(d.Id(), oldTuples, nil, conn)
if err != nil {
- return fmt.Errorf("Error updating IPSetDescriptors: %s", err)
+ return fmt.Errorf("Error removing WAF XSS Match Set tuples: %s", err)
}
}
@@ -158,7 +180,7 @@ func resourceAwsWafXssMatchSetDelete(d *schema.ResourceData, meta interface{}) e
return conn.DeleteXssMatchSet(req)
})
if err != nil {
- return fmt.Errorf("Error deleting XssMatchSet: %s", err)
+ return fmt.Errorf("Error deleting WAF XSS Match Set: %s", err)
}
return nil
@@ -173,11 +195,11 @@ func updateXssMatchSetResource(id string, oldT, newT []interface{}, conn *waf.WA
Updates: diffWafXssMatchSetTuples(oldT, newT),
}
- log.Printf("[INFO] Updating XssMatchSet tuples: %s", req)
+ log.Printf("[INFO] Updating WAF XSS Match Set tuples: %s", req)
return conn.UpdateXssMatchSet(req)
})
if err != nil {
- return fmt.Errorf("Error updating XssMatchSet: %s", err)
+ return fmt.Errorf("Error updating WAF XSS Match Set: %s", err)
}
return nil
@@ -188,7 +210,7 @@ func flattenWafXssMatchTuples(ts []*waf.XssMatchTuple) []interface{} {
for i, t := range ts {
m := make(map[string]interface{})
m["field_to_match"] = flattenFieldToMatch(t.FieldToMatch)
- m["text_transformation"] = *t.TextTransformation
+ m["text_transformation"] = aws.StringValue(t.TextTransformation)
out[i] = m
}
return out
@@ -208,7 +230,7 @@ func diffWafXssMatchSetTuples(oldT, newT []interface{}) []*waf.XssMatchSetUpdate
updates = append(updates, &waf.XssMatchSetUpdate{
Action: aws.String(waf.ChangeActionDelete),
XssMatchTuple: &waf.XssMatchTuple{
- FieldToMatch: expandFieldToMatch(tuple["field_to_match"].(*schema.Set).List()[0].(map[string]interface{})),
+ FieldToMatch: expandFieldToMatch(tuple["field_to_match"].([]interface{})[0].(map[string]interface{})),
TextTransformation: aws.String(tuple["text_transformation"].(string)),
},
})
@@ -220,7 +242,7 @@ func diffWafXssMatchSetTuples(oldT, newT []interface{}) []*waf.XssMatchSetUpdate
updates = append(updates, &waf.XssMatchSetUpdate{
Action: aws.String(waf.ChangeActionInsert),
XssMatchTuple: &waf.XssMatchTuple{
- FieldToMatch: expandFieldToMatch(tuple["field_to_match"].(*schema.Set).List()[0].(map[string]interface{})),
+ FieldToMatch: expandFieldToMatch(tuple["field_to_match"].([]interface{})[0].(map[string]interface{})),
TextTransformation: aws.String(tuple["text_transformation"].(string)),
},
})
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rate_based_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rate_based_rule.go
index a6fe9f72063..4073489c98d 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rate_based_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rate_based_rule.go
@@ -116,6 +116,7 @@ func resourceAwsWafRegionalRateBasedRuleCreate(d *schema.ResourceData, meta inte
func resourceAwsWafRegionalRateBasedRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafregionalconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRateBasedRuleInput{
RuleId: aws.String(d.Id()),
@@ -154,7 +155,7 @@ func resourceAwsWafRegionalRateBasedRuleRead(d *schema.ResourceData, meta interf
if err != nil {
return fmt.Errorf("Failed to get WAF Regional Rated Based Rule parameter tags for %s: %s", d.Get("name"), err)
}
- if err := d.Set("tags", tagList.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tagList.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule.go
index b16703e3468..a95036cf245 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule.go
@@ -103,6 +103,7 @@ func resourceAwsWafRegionalRuleCreate(d *schema.ResourceData, meta interface{})
func resourceAwsWafRegionalRuleRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafregionalconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRuleInput{
RuleId: aws.String(d.Id()),
@@ -134,7 +135,7 @@ func resourceAwsWafRegionalRuleRead(d *schema.ResourceData, meta interface{}) er
return fmt.Errorf("error listing tags for WAF Regional Rule (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule_group.go
index 48b5d97e906..a797398d2a1 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_rule_group.go
@@ -117,6 +117,7 @@ func resourceAwsWafRegionalRuleGroupCreate(d *schema.ResourceData, meta interfac
func resourceAwsWafRegionalRuleGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafregionalconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
params := &waf.GetRuleGroupInput{
RuleGroupId: aws.String(d.Id()),
@@ -153,7 +154,7 @@ func resourceAwsWafRegionalRuleGroupRead(d *schema.ResourceData, meta interface{
if err != nil {
return fmt.Errorf("error listing tags for WAF Regional Rule Group (%s): %s", arn, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_web_acl.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_web_acl.go
index 8308b40f23f..96b7db8d928 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_web_acl.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_web_acl.go
@@ -42,6 +42,11 @@ func resourceAwsWafRegionalWebAcl() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.WafActionTypeAllow,
+ waf.WafActionTypeBlock,
+ waf.WafActionTypeCount,
+ }, false),
},
},
},
@@ -53,8 +58,9 @@ func resourceAwsWafRegionalWebAcl() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"log_destination": {
- Type: schema.TypeString,
- Required: true,
+ Type: schema.TypeString,
+ Required: true,
+ ValidateFunc: validateArn,
},
"redacted_fields": {
Type: schema.TypeList,
@@ -74,6 +80,15 @@ func resourceAwsWafRegionalWebAcl() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.MatchFieldTypeAllQueryArgs,
+ waf.MatchFieldTypeBody,
+ waf.MatchFieldTypeHeader,
+ waf.MatchFieldTypeMethod,
+ waf.MatchFieldTypeQueryString,
+ waf.MatchFieldTypeSingleQueryArg,
+ waf.MatchFieldTypeUri,
+ }, false),
},
},
},
@@ -103,6 +118,11 @@ func resourceAwsWafRegionalWebAcl() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.WafActionTypeAllow,
+ waf.WafActionTypeBlock,
+ waf.WafActionTypeCount,
+ }, false),
},
},
},
@@ -116,6 +136,10 @@ func resourceAwsWafRegionalWebAcl() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ waf.WafOverrideActionTypeCount,
+ waf.WafOverrideActionTypeNone,
+ }, false),
},
},
},
@@ -219,6 +243,8 @@ func resourceAwsWafRegionalWebAclCreate(d *schema.ResourceData, meta interface{}
func resourceAwsWafRegionalWebAclRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).wafregionalconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
+
params := &waf.GetWebACLInput{
WebACLId: aws.String(d.Id()),
}
@@ -266,7 +292,7 @@ func resourceAwsWafRegionalWebAclRead(d *schema.ResourceData, meta interface{})
if err != nil {
return fmt.Errorf("error listing tags for WAF Regional ACL (%s): %s", webACLARN, err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_xss_match_set.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_xss_match_set.go
index 26c2a864dbb..568cf62d0a5 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_xss_match_set.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_wafregional_xss_match_set.go
@@ -8,6 +8,7 @@ import (
"github.com/aws/aws-sdk-go/service/waf"
"github.com/aws/aws-sdk-go/service/wafregional"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)
func resourceAwsWafRegionalXssMatchSet() *schema.Resource {
@@ -32,7 +33,7 @@ func resourceAwsWafRegionalXssMatchSet() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"field_to_match": {
- Type: schema.TypeSet,
+ Type: schema.TypeList,
Required: true,
MaxItems: 1,
Elem: &schema.Resource{
@@ -44,6 +45,15 @@ func resourceAwsWafRegionalXssMatchSet() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ wafregional.MatchFieldTypeUri,
+ wafregional.MatchFieldTypeSingleQueryArg,
+ wafregional.MatchFieldTypeQueryString,
+ wafregional.MatchFieldTypeMethod,
+ wafregional.MatchFieldTypeHeader,
+ wafregional.MatchFieldTypeBody,
+ wafregional.MatchFieldTypeAllQueryArgs,
+ }, false),
},
},
},
@@ -51,6 +61,14 @@ func resourceAwsWafRegionalXssMatchSet() *schema.Resource {
"text_transformation": {
Type: schema.TypeString,
Required: true,
+ ValidateFunc: validation.StringInSlice([]string{
+ wafregional.TextTransformationUrlDecode,
+ wafregional.TextTransformationNone,
+ wafregional.TextTransformationHtmlEntityDecode,
+ wafregional.TextTransformationCompressWhiteSpace,
+ wafregional.TextTransformationCmdLine,
+ wafregional.TextTransformationLowercase,
+ }, false),
},
},
},
@@ -79,9 +97,16 @@ func resourceAwsWafRegionalXssMatchSetCreate(d *schema.ResourceData, meta interf
}
resp := out.(*waf.CreateXssMatchSetOutput)
- d.SetId(*resp.XssMatchSet.XssMatchSetId)
+ d.SetId(aws.StringValue(resp.XssMatchSet.XssMatchSetId))
- return resourceAwsWafRegionalXssMatchSetUpdate(d, meta)
+ if v, ok := d.Get("xss_match_tuple").(*schema.Set); ok && v.Len() > 0 {
+ err := updateXssMatchSetResourceWR(d.Id(), nil, v.List(), conn, region)
+ if err != nil {
+ return fmt.Errorf("Failed updating regional WAF XSS Match Set: %s", err)
+ }
+ }
+
+ return resourceAwsWafRegionalXssMatchSetRead(d, meta)
}
func resourceAwsWafRegionalXssMatchSetRead(d *schema.ResourceData, meta interface{}) error {
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_directory.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_directory.go
index 37321ea2c35..2b77c9d4261 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_directory.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_directory.go
@@ -135,6 +135,7 @@ func resourceAwsWorkspacesDirectoryCreate(d *schema.ResourceData, meta interface
func resourceAwsWorkspacesDirectoryRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).workspacesconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
raw, state, err := workspacesDirectoryRefreshStateFunc(conn, d.Id())()
if err != nil {
@@ -158,7 +159,7 @@ func resourceAwsWorkspacesDirectoryRead(d *schema.ResourceData, meta interface{}
return fmt.Errorf("error listing tags: %s", err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_ip_group.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_ip_group.go
index 04596117a72..c0781a38e95 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_ip_group.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_workspaces_ip_group.go
@@ -76,6 +76,7 @@ func resourceAwsWorkspacesIpGroupCreate(d *schema.ResourceData, meta interface{}
func resourceAwsWorkspacesIpGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).workspacesconn
+ ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig
resp, err := conn.DescribeIpGroups(&workspaces.DescribeIpGroupsInput{
GroupIds: []*string{aws.String(d.Id())},
@@ -99,7 +100,7 @@ func resourceAwsWorkspacesIpGroupRead(d *schema.ResourceData, meta interface{})
return fmt.Errorf("error listing tags for Workspaces IP Group (%q): %s", d.Id(), err)
}
- if err := d.Set("tags", tags.IgnoreAws().Map()); err != nil {
+ if err := d.Set("tags", tags.IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/structure.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/structure.go
index 378aa7754c8..6a733e9fbb2 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/structure.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/structure.go
@@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
+ "net"
"reflect"
"regexp"
"sort"
@@ -46,6 +47,7 @@ import (
"github.com/aws/aws-sdk-go/service/waf"
"github.com/aws/aws-sdk-go/service/worklink"
"github.com/beevik/etree"
+ "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/structure"
"github.com/mitchellh/copystructure"
@@ -999,6 +1001,16 @@ func flattenStringSet(list []*string) *schema.Set {
return schema.NewSet(schema.HashString, flattenStringList(list))
}
+// hashStringCaseInsensitive hashes strings in a case insensitive manner.
+// If you want a Set of strings and are case inensitive, this is the SchemaSetFunc you want.
+func hashStringCaseInsensitive(v interface{}) int {
+ return hashcode.String(strings.ToLower(v.(string)))
+}
+
+func flattenCaseInsensitiveStringSet(list []*string) *schema.Set {
+ return schema.NewSet(hashStringCaseInsensitive, flattenStringList(list))
+}
+
//Flattens an array of private ip addresses into a []string, where the elements returned are the IP strings e.g. "192.168.0.0"
func flattenNetworkInterfacesPrivateIPAddresses(dtos []*ec2.NetworkInterfacePrivateIpAddress) []string {
ips := make([]string, 0, len(dtos))
@@ -1560,6 +1572,32 @@ func stringMapToPointers(m map[string]interface{}) map[string]*string {
return list
}
+// diffStringMaps returns the set of keys and values that must be created,
+// and the set of keys and values that must be destroyed.
+// Equivalent to 'diffTagsGeneric'.
+func diffStringMaps(oldMap, newMap map[string]interface{}) (map[string]*string, map[string]*string) {
+ // First, we're creating everything we have
+ create := map[string]*string{}
+ for k, v := range newMap {
+ create[k] = aws.String(v.(string))
+ }
+
+ // Build the map of what to remove
+ remove := map[string]*string{}
+ for k, v := range oldMap {
+ old, ok := create[k]
+ if !ok || aws.StringValue(old) != v.(string) {
+ // Delete it!
+ remove[k] = aws.String(v.(string))
+ } else if ok {
+ // already present so remove from new
+ delete(create, k)
+ }
+ }
+
+ return create, remove
+}
+
func flattenDSVpcSettings(
s *directoryservice.DirectoryVpcSettingsDescription) []map[string]interface{} {
settings := make(map[string]interface{})
@@ -2067,71 +2105,6 @@ func flattenApiGatewayThrottleSettings(settings *apigateway.ThrottleSettings) []
// TODO: refactor some of these helper functions and types in the terraform/helper packages
-// getStringPtr returns a *string version of the value taken from m, where m
-// can be a map[string]interface{} or a *schema.ResourceData. If the key isn't
-// present or is empty, getNilString returns nil.
-func getStringPtr(m interface{}, key string) *string {
- switch m := m.(type) {
- case map[string]interface{}:
- v := m[key]
-
- if v == nil {
- return nil
- }
-
- s := v.(string)
- if s == "" {
- return nil
- }
-
- return &s
-
- case *schema.ResourceData:
- if v, ok := m.GetOk(key); ok {
- if v == nil || v.(string) == "" {
- return nil
- }
- s := v.(string)
- return &s
- }
- }
-
- return nil
-}
-
-// a convenience wrapper type for the schema.Set map[string]interface{}
-// Set operations only alter the underlying map if the value is not nil
-type setMap map[string]interface{}
-
-// SetString sets m[key] = *value only if `value != nil`
-func (s setMap) SetString(key string, value *string) {
- if value == nil {
- return
- }
-
- s[key] = *value
-}
-
-// Set assigns value to s[key] if value isn't nil
-func (s setMap) Set(key string, value interface{}) {
- if reflect.ValueOf(value).IsNil() {
- return
- }
-
- s[key] = value
-}
-
-// Map returns the raw map type for a shorter type conversion
-func (s setMap) Map() map[string]interface{} {
- return map[string]interface{}(s)
-}
-
-// MapList returns the map[string]interface{} as a single element in a slice to
-// match the schema.Set data type used for structs.
-func (s setMap) MapList() []map[string]interface{} {
- return []map[string]interface{}{s.Map()}
-}
-
// Takes the result of flatmap.Expand for an array of policy attributes and
// returns ELB API compatible objects
func expandPolicyAttributes(configured []interface{}) ([]*elb.PolicyAttribute, error) {
@@ -3713,10 +3686,11 @@ func flattenWafAction(n *waf.WafAction) []map[string]interface{} {
return nil
}
- m := setMap(make(map[string]interface{}))
+ result := map[string]interface{}{
+ "type": aws.StringValue(n.Type),
+ }
- m.SetString("type", n.Type)
- return m.MapList()
+ return []map[string]interface{}{result}
}
func flattenWafWebAclRules(ts []*waf.ActivatedRule) []map[string]interface{} {
@@ -4305,6 +4279,24 @@ func flattenDynamoDbPitr(pitrDesc *dynamodb.DescribeContinuousBackupsOutput) []i
return []interface{}{m}
}
+func flattenAwsDynamoDbReplicaDescriptions(apiObjects []*dynamodb.ReplicaDescription) []interface{} {
+ if len(apiObjects) == 0 {
+ return nil
+ }
+
+ var tfList []interface{}
+
+ for _, apiObject := range apiObjects {
+ tfMap := map[string]interface{}{
+ "region_name": aws.StringValue(apiObject.RegionName),
+ }
+
+ tfList = append(tfList, tfMap)
+ }
+
+ return tfList
+}
+
func flattenAwsDynamoDbTableResource(d *schema.ResourceData, table *dynamodb.TableDescription) error {
d.Set("billing_mode", dynamodb.BillingModeProvisioned)
if table.BillingModeSummary != nil {
@@ -4420,6 +4412,11 @@ func flattenAwsDynamoDbTableResource(d *schema.ResourceData, table *dynamodb.Tab
return err
}
+ err = d.Set("replica", flattenAwsDynamoDbReplicaDescriptions(table.Replicas))
+ if err != nil {
+ return err
+ }
+
d.Set("arn", table.TableArn)
return nil
@@ -5704,3 +5701,13 @@ func flattenRoute53ResolverRuleTargetIps(targetAddresses []*route53resolver.Targ
return vTargetIps
}
+
+func isIpv6CidrsEquals(first, second string) bool {
+ if first == "" || second == "" {
+ return false
+ }
+ _, firstMask, _ := net.ParseCIDR(first)
+ _, secondMask, _ := net.ParseCIDR(second)
+
+ return firstMask.String() == secondMask.String()
+}
diff --git a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/validators.go b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/validators.go
index 890b96b12cf..5b1b685d960 100644
--- a/vendor/github.com/terraform-providers/terraform-provider-aws/aws/validators.go
+++ b/vendor/github.com/terraform-providers/terraform-provider-aws/aws/validators.go
@@ -1958,6 +1958,8 @@ func validateCognitoRoles(v map[string]interface{}) (errors []error) {
func validateDxConnectionBandWidth() schema.SchemaValidateFunc {
return validation.StringInSlice([]string{
"1Gbps",
+ "2Gbps",
+ "5Gbps",
"10Gbps",
"50Mbps",
"100Mbps",
diff --git a/vendor/modules.txt b/vendor/modules.txt
index c9317552757..8ccd8dd63fb 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -181,7 +181,7 @@ github.com/awalterschulze/gographviz/internal/errors
github.com/awalterschulze/gographviz/internal/lexer
github.com/awalterschulze/gographviz/internal/parser
github.com/awalterschulze/gographviz/internal/token
-# github.com/aws/aws-sdk-go v1.29.24
+# github.com/aws/aws-sdk-go v1.30.16
github.com/aws/aws-sdk-go/aws
github.com/aws/aws-sdk-go/aws/arn
github.com/aws/aws-sdk-go/aws/awserr
@@ -335,6 +335,7 @@ github.com/aws/aws-sdk-go/service/redshift
github.com/aws/aws-sdk-go/service/resourcegroups
github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi
github.com/aws/aws-sdk-go/service/route53
+github.com/aws/aws-sdk-go/service/route53domains
github.com/aws/aws-sdk-go/service/route53resolver
github.com/aws/aws-sdk-go/service/s3
github.com/aws/aws-sdk-go/service/s3/internal/arn
@@ -826,7 +827,7 @@ github.com/hashicorp/terraform/terraform
github.com/hashicorp/terraform/version
# github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7
github.com/hashicorp/terraform-config-inspect/tfconfig
-# github.com/hashicorp/terraform-plugin-sdk v1.8.0 => github.com/openshift/hashicorp-terraform-plugin-sdk v1.6.0-openshift
+# github.com/hashicorp/terraform-plugin-sdk v1.9.0 => github.com/openshift/hashicorp-terraform-plugin-sdk v1.6.0-openshift
github.com/hashicorp/terraform-plugin-sdk/helper/acctest
github.com/hashicorp/terraform-plugin-sdk/helper/customdiff
github.com/hashicorp/terraform-plugin-sdk/helper/encryption
@@ -892,7 +893,7 @@ github.com/imdario/mergo
github.com/inconshreveable/mousetrap
# github.com/jen20/awspolicyequivalence v1.1.0
github.com/jen20/awspolicyequivalence
-# github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
+# github.com/jmespath/go-jmespath v0.3.0
github.com/jmespath/go-jmespath
# github.com/joyent/triton-go v1.7.0
github.com/joyent/triton-go
@@ -1084,17 +1085,22 @@ github.com/spf13/cobra
github.com/spf13/pflag
# github.com/stoewer/go-strcase v1.1.0
github.com/stoewer/go-strcase
-# github.com/stretchr/testify v1.4.0
+# github.com/stretchr/testify v1.5.1
github.com/stretchr/testify/assert
# github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d
github.com/svanharmelen/jsonapi
-# github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200319153356-a183662640d9
+# github.com/terraform-providers/terraform-provider-aws v0.0.0 => github.com/openshift/terraform-provider-aws v1.60.1-0.20200526184553-1a716dcc0fa8
github.com/terraform-providers/terraform-provider-aws/aws
github.com/terraform-providers/terraform-provider-aws/aws/internal/flatmap
github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags
github.com/terraform-providers/terraform-provider-aws/aws/internal/naming
+github.com/terraform-providers/terraform-provider-aws/aws/internal/service/apigatewayv2/waiter
github.com/terraform-providers/terraform-provider-aws/aws/internal/service/batch/equivalency
github.com/terraform-providers/terraform-provider-aws/aws/internal/service/eks/token
+github.com/terraform-providers/terraform-provider-aws/aws/internal/service/guardduty/waiter
+github.com/terraform-providers/terraform-provider-aws/aws/internal/service/iam/waiter
+github.com/terraform-providers/terraform-provider-aws/aws/internal/service/kms/waiter
+github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicediscovery/waiter
# github.com/terraform-providers/terraform-provider-azuread v0.7.0
github.com/terraform-providers/terraform-provider-azuread/azuread/helpers/tf
# github.com/terraform-providers/terraform-provider-azurerm v0.0.0 => github.com/openshift/terraform-provider-azurerm v1.41.1-openshift-3